diff --git a/packageRc/pages/policy/policyList.vue b/packageRc/pages/policy/policyList.vue index 64aba58..8b1aaed 100644 --- a/packageRc/pages/policy/policyList.vue +++ b/packageRc/pages/policy/policyList.vue @@ -6,16 +6,12 @@ - 共 {{ total }} 条 - @@ -52,7 +48,6 @@ import { getPolicyList } from "@/packageRc/apiRc/policy"; }, data() { return { - checkData: [], queryParams: { pageNum: 1, pageSize: 10, @@ -63,12 +58,8 @@ import { getPolicyList } from "@/packageRc/apiRc/policy"; loading: false, } }, - onLoad() { - this.getCheckData() - }, onLoad(options) { this.queryParams.zclx = options.zclx - this.getCheckData(options.zclx); }, onShow() { this.search(); @@ -79,64 +70,10 @@ import { getPolicyList } from "@/packageRc/apiRc/policy"; url: `/packageRc/pages/policy/policyDetail?id=${item.id}` }) }, - getDictLabel(value, list) { - if (list) { - let arr = list.filter(ele => ele.dictValue == value) - if (arr.length) { - return arr[0].dictLabel - } else { - return '--' - } - } - }, - async getCheckData(zclx) { - let workExperienceYears - await this.$getDict('qcjy_gznx').then(res => { - workExperienceYears = res.data - }) - await this.$getDict('qcjy_xqlc').then(res => { - this.currentStatusList = res.data; - console.log(res.data) - }) - this.checkData = [ - { - name: "需求类型", - type: "demandType", - data: [{dictLabel: '求职需求', dictValue: '1'},{dictLabel: '创业需求', dictValue: '3'},{dictLabel: '培训需求', dictValue: '4'},{dictLabel: '其他需求', dictValue: '5'}], - activeIndex: 0, - }, - { - name: "需求状态", - type: "currentStatus", - data: [{ - dictLabel: '全部', - dictValue: '' - }].concat(this.currentStatusList), - activeIndex: 0, - }, - // { - // name: "工作经验", - // type: "workExperienceYears", - // data: [{dictLabel: '全部', dictValue: ''}].concat(workExperienceYears), - // activeIndex: 0, - // }, - - ]; - }, - popupSearch(queryParams) { - queryParams.forEach((item, index) => { - if (item.data[item.activeIndex].dictLabel == "全部") { - this.queryParams[item.type] = ""; - } else { - this.queryParams[item.type] = item.data[item.activeIndex].dictValue; - } - }); - this.search() - }, search() { this.showMorePage = true; this.queryParams.pageNum = 1; - this.queryParams.pageSize = 10; + this.queryParams.pageSize = 20; this.tableData = []; this.total = 0; this.getList();