|
@@ -69,6 +69,8 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button @click="modifyDiagBase(scope.row, 'modify')" type="text" size="small">修改</el-button>
|
|
|
<span style="margin:0 3px;">|</span>
|
|
|
+ <el-button @click="modifyDiagBase(scope.row,'copy')" type="text" size="small">复制</el-button>
|
|
|
+ <span style="margin:0 3px;">|</span>
|
|
|
<el-button @click="showDelDialog(scope.row.id)" class="delete" type="text" size="small">删除</el-button>
|
|
|
|
|
|
</template>
|
|
@@ -93,6 +95,7 @@
|
|
|
import api from '@api/diagBase.js';
|
|
|
import apis from '@api/icss.js';
|
|
|
import config from '@api/config.js';
|
|
|
+import utils from '@api/utils.js';
|
|
|
|
|
|
export default {
|
|
|
name: 'diagBase',
|
|
@@ -135,11 +138,13 @@ export default {
|
|
|
beforeRouteEnter(to, from, next) {
|
|
|
next(vm => {
|
|
|
Object.assign(vm, to.params);
|
|
|
+ vm.inCurrentPage=to.params.currentPage;
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
handleSizeChange(val){
|
|
|
this.pageSize = val;
|
|
|
+ this.currentPage = utils.getCurrentPage(this.currentPage, this.total, this.pageSize);
|
|
|
this.getDataList();
|
|
|
},
|
|
|
getDropList() {
|
|
@@ -155,9 +160,20 @@ export default {
|
|
|
setTimeout(()=>{
|
|
|
this.searched = true;
|
|
|
},0)
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: 'Loading',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
api.diagBasePage(param).then((res) => {
|
|
|
+ loading.close()
|
|
|
this.list = res.data.data.records
|
|
|
this.total = res.data.data.total;
|
|
|
+ if(this.inCurrentPage!==undefined){
|
|
|
+ this.currentPage=this.inCurrentPage;
|
|
|
+ this.inCurrentPage = undefined;
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
filterDatas() {
|
|
@@ -243,7 +259,7 @@ export default {
|
|
|
this.clearFilter();
|
|
|
};
|
|
|
const param = {
|
|
|
- current: this.currentPage,
|
|
|
+ current: this.inCurrentPage||this.currentPage,
|
|
|
size: this.pageSize,
|
|
|
disName: this.filter.disName.trim(),
|
|
|
modifier: this.filter.modifier, //操作人
|