| | |
| | | trackRecordColumn, |
| | | } from "./data"; |
| | | import { getUserPractitionersInfo } from "@/api/system/user"; |
| | | import { add, update, page, remove } from "@/api/performance/performance"; |
| | | import { |
| | | getPerformanceInfo, |
| | | add, |
| | | update, |
| | | page, |
| | | remove, |
| | | } from "@/api/performance/performance"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | getPractitionersPageInfo() { |
| | | var that = this; |
| | | //获取用户从业信息 |
| | | console.log(this.cardid, "cid"); |
| | | getUserPractitionersInfo(this.cardid).then((res1) => { |
| | | console.log(this.id, "cid"); |
| | | getUserPractitionersInfo(this.id).then((res1) => { |
| | | that.data1 = res1.data.data; |
| | | }); |
| | | }, |
| | | //查询当前保安员的现实表现记录信息 |
| | | getPerformancePageInfo() { |
| | | //获取现实表现信息 |
| | | // getPerformanceInfo(this.id).then((res) => { |
| | | // that.data2 = res1.data.data; |
| | | // console.log(that.data2, 1); |
| | | // }); |
| | | var param = { |
| | | cardid: this.cardid, |
| | | securityid: this.id, |
| | | }; |
| | | page(this.current, this.size, param).then((res2) => { |
| | | const data = res2.data.data; |
| | |
| | | }); |
| | | }, |
| | | rowSave2(form, done, loading) { |
| | | form.cardid = this.cardid; |
| | | form.securityid = this.id; |
| | | add(form).then( |
| | | (res) => { |
| | | this.getPerformancePageInfo(this.page2); |
| | |
| | | // } |
| | | }, |
| | | rowUpdate2(row, index, done, loading) { |
| | | row.cardid = this.cardid; |
| | | row.securityid = this.id; |
| | | update(row).then( |
| | | () => { |
| | | this.getPerformancePageInfo(this.page2); |