|
|
@@ -116,7 +116,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="text-center mt-8">
|
|
|
- <button class="bg-gradient-to-r from-primary" @click="saveSetting(activeIndex)" v-if="activeIndex !== 4">
|
|
|
+ <button class="bg-gradient-to-r from-primary" @click="onSava(activeIndex)" v-if="activeIndex !== 4">
|
|
|
保存
|
|
|
</button>
|
|
|
</div>
|
|
|
@@ -255,9 +255,9 @@ const defaultCutoutModeList = ref([
|
|
|
{ label: '精细化抠图', value: '精细化抠图' },
|
|
|
]);
|
|
|
const deviceSpeedList = ref([
|
|
|
- { label: '一档', value: '1' },
|
|
|
- { label: '二档', value: '2' },
|
|
|
- { label: '三档', value: '3' },
|
|
|
+ { label: '一档', value: '一档' },
|
|
|
+ { label: '二档', value: '二档' },
|
|
|
+ { label: '三档', value: '三档' },
|
|
|
]);
|
|
|
/*
|
|
|
const runModeList = ref([
|
|
|
@@ -387,13 +387,20 @@ const toggleTab = async (item) => {
|
|
|
let oldType = activeIndex.value;
|
|
|
|
|
|
if([0,1,2].includes(oldType)){
|
|
|
- const next = await saveSetting(oldType)
|
|
|
- console.log(next);
|
|
|
+ const next = await saveSetting(oldType)
|
|
|
if(next === false) return ;
|
|
|
}
|
|
|
activeIndex.value = item;
|
|
|
};
|
|
|
|
|
|
+const onSava = async (index)=>{
|
|
|
+ const next = await saveSetting(index)
|
|
|
+
|
|
|
+ if(next !== false){
|
|
|
+ ElMessage.success('保存成功')
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
|
|
|
/**
|
|
|
* 保存当前表单配置。
|