diff --git a/package.json b/package.json
index 514f7374..c9791300 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
"@vueuse/core": "^10.7.0",
"@wangeditor/editor": "^5.1.23",
"@wangeditor/editor-for-vue": "^5.1.12",
+ "@wangeditor/plugin-formula": "^1.0.11",
"axios": "^1.6.2",
"bpmn-js": "8.9.0",
"bpmn-js-properties-panel": "0.46.0",
@@ -43,10 +44,12 @@
"jquery": "^3.7.1",
"js-pinyin": "^0.2.5",
"jsencrypt": "^3.3.2",
+ "katex": "^0.16.11",
"less": "^4.2.0",
"lodash-es": "^4.17.21",
"luckyexcel": "^1.0.1",
"luckysheet": "^2.1.13",
+ "mathjax": "^3.2.2",
"min-dash": "^4.2.1",
"mitt": "^3.0.1",
"nprogress": "^0.2.0",
@@ -63,6 +66,7 @@
"vue-demi": "^0.14.8",
"vue-draggable-resizable": "3.0.0-beta.2",
"vue-i18n": "9.10.2",
+ "vue-katex": "^0.5.0",
"vue-router": "4",
"vue-types": "^5.1.1",
"vxe-table": "^4.5.17",
diff --git a/src/components/PreviewFile/index.vue b/src/components/PreviewFile/index.vue
index 3e254b2c..60ad2726 100644
--- a/src/components/PreviewFile/index.vue
+++ b/src/components/PreviewFile/index.vue
@@ -22,8 +22,9 @@ const { push, options, currentRoute } = useRouter()
// const url = 'http://192.168.1.22:9009/excelreport' + currentRoute.value.href?.split('?')[1]
const url = '/api-docx/excelreport' + currentRoute.value?.href?.split('?')[1]
+console.log("🚀 ~ url:", url)
const excelOptions = ref({
- xls: currentRoute.value.href?.split('?')[1].split('.')[1] == 'xls' ? true : false
+ xls: currentRoute.value.href?.split('?')[1].split('.')[1] == 'xls' ? true : true
})
onMounted(() => {
console.log()
diff --git a/src/components/wangEditor/index.vue b/src/components/wangEditor/index.vue
index de8af089..e2a75e32 100644
--- a/src/components/wangEditor/index.vue
+++ b/src/components/wangEditor/index.vue
@@ -12,8 +12,24 @@ import { getAccessToken, getTenantId } from '@/utils/auth'
import { onBeforeUnmount, ref, shallowRef, onMounted } from 'vue'
import { Editor, Toolbar } from '@wangeditor/editor-for-vue'
import { useAdminInfo } from '@/stores/adminInfo'
+import { Boot, IEditorConfig, IToolbarConfig } from '@wangeditor/editor'
+import formulaModule from '@wangeditor/plugin-formula'
+
+let isFormulaModuleLoaded = false;
+// 注册。要在创建编辑器之前注册,且只能注册一次,不可重复注册。
+if (!isFormulaModuleLoaded) {
+ isFormulaModuleLoaded = true;
+
+}
+try {
+ Boot.registerModule(formulaModule)
+} catch (error) {
+
+}
+
// 编辑器实例,必须用 shallowRef
const editorRef = shallowRef()
+
const adminInfo = useAdminInfo()
// 内容 HTML
const valueHtml = ref('
hello
')
@@ -25,8 +41,16 @@ onMounted(() => {
}, 1500)
})
-const toolbarConfig = {
- excludeKeys: ['fullScreen', 'emotion','insertFormula']
+
+const toolbarConfig: Partial = {
+ // excludeKeys: ['fullScreen', 'emotion']
+ insertKeys: {
+ index: 0,
+ keys: [
+ 'insertFormula', // “插入公式”菜单
+ // 'editFormula' // “编辑公式”菜单
+ ],
+ },
}
let sever = '/api/system-boot/file/upload'
// 本地加api
@@ -34,7 +58,7 @@ let sever = '/api/system-boot/file/upload'
// sever = '/api' + sever
// }
type InsertFnType = (url: string, alt: string, href: string) => void
-const editorConfig = {
+const editorConfig: Partial = {
placeholder: '请输入内容...',
MENU_CONF: {
uploadImage: {
@@ -44,11 +68,11 @@ const editorConfig = {
compress: true,
uploadFileName: 'file',
withCredentials: true,
-
+
headers: {
Accept: '*',
- Authorization: adminInfo.getToken(),
-
+ Authorization: adminInfo.getToken(),
+
},
meta: { path: '/supervision/' },
timeout: 0,
@@ -58,16 +82,17 @@ const editorConfig = {
}
},
hoverbarKeys: {
- formula: {
- menuKeys: ['editFormula'], // “编辑公式”菜单
+ formula: {
+ menuKeys: ['editFormula'], // “编辑公式”菜单
+ },
},
- },
}
// 组件销毁时,也及时销毁编辑器
onBeforeUnmount(() => {
const editor = editorRef.value
if (editor == null) return
+
editor.destroy()
})
diff --git a/src/styles/app.scss b/src/styles/app.scss
index fcfadf48..736d4596 100644
--- a/src/styles/app.scss
+++ b/src/styles/app.scss
@@ -413,3 +413,6 @@ body,
font-weight: normal;
font-style: normal;
}
+.w-e-scroll{
+ min-height: 200px !important;
+}
\ No newline at end of file
diff --git a/src/styles/element.scss b/src/styles/element.scss
index 0f2121e4..33775bd7 100644
--- a/src/styles/element.scss
+++ b/src/styles/element.scss
@@ -29,6 +29,12 @@
}
}
}
+
+.atooltip {
+ margin-top: 0px !important;
+ padding: 0 !important;
+
+}
.el-dialog {
padding: 0px !important;
@@ -212,4 +218,3 @@
.el-drawer__header {
margin-bottom: 0 !important;
}
-
diff --git a/src/views/pqs/database/algorithm/components/form.vue b/src/views/pqs/database/algorithm/components/form.vue
index 50c8d756..643742f2 100644
--- a/src/views/pqs/database/algorithm/components/form.vue
+++ b/src/views/pqs/database/algorithm/components/form.vue
@@ -42,7 +42,7 @@
+
diff --git a/src/views/pqs/supervise/electricalEnergy/components1/complaints.vue b/src/views/pqs/supervise/electricalEnergy/components1/complaints.vue
index 933e1921..3c2814f1 100644
--- a/src/views/pqs/supervise/electricalEnergy/components1/complaints.vue
+++ b/src/views/pqs/supervise/electricalEnergy/components1/complaints.vue
@@ -3,24 +3,35 @@
+
+
+
+
+
+
+
新增
-
+
-
+
+
+
diff --git a/src/views/pqs/supervise/electricalEnergy/components1/complaintsDetail.vue b/src/views/pqs/supervise/electricalEnergy/components1/complaintsDetail.vue
new file mode 100644
index 00000000..030c4378
--- /dev/null
+++ b/src/views/pqs/supervise/electricalEnergy/components1/complaintsDetail.vue
@@ -0,0 +1,85 @@
+
+
+
+
+
+ {{ list.userName }}
+
+
+ {{ list.userNumber }}
+
+
+ {{ list.dutyOrgName }}
+
+
+ {{ list.steadyIndicator }}
+
+
+ {{ list.transientIndicators }}
+
+
+ {{ list.monitorName || '/' }}
+
+
+ {{ list.detectionFlag == 0 ? "否" :
+ "是" }}
+
+
+
+
+
+
+ {{ dictData.state.userList.filter(item => item.id == list.createBy)[0]?.name }}
+
+
+ {{ list.complaintText }}
+
+
+ {{ list.reformAdvice }}
+
+
+ {{ list.takeStep }}
+
+
+
+
+
+ {{ list.reportName }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/pqs/supervise/electricalEnergy/components1/testQuestions.vue b/src/views/pqs/supervise/electricalEnergy/components1/testQuestions.vue
index 571aaa05..d0816c56 100644
--- a/src/views/pqs/supervise/electricalEnergy/components1/testQuestions.vue
+++ b/src/views/pqs/supervise/electricalEnergy/components1/testQuestions.vue
@@ -3,42 +3,55 @@
-
+
+
+
+
+
+
-
-
+
+
-
+
+
diff --git a/src/views/pqs/supervise/harmonicSurvey/test/detail.vue b/src/views/pqs/supervise/harmonicSurvey/test/detail.vue
index 922ec3be..967126a4 100644
--- a/src/views/pqs/supervise/harmonicSurvey/test/detail.vue
+++ b/src/views/pqs/supervise/harmonicSurvey/test/detail.vue
@@ -46,6 +46,14 @@
{{ detailData?.problemDetail }}
+
+ {{ detailData.reformAdvice }}
+
+
+ {{ detailData.takeStep }}
+
+
+
@@ -67,7 +75,12 @@
{{ item.fileName }}
-
+
+
+
+
+ {{ detailData.reportName }}
+