事项配置重构
This commit is contained in:
@@ -69,7 +69,6 @@ export default {
|
||||
]
|
||||
},
|
||||
detailTitle: v => v.detailObj?.id ? "编辑事项" : "添加事项",
|
||||
processType: v => v.$route.hash == "#add" ? 0 : 2
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['closePage']),
|
||||
@@ -119,7 +118,6 @@ export default {
|
||||
*/
|
||||
save() {
|
||||
this.$refs['processApproval'].handleProcessApproval().then(res => {
|
||||
const {processType} = this
|
||||
this.instance.post(`/app/approval-process-def/add-update`, {
|
||||
...this.detailObj,
|
||||
...this.baseInfo,
|
||||
@@ -131,7 +129,7 @@ export default {
|
||||
tableType: 0,
|
||||
processAnnexDefs: this.annexs.map(e => ({...e, mustFill: Number(e.mustFill)})),
|
||||
processNodeList: res.processNodeList,
|
||||
processType
|
||||
processType: 0
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success("保存成功")
|
||||
@@ -144,7 +142,7 @@ export default {
|
||||
},
|
||||
getDetail() {
|
||||
const {id} = this.$route.query
|
||||
this.instance.post(`/app/approval-process-def/info-id`, null, {params: {id}}).then(res => {
|
||||
id && this.instance.post(`/app/approval-process-def/info-id`, null, {params: {id}}).then(res => {
|
||||
if (res?.data) {
|
||||
this.detailObj = res.data
|
||||
this.filedList = res.data.tableInfo.tableFieldInfos
|
||||
|
||||
Reference in New Issue
Block a user