From 541d55ac3e9cee0579669e7a44ff4c8888e58f65 Mon Sep 17 00:00:00 2001 From: monkeyhouyi Date: Thu, 5 Sep 2024 18:16:46 +0800 Subject: [PATCH] 优化 --- src/assets/style/common.scss | 1 + src/components/CompanyForm/index.vue | 36 ++++++++++++++++++++++++++++-------- src/components/Generator/components/Upload/UploadFz.vue | 5 ++++- src/components/InfoForm/index.vue | 170 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------- src/main.js | 8 ++++++++ src/views/DisposalSuggestions/Form.vue | 74 +++++++++++++++++++++++++++++++++++++++++++------------------------------- src/views/DisposalSuggestions/HandleForm.vue | 37 +++++++++++++++++-------------------- src/views/DisposalSuggestions/index.vue | 4 ++-- src/views/baseComapnyInfo/Form.vue | 25 +++++++++++++++++++++++-- src/views/baseInspectionReport/Form.vue | 40 +++++++++++++++++++++++----------------- src/views/baseInspectionReport/index.vue | 2 +- src/views/basePrincipalResponsibility/Form.vue | 6 ++++-- src/views/baseSpecialAction/index.vue | 2 ++ src/views/baseSpecialhandle/index.vue | 12 ++++++++++-- src/views/baseSystemInfo/DetailForm.vue | 52 ++++++++++++++++++++++++++++++++++++++-------------- src/views/baseSystemInfo/index.vue | 44 ++++++++++---------------------------------- src/views/overView/Overview.vue | 10 +++++++++- 17 files changed, 328 insertions(+), 200 deletions(-) diff --git a/src/assets/style/common.scss b/src/assets/style/common.scss index ad6b0dd..53ca7e2 100644 --- a/src/assets/style/common.scss +++ b/src/assets/style/common.scss @@ -83,6 +83,7 @@ a { } .text { flex: 1; + height: 30px; } } diff --git a/src/components/CompanyForm/index.vue b/src/components/CompanyForm/index.vue index a92f476..6d21199 100644 --- a/src/components/CompanyForm/index.vue +++ b/src/components/CompanyForm/index.vue @@ -17,8 +17,7 @@ class="NCC-dialog NCC-dialog_center company-dialog" > - + @@ -59,6 +58,25 @@ + + + + + + + + + + + + + + + + + {{ v.fullName }} @@ -103,6 +121,8 @@ export default { contactInformation: undefined, qualificationCertificate: [], otherInfo: undefined, + contactUser: undefined, + contactPhone: undefined }, rules: { companyName: [ @@ -112,10 +132,10 @@ export default { trigger: 'blur' }, ], - contactInformation: [ + contactPhone: [ { pattern: /^1[3456789]\d{9}$|^0\d{2,3}-?\d{7,8}$/, - message: '请输入正确的联系方式', + message: '请输入正确的联系电话', trigger: 'blur' }, ], @@ -126,15 +146,15 @@ export default { watch: {}, mounted() {}, created() { - this.initAreaTypeList(); }, methods: { close() { this.visible = false; }, - openDialog() { - this.visible = true; - this.$refs['elForm'].resetFields(); + async openDialog() { + this.visible = true; + await this.initAreaTypeList(); + this.$refs['elForm'].resetFields(); }, async dataFormSubmit() { this.$refs['elForm'].validate((valid) => { diff --git a/src/components/Generator/components/Upload/UploadFz.vue b/src/components/Generator/components/Upload/UploadFz.vue index 27f68fe..59c30b6 100644 --- a/src/components/Generator/components/Upload/UploadFz.vue +++ b/src/components/Generator/components/Upload/UploadFz.vue @@ -3,7 +3,7 @@ - {{buttonText}} + {{buttonText}}
只能上传不超过{{fileSize}}{{sizeUnit}}的{{accept}}文件
@@ -117,6 +117,9 @@ export default { handleExceed(files, fileList) { this.$message.warning(`当前限制最多可以上传${this.limit}个文件`); }, + handlePreview(file) { + // console.log(file); + }, handleRemove(file, index) { this.fileList.splice(index, 1) this.$refs.elUpload.uploadFiles.splice(index, 1) diff --git a/src/components/InfoForm/index.vue b/src/components/InfoForm/index.vue index 8f00997..b281107 100644 --- a/src/components/InfoForm/index.vue +++ b/src/components/InfoForm/index.vue @@ -32,7 +32,6 @@ v-model="infoForm.companyId" placeholder="请选择运营主体" clearable - v-loadMore="nextCompanyList" style="width: 100%" @change="companyChange" > @@ -47,7 +46,7 @@
- + @@ -73,7 +72,16 @@ - + + + + + + - - - + + + + + + + + + + - - - - - + + + + - - - - - + + + + + - - - + + + - - - - + + + + - - - - - - + + + + + + + + @@ -181,7 +215,7 @@ > - + - 取消 + 取消 确认 @@ -266,11 +300,10 @@