diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/measureDept/components/templatePage.vue b/src/views/measure/measureDept/components/templatePage.vue
index d71b3ee..51b0dcd 100644
--- a/src/views/measure/measureDept/components/templatePage.vue
+++ b/src/views/measure/measureDept/components/templatePage.vue
@@ -13,7 +13,12 @@
type: String,
required: true,
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
organizeNo: '', // 组织编号
organizeName: '', // 名称
@@ -96,8 +101,18 @@
const DepartmentList = ref()
// 获取科室/工程组信息
const getDepartmentList = () => {
- getDictByCode('pDeptId').then((response) => {
- DepartmentList.value = response.data
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 99999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: '', // 所属科室
+ }).then((res) => {
+ DepartmentList.value = res.data.rows
})
}
// 获取数据列表
@@ -201,8 +216,8 @@
-
-
+
+
@@ -216,10 +231,10 @@
-
+
导出
-
+
打印
@@ -242,10 +257,10 @@
-
+
编辑
-
+
详情
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/measureDept/components/templatePage.vue b/src/views/measure/measureDept/components/templatePage.vue
index d71b3ee..51b0dcd 100644
--- a/src/views/measure/measureDept/components/templatePage.vue
+++ b/src/views/measure/measureDept/components/templatePage.vue
@@ -13,7 +13,12 @@
type: String,
required: true,
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
organizeNo: '', // 组织编号
organizeName: '', // 名称
@@ -96,8 +101,18 @@
const DepartmentList = ref()
// 获取科室/工程组信息
const getDepartmentList = () => {
- getDictByCode('pDeptId').then((response) => {
- DepartmentList.value = response.data
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 99999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: '', // 所属科室
+ }).then((res) => {
+ DepartmentList.value = res.data.rows
})
}
// 获取数据列表
@@ -201,8 +216,8 @@
-
-
+
+
@@ -216,10 +231,10 @@
-
+
导出
-
+
打印
@@ -242,10 +257,10 @@
-
+
编辑
-
+
详情
diff --git a/src/views/measure/measureDept/gcz.vue b/src/views/measure/measureDept/gcz.vue
index 9114f25..7121c66 100644
--- a/src/views/measure/measureDept/gcz.vue
+++ b/src/views/measure/measureDept/gcz.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/measureDept/components/templatePage.vue b/src/views/measure/measureDept/components/templatePage.vue
index d71b3ee..51b0dcd 100644
--- a/src/views/measure/measureDept/components/templatePage.vue
+++ b/src/views/measure/measureDept/components/templatePage.vue
@@ -13,7 +13,12 @@
type: String,
required: true,
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
organizeNo: '', // 组织编号
organizeName: '', // 名称
@@ -96,8 +101,18 @@
const DepartmentList = ref()
// 获取科室/工程组信息
const getDepartmentList = () => {
- getDictByCode('pDeptId').then((response) => {
- DepartmentList.value = response.data
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 99999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: '', // 所属科室
+ }).then((res) => {
+ DepartmentList.value = res.data.rows
})
}
// 获取数据列表
@@ -201,8 +216,8 @@
-
-
+
+
@@ -216,10 +231,10 @@
-
+
导出
-
+
打印
@@ -242,10 +257,10 @@
-
+
编辑
-
+
详情
diff --git a/src/views/measure/measureDept/gcz.vue b/src/views/measure/measureDept/gcz.vue
index 9114f25..7121c66 100644
--- a/src/views/measure/measureDept/gcz.vue
+++ b/src/views/measure/measureDept/gcz.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/ks.vue b/src/views/measure/measureDept/ks.vue
index c0dc1f5..15c89fe 100644
--- a/src/views/measure/measureDept/ks.vue
+++ b/src/views/measure/measureDept/ks.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/measureDept/components/templatePage.vue b/src/views/measure/measureDept/components/templatePage.vue
index d71b3ee..51b0dcd 100644
--- a/src/views/measure/measureDept/components/templatePage.vue
+++ b/src/views/measure/measureDept/components/templatePage.vue
@@ -13,7 +13,12 @@
type: String,
required: true,
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
organizeNo: '', // 组织编号
organizeName: '', // 名称
@@ -96,8 +101,18 @@
const DepartmentList = ref()
// 获取科室/工程组信息
const getDepartmentList = () => {
- getDictByCode('pDeptId').then((response) => {
- DepartmentList.value = response.data
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 99999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: '', // 所属科室
+ }).then((res) => {
+ DepartmentList.value = res.data.rows
})
}
// 获取数据列表
@@ -201,8 +216,8 @@
-
-
+
+
@@ -216,10 +231,10 @@
-
+
导出
-
+
打印
@@ -242,10 +257,10 @@
-
+
编辑
-
+
详情
diff --git a/src/views/measure/measureDept/gcz.vue b/src/views/measure/measureDept/gcz.vue
index 9114f25..7121c66 100644
--- a/src/views/measure/measureDept/gcz.vue
+++ b/src/views/measure/measureDept/gcz.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/ks.vue b/src/views/measure/measureDept/ks.vue
index c0dc1f5..15c89fe 100644
--- a/src/views/measure/measureDept/ks.vue
+++ b/src/views/measure/measureDept/ks.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/measureDept-interface.ts b/src/views/measure/measureDept/measureDept-interface.ts
index 6aecda8..5f7f5e7 100644
--- a/src/views/measure/measureDept/measureDept-interface.ts
+++ b/src/views/measure/measureDept/measureDept-interface.ts
@@ -1,14 +1,14 @@
// 查询参数类型
export interface searchQueryType {
- organizeNo: string // 组织编号
- organizeName: string // 名称
+ organizeNo?: string // 组织编号
+ organizeName?: string // 名称
limit: number
offset: number
- organizeType: string // 类型
- createTime: string // 创建时间
- director: string // 负责人
- meterMajor: string // 专业
- pDeptId: string // 所属科室
+ organizeType?: string // 类型
+ createTime?: string // 创建时间
+ director?: string // 负责人
+ meterMajor?: string // 专业
+ pDeptId?: string // 所属科室
}
export interface columnType {
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/measureDept/components/templatePage.vue b/src/views/measure/measureDept/components/templatePage.vue
index d71b3ee..51b0dcd 100644
--- a/src/views/measure/measureDept/components/templatePage.vue
+++ b/src/views/measure/measureDept/components/templatePage.vue
@@ -13,7 +13,12 @@
type: String,
required: true,
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
organizeNo: '', // 组织编号
organizeName: '', // 名称
@@ -96,8 +101,18 @@
const DepartmentList = ref()
// 获取科室/工程组信息
const getDepartmentList = () => {
- getDictByCode('pDeptId').then((response) => {
- DepartmentList.value = response.data
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 99999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: '', // 所属科室
+ }).then((res) => {
+ DepartmentList.value = res.data.rows
})
}
// 获取数据列表
@@ -201,8 +216,8 @@
-
-
+
+
@@ -216,10 +231,10 @@
-
+
导出
-
+
打印
@@ -242,10 +257,10 @@
-
+
编辑
-
+
详情
diff --git a/src/views/measure/measureDept/gcz.vue b/src/views/measure/measureDept/gcz.vue
index 9114f25..7121c66 100644
--- a/src/views/measure/measureDept/gcz.vue
+++ b/src/views/measure/measureDept/gcz.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/ks.vue b/src/views/measure/measureDept/ks.vue
index c0dc1f5..15c89fe 100644
--- a/src/views/measure/measureDept/ks.vue
+++ b/src/views/measure/measureDept/ks.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/measureDept-interface.ts b/src/views/measure/measureDept/measureDept-interface.ts
index 6aecda8..5f7f5e7 100644
--- a/src/views/measure/measureDept/measureDept-interface.ts
+++ b/src/views/measure/measureDept/measureDept-interface.ts
@@ -1,14 +1,14 @@
// 查询参数类型
export interface searchQueryType {
- organizeNo: string // 组织编号
- organizeName: string // 名称
+ organizeNo?: string // 组织编号
+ organizeName?: string // 名称
limit: number
offset: number
- organizeType: string // 类型
- createTime: string // 创建时间
- director: string // 负责人
- meterMajor: string // 专业
- pDeptId: string // 所属科室
+ organizeType?: string // 类型
+ createTime?: string // 创建时间
+ director?: string // 负责人
+ meterMajor?: string // 专业
+ pDeptId?: string // 所属科室
}
export interface columnType {
diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue
index b5c2975..ca26b00 100644
--- a/src/views/measure/person/certificateLog.vue
+++ b/src/views/measure/person/certificateLog.vue
@@ -13,7 +13,12 @@
type: Boolean,
default: false,
},
+ authority: {
+ type: String,
+ default: 'certificateLog',
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -287,19 +292,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -322,16 +327,16 @@
-
+
提醒
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/measureDept/components/templatePage.vue b/src/views/measure/measureDept/components/templatePage.vue
index d71b3ee..51b0dcd 100644
--- a/src/views/measure/measureDept/components/templatePage.vue
+++ b/src/views/measure/measureDept/components/templatePage.vue
@@ -13,7 +13,12 @@
type: String,
required: true,
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
organizeNo: '', // 组织编号
organizeName: '', // 名称
@@ -96,8 +101,18 @@
const DepartmentList = ref()
// 获取科室/工程组信息
const getDepartmentList = () => {
- getDictByCode('pDeptId').then((response) => {
- DepartmentList.value = response.data
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 99999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: '', // 所属科室
+ }).then((res) => {
+ DepartmentList.value = res.data.rows
})
}
// 获取数据列表
@@ -201,8 +216,8 @@
-
-
+
+
@@ -216,10 +231,10 @@
-
+
导出
-
+
打印
@@ -242,10 +257,10 @@
-
+
编辑
-
+
详情
diff --git a/src/views/measure/measureDept/gcz.vue b/src/views/measure/measureDept/gcz.vue
index 9114f25..7121c66 100644
--- a/src/views/measure/measureDept/gcz.vue
+++ b/src/views/measure/measureDept/gcz.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/ks.vue b/src/views/measure/measureDept/ks.vue
index c0dc1f5..15c89fe 100644
--- a/src/views/measure/measureDept/ks.vue
+++ b/src/views/measure/measureDept/ks.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/measureDept-interface.ts b/src/views/measure/measureDept/measureDept-interface.ts
index 6aecda8..5f7f5e7 100644
--- a/src/views/measure/measureDept/measureDept-interface.ts
+++ b/src/views/measure/measureDept/measureDept-interface.ts
@@ -1,14 +1,14 @@
// 查询参数类型
export interface searchQueryType {
- organizeNo: string // 组织编号
- organizeName: string // 名称
+ organizeNo?: string // 组织编号
+ organizeName?: string // 名称
limit: number
offset: number
- organizeType: string // 类型
- createTime: string // 创建时间
- director: string // 负责人
- meterMajor: string // 专业
- pDeptId: string // 所属科室
+ organizeType?: string // 类型
+ createTime?: string // 创建时间
+ director?: string // 负责人
+ meterMajor?: string // 专业
+ pDeptId?: string // 所属科室
}
export interface columnType {
diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue
index b5c2975..ca26b00 100644
--- a/src/views/measure/person/certificateLog.vue
+++ b/src/views/measure/person/certificateLog.vue
@@ -13,7 +13,12 @@
type: Boolean,
default: false,
},
+ authority: {
+ type: String,
+ default: 'certificateLog',
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -287,19 +292,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -322,16 +327,16 @@
-
+
提醒
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue
index 7f8e5b1..d8d1ff0 100644
--- a/src/views/measure/person/components/addPerson.vue
+++ b/src/views/measure/person/components/addPerson.vue
@@ -14,10 +14,12 @@
import { getDictByCode } from '@/api/system/dict'
import comTreeSelect from '@/views/system/user/selecTree.vue'
import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person'
+import { getPhotoUrl } from '@/api/system/tool'
// import showPhoto from '@/views/system/tool/showPhoto.vue'
const emits = defineEmits(['resetData'])
const ruleFormRef = ref() // from组件
const ruleForm = ref({
+ account: '',
name: '', // 姓名
minioFileName: '', // 照片
idCard: '', // 省份证号
@@ -151,7 +153,7 @@
// 保存选择人员信息
const confirmPerson = (row: userType) => {
ruleForm.value.name = row.name
- console.log(ruleForm.value)
+ ruleForm.value.account = row.account
ruleFormRef.value?.clearValidate('name')
}
// 上传请求
@@ -159,7 +161,7 @@
UploadFile(file).then((res) => {
if (res.code === 200) {
ruleFormRef.value?.clearValidate('minioFileName')
- ruleForm.value.minioFileName = res.data.fileId
+ ruleForm.value.minioFileName = res.data.fileName
}
})
}
@@ -345,6 +347,15 @@
}
}
defineExpose({ initDialog })
+// 图片预览地址
+const photoUrl = ref('')
+watch(() => ruleForm.value.minioFileName, (newVal) => {
+ getPhotoUrl(newVal).then((res) => {
+ if (res.code === 200) {
+ photoUrl.value = res.data
+ }
+ })
+})
@@ -376,7 +387,7 @@
:disabled="title === '详情'"
>
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/measureDept/components/templatePage.vue b/src/views/measure/measureDept/components/templatePage.vue
index d71b3ee..51b0dcd 100644
--- a/src/views/measure/measureDept/components/templatePage.vue
+++ b/src/views/measure/measureDept/components/templatePage.vue
@@ -13,7 +13,12 @@
type: String,
required: true,
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
organizeNo: '', // 组织编号
organizeName: '', // 名称
@@ -96,8 +101,18 @@
const DepartmentList = ref()
// 获取科室/工程组信息
const getDepartmentList = () => {
- getDictByCode('pDeptId').then((response) => {
- DepartmentList.value = response.data
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 99999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: '', // 所属科室
+ }).then((res) => {
+ DepartmentList.value = res.data.rows
})
}
// 获取数据列表
@@ -201,8 +216,8 @@
-
-
+
+
@@ -216,10 +231,10 @@
-
+
导出
-
+
打印
@@ -242,10 +257,10 @@
-
+
编辑
-
+
详情
diff --git a/src/views/measure/measureDept/gcz.vue b/src/views/measure/measureDept/gcz.vue
index 9114f25..7121c66 100644
--- a/src/views/measure/measureDept/gcz.vue
+++ b/src/views/measure/measureDept/gcz.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/ks.vue b/src/views/measure/measureDept/ks.vue
index c0dc1f5..15c89fe 100644
--- a/src/views/measure/measureDept/ks.vue
+++ b/src/views/measure/measureDept/ks.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/measureDept-interface.ts b/src/views/measure/measureDept/measureDept-interface.ts
index 6aecda8..5f7f5e7 100644
--- a/src/views/measure/measureDept/measureDept-interface.ts
+++ b/src/views/measure/measureDept/measureDept-interface.ts
@@ -1,14 +1,14 @@
// 查询参数类型
export interface searchQueryType {
- organizeNo: string // 组织编号
- organizeName: string // 名称
+ organizeNo?: string // 组织编号
+ organizeName?: string // 名称
limit: number
offset: number
- organizeType: string // 类型
- createTime: string // 创建时间
- director: string // 负责人
- meterMajor: string // 专业
- pDeptId: string // 所属科室
+ organizeType?: string // 类型
+ createTime?: string // 创建时间
+ director?: string // 负责人
+ meterMajor?: string // 专业
+ pDeptId?: string // 所属科室
}
export interface columnType {
diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue
index b5c2975..ca26b00 100644
--- a/src/views/measure/person/certificateLog.vue
+++ b/src/views/measure/person/certificateLog.vue
@@ -13,7 +13,12 @@
type: Boolean,
default: false,
},
+ authority: {
+ type: String,
+ default: 'certificateLog',
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -287,19 +292,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -322,16 +327,16 @@
-
+
提醒
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue
index 7f8e5b1..d8d1ff0 100644
--- a/src/views/measure/person/components/addPerson.vue
+++ b/src/views/measure/person/components/addPerson.vue
@@ -14,10 +14,12 @@
import { getDictByCode } from '@/api/system/dict'
import comTreeSelect from '@/views/system/user/selecTree.vue'
import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person'
+import { getPhotoUrl } from '@/api/system/tool'
// import showPhoto from '@/views/system/tool/showPhoto.vue'
const emits = defineEmits(['resetData'])
const ruleFormRef = ref() // from组件
const ruleForm = ref({
+ account: '',
name: '', // 姓名
minioFileName: '', // 照片
idCard: '', // 省份证号
@@ -151,7 +153,7 @@
// 保存选择人员信息
const confirmPerson = (row: userType) => {
ruleForm.value.name = row.name
- console.log(ruleForm.value)
+ ruleForm.value.account = row.account
ruleFormRef.value?.clearValidate('name')
}
// 上传请求
@@ -159,7 +161,7 @@
UploadFile(file).then((res) => {
if (res.code === 200) {
ruleFormRef.value?.clearValidate('minioFileName')
- ruleForm.value.minioFileName = res.data.fileId
+ ruleForm.value.minioFileName = res.data.fileName
}
})
}
@@ -345,6 +347,15 @@
}
}
defineExpose({ initDialog })
+// 图片预览地址
+const photoUrl = ref('')
+watch(() => ruleForm.value.minioFileName, (newVal) => {
+ getPhotoUrl(newVal).then((res) => {
+ if (res.code === 200) {
+ photoUrl.value = res.data
+ }
+ })
+})
@@ -376,7 +387,7 @@
:disabled="title === '详情'"
>
-
+
diff --git a/src/views/measure/person/list.vue b/src/views/measure/person/list.vue
index d0b7fcc..ad2ece0 100644
--- a/src/views/measure/person/list.vue
+++ b/src/views/measure/person/list.vue
@@ -8,6 +8,7 @@
import { getDeptTreeList } from '@/api/system/dept'
import { exportFile } from '@/utils/exportUtils'
import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -235,19 +236,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -270,13 +271,13 @@
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/measureDept/components/templatePage.vue b/src/views/measure/measureDept/components/templatePage.vue
index d71b3ee..51b0dcd 100644
--- a/src/views/measure/measureDept/components/templatePage.vue
+++ b/src/views/measure/measureDept/components/templatePage.vue
@@ -13,7 +13,12 @@
type: String,
required: true,
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
organizeNo: '', // 组织编号
organizeName: '', // 名称
@@ -96,8 +101,18 @@
const DepartmentList = ref()
// 获取科室/工程组信息
const getDepartmentList = () => {
- getDictByCode('pDeptId').then((response) => {
- DepartmentList.value = response.data
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 99999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: '', // 所属科室
+ }).then((res) => {
+ DepartmentList.value = res.data.rows
})
}
// 获取数据列表
@@ -201,8 +216,8 @@
-
-
+
+
@@ -216,10 +231,10 @@
-
+
导出
-
+
打印
@@ -242,10 +257,10 @@
-
+
编辑
-
+
详情
diff --git a/src/views/measure/measureDept/gcz.vue b/src/views/measure/measureDept/gcz.vue
index 9114f25..7121c66 100644
--- a/src/views/measure/measureDept/gcz.vue
+++ b/src/views/measure/measureDept/gcz.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/ks.vue b/src/views/measure/measureDept/ks.vue
index c0dc1f5..15c89fe 100644
--- a/src/views/measure/measureDept/ks.vue
+++ b/src/views/measure/measureDept/ks.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/measureDept-interface.ts b/src/views/measure/measureDept/measureDept-interface.ts
index 6aecda8..5f7f5e7 100644
--- a/src/views/measure/measureDept/measureDept-interface.ts
+++ b/src/views/measure/measureDept/measureDept-interface.ts
@@ -1,14 +1,14 @@
// 查询参数类型
export interface searchQueryType {
- organizeNo: string // 组织编号
- organizeName: string // 名称
+ organizeNo?: string // 组织编号
+ organizeName?: string // 名称
limit: number
offset: number
- organizeType: string // 类型
- createTime: string // 创建时间
- director: string // 负责人
- meterMajor: string // 专业
- pDeptId: string // 所属科室
+ organizeType?: string // 类型
+ createTime?: string // 创建时间
+ director?: string // 负责人
+ meterMajor?: string // 专业
+ pDeptId?: string // 所属科室
}
export interface columnType {
diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue
index b5c2975..ca26b00 100644
--- a/src/views/measure/person/certificateLog.vue
+++ b/src/views/measure/person/certificateLog.vue
@@ -13,7 +13,12 @@
type: Boolean,
default: false,
},
+ authority: {
+ type: String,
+ default: 'certificateLog',
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -287,19 +292,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -322,16 +327,16 @@
-
+
提醒
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue
index 7f8e5b1..d8d1ff0 100644
--- a/src/views/measure/person/components/addPerson.vue
+++ b/src/views/measure/person/components/addPerson.vue
@@ -14,10 +14,12 @@
import { getDictByCode } from '@/api/system/dict'
import comTreeSelect from '@/views/system/user/selecTree.vue'
import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person'
+import { getPhotoUrl } from '@/api/system/tool'
// import showPhoto from '@/views/system/tool/showPhoto.vue'
const emits = defineEmits(['resetData'])
const ruleFormRef = ref() // from组件
const ruleForm = ref({
+ account: '',
name: '', // 姓名
minioFileName: '', // 照片
idCard: '', // 省份证号
@@ -151,7 +153,7 @@
// 保存选择人员信息
const confirmPerson = (row: userType) => {
ruleForm.value.name = row.name
- console.log(ruleForm.value)
+ ruleForm.value.account = row.account
ruleFormRef.value?.clearValidate('name')
}
// 上传请求
@@ -159,7 +161,7 @@
UploadFile(file).then((res) => {
if (res.code === 200) {
ruleFormRef.value?.clearValidate('minioFileName')
- ruleForm.value.minioFileName = res.data.fileId
+ ruleForm.value.minioFileName = res.data.fileName
}
})
}
@@ -345,6 +347,15 @@
}
}
defineExpose({ initDialog })
+// 图片预览地址
+const photoUrl = ref('')
+watch(() => ruleForm.value.minioFileName, (newVal) => {
+ getPhotoUrl(newVal).then((res) => {
+ if (res.code === 200) {
+ photoUrl.value = res.data
+ }
+ })
+})
@@ -376,7 +387,7 @@
:disabled="title === '详情'"
>
-
+
diff --git a/src/views/measure/person/list.vue b/src/views/measure/person/list.vue
index d0b7fcc..ad2ece0 100644
--- a/src/views/measure/person/list.vue
+++ b/src/views/measure/person/list.vue
@@ -8,6 +8,7 @@
import { getDeptTreeList } from '@/api/system/dept'
import { exportFile } from '@/utils/exportUtils'
import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -235,19 +236,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -270,13 +271,13 @@
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/remind.vue b/src/views/measure/person/remind.vue
index 4889b45..c3f8165 100644
--- a/src/views/measure/person/remind.vue
+++ b/src/views/measure/person/remind.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/measureDept/components/templatePage.vue b/src/views/measure/measureDept/components/templatePage.vue
index d71b3ee..51b0dcd 100644
--- a/src/views/measure/measureDept/components/templatePage.vue
+++ b/src/views/measure/measureDept/components/templatePage.vue
@@ -13,7 +13,12 @@
type: String,
required: true,
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
organizeNo: '', // 组织编号
organizeName: '', // 名称
@@ -96,8 +101,18 @@
const DepartmentList = ref()
// 获取科室/工程组信息
const getDepartmentList = () => {
- getDictByCode('pDeptId').then((response) => {
- DepartmentList.value = response.data
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 99999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: '', // 所属科室
+ }).then((res) => {
+ DepartmentList.value = res.data.rows
})
}
// 获取数据列表
@@ -201,8 +216,8 @@
-
-
+
+
@@ -216,10 +231,10 @@
-
+
导出
-
+
打印
@@ -242,10 +257,10 @@
-
+
编辑
-
+
详情
diff --git a/src/views/measure/measureDept/gcz.vue b/src/views/measure/measureDept/gcz.vue
index 9114f25..7121c66 100644
--- a/src/views/measure/measureDept/gcz.vue
+++ b/src/views/measure/measureDept/gcz.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/ks.vue b/src/views/measure/measureDept/ks.vue
index c0dc1f5..15c89fe 100644
--- a/src/views/measure/measureDept/ks.vue
+++ b/src/views/measure/measureDept/ks.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/measureDept-interface.ts b/src/views/measure/measureDept/measureDept-interface.ts
index 6aecda8..5f7f5e7 100644
--- a/src/views/measure/measureDept/measureDept-interface.ts
+++ b/src/views/measure/measureDept/measureDept-interface.ts
@@ -1,14 +1,14 @@
// 查询参数类型
export interface searchQueryType {
- organizeNo: string // 组织编号
- organizeName: string // 名称
+ organizeNo?: string // 组织编号
+ organizeName?: string // 名称
limit: number
offset: number
- organizeType: string // 类型
- createTime: string // 创建时间
- director: string // 负责人
- meterMajor: string // 专业
- pDeptId: string // 所属科室
+ organizeType?: string // 类型
+ createTime?: string // 创建时间
+ director?: string // 负责人
+ meterMajor?: string // 专业
+ pDeptId?: string // 所属科室
}
export interface columnType {
diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue
index b5c2975..ca26b00 100644
--- a/src/views/measure/person/certificateLog.vue
+++ b/src/views/measure/person/certificateLog.vue
@@ -13,7 +13,12 @@
type: Boolean,
default: false,
},
+ authority: {
+ type: String,
+ default: 'certificateLog',
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -287,19 +292,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -322,16 +327,16 @@
-
+
提醒
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue
index 7f8e5b1..d8d1ff0 100644
--- a/src/views/measure/person/components/addPerson.vue
+++ b/src/views/measure/person/components/addPerson.vue
@@ -14,10 +14,12 @@
import { getDictByCode } from '@/api/system/dict'
import comTreeSelect from '@/views/system/user/selecTree.vue'
import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person'
+import { getPhotoUrl } from '@/api/system/tool'
// import showPhoto from '@/views/system/tool/showPhoto.vue'
const emits = defineEmits(['resetData'])
const ruleFormRef = ref() // from组件
const ruleForm = ref({
+ account: '',
name: '', // 姓名
minioFileName: '', // 照片
idCard: '', // 省份证号
@@ -151,7 +153,7 @@
// 保存选择人员信息
const confirmPerson = (row: userType) => {
ruleForm.value.name = row.name
- console.log(ruleForm.value)
+ ruleForm.value.account = row.account
ruleFormRef.value?.clearValidate('name')
}
// 上传请求
@@ -159,7 +161,7 @@
UploadFile(file).then((res) => {
if (res.code === 200) {
ruleFormRef.value?.clearValidate('minioFileName')
- ruleForm.value.minioFileName = res.data.fileId
+ ruleForm.value.minioFileName = res.data.fileName
}
})
}
@@ -345,6 +347,15 @@
}
}
defineExpose({ initDialog })
+// 图片预览地址
+const photoUrl = ref('')
+watch(() => ruleForm.value.minioFileName, (newVal) => {
+ getPhotoUrl(newVal).then((res) => {
+ if (res.code === 200) {
+ photoUrl.value = res.data
+ }
+ })
+})
@@ -376,7 +387,7 @@
:disabled="title === '详情'"
>
-
+
diff --git a/src/views/measure/person/list.vue b/src/views/measure/person/list.vue
index d0b7fcc..ad2ece0 100644
--- a/src/views/measure/person/list.vue
+++ b/src/views/measure/person/list.vue
@@ -8,6 +8,7 @@
import { getDeptTreeList } from '@/api/system/dept'
import { exportFile } from '@/utils/exportUtils'
import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -235,19 +236,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -270,13 +271,13 @@
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/remind.vue b/src/views/measure/person/remind.vue
index 4889b45..c3f8165 100644
--- a/src/views/measure/person/remind.vue
+++ b/src/views/measure/person/remind.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index b9fc320..3d5c2e3 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -10,6 +10,7 @@
import { getNoticeeApi } from '@/api/system/notice'
import type { TableColumn } from '@/components/NormalTable/table_interface'
import { exportExcel } from '@/utils/exportXlsx'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
noticeNo: '', // 编号
noticePublisher: '', // 发布人
@@ -171,13 +172,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -196,7 +197,7 @@
-
+
查看
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/measureDept/components/templatePage.vue b/src/views/measure/measureDept/components/templatePage.vue
index d71b3ee..51b0dcd 100644
--- a/src/views/measure/measureDept/components/templatePage.vue
+++ b/src/views/measure/measureDept/components/templatePage.vue
@@ -13,7 +13,12 @@
type: String,
required: true,
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
organizeNo: '', // 组织编号
organizeName: '', // 名称
@@ -96,8 +101,18 @@
const DepartmentList = ref()
// 获取科室/工程组信息
const getDepartmentList = () => {
- getDictByCode('pDeptId').then((response) => {
- DepartmentList.value = response.data
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 99999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: '', // 所属科室
+ }).then((res) => {
+ DepartmentList.value = res.data.rows
})
}
// 获取数据列表
@@ -201,8 +216,8 @@
-
-
+
+
@@ -216,10 +231,10 @@
-
+
导出
-
+
打印
@@ -242,10 +257,10 @@
-
+
编辑
-
+
详情
diff --git a/src/views/measure/measureDept/gcz.vue b/src/views/measure/measureDept/gcz.vue
index 9114f25..7121c66 100644
--- a/src/views/measure/measureDept/gcz.vue
+++ b/src/views/measure/measureDept/gcz.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/ks.vue b/src/views/measure/measureDept/ks.vue
index c0dc1f5..15c89fe 100644
--- a/src/views/measure/measureDept/ks.vue
+++ b/src/views/measure/measureDept/ks.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/measureDept-interface.ts b/src/views/measure/measureDept/measureDept-interface.ts
index 6aecda8..5f7f5e7 100644
--- a/src/views/measure/measureDept/measureDept-interface.ts
+++ b/src/views/measure/measureDept/measureDept-interface.ts
@@ -1,14 +1,14 @@
// 查询参数类型
export interface searchQueryType {
- organizeNo: string // 组织编号
- organizeName: string // 名称
+ organizeNo?: string // 组织编号
+ organizeName?: string // 名称
limit: number
offset: number
- organizeType: string // 类型
- createTime: string // 创建时间
- director: string // 负责人
- meterMajor: string // 专业
- pDeptId: string // 所属科室
+ organizeType?: string // 类型
+ createTime?: string // 创建时间
+ director?: string // 负责人
+ meterMajor?: string // 专业
+ pDeptId?: string // 所属科室
}
export interface columnType {
diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue
index b5c2975..ca26b00 100644
--- a/src/views/measure/person/certificateLog.vue
+++ b/src/views/measure/person/certificateLog.vue
@@ -13,7 +13,12 @@
type: Boolean,
default: false,
},
+ authority: {
+ type: String,
+ default: 'certificateLog',
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -287,19 +292,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -322,16 +327,16 @@
-
+
提醒
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue
index 7f8e5b1..d8d1ff0 100644
--- a/src/views/measure/person/components/addPerson.vue
+++ b/src/views/measure/person/components/addPerson.vue
@@ -14,10 +14,12 @@
import { getDictByCode } from '@/api/system/dict'
import comTreeSelect from '@/views/system/user/selecTree.vue'
import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person'
+import { getPhotoUrl } from '@/api/system/tool'
// import showPhoto from '@/views/system/tool/showPhoto.vue'
const emits = defineEmits(['resetData'])
const ruleFormRef = ref() // from组件
const ruleForm = ref({
+ account: '',
name: '', // 姓名
minioFileName: '', // 照片
idCard: '', // 省份证号
@@ -151,7 +153,7 @@
// 保存选择人员信息
const confirmPerson = (row: userType) => {
ruleForm.value.name = row.name
- console.log(ruleForm.value)
+ ruleForm.value.account = row.account
ruleFormRef.value?.clearValidate('name')
}
// 上传请求
@@ -159,7 +161,7 @@
UploadFile(file).then((res) => {
if (res.code === 200) {
ruleFormRef.value?.clearValidate('minioFileName')
- ruleForm.value.minioFileName = res.data.fileId
+ ruleForm.value.minioFileName = res.data.fileName
}
})
}
@@ -345,6 +347,15 @@
}
}
defineExpose({ initDialog })
+// 图片预览地址
+const photoUrl = ref('')
+watch(() => ruleForm.value.minioFileName, (newVal) => {
+ getPhotoUrl(newVal).then((res) => {
+ if (res.code === 200) {
+ photoUrl.value = res.data
+ }
+ })
+})
@@ -376,7 +387,7 @@
:disabled="title === '详情'"
>
-
+
diff --git a/src/views/measure/person/list.vue b/src/views/measure/person/list.vue
index d0b7fcc..ad2ece0 100644
--- a/src/views/measure/person/list.vue
+++ b/src/views/measure/person/list.vue
@@ -8,6 +8,7 @@
import { getDeptTreeList } from '@/api/system/dept'
import { exportFile } from '@/utils/exportUtils'
import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -235,19 +236,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -270,13 +271,13 @@
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/remind.vue b/src/views/measure/person/remind.vue
index 4889b45..c3f8165 100644
--- a/src/views/measure/person/remind.vue
+++ b/src/views/measure/person/remind.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index b9fc320..3d5c2e3 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -10,6 +10,7 @@
import { getNoticeeApi } from '@/api/system/notice'
import type { TableColumn } from '@/components/NormalTable/table_interface'
import { exportExcel } from '@/utils/exportXlsx'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
noticeNo: '', // 编号
noticePublisher: '', // 发布人
@@ -171,13 +172,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -196,7 +197,7 @@
-
+
查看
diff --git a/src/views/system/tool/autograph/autograph.vue b/src/views/system/tool/autograph/autograph.vue
index e44c6c7..8fffe07 100644
--- a/src/views/system/tool/autograph/autograph.vue
+++ b/src/views/system/tool/autograph/autograph.vue
@@ -9,6 +9,7 @@
import { getDictByCode } from '@/api/system/dict'
// import { exportExcel } from '@/utils/exportXlsx'
import { exportFile } from '@/utils/exportUtils'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
signNo: '', // 编号
signName: '', // 名称
@@ -190,13 +191,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -216,13 +217,13 @@
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/measureDept/components/templatePage.vue b/src/views/measure/measureDept/components/templatePage.vue
index d71b3ee..51b0dcd 100644
--- a/src/views/measure/measureDept/components/templatePage.vue
+++ b/src/views/measure/measureDept/components/templatePage.vue
@@ -13,7 +13,12 @@
type: String,
required: true,
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
organizeNo: '', // 组织编号
organizeName: '', // 名称
@@ -96,8 +101,18 @@
const DepartmentList = ref()
// 获取科室/工程组信息
const getDepartmentList = () => {
- getDictByCode('pDeptId').then((response) => {
- DepartmentList.value = response.data
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 99999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: '', // 所属科室
+ }).then((res) => {
+ DepartmentList.value = res.data.rows
})
}
// 获取数据列表
@@ -201,8 +216,8 @@
-
-
+
+
@@ -216,10 +231,10 @@
-
+
导出
-
+
打印
@@ -242,10 +257,10 @@
-
+
编辑
-
+
详情
diff --git a/src/views/measure/measureDept/gcz.vue b/src/views/measure/measureDept/gcz.vue
index 9114f25..7121c66 100644
--- a/src/views/measure/measureDept/gcz.vue
+++ b/src/views/measure/measureDept/gcz.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/ks.vue b/src/views/measure/measureDept/ks.vue
index c0dc1f5..15c89fe 100644
--- a/src/views/measure/measureDept/ks.vue
+++ b/src/views/measure/measureDept/ks.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/measureDept-interface.ts b/src/views/measure/measureDept/measureDept-interface.ts
index 6aecda8..5f7f5e7 100644
--- a/src/views/measure/measureDept/measureDept-interface.ts
+++ b/src/views/measure/measureDept/measureDept-interface.ts
@@ -1,14 +1,14 @@
// 查询参数类型
export interface searchQueryType {
- organizeNo: string // 组织编号
- organizeName: string // 名称
+ organizeNo?: string // 组织编号
+ organizeName?: string // 名称
limit: number
offset: number
- organizeType: string // 类型
- createTime: string // 创建时间
- director: string // 负责人
- meterMajor: string // 专业
- pDeptId: string // 所属科室
+ organizeType?: string // 类型
+ createTime?: string // 创建时间
+ director?: string // 负责人
+ meterMajor?: string // 专业
+ pDeptId?: string // 所属科室
}
export interface columnType {
diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue
index b5c2975..ca26b00 100644
--- a/src/views/measure/person/certificateLog.vue
+++ b/src/views/measure/person/certificateLog.vue
@@ -13,7 +13,12 @@
type: Boolean,
default: false,
},
+ authority: {
+ type: String,
+ default: 'certificateLog',
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -287,19 +292,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -322,16 +327,16 @@
-
+
提醒
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue
index 7f8e5b1..d8d1ff0 100644
--- a/src/views/measure/person/components/addPerson.vue
+++ b/src/views/measure/person/components/addPerson.vue
@@ -14,10 +14,12 @@
import { getDictByCode } from '@/api/system/dict'
import comTreeSelect from '@/views/system/user/selecTree.vue'
import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person'
+import { getPhotoUrl } from '@/api/system/tool'
// import showPhoto from '@/views/system/tool/showPhoto.vue'
const emits = defineEmits(['resetData'])
const ruleFormRef = ref() // from组件
const ruleForm = ref({
+ account: '',
name: '', // 姓名
minioFileName: '', // 照片
idCard: '', // 省份证号
@@ -151,7 +153,7 @@
// 保存选择人员信息
const confirmPerson = (row: userType) => {
ruleForm.value.name = row.name
- console.log(ruleForm.value)
+ ruleForm.value.account = row.account
ruleFormRef.value?.clearValidate('name')
}
// 上传请求
@@ -159,7 +161,7 @@
UploadFile(file).then((res) => {
if (res.code === 200) {
ruleFormRef.value?.clearValidate('minioFileName')
- ruleForm.value.minioFileName = res.data.fileId
+ ruleForm.value.minioFileName = res.data.fileName
}
})
}
@@ -345,6 +347,15 @@
}
}
defineExpose({ initDialog })
+// 图片预览地址
+const photoUrl = ref('')
+watch(() => ruleForm.value.minioFileName, (newVal) => {
+ getPhotoUrl(newVal).then((res) => {
+ if (res.code === 200) {
+ photoUrl.value = res.data
+ }
+ })
+})
@@ -376,7 +387,7 @@
:disabled="title === '详情'"
>
-
+
diff --git a/src/views/measure/person/list.vue b/src/views/measure/person/list.vue
index d0b7fcc..ad2ece0 100644
--- a/src/views/measure/person/list.vue
+++ b/src/views/measure/person/list.vue
@@ -8,6 +8,7 @@
import { getDeptTreeList } from '@/api/system/dept'
import { exportFile } from '@/utils/exportUtils'
import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -235,19 +236,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -270,13 +271,13 @@
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/remind.vue b/src/views/measure/person/remind.vue
index 4889b45..c3f8165 100644
--- a/src/views/measure/person/remind.vue
+++ b/src/views/measure/person/remind.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index b9fc320..3d5c2e3 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -10,6 +10,7 @@
import { getNoticeeApi } from '@/api/system/notice'
import type { TableColumn } from '@/components/NormalTable/table_interface'
import { exportExcel } from '@/utils/exportXlsx'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
noticeNo: '', // 编号
noticePublisher: '', // 发布人
@@ -171,13 +172,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -196,7 +197,7 @@
-
+
查看
diff --git a/src/views/system/tool/autograph/autograph.vue b/src/views/system/tool/autograph/autograph.vue
index e44c6c7..8fffe07 100644
--- a/src/views/system/tool/autograph/autograph.vue
+++ b/src/views/system/tool/autograph/autograph.vue
@@ -9,6 +9,7 @@
import { getDictByCode } from '@/api/system/dict'
// import { exportExcel } from '@/utils/exportXlsx'
import { exportFile } from '@/utils/exportUtils'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
signNo: '', // 编号
signName: '', // 名称
@@ -190,13 +191,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -216,13 +217,13 @@
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/system/tool/certificate/certificate.vue b/src/views/system/tool/certificate/certificate.vue
index e84b685..5ac1900 100644
--- a/src/views/system/tool/certificate/certificate.vue
+++ b/src/views/system/tool/certificate/certificate.vue
@@ -7,8 +7,9 @@
import addDDialog from './addDDialog.vue'
import { templateDelete, templateExport, templatePage } from '@/api/system/tool'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { exportFile } from '@/utils/exportUtils'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
templateNo: '', // 编号
templateName: '', // 名称
@@ -191,13 +192,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -217,16 +218,16 @@
-
+
编辑
-
+
详情
-
+
下载
-
+
删除
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/measureDept/components/templatePage.vue b/src/views/measure/measureDept/components/templatePage.vue
index d71b3ee..51b0dcd 100644
--- a/src/views/measure/measureDept/components/templatePage.vue
+++ b/src/views/measure/measureDept/components/templatePage.vue
@@ -13,7 +13,12 @@
type: String,
required: true,
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
organizeNo: '', // 组织编号
organizeName: '', // 名称
@@ -96,8 +101,18 @@
const DepartmentList = ref()
// 获取科室/工程组信息
const getDepartmentList = () => {
- getDictByCode('pDeptId').then((response) => {
- DepartmentList.value = response.data
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 99999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: '', // 所属科室
+ }).then((res) => {
+ DepartmentList.value = res.data.rows
})
}
// 获取数据列表
@@ -201,8 +216,8 @@
-
-
+
+
@@ -216,10 +231,10 @@
-
+
导出
-
+
打印
@@ -242,10 +257,10 @@
-
+
编辑
-
+
详情
diff --git a/src/views/measure/measureDept/gcz.vue b/src/views/measure/measureDept/gcz.vue
index 9114f25..7121c66 100644
--- a/src/views/measure/measureDept/gcz.vue
+++ b/src/views/measure/measureDept/gcz.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/ks.vue b/src/views/measure/measureDept/ks.vue
index c0dc1f5..15c89fe 100644
--- a/src/views/measure/measureDept/ks.vue
+++ b/src/views/measure/measureDept/ks.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/measureDept-interface.ts b/src/views/measure/measureDept/measureDept-interface.ts
index 6aecda8..5f7f5e7 100644
--- a/src/views/measure/measureDept/measureDept-interface.ts
+++ b/src/views/measure/measureDept/measureDept-interface.ts
@@ -1,14 +1,14 @@
// 查询参数类型
export interface searchQueryType {
- organizeNo: string // 组织编号
- organizeName: string // 名称
+ organizeNo?: string // 组织编号
+ organizeName?: string // 名称
limit: number
offset: number
- organizeType: string // 类型
- createTime: string // 创建时间
- director: string // 负责人
- meterMajor: string // 专业
- pDeptId: string // 所属科室
+ organizeType?: string // 类型
+ createTime?: string // 创建时间
+ director?: string // 负责人
+ meterMajor?: string // 专业
+ pDeptId?: string // 所属科室
}
export interface columnType {
diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue
index b5c2975..ca26b00 100644
--- a/src/views/measure/person/certificateLog.vue
+++ b/src/views/measure/person/certificateLog.vue
@@ -13,7 +13,12 @@
type: Boolean,
default: false,
},
+ authority: {
+ type: String,
+ default: 'certificateLog',
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -287,19 +292,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -322,16 +327,16 @@
-
+
提醒
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue
index 7f8e5b1..d8d1ff0 100644
--- a/src/views/measure/person/components/addPerson.vue
+++ b/src/views/measure/person/components/addPerson.vue
@@ -14,10 +14,12 @@
import { getDictByCode } from '@/api/system/dict'
import comTreeSelect from '@/views/system/user/selecTree.vue'
import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person'
+import { getPhotoUrl } from '@/api/system/tool'
// import showPhoto from '@/views/system/tool/showPhoto.vue'
const emits = defineEmits(['resetData'])
const ruleFormRef = ref() // from组件
const ruleForm = ref({
+ account: '',
name: '', // 姓名
minioFileName: '', // 照片
idCard: '', // 省份证号
@@ -151,7 +153,7 @@
// 保存选择人员信息
const confirmPerson = (row: userType) => {
ruleForm.value.name = row.name
- console.log(ruleForm.value)
+ ruleForm.value.account = row.account
ruleFormRef.value?.clearValidate('name')
}
// 上传请求
@@ -159,7 +161,7 @@
UploadFile(file).then((res) => {
if (res.code === 200) {
ruleFormRef.value?.clearValidate('minioFileName')
- ruleForm.value.minioFileName = res.data.fileId
+ ruleForm.value.minioFileName = res.data.fileName
}
})
}
@@ -345,6 +347,15 @@
}
}
defineExpose({ initDialog })
+// 图片预览地址
+const photoUrl = ref('')
+watch(() => ruleForm.value.minioFileName, (newVal) => {
+ getPhotoUrl(newVal).then((res) => {
+ if (res.code === 200) {
+ photoUrl.value = res.data
+ }
+ })
+})
@@ -376,7 +387,7 @@
:disabled="title === '详情'"
>
-
+
diff --git a/src/views/measure/person/list.vue b/src/views/measure/person/list.vue
index d0b7fcc..ad2ece0 100644
--- a/src/views/measure/person/list.vue
+++ b/src/views/measure/person/list.vue
@@ -8,6 +8,7 @@
import { getDeptTreeList } from '@/api/system/dept'
import { exportFile } from '@/utils/exportUtils'
import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -235,19 +236,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -270,13 +271,13 @@
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/remind.vue b/src/views/measure/person/remind.vue
index 4889b45..c3f8165 100644
--- a/src/views/measure/person/remind.vue
+++ b/src/views/measure/person/remind.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index b9fc320..3d5c2e3 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -10,6 +10,7 @@
import { getNoticeeApi } from '@/api/system/notice'
import type { TableColumn } from '@/components/NormalTable/table_interface'
import { exportExcel } from '@/utils/exportXlsx'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
noticeNo: '', // 编号
noticePublisher: '', // 发布人
@@ -171,13 +172,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -196,7 +197,7 @@
-
+
查看
diff --git a/src/views/system/tool/autograph/autograph.vue b/src/views/system/tool/autograph/autograph.vue
index e44c6c7..8fffe07 100644
--- a/src/views/system/tool/autograph/autograph.vue
+++ b/src/views/system/tool/autograph/autograph.vue
@@ -9,6 +9,7 @@
import { getDictByCode } from '@/api/system/dict'
// import { exportExcel } from '@/utils/exportXlsx'
import { exportFile } from '@/utils/exportUtils'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
signNo: '', // 编号
signName: '', // 名称
@@ -190,13 +191,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -216,13 +217,13 @@
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/system/tool/certificate/certificate.vue b/src/views/system/tool/certificate/certificate.vue
index e84b685..5ac1900 100644
--- a/src/views/system/tool/certificate/certificate.vue
+++ b/src/views/system/tool/certificate/certificate.vue
@@ -7,8 +7,9 @@
import addDDialog from './addDDialog.vue'
import { templateDelete, templateExport, templatePage } from '@/api/system/tool'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { exportFile } from '@/utils/exportUtils'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
templateNo: '', // 编号
templateName: '', // 名称
@@ -191,13 +192,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -217,16 +218,16 @@
-
+
编辑
-
+
详情
-
+
下载
-
+
删除
diff --git a/src/views/system/tool/document/document.vue b/src/views/system/tool/document/document.vue
index 178b577..58d12f9 100644
--- a/src/views/system/tool/document/document.vue
+++ b/src/views/system/tool/document/document.vue
@@ -8,6 +8,7 @@
import { templateDelete, templateExport, templatePage } from '@/api/system/tool'
import { getDictByCode } from '@/api/system/dict'
import { exportFile } from '@/utils/exportUtils'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
templateNo: '', // 编号
templateName: '', // 名称
@@ -190,13 +191,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -216,16 +217,16 @@
-
+
编辑
-
+
详情
-
+
下载
-
+
删除
diff --git a/src/views/measure/file/components/CNASfile.vue b/src/views/measure/file/components/CNASfile.vue
index b53f401..9a634b3 100644
--- a/src/views/measure/file/components/CNASfile.vue
+++ b/src/views/measure/file/components/CNASfile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/homeworkFile.vue b/src/views/measure/file/components/homeworkFile.vue
index 9d1c3c7..fb1d15c 100644
--- a/src/views/measure/file/components/homeworkFile.vue
+++ b/src/views/measure/file/components/homeworkFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/programFile.vue b/src/views/measure/file/components/programFile.vue
index 4e9a8f1..3da3306 100644
--- a/src/views/measure/file/components/programFile.vue
+++ b/src/views/measure/file/components/programFile.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/qualityManual.vue b/src/views/measure/file/components/qualityManual.vue
index d220d4e..d2a8e04 100644
--- a/src/views/measure/file/components/qualityManual.vue
+++ b/src/views/measure/file/components/qualityManual.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/statute.vue b/src/views/measure/file/components/statute.vue
index 151649e..1c77dd7 100644
--- a/src/views/measure/file/components/statute.vue
+++ b/src/views/measure/file/components/statute.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/technicalCapability.vue b/src/views/measure/file/components/technicalCapability.vue
index c50c700..776fb34 100644
--- a/src/views/measure/file/components/technicalCapability.vue
+++ b/src/views/measure/file/components/technicalCapability.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/components/templatePage.vue b/src/views/measure/file/components/templatePage.vue
index cab8511..d38e09d 100644
--- a/src/views/measure/file/components/templatePage.vue
+++ b/src/views/measure/file/components/templatePage.vue
@@ -5,7 +5,7 @@
import type { fileListType, fileResType, fileSearchType } from '@/views/measure/file/file-interface'
import { deleteApi, exportFileApi, listPageApi, updateApi } from '@/api/measure/file'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { uploadApi } from '@/api/system/notice'
import { exportFile } from '@/utils/exportUtils'
const props = defineProps({
@@ -13,7 +13,12 @@
type: String,
default: '',
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
fileNo: '', // 编号
fileName: '', // 名称
@@ -260,7 +265,7 @@
-
+
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -336,16 +341,16 @@
-
+
查看
-
+
下载
-
+
废止
-
+
删除
diff --git a/src/views/measure/file/manageMethod.vue b/src/views/measure/file/manageMethod.vue
index 2b55537..d584bef 100644
--- a/src/views/measure/file/manageMethod.vue
+++ b/src/views/measure/file/manageMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/measureRule.vue b/src/views/measure/file/measureRule.vue
index d4effb3..89dc791 100644
--- a/src/views/measure/file/measureRule.vue
+++ b/src/views/measure/file/measureRule.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/rules.vue b/src/views/measure/file/rules.vue
index 380847a..0d30800 100644
--- a/src/views/measure/file/rules.vue
+++ b/src/views/measure/file/rules.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/file/testingMethod.vue b/src/views/measure/file/testingMethod.vue
index 1e92a0a..382b7a9 100644
--- a/src/views/measure/file/testingMethod.vue
+++ b/src/views/measure/file/testingMethod.vue
@@ -4,5 +4,5 @@
-
+
diff --git a/src/views/measure/measureDept/bm.vue b/src/views/measure/measureDept/bm.vue
index deb281a..4451da2 100644
--- a/src/views/measure/measureDept/bm.vue
+++ b/src/views/measure/measureDept/bm.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/components/addDialog.vue b/src/views/measure/measureDept/components/addDialog.vue
index e43fe4f..4fede03 100644
--- a/src/views/measure/measureDept/components/addDialog.vue
+++ b/src/views/measure/measureDept/components/addDialog.vue
@@ -6,8 +6,10 @@
import { getUserList } from '@/api/system/user'
import { getDictByCode } from '@/api/system/dict'
import type { userType } from '@/views/system/user/user-interface'
-import { updateApi } from '@/api/measure/measureDept'
+import { listPageApi, updateApi } from '@/api/measure/measureDept'
+import { getStaffList } from '@/api/measure/person'
const emits = defineEmits(['resetData'])
+const router = useRoute()
const ruleFormRef = ref() // from组件
const ruleForm = ref({
organizeType: '', // 类型
@@ -91,6 +93,12 @@
const multipleTableRef = ref()
const current = ref('')
const changeList = ref()
+// const searchQuery = ref({
+// limit: 10,
+// offset: 1,
+// total: 0,
+// pageSizes: [10, 20, 30],
+// })
// 部门列表数据
const changeList_bm = ref([
{
@@ -99,23 +107,23 @@
column: [
{
label: '科室编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '科室名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -125,7 +133,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -154,23 +162,23 @@
column: [
{
label: '工程组编号',
- data: '',
+ data: 'organizeNo',
},
{
label: '工程组名称',
- data: '',
+ data: 'organizeName',
},
{
label: '负责人姓名',
- data: '',
+ data: 'director',
},
{
label: '计量专业',
- data: '',
+ data: 'meterMajor',
},
{
label: '创建时间',
- data: '',
+ data: 'createTime',
},
],
},
@@ -243,7 +251,7 @@
column: [
{
label: '人员编号',
- data: '',
+ data: 'staffNo',
},
{
label: '姓名',
@@ -330,42 +338,95 @@
})
// 获取科室/工程组信息
const getDepartmentList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[0].data = response.data
- changeList_ks.value[0].data = response.data
- })
+ console.log(router.path.split('/')[2], '路由')
+ if (router.path.split('/')[2] === 'bm') {
+ // 获取科室
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '科室')
+ changeList_bm.value[0].data = res.data.rows
+ })
+ }
+ else if (router.path.split('/')[2] === 'ks') {
+ // 获取工程组
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 9999,
+ offset: 1,
+ organizeType: '4',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: ruleForm.value.deptId, // 所属科室
+ }).then((res) => {
+ console.log(res, '工程组')
+ changeList_ks.value[0].data = res.data.rows
+ })
+ }
}
// 获取人员信息
const getuserInfoList = () => {
- // 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_bm.value[1].data = response.data
- changeList_gcz.value[0].data = response.data
+ const params = {
+ staffNo: '',
+ name: '',
+ deptId: ruleForm.value.deptId,
+ major: '',
+ verifierCertificateNo: '',
+ certificateStatus: '',
+ limit: 9999,
+ offset: 1,
+ }
+ getStaffList(params).then((response) => {
+ changeList_bm.value[1].data = response.data.records
+ changeList_gcz.value[0].data = response.data.records
})
}
// 获取仪器信息
const getInstrumentInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[1].data = response.data
- changeList_gcz.value[1].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[1].data = response.data
+ // changeList_gcz.value[1].data = response.data
+ // })
}
// 获取标准装置信息
const getDeviceInfo = () => {
// 接口暂未写好 根据实际情况赋值
- getDictByCode('pDeptId').then((response) => {
- changeList_ks.value[2].data = response.data
- changeList_gcz.value[2].data = response.data
- })
+ // getDictByCode('pDeptId').then((response) => {
+ // changeList_ks.value[2].data = response.data
+ // changeList_gcz.value[2].data = response.data
+ // })
}
+// const handleSizeChange = (val: number) => {
+// searchQuery.value.limit = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
+// const handleCurrentChange = (val: number) => {
+// searchQuery.value.offset = val
+// getDepartmentList()
+// getuserInfoList()
+// getInstrumentInfo()
+// getDeviceInfo()
+// }
// 弹窗初始化
const initDialog = (row: any) => {
- console.log(row, 'row')
reset()
title.value = row.title
ruleForm.value.organizeType = row.organizeType
+ ruleForm.value.deptId = row.deptId
getuser()
getTechnologyJobList()
getAdministrationJob()
@@ -475,16 +536,21 @@
-
-
+
+
diff --git a/src/views/measure/measureDept/components/templatePage.vue b/src/views/measure/measureDept/components/templatePage.vue
index d71b3ee..51b0dcd 100644
--- a/src/views/measure/measureDept/components/templatePage.vue
+++ b/src/views/measure/measureDept/components/templatePage.vue
@@ -13,7 +13,12 @@
type: String,
required: true,
},
+ authority: {
+ type: String,
+ required: true,
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
organizeNo: '', // 组织编号
organizeName: '', // 名称
@@ -96,8 +101,18 @@
const DepartmentList = ref()
// 获取科室/工程组信息
const getDepartmentList = () => {
- getDictByCode('pDeptId').then((response) => {
- DepartmentList.value = response.data
+ listPageApi({
+ organizeNo: '',
+ organizeName: '',
+ limit: 99999,
+ offset: 1,
+ organizeType: '3',
+ createTime: '', // 创建时间
+ director: '', // 负责人
+ meterMajor: '', // 专业
+ pDeptId: '', // 所属科室
+ }).then((res) => {
+ DepartmentList.value = res.data.rows
})
}
// 获取数据列表
@@ -201,8 +216,8 @@
-
-
+
+
@@ -216,10 +231,10 @@
-
+
导出
-
+
打印
@@ -242,10 +257,10 @@
-
+
编辑
-
+
详情
diff --git a/src/views/measure/measureDept/gcz.vue b/src/views/measure/measureDept/gcz.vue
index 9114f25..7121c66 100644
--- a/src/views/measure/measureDept/gcz.vue
+++ b/src/views/measure/measureDept/gcz.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/ks.vue b/src/views/measure/measureDept/ks.vue
index c0dc1f5..15c89fe 100644
--- a/src/views/measure/measureDept/ks.vue
+++ b/src/views/measure/measureDept/ks.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/measure/measureDept/measureDept-interface.ts b/src/views/measure/measureDept/measureDept-interface.ts
index 6aecda8..5f7f5e7 100644
--- a/src/views/measure/measureDept/measureDept-interface.ts
+++ b/src/views/measure/measureDept/measureDept-interface.ts
@@ -1,14 +1,14 @@
// 查询参数类型
export interface searchQueryType {
- organizeNo: string // 组织编号
- organizeName: string // 名称
+ organizeNo?: string // 组织编号
+ organizeName?: string // 名称
limit: number
offset: number
- organizeType: string // 类型
- createTime: string // 创建时间
- director: string // 负责人
- meterMajor: string // 专业
- pDeptId: string // 所属科室
+ organizeType?: string // 类型
+ createTime?: string // 创建时间
+ director?: string // 负责人
+ meterMajor?: string // 专业
+ pDeptId?: string // 所属科室
}
export interface columnType {
diff --git a/src/views/measure/person/certificateLog.vue b/src/views/measure/person/certificateLog.vue
index b5c2975..ca26b00 100644
--- a/src/views/measure/person/certificateLog.vue
+++ b/src/views/measure/person/certificateLog.vue
@@ -13,7 +13,12 @@
type: Boolean,
default: false,
},
+ authority: {
+ type: String,
+ default: 'certificateLog',
+ },
})
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -287,19 +292,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -322,16 +327,16 @@
-
+
提醒
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/components/addPerson.vue b/src/views/measure/person/components/addPerson.vue
index 7f8e5b1..d8d1ff0 100644
--- a/src/views/measure/person/components/addPerson.vue
+++ b/src/views/measure/person/components/addPerson.vue
@@ -14,10 +14,12 @@
import { getDictByCode } from '@/api/system/dict'
import comTreeSelect from '@/views/system/user/selecTree.vue'
import { getStaffAdd, getStaffDetail, getStaffupdate } from '@/api/measure/person'
+import { getPhotoUrl } from '@/api/system/tool'
// import showPhoto from '@/views/system/tool/showPhoto.vue'
const emits = defineEmits(['resetData'])
const ruleFormRef = ref() // from组件
const ruleForm = ref({
+ account: '',
name: '', // 姓名
minioFileName: '', // 照片
idCard: '', // 省份证号
@@ -151,7 +153,7 @@
// 保存选择人员信息
const confirmPerson = (row: userType) => {
ruleForm.value.name = row.name
- console.log(ruleForm.value)
+ ruleForm.value.account = row.account
ruleFormRef.value?.clearValidate('name')
}
// 上传请求
@@ -159,7 +161,7 @@
UploadFile(file).then((res) => {
if (res.code === 200) {
ruleFormRef.value?.clearValidate('minioFileName')
- ruleForm.value.minioFileName = res.data.fileId
+ ruleForm.value.minioFileName = res.data.fileName
}
})
}
@@ -345,6 +347,15 @@
}
}
defineExpose({ initDialog })
+// 图片预览地址
+const photoUrl = ref('')
+watch(() => ruleForm.value.minioFileName, (newVal) => {
+ getPhotoUrl(newVal).then((res) => {
+ if (res.code === 200) {
+ photoUrl.value = res.data
+ }
+ })
+})
@@ -376,7 +387,7 @@
:disabled="title === '详情'"
>
-
+
diff --git a/src/views/measure/person/list.vue b/src/views/measure/person/list.vue
index d0b7fcc..ad2ece0 100644
--- a/src/views/measure/person/list.vue
+++ b/src/views/measure/person/list.vue
@@ -8,6 +8,7 @@
import { getDeptTreeList } from '@/api/system/dept'
import { exportFile } from '@/utils/exportUtils'
import type { DeptTreeNode } from '@/views/system/dept/dept-interface'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
staffNo: '', // 人员编号
name: '', // 姓名
@@ -235,19 +236,19 @@
-
+
批量导入
-
+
模板下载
-
+
新建
-
+
导出
-
+
打印
@@ -270,13 +271,13 @@
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/measure/person/remind.vue b/src/views/measure/person/remind.vue
index 4889b45..c3f8165 100644
--- a/src/views/measure/person/remind.vue
+++ b/src/views/measure/person/remind.vue
@@ -3,5 +3,5 @@
-
+
diff --git a/src/views/system/notice/noteList.vue b/src/views/system/notice/noteList.vue
index b9fc320..3d5c2e3 100644
--- a/src/views/system/notice/noteList.vue
+++ b/src/views/system/notice/noteList.vue
@@ -10,6 +10,7 @@
import { getNoticeeApi } from '@/api/system/notice'
import type { TableColumn } from '@/components/NormalTable/table_interface'
import { exportExcel } from '@/utils/exportXlsx'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
noticeNo: '', // 编号
noticePublisher: '', // 发布人
@@ -171,13 +172,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -196,7 +197,7 @@
-
+
查看
diff --git a/src/views/system/tool/autograph/autograph.vue b/src/views/system/tool/autograph/autograph.vue
index e44c6c7..8fffe07 100644
--- a/src/views/system/tool/autograph/autograph.vue
+++ b/src/views/system/tool/autograph/autograph.vue
@@ -9,6 +9,7 @@
import { getDictByCode } from '@/api/system/dict'
// import { exportExcel } from '@/utils/exportXlsx'
import { exportFile } from '@/utils/exportUtils'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
signNo: '', // 编号
signName: '', // 名称
@@ -190,13 +191,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -216,13 +217,13 @@
-
+
编辑
-
+
详情
-
+
删除
diff --git a/src/views/system/tool/certificate/certificate.vue b/src/views/system/tool/certificate/certificate.vue
index e84b685..5ac1900 100644
--- a/src/views/system/tool/certificate/certificate.vue
+++ b/src/views/system/tool/certificate/certificate.vue
@@ -7,8 +7,9 @@
import addDDialog from './addDDialog.vue'
import { templateDelete, templateExport, templatePage } from '@/api/system/tool'
import { getDictByCode } from '@/api/system/dict'
-import { exportExcel } from '@/utils/exportXlsx'
+// import { exportExcel } from '@/utils/exportXlsx'
import { exportFile } from '@/utils/exportUtils'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
templateNo: '', // 编号
templateName: '', // 名称
@@ -191,13 +192,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -217,16 +218,16 @@
-
+
编辑
-
+
详情
-
+
下载
-
+
删除
diff --git a/src/views/system/tool/document/document.vue b/src/views/system/tool/document/document.vue
index 178b577..58d12f9 100644
--- a/src/views/system/tool/document/document.vue
+++ b/src/views/system/tool/document/document.vue
@@ -8,6 +8,7 @@
import { templateDelete, templateExport, templatePage } from '@/api/system/tool'
import { getDictByCode } from '@/api/system/dict'
import { exportFile } from '@/utils/exportUtils'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
templateNo: '', // 编号
templateName: '', // 名称
@@ -190,13 +191,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -216,16 +217,16 @@
-
+
编辑
-
+
详情
-
+
下载
-
+
删除
diff --git a/src/views/system/tool/signature/signature.vue b/src/views/system/tool/signature/signature.vue
index 11b73b6..94d216e 100644
--- a/src/views/system/tool/signature/signature.vue
+++ b/src/views/system/tool/signature/signature.vue
@@ -9,6 +9,7 @@
import { getDictByCode } from '@/api/system/dict'
// import { exportExcel } from '@/utils/exportXlsx'
import { exportFile } from '@/utils/exportUtils'
+const { proxy } = getCurrentInstance() as any
const searchQuery = reactive({
signNo: '', // 编号
signName: '', // 名称
@@ -188,13 +189,13 @@
-
+
新建
-
+
导出
-
+
打印
@@ -214,13 +215,13 @@
-
+
编辑
-
+
详情
-
+
删除