| | |
| | | label: "缴纳社保保安数" |
| | | } |
| | | ], |
| | | search: true, |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | }, |
| | | { |
| | | label: "所属辖区", |
| | | prop: "jurname", |
| | | prop: "jurisdiction", |
| | | searchSpan: 4, |
| | | type: "select", |
| | | // cascaderItem: ["city", "area"], |
| | | // dicUrl: "/api/information/lazyTreeJu", |
| | | // dicMethod:'post', |
| | | props: { |
| | | label: "title", |
| | | value: "value" |
| | | value: "id" |
| | | }, |
| | | // cascaderItem: ["city", "area"], |
| | | // dicUrl:subofficeOptions, |
| | | dicData: this.subOfficeData, |
| | | dicData: [], |
| | | search: true, |
| | | // overHidden: true, |
| | | type: "tree", |
| | | rules: [ |
| | | { |
| | | required: true, |
| | |
| | | getSubOfficeData() { |
| | | lazyTreeJu().then(res => { |
| | | if (res.data.code === 200) { |
| | | this.subOfficeData = res.data.data; |
| | | this.subOfficeValue = this.subOfficeData[0].value || ""; |
| | | console.log(res.data, 99) |
| | | |
| | | this.tableOption.column.forEach(item => { |
| | | |
| | | if (item.label == "所属辖区") { |
| | | item.dicData = res.data.data |
| | | } |
| | | }) |
| | | // this.subOfficeData = res.data.data; |
| | | // this.subOfficeValue = this.subOfficeData[0].value || ""; |
| | | } else { |
| | | this.$message.error(res.msg); |
| | | } |
| | | }); |
| | | }, |
| | | getTableData() { |
| | | selectTb().then(res => { |
| | | let params = { |
| | | jurisdiction: "", |
| | | enterpriseName: "", |
| | | size: 1, |
| | | current: 10 |
| | | }; |
| | | selectTb(params).then(res => { |
| | | if (res.data.code === 200) { |
| | | this.tableData = res.data.data; |
| | | this.loading = false; |
| | |
| | | // } |
| | | }, |
| | | mounted() { |
| | | this.getSubOfficeData(); |
| | | this.getSubOfficeData(); |
| | | this.getTableData(); |
| | | } |
| | | }; |