Commit 475f8b08 authored by shilei's avatar shilei

Merge branch 'sl_dev' into dev

parents 7847c722 7f4d7812
...@@ -26,4 +26,6 @@ export default { ...@@ -26,4 +26,6 @@ export default {
queryInvestInfos: '/postcard/api/investClueInfo/page', queryInvestInfos: '/postcard/api/investClueInfo/page',
// 联系我们列表 // 联系我们列表
queryContacts: '/postcard/api/scSourceInfo/contact', queryContacts: '/postcard/api/scSourceInfo/contact',
// 获取查询条件列表
queryFiltersList: '/postcard/api/sysDictData/listByCodes'
} }
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
deep: true, deep: true,
immediate: true, immediate: true,
handler(obj) { handler(obj) {
if (obj.itemList1) { if (obj?.itemList1) {
this.canChoose = true; this.canChoose = true;
} }
}, },
...@@ -253,7 +253,7 @@ export default { ...@@ -253,7 +253,7 @@ export default {
newList.forEach((res) => { newList.forEach((res) => {
res.child.forEach((item) => { res.child.forEach((item) => {
item.child.forEach((e) => { item.child.forEach((e) => {
arr.push(e.description); arr.push(e.dictLabel);
}); });
}); });
}); });
...@@ -267,7 +267,7 @@ export default { ...@@ -267,7 +267,7 @@ export default {
if (newList.length > 0) { if (newList.length > 0) {
let arr = []; let arr = [];
newList.forEach((item) => { newList.forEach((item) => {
arr.push(item.description); arr.push(item.dictLabel);
}); });
this.menuList[this.selectIndex].showName = arr.toString(); this.menuList[this.selectIndex].showName = arr.toString();
} else { } else {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
: '' : ''
" "
@click.stop="selectLeft(index)" @click.stop="selectLeft(index)"
>{{ item.description }} >{{ item.dictLabel }}
</view> </view>
</scroll-view> </scroll-view>
<scroll-view class="item-middle" scroll-y="true"> <scroll-view class="item-middle" scroll-y="true">
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
@click.stop="selectMiddle(inx)" @click.stop="selectMiddle(inx)"
> >
<view class="item-middle-list-name"> <view class="item-middle-list-name">
{{ mess.description }} {{ mess.dictLabel }}
</view> </view>
<!-- <image <!-- <image
v-if="mess.chooseState" v-if="mess.chooseState"
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
@click.stop="selectRight(mess)" @click.stop="selectRight(mess)"
> >
<view class="item-right-list-name"> <view class="item-right-list-name">
{{ mess.description }} {{ mess.dictLabel }}
</view> </view>
<image <image
v-if="mess.chooseState" v-if="mess.chooseState"
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
: '' : ''
" "
@click.stop="chooseLeft(index)" @click.stop="chooseLeft(index)"
>{{ item.name }} >{{ item.dictLabel }}
</view> </view>
</scroll-view> </scroll-view>
<scroll-view <scroll-view
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
class="item-right-list-name-info" class="item-right-list-name-info"
:style="mess.chooseState ? 'color:' + themeColor : ''" :style="mess.chooseState ? 'color:' + themeColor : ''"
> >
{{ mess.name }} {{ mess.dictLabel }}
</view> </view>
<image <image
v-if="mess.chooseState" v-if="mess.chooseState"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
@click.stop="selectRight(item)" @click.stop="selectRight(item)"
:style="item.chooseState ? 'background: #F2F2F2' : ''" :style="item.chooseState ? 'background: #F2F2F2' : ''"
> >
<view class="item-right-list-name">{{ item.description }} </view> <view class="item-right-list-name">{{ item.dictLabel }} </view>
<image <image
v-if="item.chooseState" v-if="item.chooseState"
class="item-right-list-img" class="item-right-list-img"
......
...@@ -10,11 +10,12 @@ ...@@ -10,11 +10,12 @@
<div> <div>
<slot name="title"> <slot name="title">
<p :style="{ maxWidth: titleWidth }" class="ell2"> <p :style="{ maxWidth: titleWidth }" class="ell2">
<um-texthighlight {{title}}
<!-- <um-texthighlight
:text="title || '--'" :text="title || '--'"
:keyword="keyWords" :keyword="keyWords"
color="#4374EF" color="#4374EF"
></um-texthighlight> ></um-texthighlight> -->
</p> </p>
</slot> </slot>
</div> </div>
......
<template> <template>
<media-card <media-card
:img="areaInfo.imgUrl" :img="areaInfo.imgUrl || ''"
:title="areaInfo.name" :title="areaInfo.name || ''"
:cardId="areaInfo.id" :cardId="areaInfo.id"
@click="toDetail" @click="toDetail"
> >
......
<template> <template>
<media-card <media-card
:img="detail.imgUrl" :img="detail.imgUrl || ''"
:title="detail.name" :title="detail.name || ''"
:keyWords="keyWords" :keyWords="keyWords"
:cardId="detail.id" :cardId="detail.id"
@click="toDetail" @click="toDetail"
...@@ -26,13 +26,16 @@ ...@@ -26,13 +26,16 @@
<script> <script>
import mediaCard from "./card.vue"; import mediaCard from "./card.vue";
export default { export default {
name: "AreaCard",
components: {mediaCard}, components: {mediaCard},
props: { props: {
detail: { detail: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
}, },
keyWords: {
type: String,
default: "",
},
}, },
methods: { methods: {
toDetail() { toDetail() {
......
<template> <template>
<media-card <media-card
:img="parkInfo.imgUrl" :img="parkInfo.imgUrl || ''"
:title="parkInfo.name" :title="parkInfo.name || ''"
:keyWords="keyWords" :keyWords="keyWords"
:cardId="parkInfo.id" :cardId="parkInfo.id"
@click="toDetail" @click="toDetail"
...@@ -40,20 +40,6 @@ export default { ...@@ -40,20 +40,6 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
hideCollect: {
default: false,
},
showUpdateTime: {
default: false,
},
showBtn: {
type: Boolean,
default: false,
},
from: {
type: String,
default: '',
},
}, },
data() { data() {
return { return {
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
<span class="line" v-if="activeBar === index"></span> <span class="line" v-if="activeBar === index"></span>
</view> </view>
</view> </view>
<div style="height: 60rpx"></div>
<div <div
class="flex align-center justify-between" class="flex align-center justify-between"
style="padding: 25rpx 23rpx;background: #fff;position: fixed;top: 60rpx;width: 100vw " style="padding: 25rpx 23rpx;background: #fff;position: fixed;top: 60rpx;width: 100vw "
...@@ -24,6 +23,9 @@ ...@@ -24,6 +23,9 @@
<input <input
placeholder="请输入搜索关键词" placeholder="请输入搜索关键词"
placeholder-style="color: #333" placeholder-style="color: #333"
v-model="searchKey"
@confirm="handleSearch"
confirm-type="search"
/> />
</div> </div>
<div <div
...@@ -46,15 +48,14 @@ ...@@ -46,15 +48,14 @@
</div> </div>
</div> </div>
<dropdown-vue <dropdown-vue
v-if="activeBar != 1"
ref="dropDown" ref="dropDown"
:menuList="menuList" :menuList="$u.deepClone(menuList[activeBar])"
:dataObj="dataObj" :dataObj="$u.deepClone(filterList[activeBar])"
@change="change" @change="change"
themeColor="#4374EF" themeColor="#4374EF"
:top="166" :top="166"
></dropdown-vue> ></dropdown-vue>
<div style="height: 172rpx" :style="{height: activeBar === 1 ? '112rpx': '186rpx'}"></div> <div style="height: 246rpx"></div>
<view class="tab-contant"> <view class="tab-contant">
<view <view
class="media-card" class="media-card"
...@@ -62,22 +63,22 @@ ...@@ -62,22 +63,22 @@
:key="cardInfo.id" :key="cardInfo.id"
@click="toDetail(cardInfo)" @click="toDetail(cardInfo)"
> >
<park-card-vue :detail="cardInfo" v-if="activeBar == 0"></park-card-vue> <park-card-vue :key-words="keyWords" :detail="cardInfo" v-if="activeBar == 0"></park-card-vue>
<land-card-vue :detail="cardInfo" v-if="activeBar == 1"></land-card-vue> <land-card-vue :key-words="keyword" :detail="cardInfo" v-if="activeBar == 1"></land-card-vue>
<carrier-card-vue :detail="cardInfo" v-if="activeBar == 2"></carrier-card-vue> <carrier-card-vue :key-words="keyword" :detail="cardInfo" v-if="activeBar == 2"></carrier-card-vue>
</view> </view>
</view> </view>
<!-- <u-empty <u-empty
icon="/static/img/no-search-result.png" icon="/static/img/empty_list.png"
v-if="dataList.length === 0" v-if="dataList.length === 0"
width="300" width="300"
height="300" height="300"
textSize="26" textSize="26"
text="暂无收藏内容" text="暂无查询内容"
textColor="#BDBDBD" textColor="#BDBDBD"
marginTop="120" marginTop="120"
> >
</u-empty> --> </u-empty>
</view> </view>
</template> </template>
...@@ -106,22 +107,58 @@ export default { ...@@ -106,22 +107,58 @@ export default {
isLoading: true, isLoading: true,
//筛选菜单列表 //筛选菜单列表
menuList: [ menuList: [
{ [
id: 1, {
name: "主导产业", id: 1,
isMultiple: false, //是否多选 name: "级别",
showType: 3, //下拉框类型(1、2、3、4) isMultiple: false, //是否多选
}, showType: 3, //下拉框类型(1、2、3、4)
{ },
id: 2, {
name: "面积", id: 2,
isMultiple: false, //是否多选 name: "面积",
showType: 3, //下拉框类型(1、2、3、4) isMultiple: false, //是否多选
isSingle: true, showType: 3, //下拉框类型(1、2、3、4)
}, isSingle: true,
},
],
[
{
id: 1,
name: "土地类型",
isMultiple: false, //是否多选
showType: 3, //下拉框类型(1、2、3、4)
},
{
id: 2,
name: "面积",
isMultiple: false, //是否多选
showType: 3, //下拉框类型(1、2、3、4)
},
],
[
{
id: 1,
name: "载体类型",
isMultiple: false, //是否多选
showType: 3, //下拉框类型(1、2、3、4)
},
{
id: 2,
name: "建筑结构",
isMultiple: false, //是否多选
showType: 1, //下拉框类型(1、2、3、4)
},
{
id: 3,
name: "面积",
isMultiple: false, //是否多选
showType: 3, //下拉框类型(1、2、3、4)
},
]
], ],
// 筛选项数据 // 筛选项数据
dataObj: { filterList: {
itemList1: [], itemList1: [],
itemList2: [ itemList2: [
], ],
...@@ -137,22 +174,46 @@ export default { ...@@ -137,22 +174,46 @@ export default {
itemList3: [], itemList3: [],
itemList4: [], itemList4: [],
}, },
item1: {}, searchKey: '',
item2: {}, keyWords: ''
item3: {},
}; };
}, },
mounted() { mounted() {
this.getList(); this.getList();
// this.getFilterList("都市圈"); store.dispatch('getFilterEnum').then(() => {
// this.getFilterList("开发区"); this.filterList = [
// this.getFilterList("产业园"); {
itemList1: this.filterEnum.park_level,
itemList2: this.filterEnum.park_area,
},
{
itemList1: this.filterEnum.land_type,
itemList2: this.filterEnum.land_area,
},
{
itemList1: this.filterEnum.carrier_type,
itemList2: this.filterEnum.carrier_construction,
itemList3: this.filterEnum.carrier_area,
}
]
})
}, },
methods: { methods: {
getList() { getList() {
if (!this.haveMore) return; if (!this.haveMore) return;
this.isLoading = true; this.isLoading = true;
let searchKey = {}; let searchCondition = {};
this.keyWords = this.searchKey;
// this.filterChoice.map(item => {
// searchCondition[item.dictType] = item.dictValue;
// })
for(const key in this.filterChoice) {
console.log(key, this.filterChoice, this.filterChoice[key])
if(this.filterChoice[key].length){
searchCondition[this.filterChoice[key][0].dictType] = this.filterChoice[key][0].dictValue;
}
}
searchCondition.name = this.searchKey
this.$fetch({ this.$fetch({
url: this.api, url: this.api,
methods: "post", methods: "post",
...@@ -162,7 +223,7 @@ export default { ...@@ -162,7 +223,7 @@ export default {
data: { data: {
current: this.pageNum, current: this.pageNum,
size: 20, size: 20,
condition: {} condition: searchCondition
}, },
success: (res) => { success: (res) => {
this.isLoading = false; this.isLoading = false;
...@@ -199,6 +260,8 @@ export default { ...@@ -199,6 +260,8 @@ export default {
this.activeBar = tab; this.activeBar = tab;
this.pageNum = 1; this.pageNum = 1;
this.haveMore = true; this.haveMore = true;
this.searchKey = '';
this.keyWords = ''
this.filterChoice = { this.filterChoice = {
itemList1: [], itemList1: [],
itemList2: [], itemList2: [],
...@@ -208,162 +271,16 @@ export default { ...@@ -208,162 +271,16 @@ export default {
switch (tab) { switch (tab) {
case 0: case 0:
this.api = API.parkList; this.api = API.parkList;
this.menuList = [
{
id: 1,
name: "主导产业",
isMultiple: false, //是否多选
showType: 3, //下拉框类型(1、2、3、4)
},
{
id: 2,
name: "面积",
isMultiple: false, //是否多选
showType: 3, //下拉框类型(1、2、3、4)
isSingle: true,
},
// {
// id: 3,
// name: "人口",
// isMultiple: false, //是否多选
// showType: 3, //下拉框类型(1、2、3、4)
// isSingle: true,
// },
// {
// id: 3,
// name: "GDP",
// isMultiple: false, //是否多选
// showType: 3, //下拉框类型(1、2、3、4)
// isSingle: true,
// },
];
this.dataObj = uni.$u.deepClone(this.item1);
break; break;
case 1: case 1:
this.api = API.landList; this.api = API.landList;
// this.menuList = [
// {
// id: 1,
// name: "级别",
// isMultiple: false, //是否多选
// showType: 3, //下拉框类型(1、2、3、4)
// },
// {
// id: 2,
// name: "类型",
// isMultiple: false, //是否多选
// showType: 3, //下拉框类型(1、2、3、4)
// },
// {
// id: 3,
// name: "面积",
// isMultiple: false, //是否多选
// showType: 3, //下拉框类型(1、2、3、4)
// },
// ];
this.dataObj = uni.$u.deepClone(this.item2);
break; break;
case 2: case 2:
this.api = API.carrierList; this.api = API.carrierList;
this.menuList = [
{
id: 1,
name: "载体类型",
isMultiple: false, //是否多选
showType: 3, //下拉框类型(1、2、3、4)
},
{
id: 2,
name: "建筑结构",
isMultiple: false, //是否多选
showType: 1, //下拉框类型(1、2、3、4)
},
{
id: 3,
name: "面积",
isMultiple: false, //是否多选
showType: 3, //下拉框类型(1、2、3、4)
},
];
this.dataObj = uni.$u.deepClone(this.item3);
break; break;
} }
this.getList(); this.getList();
}, },
getFilterList(name) {
this.$fetch({
url: API.filterList + "/" + name,
methods: "get",
success: (res) => {
if (name == "都市圈") {
this.item1.itemList1 = res.industry;
this.item1.itemList2 = [
{
name: "默认排序",
description: "默认排序",
value: "",
},
{
name: "面积由大到小排序",
description: "面积由大到小排序",
value: "desc",
},
{
name: "面积由小到大排序",
description: "面积由小到大排序",
value: "asc",
},
];
this.item1.itemList3 = [
{
name: "默认排序",
description: "默认排序",
value: "",
},
{
name: "人口由多到少排序",
description: "人口由多到少排序",
value: "desc",
},
{
name: "人口由少到多排序",
description: "人口由少到多排序",
value: "asc",
},
];
this.item1.itemList4 = [
{
name: "默认排序",
description: "默认排序",
value: "",
},
{
name: "GDP由大到小排序",
description: "GDP由大到小排序",
value: "desc",
},
{
name: "GDP由小到大排序",
description: "GDP由小到大排序",
value: "asc",
},
];
this.dataObj = uni.$u.deepClone(this.item1);
}
if (name == "开发区") {
this.item2.itemList1 = res.level;
this.item2.itemList2 = res.type;
this.item2.itemList3 = res.area;
}
if (name == "产业园") {
this.item3.itemList1 = res.level;
this.item3.itemList2 = res.industry;
this.item3.itemList3 = res.area;
}
},
});
},
change(e) { change(e) {
console.log("所有选择的条件:", e.chooseInfo); console.log("所有选择的条件:", e.chooseInfo);
this.filterChoice = e.chooseInfo; this.filterChoice = e.chooseInfo;
...@@ -372,10 +289,16 @@ export default { ...@@ -372,10 +289,16 @@ export default {
this.haveMore = true; this.haveMore = true;
this.getList(); this.getList();
}, },
handleSearch() {
this.dataList = [];
this.pageNum = 1;
this.haveMore = true;
this.getList();
}
}, },
computed: { computed: {
refreshCollectionPage() { filterEnum() {
return store.state.refreshCollection; return store.state.filterEnum;
}, },
}, },
watch: { watch: {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</div> </div>
<img class="honor-icon" :class="item.iconClass" :src="item.icon" alt=""> <img class="honor-icon" :class="item.iconClass" :src="item.icon" alt="">
</div> </div>
<div class="honor-item flex flex-column align-center" style="width: 100%;text-align: center;padding-top: 14rpx;background-image: url(/static/img/home/bg10.png)"> <div class="honor-item flex flex-column align-center" style="width: 100%;text-align: center;padding-top: 14rpx;background-image: url(https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng/bg10.png)">
<img src="/static/img/home/icon-home10.png" style="width: 49rpx;height: 45rpx;margin-bottom: 10rpx;flex-shrink: 0;" alt=""> <img src="/static/img/home/icon-home10.png" style="width: 49rpx;height: 45rpx;margin-bottom: 10rpx;flex-shrink: 0;" alt="">
<p>国家生态文明建设示范区</p> <p>国家生态文明建设示范区</p>
</div> </div>
...@@ -80,49 +80,49 @@ export default{ ...@@ -80,49 +80,49 @@ export default{
honorList: [ honorList: [
{ {
icon: '/static/img/home/icon-home1.png', icon: '/static/img/home/icon-home1.png',
bg: '/static/img/home/bg1.png', bg: 'https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng/bg1.png',
name: '全国环境百强县' name: '全国环境百强县'
}, },
{ {
icon: '/static/img/home/icon-home2.png', icon: '/static/img/home/icon-home2.png',
bg: '/static/img/home/bg2.png', bg: 'https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng/bg2.png',
name: '安徽省制造业发展增速十快县' name: '安徽省制造业发展增速十快县'
}, },
{ {
icon: '/static/img/home/icon-home3.png', icon: '/static/img/home/icon-home3.png',
bg: '/static/img/home/bg3.png', bg: 'https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng/bg3.png',
name: '安徽省民营经济发展先进县' name: '安徽省民营经济发展先进县'
}, },
{ {
icon: '/static/img/home/icon-home4.png', icon: '/static/img/home/icon-home4.png',
bg: '/static/img/home/bg4.png', bg: 'https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng/bg4.png',
name: '国家卫生县城' name: '国家卫生县城'
}, },
{ {
icon: '/static/img/home/icon-home5.png', icon: '/static/img/home/icon-home5.png',
bg: '/static/img/home/bg5.png', bg: 'https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng/bg5.png',
name: '中国未来投资热点百佳县' name: '中国未来投资热点百佳县'
}, },
{ {
icon: '/static/img/home/icon-home6.png', icon: '/static/img/home/icon-home6.png',
bg: '/static/img/home/bg6.png', bg: 'https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng/bg6.png',
name: '全国科技进步先进县' name: '全国科技进步先进县'
}, },
{ {
icon: '/static/img/home/icon-home10.png', icon: '/static/img/home/icon-home10.png',
bg: '/static/img/home/bg7.png', bg: 'https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng/bg7.png',
name: '全国交通运输一体化创建示范县', name: '全国交通运输一体化创建示范县',
iconClass: 'w49' iconClass: 'w49'
}, },
{ {
icon: '/static/img/home/icon-home8.png', icon: '/static/img/home/icon-home8.png',
bg: '/static/img/home/bg8.png', bg: 'https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng/bg8.png',
name: '全国电子商务进农村综合示范县', name: '全国电子商务进农村综合示范县',
iconClass: 'w49' iconClass: 'w49'
}, },
{ {
icon: '/static/img/home/icon-home9.png', icon: '/static/img/home/icon-home9.png',
bg: '/static/img/home/bg9.png', bg: 'https://cfld-hw-obs-01.obs.cn-north-4.myhuaweicloud.com/lyy/img/shucheng/bg9.png',
name: '安徽省质量认证示范县', name: '安徽省质量认证示范县',
iconClass: 'w49' iconClass: 'w49'
}, },
...@@ -178,7 +178,14 @@ export default{ ...@@ -178,7 +178,14 @@ export default{
// this.allowScroll = false // this.allowScroll = false
// } // }
// } // }
} },
// onShareAppMessage() {
// return {
// title: '',
// path: `/pages/index/index`,
// imageUrl: ""
// }
// },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
src/static/img/icon-tab_1.png

749 Bytes | W: | H:

src/static/img/icon-tab_1.png

1.63 KB | W: | H:

src/static/img/icon-tab_1.png
src/static/img/icon-tab_1.png
src/static/img/icon-tab_1.png
src/static/img/icon-tab_1.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_1_active.png

1.86 KB | W: | H:

src/static/img/icon-tab_1_active.png

1.37 KB | W: | H:

src/static/img/icon-tab_1_active.png
src/static/img/icon-tab_1_active.png
src/static/img/icon-tab_1_active.png
src/static/img/icon-tab_1_active.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_2.png

845 Bytes | W: | H:

src/static/img/icon-tab_2.png

1.73 KB | W: | H:

src/static/img/icon-tab_2.png
src/static/img/icon-tab_2.png
src/static/img/icon-tab_2.png
src/static/img/icon-tab_2.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_2_active.png

1.13 KB | W: | H:

src/static/img/icon-tab_2_active.png

1.52 KB | W: | H:

src/static/img/icon-tab_2_active.png
src/static/img/icon-tab_2_active.png
src/static/img/icon-tab_2_active.png
src/static/img/icon-tab_2_active.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_3.png

1.44 KB | W: | H:

src/static/img/icon-tab_3.png

2.85 KB | W: | H:

src/static/img/icon-tab_3.png
src/static/img/icon-tab_3.png
src/static/img/icon-tab_3.png
src/static/img/icon-tab_3.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_3_active.png

1.49 KB | W: | H:

src/static/img/icon-tab_3_active.png

2.54 KB | W: | H:

src/static/img/icon-tab_3_active.png
src/static/img/icon-tab_3_active.png
src/static/img/icon-tab_3_active.png
src/static/img/icon-tab_3_active.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_4.png

1.32 KB | W: | H:

src/static/img/icon-tab_4.png

2.62 KB | W: | H:

src/static/img/icon-tab_4.png
src/static/img/icon-tab_4.png
src/static/img/icon-tab_4.png
src/static/img/icon-tab_4.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_4_active.png

1.35 KB | W: | H:

src/static/img/icon-tab_4_active.png

2.03 KB | W: | H:

src/static/img/icon-tab_4_active.png
src/static/img/icon-tab_4_active.png
src/static/img/icon-tab_4_active.png
src/static/img/icon-tab_4_active.png
  • 2-up
  • Swipe
  • Onion skin
import Vue from 'vue' import Vue from 'vue'
import Vuex from 'vuex' import Vuex from 'vuex'
import fetch from '@/utils/request.js'
import API from "@/api/url";
Vue.use(Vuex) Vue.use(Vuex)
const store = new Vuex.Store({ const store = new Vuex.Store({
state: { state: {
policyList: [], policyList: [],
primaryIndustryList: [] primaryIndustryList: [],
filterEnum: []
},
actions: {
getFilterEnum({commit}) {
const queryStr =
'park_level,park_direction,park_area,park_resources,land_price,industry_policy,development_level,development_type,development_direction,development_area,industry_policy,land_type,land_area,carrier_area,carrier_type,carrier_construction,floor_height,load_bearing,pillar_distance';
return new Promise((resolve, reject) => {
fetch({
url: API.queryFiltersList,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
data: {
code: queryStr
},
success: res => {
commit('setFilterEnum', res)
resolve(res)
}
})
})
}
}, },
mutations: { mutations: {
setPolicyList(state, provider) { setPolicyList(state, provider) {
...@@ -14,6 +39,9 @@ const store = new Vuex.Store({ ...@@ -14,6 +39,9 @@ const store = new Vuex.Store({
}, },
setPrimaryIndustryList(state, provider) { setPrimaryIndustryList(state, provider) {
state.primaryIndustryList = provider state.primaryIndustryList = provider
},
setFilterEnum(state, provider) {
state.filterEnum = provider;
} }
} }
......
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