终端检测问题修改
This commit is contained in:
@@ -28,11 +28,13 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, provide, nextTick } from 'vue'
|
import { ref, onMounted, provide, nextTick } from 'vue'
|
||||||
import TableStore from '@/utils/tableStore'
|
import TableStore from '@/utils/tableStore'
|
||||||
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||||
import Table from '@/components/table/index.vue'
|
import Table from '@/components/table/index.vue'
|
||||||
import TableHeader from '@/components/table/header/index.vue'
|
import TableHeader from '@/components/table/header/index.vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { useDictData } from '@/stores/dictData'
|
import { useDictData } from '@/stores/dictData'
|
||||||
import { getLoadTypeUserList } from '@/api/process-boot/interference'
|
import { getLoadTypeUserList } from '@/api/process-boot/interference'
|
||||||
|
import { setTempLinedebugLedgerSync } from '@/api/supervision-boot/jointDebugList/index'
|
||||||
import debug from './debug.vue'
|
import debug from './debug.vue'
|
||||||
import { any } from 'vue-types'
|
import { any } from 'vue-types'
|
||||||
const dictData = useDictData()
|
const dictData = useDictData()
|
||||||
@@ -67,13 +69,15 @@ const tableStore = new TableStore({
|
|||||||
1: 'primary',
|
1: 'primary',
|
||||||
2: 'success',
|
2: 'success',
|
||||||
3: 'danger',
|
3: 'danger',
|
||||||
4: 'warning'
|
4: 'warning',
|
||||||
|
5: 'primary'
|
||||||
},
|
},
|
||||||
replaceValue: {
|
replaceValue: {
|
||||||
1: '审批中',
|
1: '审批中',
|
||||||
2: '审批通过',
|
2: '审批通过',
|
||||||
3: '审批不通过',
|
3: '审批不通过',
|
||||||
4: '已取消',
|
4: '已取消',
|
||||||
|
5: '同步台账成功',
|
||||||
null: '/'
|
null: '/'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -86,7 +90,7 @@ const tableStore = new TableStore({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ field: 'lineId', title: '监测点编号', minWidth: 170 },
|
{ field: 'lineId', title: '监测点编号', minWidth: 170 },
|
||||||
{ field: 'monitoringTerminalCode', title: '监测终端编码', minWidth: 170 },
|
// { field: 'monitoringTerminalCode', title: '监测终端编码', minWidth: 170 },
|
||||||
{ field: 'monitoringTerminalName', title: '监测终端名称', minWidth: 170 },
|
{ field: 'monitoringTerminalName', title: '监测终端名称', minWidth: 170 },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
@@ -119,6 +123,27 @@ const tableStore = new TableStore({
|
|||||||
disabled: row => {
|
disabled: row => {
|
||||||
return row.reason
|
return row.reason
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'productSetting',
|
||||||
|
title: '同步台账',
|
||||||
|
type: 'primary',
|
||||||
|
icon: 'el-icon-add',
|
||||||
|
render: 'basicButton',
|
||||||
|
click: row => {
|
||||||
|
setTempLinedebugLedgerSync({ id: row.id }).then(res => {
|
||||||
|
if (res.code == 'A0000') {
|
||||||
|
ElMessage({
|
||||||
|
message: '台账同步成功',
|
||||||
|
type: 'success'
|
||||||
|
})
|
||||||
|
tableStore.index()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
disabled: row => {
|
||||||
|
return row.status != 2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
label-position="right"
|
label-position="right"
|
||||||
class="form-two"
|
class="form-two"
|
||||||
>
|
>
|
||||||
<div class="fixed_upload">
|
<div class="fixed_upload" v-if="false">
|
||||||
<el-upload
|
<el-upload
|
||||||
v-model:file-list="form.lineFilePath"
|
v-model:file-list="form.lineFilePath"
|
||||||
ref="uploadRef"
|
ref="uploadRef"
|
||||||
|
|||||||
@@ -100,7 +100,7 @@
|
|||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
<el-divider content-position="left">终端信息</el-divider>
|
<el-divider content-position="left">终端信息</el-divider>
|
||||||
<!-- <div id="part2" class="form-two"> -->
|
<!-- <div id="part2" class="form-two"> -->
|
||||||
<div class="fixed_upload">
|
<div class="fixed_upload" v-if="false">
|
||||||
<el-upload
|
<el-upload
|
||||||
v-model:file-list="form.deviceFilePath"
|
v-model:file-list="form.deviceFilePath"
|
||||||
ref="uploadRef"
|
ref="uploadRef"
|
||||||
|
|||||||
Reference in New Issue
Block a user