[update] 企标更改流程和流程中心接口修改

This commit is contained in:
lideqin
2023-10-26 10:39:06 +08:00
parent c2ddd676fd
commit d6ecca66a0
13 changed files with 547 additions and 30 deletions
@@ -6,7 +6,6 @@
:closable="true"
@cancel="handleCancel"
fullscreen
@ok="handleOk"
:visible="visible">
<div class="content">
<!-- 左侧文件预览 -->
@@ -44,6 +43,19 @@
</div>
</div>
<!-- 操作按钮 -->
<template slot="footer">
<a-button :loading="confirmLoading" @click="handleCancel">
{{ $t('cancel') }}
</a-button>
<a-button type="primary" :loading="confirmLoading" @click="handleSubmitAddAdd">
{{ $t('submitAddAdd') }}
</a-button>
<a-button type="primary" :loading="confirmLoading" @click="handleOk">
{{ $t('submit') }}
</a-button>
</template>
</j-modal>
</template>
@@ -154,6 +166,21 @@ export default {
handleCancel () {
this.close()
},
// 提交并新增
handleSubmitAddAdd () {
if (this.confirmLoading) return
this.form.validateFields((err, values) => {
if (!err) {
this.confirmLoading = true
const param = Object.assign({}, values)
console.log(param)
this.$emit('ok', param, this.index)
this.form.resetFields()
this.model = {}
this.confirmLoading = false
}
})
},
handleOk () {
if (this.confirmLoading) return
this.form.validateFields((err, values) => {