-
:
-
-
-
-
- {
currentGdName.value = ''
}
-const area = () => {
+const area = async () => {
nodeAllList()
.then(res => {
affiliatiedFrontArr.value = res.data
@@ -2839,12 +2857,6 @@ const area = () => {
getListByIds().then(res => {
userList.value = res.data
})
- getDicDataByTypeCode({ dictTypeCode: 'M_Obj_Types' }).then(res => {
- monitorObjList.value = res.data
- })
- getDicDataByTypeCode({ dictTypeCode: 'Line_Position' }).then(res => {
- linePosition.value = res.data
- })
}
onMounted(() => {
@@ -2906,7 +2918,7 @@ area()
.el-form-item {
width: 30%;
- margin-bottom: 15px;
+ margin-bottom: 15px !important;
.el-select {
width: 100%;
diff --git a/src/views/govern/mxgraph/graphList/components/popup.vue b/src/views/govern/mxgraph/graphList/components/popup.vue
index 7c50e52..9680a91 100644
--- a/src/views/govern/mxgraph/graphList/components/popup.vue
+++ b/src/views/govern/mxgraph/graphList/components/popup.vue
@@ -41,15 +41,7 @@
/>
-
+
@@ -78,7 +70,7 @@ import { deviceTree, add, audit, getztProjectTree } from '@/api/cs-harmonic-boot
import { ElMessage, ElMessageBox } from 'element-plus'
import { useAdminInfo } from '@/stores/adminInfo'
const adminInfo = useAdminInfo()
-const hasAdmin = adminInfo.roleCode.some(item => item.includes('operation_manager')|| item.includes('root'))
+const hasAdmin = adminInfo.roleCode.some(item => item.includes('operation_manager') || item.includes('root'))
const title = ref('')
const formRef = ref()
const Engineering = ref([])
@@ -95,7 +87,7 @@ const form: any = reactive({
name: '',
projectIds: [],
scope: 1,
- orderBy: '100',
+ orderBy: 100,
remark: ''
})
const rules = {
@@ -117,11 +109,13 @@ const addFn = () => {
}
)
} else {
- audit({ ...form, projectIds: form.scope == 1 ? ['WIRELESS_PROJECT_ID'] : form.projectIds }).then((res: any) => {
- ElMessage.success('修改项目成功!')
- dialogVisible.value = false
- emit('submit')
- })
+ audit({ ...form, projectIds: form.scope == 1 ? ['WIRELESS_PROJECT_ID'] : form.projectIds }).then(
+ (res: any) => {
+ ElMessage.success('修改项目成功!')
+ dialogVisible.value = false
+ emit('submit')
+ }
+ )
}
}
})
@@ -201,13 +195,14 @@ const open = ref((row: any) => {
if (row.title == '新增项目') {
form.name = ''
form.projectIds = []
- form.orderBy = '100'
+ form.orderBy = 100
form.remark = ''
} else {
for (let key in form) {
form[key] = row.row[key] || ''
}
form.id = row.row.id
+ form.orderBy = row.row.orderBy - 0
}
})
const removeData = arr => {