|
@@ -142,9 +142,7 @@
|
|
|
<el-form label-position="top" class="aForm">
|
|
|
<el-form-item label="添加子表单">
|
|
|
<el-button type="primary" icon="plus" round @click="selectHandle(5, form.actionUrl)">选择子表单</el-button>
|
|
|
- <div class="tags-list">
|
|
|
- <el-tag v-for="(user, index) in form.actionUrl" :key="user.id" closable @close="delFormTemplate(index)">{{ user.name }}</el-tag>
|
|
|
- </div>
|
|
|
+ {{ form.actionUrl }}
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="表单权限">
|
|
@@ -254,7 +252,7 @@ export default {
|
|
|
}
|
|
|
if ([5].includes(oldType)) {
|
|
|
// 上次setType 为 选择成员 or 角色时 对 nodeAssigneeList 重置
|
|
|
- this.form.actionUrl = []
|
|
|
+ this.form.actionUrl = null
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -278,7 +276,7 @@ export default {
|
|
|
return { label: item.label, id: item.id, opera: opera }
|
|
|
})
|
|
|
this.form.extendConfig = { formConfig: operateTable }
|
|
|
- this.form.actionUrl = this.form?.actionUrl ? [this.form.actionUrl] : [] // 这里后台只要一个对象,前端为了保持一致用数组包裹
|
|
|
+ this.form.actionUrl = this.form?.actionUrl ? this.form.actionUrl : null // 这里后台只要一个对象,前端为了保持一致用数组包裹
|
|
|
this.drawer = true
|
|
|
},
|
|
|
editTitle(refName) {
|
|
@@ -325,9 +323,9 @@ export default {
|
|
|
// 选择角色
|
|
|
if (!_form.nodeAssigneeList || !_form.nodeAssigneeList.length) return this.$message.warning('请选择角色')
|
|
|
}
|
|
|
- if (_form.actionUrl && _form.actionUrl.length) {
|
|
|
- _form.actionUrl = _form.actionUrl[0]
|
|
|
- }
|
|
|
+ // if (_form.actionUrl && _form.actionUrl.length) {
|
|
|
+ // _form.actionUrl = _form.actionUrl[0]
|
|
|
+ // }
|
|
|
this.emit(_form)
|
|
|
this.drawer = false
|
|
|
},
|
|
@@ -341,7 +339,7 @@ export default {
|
|
|
this.form.nodeAssigneeList.splice(index, 1)
|
|
|
},
|
|
|
delFormTemplate(index) {
|
|
|
- this.form.actionUrl.splice(index, 1)
|
|
|
+ // this.form.actionUrl.splice(index, 1)
|
|
|
},
|
|
|
selectHandle(type, data) {
|
|
|
// type: 1人员, 3角色 5子表单
|