|
@@ -65,10 +65,12 @@
|
|
|
:resizable = "false"
|
|
|
prop="operate"
|
|
|
label="操作"
|
|
|
- width="120">
|
|
|
+ width="140">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button @click="modifyIndeptTag(scope.row)" type="text" size="small">修改</el-button>
|
|
|
<span style="margin:0 3px;">|</span>
|
|
|
+ <el-button @click="modifyIndeptTag(scope.row,true)" type="text" size="small">复制</el-button>
|
|
|
+ <span style="margin:0 3px;">|</span>
|
|
|
<el-button @click="showDelDialog(scope.row)" class="delete" type="text" size="small">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -169,14 +171,14 @@
|
|
|
this.$router.push({name:'AddCombinQuestion',
|
|
|
params:pam});
|
|
|
},
|
|
|
- modifyIndeptTag(row) {
|
|
|
+ modifyIndeptTag(row,isCopy) {
|
|
|
api.questionDetail({id:row.id}).then((res)=>{
|
|
|
const {code,data,msg} = res.data;
|
|
|
if(code=='0'){
|
|
|
const infos = Object.assign({},row,data);
|
|
|
const pam = this.searched?{currentPage:this.currentPage,
|
|
|
filter:this.filter}:{currentPage:this.currentPage};
|
|
|
- this.$router.push({name:'AddCombinQuestion',params:Object.assign(pam,{isEdit:true,data:infos})});
|
|
|
+ this.$router.push({name:'AddCombinQuestion',params:Object.assign(pam,{[isCopy?'isCopy':'isEdit']:true,data:infos})});
|
|
|
}else{
|
|
|
this.$message({
|
|
|
message: msg,
|