| | |
| | | <template> |
| | | <div class="mod-etf-transport"> |
| | | <avue-crud ref="crud" :page.sync="page" :data="dataList" :option="dazongJiaoYi" :cell-class-name="addClasscolor" |
| | | @search-change="searchChange" @selection-change="selectionChange" @refresh-change="refreshChange" @on-load="getDataList"> |
| | | @search-change="searchChange" @selection-change="selectionChange" @refresh-change="refreshChange" |
| | | @on-load="getDataList"> |
| | | <template slot="userName" slot-scope="scope"> |
| | | <span>{{ scope.row.userName + '(' + scope.row.userCode + ')' }}</span> |
| | | </template> |
| | |
| | | |
| | | <el-button slot="reference" type="primary" size="small" @click="deleteHandle(scope.row)" |
| | | v-show="scope.row.state == 'submitted'">拒绝</el-button> |
| | | |
| | | <el-button type="primary" size="small" @click.stop="lockHandle(scope.row)" |
| | | v-show="scope.row.unLock == 1">锁定</el-button> |
| | | |
| | | <el-button type="primary" size="small" @click.stop="lockHandle(scope.row)" |
| | | v-show="scope.row.unLock == 0">解锁</el-button> |
| | | </template> |
| | | </avue-crud> |
| | | |
| | |
| | | } |
| | | }) |
| | | }), |
| | | // 锁定/解锁 |
| | | lockHandle: Debounce(function (row) { |
| | | this.$http({ |
| | | url: this.$http.adornUrl(`/eftDz/unLock`), |
| | | method: 'post', |
| | | params: { id: row.uuid } |
| | | }) |
| | | .then(({ data }) => { |
| | | if (data.code == 0) { |
| | | this.$message({ |
| | | message: '操作成功', |
| | | type: 'success', |
| | | duration: 1000, |
| | | onClose: () => { |
| | | this.getDataList() |
| | | } |
| | | }) |
| | | } else { |
| | | this.$message({ |
| | | message: data.msg, |
| | | type: 'error', |
| | | duration: 1000, |
| | | onClose: () => { |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }), |
| | | // 条件查询 |
| | | searchChange(params, done) { |
| | | this.page.currentPage = 1; // 重置当前页为第一页 |