diff --git a/src/components/table/header/index.vue b/src/components/table/header/index.vue index c6662fd8..a064f508 100644 --- a/src/components/table/header/index.vue +++ b/src/components/table/header/index.vue @@ -234,6 +234,7 @@ const setTheDate = (val: any) => { } // 导出 const onExport = () => { + console.log('导出') tableStore.onTableAction('export', { showAllFlag: true }) } diff --git a/src/components/tree/pqs/pointTree.vue b/src/components/tree/pqs/pointTree.vue index eedaeb11..e7da3168 100644 --- a/src/components/tree/pqs/pointTree.vue +++ b/src/components/tree/pqs/pointTree.vue @@ -63,7 +63,7 @@ const loadData = () => { form.statisticalType = classificationData.find((item: any) => item.id == form.statisticalType) let nodeKey = '' getTerminalTreeForFive(form).then(res => { - console.log(res) + console.log('---',res) if (obj.code == 'Power_Network') { res.data = [ { diff --git a/src/views/pqs/business/terminal/ProgramManagement/index.vue b/src/views/pqs/business/terminal/ProgramManagement/index.vue index 4669913e..75d45618 100644 --- a/src/views/pqs/business/terminal/ProgramManagement/index.vue +++ b/src/views/pqs/business/terminal/ProgramManagement/index.vue @@ -78,7 +78,7 @@ 投运 - 热备用 + 检修 停运 @@ -198,7 +198,7 @@ const teriminaloption: any = ref([]) const teriminalstatusoption = ref([ { name: '全部', id: '' }, { name: '投运', id: 0 }, - { name: '热备用', id: 1 }, + { name: '检修', id: 1 }, { name: '停运', id: 2 } ]) const stateoption = ref([ diff --git a/src/views/pqs/business/terminal/TerminalManagement/components/disposition.vue b/src/views/pqs/business/terminal/TerminalManagement/components/disposition.vue index 50342c14..c9075f05 100644 --- a/src/views/pqs/business/terminal/TerminalManagement/components/disposition.vue +++ b/src/views/pqs/business/terminal/TerminalManagement/components/disposition.vue @@ -29,7 +29,7 @@ @@ -69,7 +69,7 @@ const formInline = reactive({ const ids = ref([]) const options = [ { value: '0', label: '投运' }, - { value: '1', label: '热备用' }, + { value: '1', label: '检修' }, { value: '2', label: '停运' } ] const open = (e: any) => { diff --git a/src/views/pqs/business/terminal/TerminalManagement/index.vue b/src/views/pqs/business/terminal/TerminalManagement/index.vue index 57e34f45..cc757040 100644 --- a/src/views/pqs/business/terminal/TerminalManagement/index.vue +++ b/src/views/pqs/business/terminal/TerminalManagement/index.vue @@ -114,7 +114,7 @@ @@ -172,7 +172,7 @@ const teriminaloption: any = ref([]) const teriminalstatusoption = ref([ { name: '全部', id: '' }, { name: '投运', id: 0 }, - { name: '热备用', id: 1 }, + { name: '检修', id: 1 }, { name: '停运', id: 2 } ]) const stateoption = ref([ diff --git a/src/views/pqs/database/algorithm/components/form.vue b/src/views/pqs/database/algorithm/components/form.vue index 643742f2..7057d1b2 100644 --- a/src/views/pqs/database/algorithm/components/form.vue +++ b/src/views/pqs/database/algorithm/components/form.vue @@ -8,11 +8,11 @@ @clear="TreeList = {}" /> - + - + @@ -20,7 +20,7 @@ - +
-
定义
+
定义
@@ -177,5 +177,14 @@ const getTheTree = () => { }) } + +const handleInput = (field: string, value: string) => { + // 过滤空格 + const filteredValue = value.replace(/\s/g, '') + if (filteredValue !== value) { + form[field] = filteredValue + } +} + defineExpose({ open }) diff --git a/src/views/pqs/database/case/components/drawer.vue b/src/views/pqs/database/case/components/drawer.vue index 1cb2ee72..56414ab0 100644 --- a/src/views/pqs/database/case/components/drawer.vue +++ b/src/views/pqs/database/case/components/drawer.vue @@ -64,9 +64,11 @@ const open = (row: any) => { } // 上传 const choose = (e: any) => { - ElMessage.info('上传中,请稍等...') + const loadingMessage = ElMessage.info({ message: '上传中,请稍等...', duration: 0 }); // duration: 0 表示不自动关闭 + uploadFile(e.raw, '/supervision/').then((row: any) => { addStandardCase({ caseUrl: row.data.name }).then(res => { + loadingMessage.close(); // 关闭 "上传中" 提示 ElMessage.success('上传成功!') queryStandardCase().then(res => { open(res.data) diff --git a/src/views/pqs/database/case/components/form.vue b/src/views/pqs/database/case/components/form.vue index 45a33ef3..d2dfc607 100644 --- a/src/views/pqs/database/case/components/form.vue +++ b/src/views/pqs/database/case/components/form.vue @@ -4,7 +4,7 @@ - + + type="textarea" maxlength="32" show-word-limit @input="handleInput('location', $event)"/> + type="textarea" maxlength="32" show-word-limit @input="handleInput('process', $event)"/> + type="textarea" maxlength="32" show-word-limit @input="handleInput('measures', $event)"/> + type="textarea" maxlength="32" show-word-limit @input="handleInput('effect', $event)"/> @@ -38,9 +38,13 @@ -
+ +
+
事件简介
+