diff --git a/src/layouts/admin/components/popup/password.vue b/src/layouts/admin/components/popup/password.vue
index 6033f7bf..dad342ca 100644
--- a/src/layouts/admin/components/popup/password.vue
+++ b/src/layouts/admin/components/popup/password.vue
@@ -1,109 +1,117 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/pqs/business/log/frontLog/detail.vue b/src/views/pqs/business/log/frontLog/detail.vue
index 70678ddc..2ba862dc 100644
--- a/src/views/pqs/business/log/frontLog/detail.vue
+++ b/src/views/pqs/business/log/frontLog/detail.vue
@@ -10,7 +10,7 @@
diff --git a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaishujufenxi/index.vue b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaishujufenxi/index.vue
index 039537bb..885be9f4 100644
--- a/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaishujufenxi/index.vue
+++ b/src/views/pqs/harmonicMonitoring/monitoringPoint/online/wentaishujufenxi/index.vue
@@ -153,7 +153,7 @@ const typeOptions = ref([
{ label: 'cp95值', value: 4 }
])
onMounted(() => {
- datePickerRef.value.setTheDate(5)
+ datePickerRef.value.setTheDate(4)
init()
})
const height: any = ref(mainHeight(200, 1))
diff --git a/src/views/pqs/harmonicMonitoring/reportForms/word/index.vue b/src/views/pqs/harmonicMonitoring/reportForms/word/index.vue
index 923a8d8f..9402873a 100644
--- a/src/views/pqs/harmonicMonitoring/reportForms/word/index.vue
+++ b/src/views/pqs/harmonicMonitoring/reportForms/word/index.vue
@@ -43,7 +43,9 @@
上传接线图
- 生成
+
+ 生成
+
@@ -107,10 +109,10 @@ const handleNodeClick = (data: any, node: any) => {
}
// 上传
const choose = (files: any) => {
- const isJPG = files.raw.type === 'image/jpg'
+ const isJPG = files.raw.type === 'image/jpeg'
const isPNG = files.raw.type === 'image/png'
if (!isJPG && !isPNG) {
- ElMessage.warning('上传文件只能是 JPG/PNG 格式!')
+ ElMessage.warning('上传文件只能是 jpg/png 格式!')
return false
}
@@ -146,22 +148,24 @@ const exportEvent = () => {
} else {
loading.value = true
ElMessage('生成报告中...')
- exportModel(form).then((res: any) => {
- let blob = new Blob([res], {
- type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document;charset=UTF-8'
+ exportModel(form)
+ .then((res: any) => {
+ let blob = new Blob([res], {
+ type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document;charset=UTF-8'
+ })
+ // createObjectURL(blob); //创建下载的链接
+ const url = window.URL.createObjectURL(blob)
+ const link = document.createElement('a') // 创建a标签
+ link.href = url
+ link.download = dotList.value.name + dayjs().format('YYYYMMDD') // 设置下载的文件名
+ document.body.appendChild(link)
+ link.click() //执行下载
+ document.body.removeChild(link)
+ loading.value = false
+ })
+ .catch((err: any) => {
+ loading.value = false
})
- // createObjectURL(blob); //创建下载的链接
- const url = window.URL.createObjectURL(blob)
- const link = document.createElement('a') // 创建a标签
- link.href = url
- link.download = dotList.value.name+ dayjs().format('YYYYMMDD') // 设置下载的文件名
- document.body.appendChild(link)
- link.click() //执行下载
- document.body.removeChild(link)
- loading.value =false
- }).catch((err: any) => {
- loading.value =false
- })
}
}