Commit 29bc4b39 authored by liaoxingda's avatar liaoxingda

修改类型

parent 15f7f112
...@@ -14,15 +14,17 @@ ...@@ -14,15 +14,17 @@
<div class="title"> <div class="title">
<span>请选择经营类型</span> <span>请选择经营类型</span>
<el-input v-model="typeSearch" placeholder="请输入" @input="getTypeSearch()"></el-input> <el-input v-model="typeSearch" placeholder="请输入" @input="getTypeSearch()"></el-input>
<div class="typeList"> <div class="typeList" v-if="typeListShow && typeListSearch.length > 0">
<div class="typeRows"> <template v-for="item in typeListSearch">
<span class="typeTitle">外观</span> <template v-for="itemChild in item.children">
<span class="typeParent">1>2</span> <template v-for="itemChildThree in itemChild.children">
</div> <div class="typeRows" @click="getCatIdName(itemChildThree.name,itemChildThree.catId)">
<div class="typeRows"> <span class="typeTitle">{{itemChildThree.name}}</span>
<span class="typeTitle">外观</span> <span class="typeParent">{{item.name}}>{{itemChild.name}}</span>
<span class="typeParent">1>2</span>
</div> </div>
</template>
</template>
</template>
</div> </div>
</div> </div>
<div class="content"> <div class="content">
...@@ -340,9 +342,11 @@ ...@@ -340,9 +342,11 @@
timer: null, timer: null,
activeName: '', activeName: '',
typeList: [], typeList: [],
typeListSearch:[],
catIdName: '', catIdName: '',
filePlaceCodeList: '', filePlaceCodeList: '',
typeSearch:'', typeSearch: '',
typeListShow:false
}; };
}, },
computed: { computed: {
...@@ -387,7 +391,8 @@ ...@@ -387,7 +391,8 @@
}, 1000); }, 1000);
} }
let param = { let param = {
phone: this.form.phone phone: this.form.phone,
type:0
} }
checkUser(param).then(res => { checkUser(param).then(res => {
//if (res.code == 200) { //if (res.code == 200) {
...@@ -453,8 +458,8 @@ ...@@ -453,8 +458,8 @@
getCategoryList(param).then(res => { getCategoryList(param).then(res => {
if (res.code == 200) { if (res.code == 200) {
console.log(res) console.log(res)
this.typeList = res.data.data this.typeList = res.data
this.activeName = res.data.data[0].children[0].name this.activeName = res.data[0].children[0].name
console.log(this.typeList) console.log(this.typeList)
} }
}) })
...@@ -542,9 +547,12 @@ ...@@ -542,9 +547,12 @@
window.open(word, '_blank') window.open(word, '_blank')
}, },
//获取选中类型名称 //获取选中类型名称
getCatIdName(val) { getCatIdName(val, catId='') {
console.log(val) console.log(val)
this.catIdName = val this.catIdName = val
if (catId) {
this.ruleForm.catId = catId
}
}, },
//获取地区 //获取地区
addressListfn() { addressListfn() {
...@@ -605,7 +613,10 @@ ...@@ -605,7 +613,10 @@
} }
getCategoryList(param).then(res => { getCategoryList(param).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.typeListShow = true
this.typeListSearch = res.data
} }
}) })
} }
}, },
...@@ -1153,18 +1164,22 @@ ...@@ -1153,18 +1164,22 @@
width: 212px; width: 212px;
box-sizing: border-box; box-sizing: border-box;
z-index: 9; z-index: 9;
display:none; height: 200px;
overflow-y: auto;
.typeRows { .typeRows {
padding: 4px 16px; padding: 4px 16px;
border-bottom: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
cursor: pointer;
span { span {
width: 100%; width: 100%;
} }
/* /*
span:first-child { span:first-child {
margin-bottom: 2px; margin-bottom: 2px;
}*/ }*/
...@@ -1173,6 +1188,10 @@ ...@@ -1173,6 +1188,10 @@
color: #C0C4CC; color: #C0C4CC;
} }
} }
.typeRows:hover {
background: #eeeeee;
}
} }
} }
......
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