Browse Source

复制

master
jiangyy 3 years ago
parent
commit
4813eb9158
  1. 3
      src/views/modules/communityService/policy/addPolicy.vue
  2. 13
      src/views/modules/communityService/policy/policyList.vue

3
src/views/modules/communityService/policy/addPolicy.vue

@ -473,8 +473,9 @@ export default {
this.formData.attachmentList = [...this.fileList] this.formData.attachmentList = [...this.fileList]
let url = '/heart/policy/add' let url = '/heart/policy/add'
if (this.formType === 'add') { if (this.formType === 'add' || this.formType === 'copy') {
url = '/heart/policy/add' url = '/heart/policy/add'
this.formData.policyId = ''
} else { } else {
url = '/heart/policy/update' url = '/heart/policy/update'
this.formData.policyId = this.policyId this.formData.policyId = this.policyId

13
src/views/modules/communityService/policy/policyList.vue

@ -126,7 +126,7 @@
<el-table-column fixed="right" <el-table-column fixed="right"
label="操作" label="操作"
align="center" align="center"
width="200"> width="220">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="handleDetail(scope.row)" <el-button @click="handleDetail(scope.row)"
type="text" type="text"
@ -136,6 +136,10 @@
type="text" type="text"
size="small" size="small"
class="div-table-button--edit">编辑</el-button> class="div-table-button--edit">编辑</el-button>
<el-button @click="handleCopy(scope.row)"
type="text"
size="small"
class="div-table-button--edit">复制</el-button>
<el-button @click="handlePersonList(scope.row)" <el-button @click="handlePersonList(scope.row)"
type="text" type="text"
size="small" size="small"
@ -304,6 +308,13 @@ export default {
this.formType = 'edit' this.formType = 'edit'
this.showAdd = true; this.showAdd = true;
},
async handleCopy (row) {
this.policyId = row.policyId
this.addDiaTitle = '新增政策'
this.formType = 'copy'
this.showAdd = true;
}, },
// //

Loading…
Cancel
Save