| | |
| | | // }, |
| | | { |
| | | label: "所属辖区", |
| | | prop: "jurisdiction", |
| | | // hide: true, |
| | | searchLabelWidth: 80, |
| | | // search: true, |
| | | searchSpan: 4, |
| | | overHidden: true, |
| | | labelWidth: 138, |
| | | type: "tree", |
| | | dicUrl: "/api/jurisdiction/lazy-tree", |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | | }, |
| | | checkStrictly: true, |
| | | slot: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | | message: "请选择所属辖区", |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | prop: "dispatcherUnitName", |
| | | }, |
| | | // { |
| | | // label: "所属辖区", |
| | |
| | | }, |
| | | created() { |
| | | var that = this; |
| | | // console.log(this.form); |
| | | this.departmentids = { |
| | | deptId: this.form.departmentid, |
| | | }; |
| | |
| | | this.serviceOnLoad(this.servicePage, this.serviceQuery); |
| | | }, |
| | | serviceOnLoad(page, params = {}) { |
| | | // console.log(this.form.departmentid, "serviceData"); |
| | | this.serviceLoading = true; |
| | | params = { |
| | | ...params, |
| | | ...this.departmentids, |
| | | }; |
| | | // console.log(params); |
| | | getdatas( |
| | | page.currentPage, |
| | | page.pageSize, |
| | |
| | | |
| | | this.servicePage.total = data.total; |
| | | this.serviceData = data.records; |
| | | // console.log(this.serviceData, "this.serviceData"); |
| | | this.serviceLoading = false; |
| | | this.$refs.serviceCrud.refreshTable(); |
| | | this.$refs.serviceCrud.doLayout(); |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
| | | </style> |