| | |
| | | <template> |
| | | <div class="certificateTJ"> |
| | | <div |
| | | :class="[ |
| | | 'certificateTJ', |
| | | $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize', |
| | | $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '' |
| | | ]" |
| | | > |
| | | <avue-crud |
| | | class="tablesss" |
| | | :option="option1" |
| | | :data="data1" |
| | | :page.sync="page1" |
| | | :table-loading="loading1" |
| | | @on-load="getPractitionersPageInfo(page1)" |
| | | @on-load="getPractitionersPageInfo" |
| | | @search-change="searchChange" |
| | | @search-reset="searchReset" |
| | | @refresh-change="refreshChange" |
| | |
| | | export default { |
| | | props: ["card"], |
| | | data() { |
| | | var jurisdiction = |
| | | this.card.jurisdiction == "1372091709474910209" |
| | | ? "1372091709474910209" |
| | | : this.card.jurisdiction; |
| | | var dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | search = true; |
| | | if (this.card.jurisdiction != "") { |
| | | dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" + |
| | | this.card.jurisdiction; |
| | | } else if (this.card.jurisdiction == 1372091709474910209) { |
| | | // a = ""; |
| | | } |
| | | if (this.card.deptId != "") { |
| | | search = false; |
| | | } |
| | | return { |
| | | securityid1: "", |
| | | ExperienceVisible: false, |
| | |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | ...this.$store.state.control.changePageSize |
| | | }, |
| | | query1: {}, |
| | | data1: [], |
| | |
| | | // refreshBtn: false, |
| | | // card: true, |
| | | menu: false, |
| | | height: 450, |
| | | height: "auto", |
| | | widtd: "auto", |
| | | // calcHeight: 54, |
| | | border: true, //liu |
| | | stripe: true, |
| | | // tip: false, |
| | | index: true, |
| | | // dialogClickModal: false, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | // dialogClickModal: false |
| | | // headerAlign: "center", |
| | | align: "center", |
| | | column: [ |
| | | //派遣服务公司登记 |
| | | { |
| | | label: "派遣单位名称", |
| | | label: "派遣企业名称", |
| | | prop: "name", |
| | | search: true, |
| | | searchLabelWidth: 110, |
| | | overHidden: true, |
| | | searchSpan: 4, |
| | | searchSpan: 5, |
| | | width: 210, |
| | | // span: 12, |
| | | labelWidth: 118, |
| | | labelWidth: 118 |
| | | }, |
| | | { |
| | | label: "派遣单位地址", |
| | | prop: "address", |
| | | search: false, |
| | | searchLabelWidth: 110, |
| | | overHidden: true, |
| | | searchSpan: 4, |
| | | width: 210, |
| | | // span: 12, |
| | | labelWidth: 118, |
| | | }, |
| | | // { |
| | | // label: "派遣单位地址", |
| | | // prop: "address", |
| | | // search: false, |
| | | // searchLabelWidth: 110, |
| | | // overHidden: true, |
| | | // searchSpan: 4, |
| | | // width: 210, |
| | | // // span: 12, |
| | | // labelWidth: 118, |
| | | // }, |
| | | { |
| | | label: "保安公司", |
| | | prop: "deptName", |
| | | type: "tree", |
| | | overHidden: true, |
| | | dicUrl: |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697", |
| | | dicUrl: dicUrl, |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | | value: "id" |
| | | }, |
| | | // hide: true, |
| | | // hide: !website.tenantMode, |
| | |
| | | { |
| | | required: true, |
| | | message: "请选择保安公司", |
| | | trigger: "click", |
| | | }, |
| | | trigger: "click" |
| | | } |
| | | ], |
| | | labelWidth: 118, |
| | | width: 230, |
| | | searchLabelWidth: 80, |
| | | search: true, |
| | | searchSpan: 4, |
| | | search: search, |
| | | searchSpan: 5 |
| | | // editDisplay: false, |
| | | // addDisplay: false, |
| | | // hide: true, |
| | |
| | | searchSpan: 4, |
| | | overHidden: true, |
| | | // span: 12, |
| | | labelWidth: 118, |
| | | labelWidth: 118 |
| | | }, |
| | | { |
| | | label: "合同生效时间", |
| | |
| | | valueFormat: "yyyy-MM-dd", |
| | | searchValue: [this.getStartTime(), this.getEndTime()], |
| | | searchRange: true, |
| | | searchSpan: 5, |
| | | searchSpan: 6, |
| | | searchLabelWidth: 110, |
| | | hide: true, |
| | | addDisplay: false, |
| | |
| | | { |
| | | required: true, |
| | | message: "请输入时间", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | trigger: "blur" |
| | | } |
| | | ] |
| | | }, |
| | | // { |
| | | // label: " 派遣人数", |
| | | // prop: "num", |
| | | // labelWidth: 118, |
| | | // }, |
| | | |
| | | { |
| | | label: "合同开始时间", |
| | | prop: "startTime", |
| | | labelWidth: 118, |
| | | type: "date", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd" |
| | | // search: true, |
| | | // searchSpan: 4, |
| | | // overHidden: true |
| | |
| | | labelWidth: 118, |
| | | type: "date", |
| | | format: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd", |
| | | valueFormat: "yyyy-MM-dd" |
| | | // search: true, |
| | | // searchSpan: 4, |
| | | // overHidden: true |
| | | }, |
| | | { |
| | | label: " 派遣人数", |
| | | prop: "snum", |
| | | labelWidth: 118, |
| | | width: 90 |
| | | }, |
| | | { |
| | | label: " 负责人", |
| | | prop: "linkman", |
| | | labelWidth: 118, |
| | | labelWidth: 118 |
| | | }, |
| | | { |
| | | label: "负责人联系方式", |
| | | prop: "phone", |
| | | labelWidth: 118, |
| | | width: 110, |
| | | width: 110 |
| | | }, |
| | | { |
| | | label: "所属辖区", |
| | | prop: "jurisdiction", |
| | | hide: true, |
| | | searchLabelWidth: 80, |
| | | search: true, |
| | | search: search, |
| | | searchSpan: 4, |
| | | overHidden: true, |
| | | labelWidth: 118, |
| | |
| | | dicUrl: "/api/jurisdiction/lazy-tree", |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | | value: "id" |
| | | }, |
| | | checkStrictly: true, |
| | | slot: true, |
| | |
| | | { |
| | | required: true, |
| | | message: "请选择所属辖区", |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | trigger: "click" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | label: "所属辖区", |
| | |
| | | dicUrl: "/api/jurisdiction/lazy-tree", |
| | | props: { |
| | | label: "title", |
| | | value: "id", |
| | | value: "id" |
| | | }, |
| | | checkStrictly: true, |
| | | slot: true, |
| | |
| | | { |
| | | required: true, |
| | | message: "请选择所属辖区", |
| | | trigger: "click", |
| | | }, |
| | | ], |
| | | }, |
| | | ], |
| | | }, |
| | | trigger: "click" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | }, |
| | | methods: { |
| | | getStartTime() { |
| | |
| | | return ""; |
| | | }, |
| | | getPractitionersPageInfo(page, params = {}) { |
| | | // this.card.jurisdiction = "130"; |
| | | // this.card.this.card = "1425365571343515649"; |
| | | // if (params.hold == undefined) { |
| | | // params.hold = 1; |
| | | // } |
| | | if (this.card.jurisdiction != "" || this.card.jurisdiction != undefined) { |
| | | if (this.query1.deptId != "" || this.query1.deptId != undefined) { |
| | | this.card.deptId = this.query1.deptId; |
| | | } |
| | | this.option1.column[2].search = true; |
| | | } else { |
| | | this.option1.column[2].search = false; |
| | | } |
| | | this.loading1 = true; |
| | | if (this.card.jurisdiction == 1372091709474910209) { |
| | | this.card.jurisdiction = ""; |
| | | } |
| | |
| | | if (releaseTimeRange) { |
| | | params = { |
| | | ...params, |
| | | ...this.card, |
| | | beginTime: releaseTimeRange[0], |
| | | overTime: releaseTimeRange[1], |
| | | status: 1, |
| | | ...this.query1, |
| | | ...this.card, |
| | | ...this.query1 |
| | | }; |
| | | // values.releaseTimeRange = null; |
| | | } else { |
| | | params = { |
| | | ...params, |
| | | ...this.query1, |
| | | status: 1, |
| | | ...this.card, |
| | | ...this.query1, |
| | | status: 1 |
| | | }; |
| | | } |
| | | console.log(params); |
| | | getdata(page.currentPage, page.pageSize, params).then((res) => { |
| | | // console.log(params); |
| | | getdata(page.currentPage, page.pageSize, params).then(res => { |
| | | // console.log(res.data.data.records); |
| | | const data = res.data.data; |
| | | this.data1 = data.records; |
| | | this.page1.total = data.total; |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | this.loading1 = false; |
| | | }); |
| | | }, |
| | |
| | | this.page1.currentPage = 1; |
| | | this.refreshChange(); |
| | | // console.log(212); |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | </style> |
| | | <style scoped></style> |