| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad" |
| | | > |
| | | </avue-crud> |
| | | </basic-container> |
| | |
| | | this.deptId = data.dept_id; |
| | | this.deviceSn = data.device_sn; |
| | | this.getDeptTreeInfo(); |
| | | this.onLoad(this.page); |
| | | this.getLoadPage(this.page); |
| | | }, |
| | | getDeptTreeInfo(){ |
| | | getDeptTreeByNotItself(this.deptId,this.deviceSn).then(res => { |
| | |
| | | add(row).then( |
| | | () => { |
| | | this.initFlag = false; |
| | | this.onLoad(this.page); |
| | | this.getLoadPage(this.page); |
| | | // 刷新机构树 |
| | | this.getDeptTreeInfo(); |
| | | this.$message({ |
| | |
| | | row['device_sn'] = this.deviceSn; |
| | | update(row).then( |
| | | () => { |
| | | this.onLoad(this.page); |
| | | this.getLoadPage(this.page); |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!', |
| | |
| | | .then(() => { |
| | | // 刷新机构树 |
| | | this.getDeptTreeInfo(); |
| | | this.onLoad(this.page); |
| | | this.getLoadPage(this.page); |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!', |
| | |
| | | }, |
| | | searchReset() { |
| | | this.query = {}; |
| | | this.onLoad(this.page); |
| | | this.getLoadPage(this.page); |
| | | }, |
| | | searchChange(params, done) { |
| | | this.query = params; |
| | | this.page.currentPage = 1; |
| | | this.onLoad(this.page, params); |
| | | this.getLoadPage(this.page, params); |
| | | done(); |
| | | }, |
| | | selectionChange(list) { |
| | |
| | | return remove(this.ids); |
| | | }) |
| | | .then(() => { |
| | | this.onLoad(this.page); |
| | | this.getLoadPage(this.page); |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!', |
| | |
| | | this.page.pageSize = pageSize; |
| | | }, |
| | | refreshChange() { |
| | | this.onLoad(this.page, this.query); |
| | | this.getLoadPage(this.page, this.query); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | getLoadPage(page, params = {}) { |
| | | params['device_sn'] = this.deviceSn; |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, params).then(res => { |
| | |
| | | port: 2888, |
| | | proxy: { |
| | | '/api': { |
| | | target: 'http://localhost', |
| | | // target: 'https://wrj.shuixiongit.com/api', |
| | | // target: 'http://localhost', |
| | | target: 'https://wrj.shuixiongit.com/api', |
| | | changeOrigin: true, |
| | | rewrite: path => path.replace(/^\/api/, ''), |
| | | }, |