diff --git a/src/components/cockpit/governanceReport/index.vue b/src/components/cockpit/governanceReport/index.vue
index 8028b62..12f7a22 100644
--- a/src/components/cockpit/governanceReport/index.vue
+++ b/src/components/cockpit/governanceReport/index.vue
@@ -72,7 +72,7 @@ const initListByIds = () => {
const templateListData = () => {
getTemplateList({}).then(res => {
- templateList.value = res.data.filter(item => item.name === '稳态治理报表')
+ templateList.value = res.data.filter(item => item.reportForm == 4)
if (!tableStore.table.params.tempId && templateList.value?.length > 0) {
tableStore.table.params.tempId = templateList.value[0].id
}
diff --git a/src/components/cockpit/listOfMainMonitoringPoints/index.vue b/src/components/cockpit/listOfMainMonitoringPoints/index.vue
index 03f0c7c..1c0bff9 100644
--- a/src/components/cockpit/listOfMainMonitoringPoints/index.vue
+++ b/src/components/cockpit/listOfMainMonitoringPoints/index.vue
@@ -143,6 +143,7 @@ const initLineList = async () => {
cslineList({}).then(res => {
lineList.value = res.data
tableStore.table.params.lineId = lineList.value[0].lineId
+ initCode()
})
}
@@ -434,7 +435,6 @@ watch(
onMounted(async () => {
await initLineList()
- await initCode()
})
watch(
diff --git a/src/views/govern/analyze/DVR/index.vue b/src/views/govern/analyze/DVR/index.vue
index 641eac4..bab1afa 100644
--- a/src/views/govern/analyze/DVR/index.vue
+++ b/src/views/govern/analyze/DVR/index.vue
@@ -1,294 +1,303 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/govern/device/control/analysisList/index.vue b/src/views/govern/device/control/analysisList/index.vue
index 06c4520..0f9e697 100644
--- a/src/views/govern/device/control/analysisList/index.vue
+++ b/src/views/govern/device/control/analysisList/index.vue
@@ -1,176 +1,176 @@
-
-
-
-
-
-
- 离线补召
-
-
- 在线补召
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ 离线补召
+
+
+ 在线补召
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/govern/device/planData/index.vue b/src/views/govern/device/planData/index.vue
index 6b3cf74..9cfaa3d 100644
--- a/src/views/govern/device/planData/index.vue
+++ b/src/views/govern/device/planData/index.vue
@@ -498,9 +498,9 @@ const range = (start: any, end: any, step: any) => {
const colors = ['#DAA520', '#2E8B57', '#A52a2a']
const lineStyle = [{ type: 'solid' }, { type: 'dashed' }, { type: 'dotted' }]
-const titleList: any = ref('')
+const titleList: any = ref('(未绑定数据)')
const init = (flag: boolean) => {
- titleList.value = ''
+ titleList.value = '(未绑定数据)'
let list: any = []
//颜色数组
@@ -574,6 +574,8 @@ const init = (flag: boolean) => {
}).then(res => {
if (res.data.length == 0) {
titleList.value = '(未绑定数据)'
+ }else{
+ titleList.value = ''
}
chartTitle.value = chartTitle.value + titleList.value
})
diff --git a/src/views/govern/log/opera.vue b/src/views/govern/log/opera.vue
index 46f6001..decee62 100644
--- a/src/views/govern/log/opera.vue
+++ b/src/views/govern/log/opera.vue
@@ -23,7 +23,7 @@ const tableStore = new TableStore({
{ title: '用户名称', field: 'userName', align: 'center', minWidth: '130' },
{ title: '更新时间', field: 'updateTime', align: 'center', sortable: true, minWidth: '150' },
{ title: '失败原因', field: 'failReason', align: 'center', minWidth: '200' },
- { title: '状态', field: 'result', align: 'center', minWidth: '120' },
+ { title: '状态', field: 'result', align: 'center', minWidth: '100' },
{ title: '登录名', field: 'loginName', align: 'center', minWidth: '120' }
],
diff --git a/src/views/govern/manage/basic/template.vue b/src/views/govern/manage/basic/template.vue
index e519f6f..2f700ac 100644
--- a/src/views/govern/manage/basic/template.vue
+++ b/src/views/govern/manage/basic/template.vue
@@ -1,107 +1,149 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 新增模版
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新增模版
+
+
+
+
+
+
+
diff --git a/src/views/govern/mxgraph/graphList/index.vue b/src/views/govern/mxgraph/graphList/index.vue
index 11e5e37..3fe1874 100644
--- a/src/views/govern/mxgraph/graphList/index.vue
+++ b/src/views/govern/mxgraph/graphList/index.vue
@@ -128,7 +128,7 @@ defineOptions({
const adminInfo = useAdminInfo()
const hasAdmin =
- adminInfo.userType.some(item => item.includes('operation_manager') || item.includes('root')) ||
+ adminInfo.roleCode.some(item => item.includes('operation_manager') || item.includes('root')) ||
adminInfo.userType == 1
const tableRef = ref()
const popupRef = ref()
diff --git a/src/views/govern/reportCore/report/index.vue b/src/views/govern/reportCore/report/index.vue
index 3081342..e4456f0 100644
--- a/src/views/govern/reportCore/report/index.vue
+++ b/src/views/govern/reportCore/report/index.vue
@@ -112,7 +112,7 @@ const choose = (files: any) => {
const isJPEG = files.raw.type === 'image/jpeg'
const isPNG = files.raw.type === 'image/png'
if (!isJPG && !isPNG && !isJPEG) {
- ElMessage.warning('上传文件只能是 JPG/PNG 格式!')
+ ElMessage.warning('上传文件只能是 jpg/png 格式!')
return false
}
diff --git a/src/views/govern/reportCore/statisticsWx/index_ypt.vue b/src/views/govern/reportCore/statisticsWx/index_ypt.vue
index f854d8e..ae6d5f7 100644
--- a/src/views/govern/reportCore/statisticsWx/index_ypt.vue
+++ b/src/views/govern/reportCore/statisticsWx/index_ypt.vue
@@ -150,7 +150,7 @@ onMounted(() => {
// })
const stencil = (val: any) => {
- templatePolicy.value = val.filter((item: any) => item.name != '稳态治理报表')
+ templatePolicy.value = val.filter((item: any) => item.reportForm != '4')
Template.value = templatePolicy.value[0]
reportForm.value = templatePolicy.value[0]?.reportForm
}
diff --git a/src/views/govern/reportCore/statisticsWx/index_zl.vue b/src/views/govern/reportCore/statisticsWx/index_zl.vue
index 8b9d8ce..1e93ec5 100644
--- a/src/views/govern/reportCore/statisticsWx/index_zl.vue
+++ b/src/views/govern/reportCore/statisticsWx/index_zl.vue
@@ -174,7 +174,7 @@ const initListByIds = () => {
}
const stencil = (val: any) => {
console.log('🚀 ~ stencil ~ val:', val)
- templatePolicy.value = val.filter((item: any) => item.name == '稳态治理报表')
+ templatePolicy.value = val.filter((item: any) => item.reportForm == '4')
Template.value = templatePolicy.value[0]
reportForm.value = templatePolicy.value[0]?.reportForm
}
diff --git a/src/views/govern/reportForms/form.vue b/src/views/govern/reportForms/form.vue
index 4336470..32c268f 100644
--- a/src/views/govern/reportForms/form.vue
+++ b/src/views/govern/reportForms/form.vue
@@ -1,6 +1,6 @@
-
-
+
+
@@ -56,11 +56,15 @@ const reportFormList = [
{
value: '2',
label: '统计报表'
+ }, {
+ value: '4',
+ label: '治理前后对比报表'
},
{
value: '3',
label: '自定义报表'
- }
+ },
+
]
const rules = {
name: [{ required: true, message: '请输入模板名称', trigger: 'blur' }],
diff --git a/src/views/govern/reportForms/index.vue b/src/views/govern/reportForms/index.vue
index 1f67646..23fdcb3 100644
--- a/src/views/govern/reportForms/index.vue
+++ b/src/views/govern/reportForms/index.vue
@@ -41,7 +41,7 @@ const tableStore: any = new TableStore({
column: [
{ field: 'name', title: '模板名称' },
{ field: 'reportForm', title: '模板类型',formatter: (row) => {
- return row.cellValue == 1 ? '电能质量报表类型' : row.cellValue == 2 ? '用能报表类型' : ''
+ return row.cellValue == 1 ? '分析报表' : row.cellValue == 2 ? '统计报表' : row.cellValue == 3 ? '自定义报表' : '治理前后对比报表'
} },
{ field: 'updateBy', title: '更新用户' },
{ field: 'createTime', title: '创建时间' , sortable: true},
diff --git a/src/views/govern/setting/frontManagement/index.vue b/src/views/govern/setting/frontManagement/index.vue
index 46bb72d..a248d76 100644
--- a/src/views/govern/setting/frontManagement/index.vue
+++ b/src/views/govern/setting/frontManagement/index.vue
@@ -31,7 +31,6 @@
新增
-
-
+
-
+
-
-
-
+
取消
确认
-
+
@@ -179,12 +177,17 @@
-
-
-
+
+
-
+
-
+
-
+
确 定
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 确 定
+
+
+
+
+