Browse Source

15.32

develop
zhangjy 4 years ago
parent
commit
8e46d4b3e8
  1. 35
      src/views/houseList/page/FormatInfo.vue
  2. 45
      src/views/sale/index.vue

35
src/views/houseList/page/FormatInfo.vue

@ -191,6 +191,7 @@
<el-select
v-model="ruleForm.largeFormat"
filterable
@change="getYe"
placeholder="请选择"
style="width: 100%"
>
@ -211,11 +212,12 @@
<el-select
v-model="ruleForm.format"
filterable
:disabled="!ruleForm.largeFormat"
placeholder="请选择"
style="width: 100%"
>
<el-option
v-for="item in ye"
v-for="item in smallYe"
:key="item.value"
:label="item.label"
:value="item.value"
@ -555,6 +557,7 @@ export default {
land:{},
wuyeType:[],
Bigye:[],
smallYe:[],
ye:[]
};
},
@ -599,6 +602,24 @@ export default {
// },
},
methods: {
//
getYe(){
if (!this.ruleForm.largeFormat){
return false
}
this.ruleForm.format='';
this.dialogLoad=true;
let name='';
this.Bigye.map(e=>{
if (e.value===this.ruleForm.largeFormat){
name=e.description
}
})
api.getDict(name).then(res=>{
this.smallYe=res.data.data;
this.dialogLoad=false;
})
},
//
info(data) {
//
@ -631,10 +652,22 @@ export default {
},
//
handle(item) {
this.ruleForm={};
this.dialogFormVisible = true;
this.dialogLoad=true;
api.formatById(item.formatId).then(res=>{
this.ruleForm = res.data.data;
if (this.ruleForm.largeFormat){
let name='';
this.Bigye.map(e=>{
if (e.value===this.ruleForm.largeFormat){
name=e.description
}
})
api.getDict(name).then(res=>{
this.smallYe=res.data.data;
})
}
this.dialogLoad=false;
}).catch((e)=>{this.dialogLoad=false;})
},

45
src/views/sale/index.vue

@ -214,6 +214,8 @@
<el-select
v-model="params.largeFormat"
placeholder="请选择大业态"
clearable
@change="getYe"
style="width: 100%"
>
<el-option
@ -231,6 +233,7 @@
<el-select
v-model="params.format"
placeholder="请选择业态"
:disabled="!params.largeFormat"
style="width: 100%"
>
<el-option
@ -438,9 +441,9 @@ export default {
api.getDict('property_types').then(res=>{
this.wuyeType=res.data.data
})
api.getDict('format').then(res=>{
this.ye=res.data.data
})
// api.getDict('format').then(res=>{
// this.ye=res.data.data
// })
api.getDict('largeFormat').then(res=>{
this.Bigye=res.data.data
})
@ -470,6 +473,24 @@ export default {
// },
},
methods: {
//
getYe(){
if (!this.params.largeFormat){
return false
}
this.params.format='';
this.dialogLoad=true;
let name='';
this.Bigye.map(e=>{
if (e.value===this.params.largeFormat){
name=e.description
}
})
api.getDict(name).then(res=>{
this.ye=res.data.data;
this.dialogLoad=false;
})
},
//
submitForm(formName) {
for (let i=0;i<this.nameList.length;i++){
@ -505,6 +526,8 @@ export default {
},
//
handle(item) {
this.ruleForm={};
this.params={}
//
api.getNameList({current:1,size:50}).then(res=>{
if (res.data.data){
@ -515,6 +538,20 @@ export default {
this.dialogLoad=true;
api.getSaleId(item.blockId).then(res=>{
this.ruleForm = res.data.data;
this.ruleForm.propertyType?this.params.propertyType=this.ruleForm.propertyType:false;
this.ruleForm.largeFormat?this.params.largeFormat=this.ruleForm.largeFormat:false;
if (this.params.largeFormat){
let name='';
this.Bigye.map(e=>{
if (e.value===this.params.largeFormat){
name=e.description
}
})
api.getDict(name).then(res=>{
this.ye=res.data.data;
this.ruleForm.format?this.params.format=this.ruleForm.format:false;
})
}
delete this.ruleForm.createDate
this.dialogLoad=false;
}).catch((e)=>{this.dialogLoad=false;})
@ -534,6 +571,7 @@ export default {
Object.assign({
current: page.currentPage,
size: page.pageSize,
statusCd:'0'
})
)
.then((response) => {
@ -558,6 +596,7 @@ export default {
{
current: this.page.currentPage,
size: this.page.pageSize,
statusCd:'0'
},
this.searchForm
);

Loading…
Cancel
Save