|
|
@@ -35,6 +35,23 @@
|
|
35
|
35
|
<el-option :label="$t('diseaseTreatment.status.offline')" :value="2" />
|
|
36
|
36
|
</el-select>
|
|
37
|
37
|
</el-form-item>
|
|
|
38
|
+ <el-form-item v-if="activeTab === 'vet'" prop="townDeptId">
|
|
|
39
|
+ <template slot="label">{{ dtT("queryTown") }}</template>
|
|
|
40
|
+ <el-select
|
|
|
41
|
+ v-model="queryParams.townDeptId"
|
|
|
42
|
+ :placeholder="dtCommon('pleaseSelect')"
|
|
|
43
|
+ clearable
|
|
|
44
|
+ filterable
|
|
|
45
|
+ style="width: 180px"
|
|
|
46
|
+ >
|
|
|
47
|
+ <el-option
|
|
|
48
|
+ v-for="item in townOptions"
|
|
|
49
|
+ :key="'q-town-' + item.deptId"
|
|
|
50
|
+ :label="item.deptName"
|
|
|
51
|
+ :value="item.deptId"
|
|
|
52
|
+ />
|
|
|
53
|
+ </el-select>
|
|
|
54
|
+ </el-form-item>
|
|
38
|
55
|
<el-form-item>
|
|
39
|
56
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ dtCommon("search") }}</el-button>
|
|
40
|
57
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ dtCommon("reset") }}</el-button>
|
|
|
@@ -85,6 +102,7 @@
|
|
85
|
102
|
<el-table-column :label="dtT('colResourceName')" prop="resourceName" align="center" min-width="110" :show-overflow-tooltip="true" />
|
|
86
|
103
|
<el-table-column :label="dtT('colIntro')" prop="introduction" align="center" min-width="140" :show-overflow-tooltip="true" />
|
|
87
|
104
|
<el-table-column v-if="showColContact" :label="dtT('colContact')" prop="contactPhone" align="center" width="120" />
|
|
|
105
|
+ <el-table-column v-if="showColTown" :label="dtT('colTown')" prop="townName" align="center" min-width="110" :show-overflow-tooltip="true" />
|
|
88
|
106
|
<el-table-column v-if="showColAffiliated" :label="dtT('colAffiliatedUnit')" prop="affiliatedUnit" align="center" min-width="110" :show-overflow-tooltip="true" />
|
|
89
|
107
|
<el-table-column v-if="showColAddress" :label="dtT('colDetailAddress')" prop="detailAddress" align="center" min-width="120" :show-overflow-tooltip="true" />
|
|
90
|
108
|
<el-table-column v-if="activeTab === 'org'" :label="dtT('colOrgLevel')" align="center" width="100">
|
|
|
@@ -528,7 +546,8 @@ export default {
|
|
528
|
546
|
pageSize: 20,
|
|
529
|
547
|
resourceType: RESOURCE_TYPE_CODE.VET,
|
|
530
|
548
|
resourceName: undefined,
|
|
531
|
|
- publishStatus: undefined
|
|
|
549
|
+ publishStatus: undefined,
|
|
|
550
|
+ townDeptId: undefined
|
|
532
|
551
|
},
|
|
533
|
552
|
form: {},
|
|
534
|
553
|
imageFileExts: ["jpg", "jpeg", "png"],
|
|
|
@@ -551,6 +570,9 @@ export default {
|
|
551
|
570
|
showColContact() {
|
|
552
|
571
|
return this.activeTab !== "equipment"
|
|
553
|
572
|
},
|
|
|
573
|
+ showColTown() {
|
|
|
574
|
+ return this.activeTab === "vet"
|
|
|
575
|
+ },
|
|
554
|
576
|
showColAffiliated() {
|
|
555
|
577
|
return this.activeTab === "vet" || this.activeTab === "team" || this.activeTab === "equipment"
|
|
556
|
578
|
},
|
|
|
@@ -802,6 +824,9 @@ export default {
|
|
802
|
824
|
handleTabClick() {
|
|
803
|
825
|
this.queryParams.resourceType = TAB_TYPE_MAP[this.activeTab]
|
|
804
|
826
|
this.queryParams.pageNum = 1
|
|
|
827
|
+ if (this.activeTab !== "vet") {
|
|
|
828
|
+ this.queryParams.townDeptId = undefined
|
|
|
829
|
+ }
|
|
805
|
830
|
this.getList()
|
|
806
|
831
|
},
|
|
807
|
832
|
handleQueryTypeChange(val) {
|
|
|
@@ -810,6 +835,9 @@ export default {
|
|
810
|
835
|
if (tab) {
|
|
811
|
836
|
this.activeTab = tab
|
|
812
|
837
|
}
|
|
|
838
|
+ if (key !== RESOURCE_TYPE_CODE.VET) {
|
|
|
839
|
+ this.queryParams.townDeptId = undefined
|
|
|
840
|
+ }
|
|
813
|
841
|
this.handleQuery()
|
|
814
|
842
|
},
|
|
815
|
843
|
normalizeIntList(val) {
|
|
|
@@ -980,6 +1008,7 @@ export default {
|
|
980
|
1008
|
resetQuery() {
|
|
981
|
1009
|
this.queryParams.resourceName = undefined
|
|
982
|
1010
|
this.queryParams.publishStatus = undefined
|
|
|
1011
|
+ this.queryParams.townDeptId = undefined
|
|
983
|
1012
|
this.queryParams.resourceType = TAB_TYPE_MAP[this.activeTab]
|
|
984
|
1013
|
this.resetForm("queryForm")
|
|
985
|
1014
|
this.handleQuery()
|