|
@@ -69,6 +69,8 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button @click="modifyDiagBase(scope.row, 'modify')" type="text" size="small">修改</el-button>
|
|
<el-button @click="modifyDiagBase(scope.row, 'modify')" type="text" size="small">修改</el-button>
|
|
<span style="margin:0 3px;">|</span>
|
|
<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>
|
|
<el-button @click="showDelDialog(scope.row.id)" class="delete" type="text" size="small">删除</el-button>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -93,6 +95,7 @@
|
|
import api from '@api/diagBase.js';
|
|
import api from '@api/diagBase.js';
|
|
import apis from '@api/icss.js';
|
|
import apis from '@api/icss.js';
|
|
import config from '@api/config.js';
|
|
import config from '@api/config.js';
|
|
|
|
+import utils from '@api/utils.js';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'diagBase',
|
|
name: 'diagBase',
|
|
@@ -141,6 +144,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
handleSizeChange(val){
|
|
handleSizeChange(val){
|
|
this.pageSize = val;
|
|
this.pageSize = val;
|
|
|
|
+ this.currentPage = utils.getCurrentPage(this.currentPage, this.total, this.pageSize);
|
|
this.getDataList();
|
|
this.getDataList();
|
|
},
|
|
},
|
|
getDropList() {
|
|
getDropList() {
|
|
@@ -156,7 +160,14 @@ export default {
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
this.searched = true;
|
|
this.searched = true;
|
|
},0)
|
|
},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) => {
|
|
api.diagBasePage(param).then((res) => {
|
|
|
|
+ loading.close()
|
|
this.list = res.data.data.records
|
|
this.list = res.data.data.records
|
|
this.total = res.data.data.total;
|
|
this.total = res.data.data.total;
|
|
if(this.inCurrentPage!==undefined){
|
|
if(this.inCurrentPage!==undefined){
|