From 3d906738fb050f4b99137cd438e0ee0212e39d4b Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 24 Jun 2022 08:30:51 +0800 Subject: [PATCH] search --- client/src/views/ability/abilityQuality.vue | 16 ++-- client/src/views/ability/mQualityTask.vue | 82 +++++++++++---------- client/src/views/ability/qualityTaskDo.vue | 2 +- client/src/views/ability/quliShow.vue | 24 +++--- 4 files changed, 72 insertions(+), 52 deletions(-) diff --git a/client/src/views/ability/abilityQuality.vue b/client/src/views/ability/abilityQuality.vue index 4ff298c..f9b17a1 100644 --- a/client/src/views/ability/abilityQuality.vue +++ b/client/src/views/ability/abilityQuality.vue @@ -69,12 +69,12 @@ - + - + - - + + @@ -156,7 +160,9 @@ typeOptions: { 10: '国家级', 20: '省级', - 30: '市级' + 30: '市级', + 40: '实验室', + 50: '检验机构', }, }; }, diff --git a/client/src/views/ability/mQualityTask.vue b/client/src/views/ability/mQualityTask.vue index 6e42f77..e091f75 100644 --- a/client/src/views/ability/mQualityTask.vue +++ b/client/src/views/ability/mQualityTask.vue @@ -289,11 +289,11 @@ label-position="right" :rules="rule" > - + - + - - + + + + + + + - + - + - - + + + + + + + - @@ -780,7 +786,7 @@ }, qualiForm: { name: "", - type: "", + type: "CMA", grade: "", scope: "", level: "", @@ -823,9 +829,8 @@ fieldList2: [], atypeOptions: [], afieldOptions: [],//领域 - gradeOptions: [ - {id: 10, name: '国家级'}, {id: 20, name: '省级'}, {id: 30, name: '市级'} - ],//等级 + gradeOptions: [{id: 10, name: '国家级'}, {id: 20, name: '省级'}, {id: 30, name: '市级'}],//等级 + gradeOptions1: [{id: 40, name: '实验室'}, {id: 50, name: '检验机构'}],//等级 qtaskName: "", atype_name: "", afield_name: "", @@ -1019,10 +1024,13 @@ }, //更改资质类型 qualiTypeChange() { + this.qualiForm.grade = ''; + this.qualiForm.level = ''; if (this.qualiForm.type === 'OTHER') { - this.qualiForm.grade = ''; this.qualiForm.city = ''; this.qualiForm.province = ''; + }else{ + this.citys=[]; } }, //编辑资质 diff --git a/client/src/views/ability/qualityTaskDo.vue b/client/src/views/ability/qualityTaskDo.vue index 0d64d30..b91d6f2 100644 --- a/client/src/views/ability/qualityTaskDo.vue +++ b/client/src/views/ability/qualityTaskDo.vue @@ -397,7 +397,7 @@ }, checkPermission, getQtaskDept() { - qtaskDetail({qtask: this.qtaskId}).then((res) => { + qtaskDetail({page:1,page_size:9999,qtask: this.qtaskId}).then((res) => { this.qtaskDepts = res.data.results; this.qtask = res.data.results[0].qtask_; }); diff --git a/client/src/views/ability/quliShow.vue b/client/src/views/ability/quliShow.vue index fa11765..2e9269f 100644 --- a/client/src/views/ability/quliShow.vue +++ b/client/src/views/ability/quliShow.vue @@ -10,15 +10,17 @@ {{ data.name }} - + {{ data.type }} - + 国家级 省级 市级 + 实验室 + 检验机构 - + {{ data.level }} @@ -54,15 +56,17 @@ {{ formData.name }} - + {{ formData.type }} - + 国家级 省级 市级 + 实验室 + 检验机构 - + {{ formData.level }} @@ -97,15 +101,17 @@ {{ formData2.name }} - + {{ formData2.type }} - + 国家级 省级 市级 + 实验室 + 检验机构 - + {{ formData2.level }}