| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <AddEmployee ref="addEmployee" :editRow="editRow" @shutdown="shutdown" /> |
| | | <AddEmployee ref="addEmployee" :editRow="editRow" @refresh="shutdown" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | if (res.data) { |
| | | const list = res.data |
| | | this.tableList.tableInfomation = list || [] |
| | | this.pagerOptions.totalCount = res.count |
| | | this.pagerOptions.totalCount = res.total |
| | | } else { |
| | | this.tableList.tableInfomation = [] |
| | | } |
| | |
| | | this.getData() |
| | | }, |
| | | shutdown() { |
| | | this.pagerOptions.currPage = 1 |
| | | this.getData(); |
| | | }, |
| | | // 新建 |
| | |
| | | // 编辑 |
| | | handleClick(row) { |
| | | let config=JSON.parse(JSON.stringify(row)); |
| | | this.editRow = { ...config, title:'编辑',type:'add' } |
| | | this.editRow = { ...config, |
| | | title:'编辑', |
| | | type:'edit', |
| | | shopNameObj:{ |
| | | value:config.shopId, |
| | | label:config.shopName, |
| | | }, |
| | | workTypeObj:{ |
| | | value:config.workTypeId, |
| | | label:config.workType, |
| | | } |
| | | } |
| | | this.$refs.addEmployee.islook = true; |
| | | }, |
| | | // 删除 |