- {{ item.templateCount }}{{ item.moduleName }}
+ {{ item.templateCount }}{{ item.moduleName }}
@@ -101,13 +101,8 @@
})
},
beforeFetch: (p) => {
- if (modalId) {
- const condition = {
- FieldName: 'modalId',
- FieldValue: modalId,
- ConditionalType: 1
- }
- p['queryCondition'] = JSON.stringify(condition)
+ if (moduleId.value) {
+ p['moduleId'] = moduleId.value
}
return formatParams(p)
},
@@ -145,16 +140,16 @@
}
// 编辑模块
function handleEdit(record) {
- openModal1(true, {
+ openModal2(true, {
record,
isUpdate: true,
})
}
// 存选中的模块id
- let modalId = ''
+ const moduleId = ref('')
// 切换表格
const toggleTable = (item) => {
- modalId = item.id
+ moduleId.value = item.id
reload()
}
// 删除
@@ -224,5 +219,12 @@
display: block;
}
}
+ .active {
+ span {color: #257AFA;}
+ .count {
+ background: #257AFA;
+ color: #ffffff;
+ }
+ }
}
\ No newline at end of file