复制稽查记录
parent
e9a4509ced
commit
2cc0b81c90
|
@ -668,6 +668,12 @@
|
||||||
<el-table-column prop="TrialConfigRelyFieldName" label="依赖字段" min-width="120px" :show-overflow-tooltip="true" />
|
<el-table-column prop="TrialConfigRelyFieldName" label="依赖字段" min-width="120px" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="操作" align="center" min-width="180" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" min-width="180" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleCopyData(scope.row)"
|
||||||
|
>复制</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
|
@ -1146,6 +1152,16 @@ export default {
|
||||||
this.title = '修改'
|
this.title = '修改'
|
||||||
this.rowDrop2()
|
this.rowDrop2()
|
||||||
},
|
},
|
||||||
|
handleCopyData (row) {
|
||||||
|
this.$confirm('确定复制该条记录到当前稽查下吗?').then(() => {
|
||||||
|
let params = {...row}
|
||||||
|
delete params.Id
|
||||||
|
addOrUpdateFrontAuditConfig(params).then(() => {
|
||||||
|
this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
|
this.getList()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm: function() {
|
submitForm: function() {
|
||||||
this.$refs['form'].validate(valid => {
|
this.$refs['form'].validate(valid => {
|
||||||
|
|
Loading…
Reference in New Issue