代码更新
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
placeholder="区域类型"
|
placeholder="区域类型"
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
@change="getPointStatusAndTypeList"
|
@change="getPointStatusAndTypeList(query.region_id, 1)"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in regionList"
|
v-for="item in regionList"
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
v-model="form.region_id"
|
v-model="form.region_id"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
style="width: 370px;"
|
style="width: 370px;"
|
||||||
@change="getPointStatusAndTypeList"
|
@change="getPointStatusAndTypeList(form.region_id, 2)"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in regionList"
|
v-for="item in regionList"
|
||||||
@@ -360,7 +360,9 @@ export default {
|
|||||||
syncLoading: false,
|
syncLoading: false,
|
||||||
invtypelist: [],
|
invtypelist: [],
|
||||||
pointStatusList: [],
|
pointStatusList: [],
|
||||||
|
pointStatusDialogList: [],
|
||||||
pointTypesList: [],
|
pointTypesList: [],
|
||||||
|
pointTypesDialogList: [],
|
||||||
options: [],
|
options: [],
|
||||||
regionList: [],
|
regionList: [],
|
||||||
permission: {},
|
permission: {},
|
||||||
@@ -396,7 +398,7 @@ export default {
|
|||||||
},
|
},
|
||||||
[CRUD.HOOK.afterToCU]() {
|
[CRUD.HOOK.afterToCU]() {
|
||||||
if (this.form.region_id) {
|
if (this.form.region_id) {
|
||||||
this.getPointStatusAndTypeList(this.form.region_id)
|
this.getPointStatusAndTypeList(this.form.region_id, 2)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hand(value) {
|
hand(value) {
|
||||||
@@ -424,21 +426,25 @@ export default {
|
|||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getPointStatusAndTypeList(id) {
|
getPointStatusAndTypeList(id, flag) {
|
||||||
if (id) {
|
if (id) {
|
||||||
this.getPointStatusList(id)
|
this.getPointStatusList(id, flag)
|
||||||
this.getPointTypeList(id)
|
this.getPointTypeList(id, flag)
|
||||||
this.crud.toQuery()
|
|
||||||
}
|
}
|
||||||
|
if (flag === 1) { this.crud.toQuery() }
|
||||||
},
|
},
|
||||||
getPointStatusList(id) {
|
getPointStatusList(id, flag) {
|
||||||
crudRegion.getPointStatusSelectById(id).then(res => {
|
crudRegion.getPointStatusSelectById(id).then(res => {
|
||||||
this.pointStatusList = res
|
if (flag === 1) {
|
||||||
|
this.pointStatusList = res
|
||||||
|
} else {
|
||||||
|
this.pointStatusDialogList = res
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getPointTypeList(id) {
|
getPointTypeList(id, flag) {
|
||||||
crudRegion.getPointTypeSelectById(id).then(res => {
|
crudRegion.getPointTypeSelectById(id).then(res => {
|
||||||
this.pointTypesList = res
|
if (flag === 1) { this.pointTypesList = res } else { this.pointTypesDialogList = res }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
changeUsed(data, flag) { // 更改启用状态
|
changeUsed(data, flag) { // 更改启用状态
|
||||||
|
|||||||
@@ -93,6 +93,8 @@ const defaultForm = {
|
|||||||
region_code: null,
|
region_code: null,
|
||||||
region_name: null,
|
region_name: null,
|
||||||
remark: null,
|
remark: null,
|
||||||
|
point_type_explain: null,
|
||||||
|
point_status_explain: null,
|
||||||
create_id: null,
|
create_id: null,
|
||||||
create_name: null,
|
create_name: null,
|
||||||
create_time: null,
|
create_time: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user