Merge branch 'main' of http://124.243.245.42:3000/sdz/ks-app-employment-service
This commit is contained in:
@@ -6,16 +6,12 @@
|
|||||||
<input style="width: 100%;" placeholder="请输入政策名称进行搜索" v-model="queryParams.searchValue" border="none" />
|
<input style="width: 100%;" placeholder="请输入政策名称进行搜索" v-model="queryParams.searchValue" border="none" />
|
||||||
<img src="https://rc.jinan.gov.cn/qcwjyH5/static/images/person/search.png" class="search-icon" @click="search()" />
|
<img src="https://rc.jinan.gov.cn/qcwjyH5/static/images/person/search.png" class="search-icon" @click="search()" />
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="inner"
|
|
||||||
style="width: calc(100% + 64rpx);margin-left: -32rpx;height: 122rpx;position: relative;z-index: 2;">
|
|
||||||
<PopupList :checkData="checkData" @searchCheck="search" ref="PopupList" @popupSearch="popupSearch" />
|
|
||||||
</view> -->
|
|
||||||
<view v-if="total" style="position: relative;padding: 32rpx 0;color: #000;">
|
<view v-if="total" style="position: relative;padding: 32rpx 0;color: #000;">
|
||||||
<!-- <view v-if="total" style="position: relative;padding-bottom: 16px;color: #000;"> -->
|
<!-- <view v-if="total" style="position: relative;padding-bottom: 16px;color: #000;"> -->
|
||||||
<text>共 {{ total }} 条</text>
|
<text>共 {{ total }} 条</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- <scroll-view :scroll-y="true" style="height: calc(100vh - 342rpx);position: relative;z-index: 1;" -->
|
<!-- <scroll-view :scroll-y="true" style="height: calc(100vh - 342rpx);position: relative;z-index: 1;" -->
|
||||||
<scroll-view :scroll-y="true" style="height: calc(100vh - 202rpx);position: relative;z-index: 1;"
|
<scroll-view :scroll-y="true" style="height: calc(100vh - 232rpx);position: relative;z-index: 1;"
|
||||||
@scrolltolower="getBottomList">
|
@scrolltolower="getBottomList">
|
||||||
<view style="margin-bottom: 24rpx;border-radius: 16rpx;" class="policy-list" v-for="(item, index) in tableData" :key="index" @click="goPolicyDetail(item)">
|
<view style="margin-bottom: 24rpx;border-radius: 16rpx;" class="policy-list" v-for="(item, index) in tableData" :key="index" @click="goPolicyDetail(item)">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
@@ -52,7 +48,6 @@ import { getPolicyList } from "@/packageRc/apiRc/policy";
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
checkData: [],
|
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@@ -63,12 +58,8 @@ import { getPolicyList } from "@/packageRc/apiRc/policy";
|
|||||||
loading: false,
|
loading: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
|
||||||
this.getCheckData()
|
|
||||||
},
|
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.queryParams.zclx = options.zclx
|
this.queryParams.zclx = options.zclx
|
||||||
this.getCheckData(options.zclx);
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.search();
|
this.search();
|
||||||
@@ -79,64 +70,10 @@ import { getPolicyList } from "@/packageRc/apiRc/policy";
|
|||||||
url: `/packageRc/pages/policy/policyDetail?id=${item.id}`
|
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() {
|
search() {
|
||||||
this.showMorePage = true;
|
this.showMorePage = true;
|
||||||
this.queryParams.pageNum = 1;
|
this.queryParams.pageNum = 1;
|
||||||
this.queryParams.pageSize = 10;
|
this.queryParams.pageSize = 20;
|
||||||
this.tableData = [];
|
this.tableData = [];
|
||||||
this.total = 0;
|
this.total = 0;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|||||||
Reference in New Issue
Block a user