Commit e7ce7c84 authored by 王晓旭's avatar 王晓旭

评价报表增添大厅和部门筛选项

parent 0ec2dd4a
...@@ -13,6 +13,18 @@ ...@@ -13,6 +13,18 @@
</div> </div>
<span> <span>
<a-space> <a-space>
<a-select v-model="hallid">
<a-select-option value=""> 全部大厅 </a-select-option>
<a-select-option v-for="item in datingList" :key="item.id" :value="item.id">
{{ item.hallName }}
</a-select-option>
</a-select>
<a-select v-model="sectionid">
<a-select-option value=""> 全部部门 </a-select-option>
<a-select-option v-for="item in bumenList" :key="item.id" :value="item.id">
{{ item.name }}
</a-select-option>
</a-select>
<a-select v-model="evaChoose" placeholder="全部评价" mode="multiple"> <a-select v-model="evaChoose" placeholder="全部评价" mode="multiple">
<a-select-option v-for="item in optonList" :key="item.id" :value="item.id">{{ item.name }}</a-select-option> <a-select-option v-for="item in optonList" :key="item.id" :value="item.id">{{ item.name }}</a-select-option>
</a-select> </a-select>
...@@ -62,6 +74,8 @@ import table from "@/mixins/table"; ...@@ -62,6 +74,8 @@ import table from "@/mixins/table";
import { export2Excel } from "@/utils/js/exportExcel"; import { export2Excel } from "@/utils/js/exportExcel";
import HandlingDetails from "./components/HandlingDetails.vue"; import HandlingDetails from "./components/HandlingDetails.vue";
import { import {
getDatingList,
getBumenList,
getOptonList, getOptonList,
getEvaList, getEvaList,
getEvaData, getEvaData,
...@@ -219,12 +233,20 @@ export default { ...@@ -219,12 +233,20 @@ export default {
"pjxt", "pjxt",
"pj_name", "pj_name",
], ],
// 大厅列表
datingList:[],
// 部门列表
bumenList:[],
hallid:'',
sectionid:''
}; };
}, },
components: { components: {
HandlingDetails, HandlingDetails,
}, },
created() { created() {
this.getDatingListArr();
this.getBumenListArr();
this.togetevalist(); this.togetevalist();
}, },
mounted() { mounted() {
...@@ -235,6 +257,18 @@ export default { ...@@ -235,6 +257,18 @@ export default {
}); });
}, },
methods: { methods: {
// 获取大厅列表
async getDatingListArr() {
await getDatingList({ page: 1, size: -1 }).then((res) => {
this.datingList = res.data.data;
});
},
// // 获取部门列表
async getBumenListArr() {
await getBumenList({ page: 1, size: -1 }).then((res) => {
this.bumenList = res.data.data;
});
},
// 重置 // 重置
clearnAllChoose() { clearnAllChoose() {
this.evaChoose = []; this.evaChoose = [];
...@@ -303,6 +337,8 @@ export default { ...@@ -303,6 +337,8 @@ export default {
pjxt, pjxt,
time: this.BegindAndEndTime, time: this.BegindAndEndTime,
info: this.searchName, info: this.searchName,
hallid:this.hallid,
sectionid:this.sectionid,
...search, ...search,
}); });
if (res.code == 1) { if (res.code == 1) {
......
...@@ -13,6 +13,18 @@ ...@@ -13,6 +13,18 @@
</div> </div>
<span> <span>
<a-space> <a-space>
<a-select v-model="hallid">
<a-select-option value=""> 全部大厅 </a-select-option>
<a-select-option v-for="item in datingList" :key="item.id" :value="item.id">
{{ item.hallName }}
</a-select-option>
</a-select>
<a-select v-model="sectionid">
<a-select-option value=""> 全部部门 </a-select-option>
<a-select-option v-for="item in bumenList" :key="item.id" :value="item.id">
{{ item.name }}
</a-select-option>
</a-select>
<a-select v-model="evaChoose" placeholder="全部评价" mode="multiple"> <a-select v-model="evaChoose" placeholder="全部评价" mode="multiple">
<a-select-option v-for="item in optonList" :key="item.id" :value="item.id">{{ item.name }}</a-select-option> <a-select-option v-for="item in optonList" :key="item.id" :value="item.id">{{ item.name }}</a-select-option>
</a-select> </a-select>
...@@ -62,6 +74,8 @@ import { export2Excel } from "@/utils/js/exportExcel"; ...@@ -62,6 +74,8 @@ import { export2Excel } from "@/utils/js/exportExcel";
import table from "@/mixins/table"; import table from "@/mixins/table";
import HandlingDetails from "./components/HandlingDetails.vue"; import HandlingDetails from "./components/HandlingDetails.vue";
import { import {
getDatingList,
getBumenList,
getOptonList, getOptonList,
getEvaList, getEvaList,
getEvaData, getEvaData,
...@@ -219,17 +233,37 @@ export default { ...@@ -219,17 +233,37 @@ export default {
"pjxt", "pjxt",
"pj_name", "pj_name",
], ],
// 大厅列表
datingList:[],
// 部门列表
bumenList:[],
hallid:'',
sectionid:''
}; };
}, },
components: { components: {
HandlingDetails, HandlingDetails,
}, },
created() { created() {
this.getDatingListArr();
this.getBumenListArr();
this.togetevalist(); this.togetevalist();
this.getOptonList(); this.getOptonList();
}, },
methods: { methods: {
// 获取大厅列表
async getDatingListArr() {
await getDatingList({ page: 1, size: -1 }).then((res) => {
this.datingList = res.data.data;
});
},
// // 获取部门列表
async getBumenListArr() {
await getBumenList({ page: 1, size: -1 }).then((res) => {
this.bumenList = res.data.data;
});
},
// 重置 // 重置
clearnAllChoose() { clearnAllChoose() {
this.evaChoose = []; this.evaChoose = [];
...@@ -305,6 +339,8 @@ export default { ...@@ -305,6 +339,8 @@ export default {
pjxt, pjxt,
time: this.BegindAndEndTime, time: this.BegindAndEndTime,
info: this.searchName, info: this.searchName,
hallid:this.hallid,
sectionid:this.sectionid,
...search, ...search,
}); });
if (res.code == 1) { if (res.code == 1) {
......
...@@ -13,6 +13,18 @@ ...@@ -13,6 +13,18 @@
</div> </div>
<span> <span>
<a-space> <a-space>
<a-select v-model="hallid">
<a-select-option value=""> 全部大厅 </a-select-option>
<a-select-option v-for="item in datingList" :key="item.id" :value="item.id">
{{ item.hallName }}
</a-select-option>
</a-select>
<a-select v-model="sectionid">
<a-select-option value=""> 全部部门 </a-select-option>
<a-select-option v-for="item in bumenList" :key="item.id" :value="item.id">
{{ item.name }}
</a-select-option>
</a-select>
<a-select v-model="evaChoose" placeholder="全部评价" mode="multiple"> <a-select v-model="evaChoose" placeholder="全部评价" mode="multiple">
<a-select-option v-for="item in optonList" :key="item.id" :value="item.id">{{ item.name }}</a-select-option> <a-select-option v-for="item in optonList" :key="item.id" :value="item.id">{{ item.name }}</a-select-option>
</a-select> </a-select>
...@@ -63,6 +75,8 @@ import table from "@/mixins/table"; ...@@ -63,6 +75,8 @@ import table from "@/mixins/table";
import { export2Excel } from "@/utils/js/exportExcel"; import { export2Excel } from "@/utils/js/exportExcel";
import HandlingDetails from "./components/HandlingDetails.vue"; import HandlingDetails from "./components/HandlingDetails.vue";
import { import {
getDatingList,
getBumenList,
getOptonList, getOptonList,
getEvaList, getEvaList,
getEvaData, getEvaData,
...@@ -219,6 +233,10 @@ export default { ...@@ -219,6 +233,10 @@ export default {
"pjxt", "pjxt",
"pj_name", "pj_name",
], ],
datingList:[],
bumenList:[],
hallid:'',
sectionid:''
}; };
}, },
components: { components: {
...@@ -226,10 +244,24 @@ export default { ...@@ -226,10 +244,24 @@ export default {
}, },
created() { created() {
this.getDatingListArr();
this.getBumenListArr();
this.getOptonList(); this.getOptonList();
this.togetevalist(); this.togetevalist();
}, },
methods: { methods: {
// 获取大厅列表
async getDatingListArr() {
await getDatingList({ page: 1, size: -1 }).then((res) => {
this.datingList = res.data.data;
});
},
// 获取部门列表
async getBumenListArr() {
await getBumenList({ page: 1, size: -1 }).then((res) => {
this.bumenList = res.data.data;
});
},
// 重置 // 重置
clearnAllChoose() { clearnAllChoose() {
this.evaChoose = []; this.evaChoose = [];
...@@ -242,6 +274,8 @@ export default { ...@@ -242,6 +274,8 @@ export default {
this.$moment(new Date()).format("YYYY-MM-DD"), this.$moment(new Date()).format("YYYY-MM-DD"),
this.$moment(new Date()).format("YYYY-MM-DD"), this.$moment(new Date()).format("YYYY-MM-DD"),
]; ];
this.sectionid = ''
this.hallid = ''
this.togetevalist(); this.togetevalist();
}, },
// 搜索 // 搜索
...@@ -309,6 +343,8 @@ export default { ...@@ -309,6 +343,8 @@ export default {
pjxt, pjxt,
time: this.BegindAndEndTime, time: this.BegindAndEndTime,
info: this.searchName, info: this.searchName,
hallid:this.hallid,
sectionid:this.sectionid,
...search, ...search,
}); });
if (res.code == 1) { if (res.code == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment