| | |
| | | gutter: 30, |
| | | column: column, |
| | | }, |
| | | // loading: true, //派遣服务公司登记 |
| | | // selectionList: [], |
| | | // page: { |
| | | // pageSize: 10, |
| | | // currentPage: 1, |
| | | // total: 0, |
| | | // }, |
| | | // query: {}, |
| | | // data: [], |
| | | // option: { |
| | | // card: true, |
| | | // searchSize: "mini", |
| | | // searchMenuSpan: 6, |
| | | // height: 547, |
| | | // menuWidth: 160, |
| | | // align: "center", |
| | | // selection: true, |
| | | // column: column, |
| | | // }, |
| | | |
| | | loading1: true, //派遣记录 |
| | | selectionList1: [], |
| | | page1: { |
| | |
| | | height: 563, |
| | | // menuWidth: 160, |
| | | align: "center", |
| | | // selection: true, |
| | | selection: true, |
| | | column: column1, |
| | | cellBtn: false, |
| | | addBtn: false, |
| | |
| | | // this.onLoad(this.page); |
| | | } else if (column.prop == "tab2") { |
| | | // this.loading = false; |
| | | console.log(document.getElementsByClassName("el-card__body")[0]); |
| | | // console.log(document.getElementsByClassName("el-card__body")[0]); |
| | | this.onLoad1(this.page1); //第二个表格不会自动执行 |
| | | } |
| | | // this.$message.success(JSON.stringify(column)); |
| | | }, |
| | | //派遣服务公司登记 |
| | | // sizeChange(val) { |
| | | // this.page1.currentPage = 1; |
| | | // this.page1.pageSize = val; |
| | | // // this.getData(); |
| | | // this.onLoad(this.page, this.query); |
| | | // // this.$message.success("行数" + val); |
| | | // }, |
| | | // currentChange(val) { |
| | | // this.page1.currentPage = val; |
| | | // // this.getData(); |
| | | // this.onLoad(this.page, this.query); |
| | | // // this.$message.success("页码" + val); |
| | | // }, |
| | | // rowSave(form, done, loading) { |
| | | // var that = this; |
| | | // var form = this.data[0]; |
| | | // delete form.id; |
| | | // for (var k = 0; k < 13; k++) { |
| | | // adddata(form).then( |
| | | // (res) => { |
| | | // this.onLoad(this.page); |
| | | // this.$message({ |
| | | // type: "success", |
| | | // message: "操作成功!", |
| | | // }); |
| | | // done(); |
| | | // }, |
| | | // (error) => { |
| | | // window.console.log(error); |
| | | // loading(); |
| | | // } |
| | | // ); |
| | | // } |
| | | // }, |
| | | // searchChange(params, done) { |
| | | // this.query = params; |
| | | // this.page.currentPage = 1; |
| | | // this.onLoad(this.page, params); |
| | | // done(); |
| | | // }, |
| | | // searchReset() { |
| | | // this.query = {}; |
| | | // this.onLoad(this.page); |
| | | // }, |
| | | // rowUpdate(row, index, done, loading) { |
| | | // console.log(row); |
| | | // update(row).then( |
| | | // () => { |
| | | // this.onLoad(this.page); |
| | | // this.$message({ |
| | | // type: "success", |
| | | // message: "操作成功!", |
| | | // }); |
| | | // done(); |
| | | // }, |
| | | // (error) => { |
| | | // window.console.log(error); |
| | | // loading(); |
| | | // } |
| | | // ); |
| | | // }, |
| | | // rowDel(row) { |
| | | // this.$confirm("确定将选择数据删除?", { |
| | | // confirmButtonText: "确定", |
| | | // cancelButtonText: "取消", |
| | | // type: "warning", |
| | | // }) |
| | | // .then(() => { |
| | | // return remove(row.id); |
| | | // }) |
| | | // .then(() => { |
| | | // this.onLoad(this.page); |
| | | // this.$message({ |
| | | // type: "success", |
| | | // message: "操作成功!", |
| | | // }); |
| | | // }); |
| | | // }, |
| | | // selectionChange(list) { |
| | | // this.selectionList = list; |
| | | // }, |
| | | // handleDelete() { |
| | | // if (this.selectionList.length === 0) { |
| | | // this.$message.warning("请选择至少一条数据"); |
| | | // return; |
| | | // } |
| | | // this.$confirm("确定将选择数据删除?", { |
| | | // confirmButtonText: "确定", |
| | | // cancelButtonText: "取消", |
| | | // type: "warning", |
| | | // }) |
| | | // .then(() => { |
| | | // return remove(this.ids); |
| | | // }) |
| | | // .then(() => { |
| | | // this.onLoad(this.page); |
| | | // this.$message({ |
| | | // type: "success", |
| | | // message: "操作成功!", |
| | | // }); |
| | | // this.$refs.crudrec.toggleSelection(); |
| | | // }); |
| | | // }, |
| | | // refreshChange() { |
| | | // this.onLoad(this.page, this.query); |
| | | // }, |
| | | // onLoad(page, params = {}) { |
| | | // this.loading = true; |
| | | // getdata( |
| | | // page.currentPage, |
| | | // page.pageSize, |
| | | // Object.assign(params, this.query) |
| | | // ).then((res) => { |
| | | // // console.log(res); |
| | | // const data = res.data.data; |
| | | // this.page.total = data.total; |
| | | // this.data = data.records; |
| | | // console.log(this.data); |
| | | // this.loading = false; |
| | | // }); |
| | | // }, |
| | | //派遣服务公司登记 |
| | | |
| | | //派遣记录 |
| | | sizeChange1(val) { |
| | |
| | | const data = res.data.data; |
| | | this.page1.total = data.total; |
| | | this.data1 = data.records; |
| | | // for (var k in this.data1) { |
| | | // this.data1[k].securityName = this.data1[k].securityName.split(","); |
| | | // this.data1[k].securityName = this.data1[k].securityName.join(" | "); |
| | | // } |
| | | console.log(this.data1, 1); |
| | | this.loading1 = false; |
| | | }); |