From 2e76e056f45b86a6c6ffef4ae839e2b30dd317a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=97=8B?= <723607471@qq.com> Date: Thu, 13 Apr 2023 17:04:59 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 12 ++- .../responseManagement/userResponse/index.vue | 78 ++++++++++--------- 2 files changed, 46 insertions(+), 44 deletions(-) diff --git a/package-lock.json b/package-lock.json index c62f0ac..ceda835 100644 --- a/package-lock.json +++ b/package-lock.json @@ -329,6 +329,11 @@ "fastq": "^1.6.0" } }, + "@popperjs/core": { + "version": "npm:@sxzz/popperjs-es@2.11.7", + "resolved": "https://registry.npmmirror.com/@sxzz/popperjs-es/-/popperjs-es-2.11.7.tgz", + "integrity": "sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==" + }, "@rollup/pluginutils": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", @@ -946,13 +951,6 @@ "lodash-unified": "^1.0.2", "memoize-one": "^6.0.0", "normalize-wheel-es": "^1.2.0" - }, - "dependencies": { - "@popperjs/core": { - "version": "npm:@sxzz/popperjs-es@2.11.7", - "resolved": "https://registry.npmjs.org/@sxzz/popperjs-es/-/popperjs-es-2.11.7.tgz", - "integrity": "sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ==" - } } }, "esbuild": { diff --git a/src/views/responseManagement/userResponse/index.vue b/src/views/responseManagement/userResponse/index.vue index e3b9f44..b5c4fee 100644 --- a/src/views/responseManagement/userResponse/index.vue +++ b/src/views/responseManagement/userResponse/index.vue @@ -26,15 +26,13 @@ - Not reviewed - Failed + Not reviewed + Failed - Review + Review @@ -91,8 +89,8 @@ - Reviewed - Failed + Reviewed + Failed @@ -124,20 +122,22 @@ - + + + Point + Area + Clear + + + Latitude: + + Longitude: + + - - + + @@ -156,22 +156,25 @@ \ No newline at end of file diff --git a/src/router/route.js b/src/router/route.js index de4aec2..81f8859 100644 --- a/src/router/route.js +++ b/src/router/route.js @@ -77,22 +77,6 @@ export const dynamicRoutes = [ zh: '用户响应管理', }, }, - { - path: '/responseManagement/administrator', - name: 'administrator-management', - component: () => import('/@/views/responseManagement/administrator/index.vue'), - meta: { - title: 'Administrator management', - isLink: '', - isHide: false, - isKeepAlive: true, - isAffix: false, - isIframe: false, - roles: ['admin', 'chief'], - icon: 'ele-ColdDrink', - zh: '管理员管理', - }, - }, { path: '/responseManagement/dataUpload', name: 'data-upload-management', @@ -176,6 +160,38 @@ export const dynamicRoutes = [ zh: '其他数据服务', }, }, + { + path: '/dataService/visualData', + name: 'visualData', + component: () => import('/@/views/dataService/visualData/index.vue'), + meta: { + title: 'visual data service', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'chief'], + icon: 'ele-ColdDrink', + zh: '其他数据服务', + }, + }, + { + path: '/dataService/pictureInfo', + name: 'pictureInfo', + component: () => import('/@/views/dataService/pictureInfo/index.vue'), + meta: { + title: 'picture info service', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'chief'], + icon: 'ele-ColdDrink', + zh: '其他数据服务', + }, + }, ], }, { @@ -195,6 +211,22 @@ export const dynamicRoutes = [ zh: '系统管理', }, children: [ + { + path: '/systemManagement/chief/administrator', + name: 'chief-administrator-management', + component: () => import('/@/views/systemManagement/chiefAdministrator/index.vue'), + meta: { + title: 'Chief Administrator management', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + roles: ['admin', 'chief'], + icon: 'ele-ColdDrink', + zh: '管理员管理', + }, + }, { path: '/systemManagement/administrator', name: 'administratorManagement', diff --git a/src/views/dataService/otherData/component/upload.vue b/src/views/dataService/otherData/component/upload.vue new file mode 100644 index 0000000..34dc48c --- /dev/null +++ b/src/views/dataService/otherData/component/upload.vue @@ -0,0 +1,185 @@ + + + + + + + + Drop file here or click to upload + + + + image files with a size less than 1GB + + + + + + + + + + + + + + + + cancel + upload + + + + + + + + \ No newline at end of file diff --git a/src/views/dataService/otherData/index.vue b/src/views/dataService/otherData/index.vue index 0443ea4..8112ab1 100644 --- a/src/views/dataService/otherData/index.vue +++ b/src/views/dataService/otherData/index.vue @@ -1,191 +1,142 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - Search - - - - - - - Upload - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + search + + + + + + upload + + + + + + + + + + {{formatSizeUnits(scope.row.size)}} + + + + + + delete + + + + + + + + + - + diff --git a/src/views/dataService/pictureInfo/component/upload.vue b/src/views/dataService/pictureInfo/component/upload.vue new file mode 100644 index 0000000..e7b7f4b --- /dev/null +++ b/src/views/dataService/pictureInfo/component/upload.vue @@ -0,0 +1,169 @@ + + + + + + + + Drop file here or click to upload + + + + image files with a size less than 1GB + + + + + + + + + + + + + + cancel + upload + + + + + + + + \ No newline at end of file diff --git a/src/views/dataService/pictureInfo/index.vue b/src/views/dataService/pictureInfo/index.vue new file mode 100644 index 0000000..256004e --- /dev/null +++ b/src/views/dataService/pictureInfo/index.vue @@ -0,0 +1,283 @@ + + + + + + + + + + + + + + + + + + + + + + + search + + + + + + upload + + + + + + + + + + + + + + + + + + + + {{formatSizeUnits(scope.row.size)}} + + + + + + delete + + + + + + + + + + + + + + + diff --git a/src/views/dataService/visualData/component/hotspotForm.vue b/src/views/dataService/visualData/component/hotspotForm.vue new file mode 100644 index 0000000..78e4b11 --- /dev/null +++ b/src/views/dataService/visualData/component/hotspotForm.vue @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + cancel + submit + + + + + + + + \ No newline at end of file diff --git a/src/views/dataService/visualData/component/wordCloudForm.vue b/src/views/dataService/visualData/component/wordCloudForm.vue new file mode 100644 index 0000000..35b33d5 --- /dev/null +++ b/src/views/dataService/visualData/component/wordCloudForm.vue @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + cancel + submit + + + + + + + + \ No newline at end of file diff --git a/src/views/dataService/visualData/index.vue b/src/views/dataService/visualData/index.vue new file mode 100644 index 0000000..ad5d532 --- /dev/null +++ b/src/views/dataService/visualData/index.vue @@ -0,0 +1,348 @@ + + + + + + + + + + + + + + + + + + + + + + + upload + + + + + + + + + + + + delete + + + + + + + + + + + + + + + delete + + + + + + + + + + + + + + + + + + diff --git a/src/views/responseManagement/dataUpload/component/audit.vue b/src/views/responseManagement/dataUpload/component/audit.vue new file mode 100644 index 0000000..7fb7f00 --- /dev/null +++ b/src/views/responseManagement/dataUpload/component/audit.vue @@ -0,0 +1,99 @@ + + + + + + pass + no pass + + + + + + cancel + confirm + + + + + + + + \ No newline at end of file diff --git a/src/views/responseManagement/dataUpload/index.vue b/src/views/responseManagement/dataUpload/index.vue index 92b35bb..292b704 100644 --- a/src/views/responseManagement/dataUpload/index.vue +++ b/src/views/responseManagement/dataUpload/index.vue @@ -1,82 +1,94 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + {{formatSizeUnits(scope.row.size)}} + + + + + + audit + + + + + + + + + diff --git a/src/views/systemManagement/administrator/component/audit.vue b/src/views/systemManagement/administrator/component/audit.vue index 9d7ff89..18fdf15 100644 --- a/src/views/systemManagement/administrator/component/audit.vue +++ b/src/views/systemManagement/administrator/component/audit.vue @@ -23,6 +23,7 @@ import {addAdmin} from '/@/api/response/administrator.js'; import {auditData} from '/@/api/response/adminManager.js'; import {ElMessage} from "element-plus"; const adminAddFormRef = ref(); +const emit = defineEmits(['callback']); const state = reactive({ isShowDialog: false, isLoading:false, diff --git a/src/views/systemManagement/administrator/index.vue b/src/views/systemManagement/administrator/index.vue index 2b92f44..7f3ad17 100644 --- a/src/views/systemManagement/administrator/index.vue +++ b/src/views/systemManagement/administrator/index.vue @@ -122,7 +122,6 @@ const auditManager = (row) => { const getTableData = () => { state.tableData.loading = true; getAdminManagerPage(state.tableData.param.pageNum,state.tableData.param.pageSize,{"managerName":state.searchName}).then(res=>{ - console.log("分页数据",res); state.tableData.data = res.records; state.tableData.total = res.total; }) diff --git a/src/views/responseManagement/administrator/component/addAdministrator.vue b/src/views/systemManagement/chiefAdministrator/component/addAdministrator.vue similarity index 72% rename from src/views/responseManagement/administrator/component/addAdministrator.vue rename to src/views/systemManagement/chiefAdministrator/component/addAdministrator.vue index 9284c36..c7e5a97 100644 --- a/src/views/responseManagement/administrator/component/addAdministrator.vue +++ b/src/views/systemManagement/chiefAdministrator/component/addAdministrator.vue @@ -14,7 +14,7 @@ - + @@ -47,20 +47,50 @@ const state = reactive({ standardId: '', detectionData: [] }) - +//自定义校验邮箱 +let validateEmail = (rule, value, callback) => { + if (!value) { + return callback(new Error("please enter email!")); + } + else { + const reg= /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/ + if(reg.test(value)){ + callback(); + }else { + return callback(new Error("The mailbox format is incorrect!")); + } + } +}; +//自定义校验手机号 +let checkPhone = (rule, value, callback) => { + if (!value) { + return callback(new Error('please enter phone')); + } else { + //验证手机号 + const reg = /^1[3|4|5|7|8][0-9]\d{8}$/ + //验证区号 + const phoneReg = /^\d{3}-\d{8}|\d{4}-\d{7}$/ + if (reg.test(value)||phoneReg.test(value)) { + callback(); + } else { + return callback(new Error('Please enter the correct contact number')); + } + } +}; //校验规则 const rules = reactive({ name: [ {required: true, message: 'please enter name', trigger: 'blur'} ], email: [ - {required: true, message: 'please enter email', trigger: 'blur'} + /* {required: true, trigger: 'blur',validator:validateEmail}*/ + {required: true, trigger: 'blur',type:'email'} ], account: [ {required: true, message: 'please enter account', trigger: 'blur'} ], phone: [ - {required: true, message: 'please enter phone', trigger: 'blur'} + {required: true, trigger: 'blur',validator:checkPhone} ], organization: [ {required: true, message: 'please enter organization', trigger: 'blur'} @@ -95,7 +125,7 @@ const onSubmit = () => { ElMessage.success("Add successfully"); emit('callback'); }).catch(err => { - ElMessage.error("Add failure"); + //ElMessage.error("Add failure"); }).finally(()=>{ state.isLoading = false; }) diff --git a/src/views/responseManagement/administrator/index.vue b/src/views/systemManagement/chiefAdministrator/index.vue similarity index 99% rename from src/views/responseManagement/administrator/index.vue rename to src/views/systemManagement/chiefAdministrator/index.vue index fca4219..f7644fb 100644 --- a/src/views/responseManagement/administrator/index.vue +++ b/src/views/systemManagement/chiefAdministrator/index.vue @@ -110,7 +110,6 @@ const state = reactive({ const getTableData = () => { state.tableData.loading = true; getAdminPage(state.tableData.param.pageNum,state.tableData.param.pageSize,{"name_like":state.searchName}).then(res=>{ - console.log("分页数据",res); state.tableData.data = res.records; state.tableData.total = res.total; })