【变更】 会议新增企业的bug 收入合同的按钮修改

This commit is contained in:
fengachen
2021-11-25 13:44:48 +08:00
parent b14d8329e7
commit 6ed3e6634c
2 changed files with 5 additions and 1 deletions
@@ -227,6 +227,10 @@ export default {
httpurl += this.url.edit
}
const formData = Object.assign(this.model, values)
// 写这个判断是因为 在公司电话的输入框聚焦但是不输入情况下的 字段值会是一个空字符串 会导致后端接口 addMeeting 的报错
if(formData.companyPhone === ''){
formData.companyPhone = undefined
}
console.log('表单提交数据', formData)
httpAction(httpurl, formData, method).then((res) => {
if (res.success) {
@@ -21,7 +21,7 @@
</span>
</a-table>
<a-button type="primary" @click="submitAduit" :loading="associatedProjectLoading" v-if="canOperate" v-preventclick>提交审核</a-button>
<a-button type="primary" @click="submitAduit" :loading="associatedProjectLoading" v-if="canOperate" v-preventclick>{{associatedProjectDataSource.length === 0 ? '提交审核':'提交' }}</a-button>
</div>
</template>