diff --git a/src/views/Basic/Authority/depend/permissions.vue b/src/views/Basic/Authority/depend/permissions.vue index 9205743..e520a14 100644 --- a/src/views/Basic/Authority/depend/permissions.vue +++ b/src/views/Basic/Authority/depend/permissions.vue @@ -90,6 +90,7 @@ export default { halfChecked: [], }, selectedKeys: [], + activeKeys: [], menus: [], //页面菜单 actionsList: [], //操作 actions: { @@ -216,13 +217,15 @@ export default { this.expandedKeys = e; }, onSelect(selectedKeys, info) { - this.selectedKeys = selectedKeys; + if(selectedKeys.length != 0) { + this.selectedKeys = selectedKeys; + } getActions({ roleId: this.roleId, menusId: this.selectedKeys[0] }).then( - (res) => { - this.actionsList = res.data; - this.actions.show = true; - } - ); + (res) => { + this.actionsList = res.data; + this.actions.show = true; + } + ); }, onChange(e, id) { changeActions({ diff --git a/src/views/Basic/WorkOrder/addWorkOrder.vue b/src/views/Basic/WorkOrder/addWorkOrder.vue index c884288..2dba6a9 100644 --- a/src/views/Basic/WorkOrder/addWorkOrder.vue +++ b/src/views/Basic/WorkOrder/addWorkOrder.vue @@ -30,11 +30,13 @@ - + + + @@ -144,6 +146,7 @@ export default { options, applicantIds: [], departmentIds: [], + casVal:[] }; }, props: { @@ -221,7 +224,7 @@ export default { }, //选择房屋后的回调 getAppName(val) { - form.applicantId = undefined; + this.form.applicantId = undefined; findTenantByEstateId({estateId: val}).then(res => { let data = res.data; this.applicantIds = data; @@ -233,6 +236,12 @@ export default { let data = res.data.rows; this.departmentIds = data }) + }, + //选择房屋 + chooseHouse(val) { + let v = val; + let index = val.length + this.form.estateId = v[index-1] } }, watch: { diff --git a/src/views/Basic/WorkOrder/form.js b/src/views/Basic/WorkOrder/form.js index 8c9f259..d6c8f07 100644 --- a/src/views/Basic/WorkOrder/form.js +++ b/src/views/Basic/WorkOrder/form.js @@ -1,6 +1,7 @@ import {houseList} from "@/api/basic/estate"; import {departmentList} from "@/api/basic/department" import {getAllWorkOrderType} from "@/api/basic/Workorder" +import {findEstateCascade} from "@/api/basic/estate" let applicantIds = [] let estateIds = [] @@ -35,14 +36,21 @@ departmentList().then(res => { }); }) -houseList({pageNum: 1,size: 100000}).then(res => { - let data = res.data.rows; +// houseList({pageNum: 1,size: 100000}).then(res => { +// let data = res.data.rows; +// data.forEach(ele => { +// let obj = { +// id: ele.id, +// name: ele.manageUnitName+'/'+ele.floorLocation+'楼/'+ele.name +// }; +// estateIds.push(obj); +// }) +// }) + +findEstateCascade().then(res => { + let data = res.data; data.forEach(ele => { - let obj = { - id: ele.id, - name: ele.manageUnitName+'/'+ele.floorLocation+'楼/'+ele.name - }; - estateIds.push(obj); + estateIds.push(ele); }) }) diff --git a/src/views/Layout/index.vue b/src/views/Layout/index.vue index 7c93c81..392f50a 100644 --- a/src/views/Layout/index.vue +++ b/src/views/Layout/index.vue @@ -23,6 +23,7 @@ admin +
diff --git a/src/views/Payment/BillManage/_payInfo/depend/config.js b/src/views/Payment/BillManage/_payInfo/depend/config.js index e14af9a..971d110 100644 --- a/src/views/Payment/BillManage/_payInfo/depend/config.js +++ b/src/views/Payment/BillManage/_payInfo/depend/config.js @@ -2,9 +2,9 @@ export const formItem = [ { type: 'select', label:'账单类型', - prop:'', + prop:'type', option:[{ id:1,name:'手动生成'},{ id:2,name:'自动生成'}], - placeholder:'请选择' + placeholder:'请选择账单类型' }, ] export const columns = [ diff --git a/src/views/Payment/BillManage/_payInfo/index.vue b/src/views/Payment/BillManage/_payInfo/index.vue index 0212501..1af7ca3 100644 --- a/src/views/Payment/BillManage/_payInfo/index.vue +++ b/src/views/Payment/BillManage/_payInfo/index.vue @@ -1,7 +1,34 @@