-
- 新增
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 取 消
- 确 定
-
-
-
-
-
-
-
diff --git a/src/views/govern/terminal/planData/components/popup.vue b/src/views/govern/terminal/planData/components/popup.vue
index 3179e1c..37fb7b0 100644
--- a/src/views/govern/terminal/planData/components/popup.vue
+++ b/src/views/govern/terminal/planData/components/popup.vue
@@ -183,7 +183,6 @@
import { ref, inject, defineEmits } from 'vue'
import { ElMessage } from 'element-plus'
import { Plus, Minus, Message } from '@element-plus/icons-vue'
-import deviceInfo from './deviceInfo.vue'
import { addPlan, addRecord, updateRecord, getDeviceList } from '@/api/cs-device-boot/planData'
import { useDictData } from '@/stores/dictData'
const dictData = useDictData()
@@ -223,8 +222,8 @@ const title: any = ref('')
const activeFormIndex: any = ref(null)
const planId: any = ref('')
const deviceRef: any = ref(null)
-const details=(val:any)=>{
- form.value=val
+const details = (val: any) => {
+ form.value = val
}
// 0 新增方案 1 修改方案 2 新增测试项 3 修改测试项 4 删除方案 5 删除测试项 6 设备信息
const open = (val: any, id: any) => {
@@ -248,8 +247,8 @@ const open = (val: any, id: any) => {
//数据回显
if (val == 0 || val == 2) {
form.value = {
- itemName: row.itemName, //方案名称
- describe: row.describe, //方案描述
+ itemName: '', //方案名称
+ describe: '', //方案描述
//测试项数据
records: [
{
@@ -273,12 +272,10 @@ const open = (val: any, id: any) => {
}
}
if (val == 1 || val == 3) {
-
}
if (val == 6) {
//1 列表 0树
- getDeviceList({ id: id ,isTrueFlag:0,pageNum:1,pageSize:200}).then(res => {
- console.log(res, '查询列表')
+ getDeviceList({ id: id, isTrueFlag: 0, pageNum: 1, pageSize: 200 }).then(res => {
})
}
}
@@ -395,7 +392,7 @@ const submit = () => {
})
}
}
-defineExpose({ open ,details})
+defineExpose({ open, details })