联调检测脚本
This commit is contained in:
@@ -15,13 +15,13 @@
|
||||
<el-tab-pane v-for="tab in tabData" :key="tab.value" :label="tab.label" :name="tab.value">
|
||||
<div class="dialog-footer">
|
||||
<el-button :icon="CirclePlus" type="primary" @click="openDialog('add')">新增</el-button>
|
||||
<el-button :icon="Check" type="primary">保存通讯脚本</el-button>
|
||||
<el-button :icon="Check" type="primary" @click="saveTheNewsletter">保存通讯脚本</el-button>
|
||||
</div>
|
||||
<div style="display: flex">
|
||||
<!-- 通信脚本 -->
|
||||
<el-tabs type="border-card" v-model="firstName" style="height: 100%">
|
||||
<el-tab-pane label="通讯脚本" name="first">
|
||||
<Commun :options="props.options" style="width: 400px" />
|
||||
<Commun :activeName="activeName" style="width: 400px" />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
<!-- 2级tab -->
|
||||
@@ -156,7 +156,7 @@ import { CirclePlus, Delete, Check, CopyDocument } from '@element-plus/icons-vue
|
||||
import type { TestScript } from '@/api/device/interface/testScript'
|
||||
import TestProjectPopup from '@/views/machine/testScript/components/testProjectPopup.vue'
|
||||
import { CheckData } from '@/api/check/interface'
|
||||
import { dlsDetails, deleteDtls, updateDtls, addScriptDtls } from '@/api/device/testScript'
|
||||
import { dlsDetails, deleteDtls, updateDtls, addScriptDtls, checkDataList } from '@/api/device/testScript'
|
||||
import { useDictStore } from '@/stores/modules/dict'
|
||||
import { useHandleData } from '@/hooks/useHandleData'
|
||||
interface TabOption {
|
||||
@@ -324,27 +324,10 @@ const enableRow = async (row: any) => {
|
||||
// 新增保存
|
||||
const addTab = (row: any) => {
|
||||
getTree()
|
||||
// let data = JSON.parse(JSON.stringify(row))
|
||||
// let flag = true
|
||||
// let list: any = {}
|
||||
// let childrenList: any = {}
|
||||
// tabData.value.forEach(item => {
|
||||
// if (item.value == activeName.value) {
|
||||
// // item.children.push(JSON.parse(JSON.stringify(row)))
|
||||
// list = item
|
||||
// item.children.forEach(k => {
|
||||
// if (k.value == row.value) {
|
||||
// flag = false
|
||||
// childrenList = k
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// if (flag) {
|
||||
// list.children.push(data)
|
||||
// } else {
|
||||
// childrenList.children.push(data)
|
||||
// }
|
||||
}
|
||||
// 保存通信脚本
|
||||
const saveTheNewsletter=()=>{
|
||||
|
||||
}
|
||||
onMounted(() => {
|
||||
getTree()
|
||||
|
||||
Reference in New Issue
Block a user