This commit is contained in:
shijing 2022-10-13 14:13:25 +08:00
parent 4375778c3b
commit ff0a680f4c
1 changed files with 16 additions and 2 deletions

View File

@ -181,8 +181,9 @@
} }
}, },
onShow() { onShow() {
this.getdept();
this.range = []; this.range = [];
this.getdept();
this.getRange();
}, },
methods: { methods: {
showPicker() { showPicker() {
@ -310,7 +311,20 @@
that.depRange = resetData(res); that.depRange = resetData(res);
}) })
}, },
//
getRange() {
this.$u.api.areaLists({page: 0}).then(res => {
let range = [];
let obj = {};
res.forEach(item => {
obj = {value: null,text: ''};
obj.value = item.id;
obj.text = item.name;
range.push(obj);
})
this.range = range
})
},
/* 参数验证 */ /* 参数验证 */
paramsCheck() { paramsCheck() {
if (!nonNullCheck(this.formData.name)) { if (!nonNullCheck(this.formData.name)) {