diff --git a/pages/workSpace/operation/operationCreate.vue b/pages/workSpace/operation/operationCreate.vue index 4685c59..7d163b6 100644 --- a/pages/workSpace/operation/operationCreate.vue +++ b/pages/workSpace/operation/operationCreate.vue @@ -181,8 +181,9 @@ } }, onShow() { - this.getdept(); this.range = []; + this.getdept(); + this.getRange(); }, methods: { showPicker() { @@ -310,7 +311,20 @@ 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() { if (!nonNullCheck(this.formData.name)) {