This commit is contained in:
parent
4375778c3b
commit
ff0a680f4c
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue