方案数据-修复问题

This commit is contained in:
zhujiyan
2024-06-24 14:38:42 +08:00
parent a565fec416
commit bb4682a8ca
10 changed files with 1704 additions and 1074 deletions

View File

@@ -191,6 +191,7 @@ queryByCode('Device_Type').then(res => {
}
})
})
tableStore.index()
})
const devModelOptionsFilter = computed(() => {
return devModelOptions.value.filter((item: any) => {
@@ -210,11 +211,11 @@ const formDevModelOptionsFilter = computed(() => {
}
})
})
const tableStore = new TableStore({
url: '/cs-device-boot/EquipmentDelivery/list',
method: 'POST',
column: [
{ title: '序号', type: 'seq',width:60 },
{ title: '设备名称', field: 'name' },
{
title: '设备类型',
@@ -248,13 +249,15 @@ const tableStore = new TableStore({
1: 'warning',
2: 'success',
3: 'primary',
4: 'primary'
4: 'primary',
5: 'warning'
},
replaceValue: {
1: '未注册',
2: '注册',
3: '接入',
4: '已取消'
4: '已取消',
5: '未接入'
}
// formatter: row => {
// return row.cellValue == 1 ? '未注册' : row.cellValue == 2 ? '注册' : '接入'
@@ -266,7 +269,6 @@ const tableStore = new TableStore({
width: '180',
render: 'buttons',
buttons: [
//直连装置注册
{
title: '注册',
@@ -306,11 +308,12 @@ const tableStore = new TableStore({
icon: 'el-icon-Grid',
render: 'basicButton',
disabled: row => {
return (
(row.devType != '8b45cf6b7f5266e777d07c166ad5fa77' &&
row.devModel != 'a0d4da4b5c17b2172362a3f5a27bf217') ||
row.status != '1'
)
// return (
// (row.devType != '8b45cf6b7f5266e777d07c166ad5fa77' &&
// row.devModel != 'a0d4da4b5c17b2172362a3f5a27bf217') ||
// row.status != '1'
// )
return true
},
click: row => {
// 便携式设备注册
@@ -323,7 +326,7 @@ const tableStore = new TableStore({
portableDeviceRegister({
nDid: row.ndid
}).then(res => {
console.log(res,"8888");
console.log(res, '8888')
ElMessage.success(res.message)
tableStore.index()
})
@@ -373,7 +376,7 @@ const tableStore = new TableStore({
return (
(row.devType != '8b45cf6b7f5266e777d07c166ad5fa77' &&
row.devModel != 'a0d4da4b5c17b2172362a3f5a27bf217') ||
row.status != '2'
row.status == '3'
)
},
click: row => {
@@ -567,7 +570,7 @@ provide('tableStore', tableStore)
onMounted(() => {
setTimeout(() => {
tableStore.index()
// tableStore.index()
}, 100)
})