|
@@ -58,6 +58,8 @@
|
|
|
</el-button>
|
|
|
<el-button size="small" @click="handleDelete(scope.row)">删除
|
|
|
</el-button>
|
|
|
+ <el-button size="small" @click="handleCopy(scope.row)">复制
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -245,7 +247,7 @@
|
|
|
Map_Del,
|
|
|
Map_Add,
|
|
|
Map_Up,
|
|
|
- TempUp
|
|
|
+ TempUp,TempCopy
|
|
|
} from '@/api/ValidationTemplate'
|
|
|
import {
|
|
|
PDFToken
|
|
@@ -339,6 +341,28 @@
|
|
|
this.getTempApi()
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleCopy(e){
|
|
|
+ console.log('复制',e)
|
|
|
+ this.$prompt('请输入模板名称', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ inputPattern: /\S/,
|
|
|
+ inputErrorMessage: '模板名称不能为空'
|
|
|
+ }).then(({ value }) => {
|
|
|
+ TempCopy({
|
|
|
+ T_VerifyTemplate_id:e.T_VerifyTemplate_id,
|
|
|
+ T_name:value
|
|
|
+ }).then(res=>{
|
|
|
+ console.log('1111',res)
|
|
|
+ if(res.data.Code==200) this.GetTempListApi()
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '取消复制'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
showImg(){
|
|
|
this.dialogVisible = true
|
|
|
this.imgUrl = this.form.T_text
|