| | |
| | | /** |
| | | *liu |
| | | **/ |
| | | |
| | | |
| | | /** *liu **/ |
| | | |
| | | <template> |
| | | <basic-container |
| | | :class="[ |
| | | 'dispatchChildoperable', |
| | | $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '', |
| | | $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize', |
| | | $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '' |
| | | ]" |
| | | > |
| | | <avue-crud |
| | | class="tablesss" |
| | | :option="option1" |
| | | :data="data1" |
| | | :page.sync="page1" |
| | |
| | | import { |
| | | securityBaseInfoColumn, |
| | | practitionersColumn, |
| | | trackRecordColumn, |
| | | trackRecordColumn |
| | | } from "./data"; |
| | | import { getUserPractitionersInfo } from "@/api/system/user"; |
| | | import { mapGetters } from "vuex"; |
| | |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | ...this.$store.state.control.changePageSize, |
| | | ...this.$store.state.control.changePageSize |
| | | }, |
| | | query1: {}, |
| | | data1: [], |
| | |
| | | headerAlign: "center", |
| | | align: "center", |
| | | column: trackRecordColumn, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | }, |
| | | ...this.$store.state.control.clearOtherBut |
| | | } |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | |
| | | ids1() { |
| | | let ids1 = []; |
| | | this.selectionList1.forEach((ele) => { |
| | | this.selectionList1.forEach(ele => { |
| | | ids1.push(ele.id); |
| | | }); |
| | | return ids1.join(","); |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | sizeChange1(val) { |
| | |
| | | }, |
| | | rowSave1(form, done, loading) { |
| | | adddata1(form).then( |
| | | (res) => { |
| | | res => { |
| | | this.onLoad1(this.page1); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | message: "操作成功!" |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | error => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | |
| | | this.onLoad1(this.page1); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | message: "操作成功!" |
| | | }); |
| | | done(); |
| | | }, |
| | | (error) => { |
| | | error => { |
| | | window.console.log(error); |
| | | loading(); |
| | | } |
| | |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove1(row.id); |
| | |
| | | this.onLoad1(this.page1); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | message: "操作成功!" |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | this.$confirm("确定将选择数据删除?", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | return remove1(this.ids1); |
| | |
| | | this.onLoad1(this.page1); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!", |
| | | message: "操作成功!" |
| | | }); |
| | | this.$refs.crudrec1.toggleSelection(); |
| | | }); |
| | |
| | | |
| | | params = { |
| | | ...params, |
| | | securityid: cardid, |
| | | securityid: cardid |
| | | }; |
| | | getpage(page1.currentPage, page1.pageSize, params).then((res2) => { |
| | | getpage(page1.currentPage, page1.pageSize, params).then(res2 => { |
| | | const data = res2.data.data; |
| | | this.page1.total = data.total; |
| | | this.data1 = data.records; |
| | | console.log(this.data1, 1); |
| | | // console.log(this.data1, 1); |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | this.loading1 = false; |
| | | }); |
| | | }, |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | this.onLoad1(this.page1, this.query1); |
| | | //去掉缓存 |
| | | // this.typeTABS = this.optionTABS.column[0]; |
| | |
| | | // // console.log("no"); |
| | | // this.obj0.name = " 未选择派遣单位"; |
| | | // } |
| | | }, |
| | | } |
| | | }; |
| | | </script> |
| | | |