Commit 0238fa63 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化新增业务

parent f109d4c0
......@@ -181,6 +181,7 @@ export default {
// 确定
handleOk() {
this.$refs.formData.validate(async (valid) => {
console.log(this.form.parentId);
if (valid) {
this.confirmLoading = true;
let res = await saveBusiness({
......@@ -190,8 +191,9 @@ export default {
let { code, msg, data } = res.data;
if (code === 1) {
if (!this.form.id) {
let businessId = data.id ? data.id : data.entity.id;
let result = await addInBusiness({
businessIds: String(data.entity.id),
businessIds: String(businessId),
siteId: this.siteId,
});
if (result.data.code === 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment