Commit 9dbc859f by Joey

fix(@gms/gms-plugin-billexpand): 提交按钮在弹窗模式下报错

parent 65078ea6
import Bridge from '../components-control/util/bridge'
import typesBill from '../components-control/typesBill.vue';
import { getUUID } from "../query-actions/util/lib"; import { getUUID } from "../query-actions/util/lib";
export default { export default {
execute: function (bill, param) { execute: function (bill, param) {
...@@ -13,7 +16,7 @@ export default { ...@@ -13,7 +16,7 @@ export default {
if (code === 200) { if (code === 200) {
// GMS.$hideContainer.$Spin.hide(); // GMS.$hideContainer.$Spin.hide();
const id = data.content.billData.id const id = data.content.billData.id
GMS.vbus.$emit('change-form-state', { state: 'readOnly', billId: id}) // GMS.vbus.$emit('change-form-state', { state: 'readOnly', billId: id})
GMS.$hideContainer.$Message.success('提交成功'); GMS.$hideContainer.$Message.success('提交成功');
if ( if (
...@@ -37,8 +40,13 @@ export default { ...@@ -37,8 +40,13 @@ export default {
); );
} }
else { else {
GMS.$hideContainer.$router.push({ Bridge.vm.modal_visible = false
path: "/showInnerBillForm/" + param.param.viewName + "/" + billId GMS.$hideContainer.addComponent(typesBill, {}, function (c) {
c.templateName = param.param.viewName;
c.billId = id;
c.init = true;
c.modal_visible = true;
c.isReadOnly = true
}) })
} }
} else if (code === 201) { } else if (code === 201) {
......
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