Commit f9a18dc7 by 袁成

fix: goToDetail配置隐藏工具栏

parent 9c1c5095
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
:id="billId" :id="billId"
:type="billId ? 'load' : 'init'" :type="billId ? 'load' : 'init'"
:state="state" :state="state"
:hideButtonGroup="hideButtonGroup"
@loadFinish="loadFinishFun" @loadFinish="loadFinishFun"
v-if="init" v-if="init"
></gms-bill-form> ></gms-bill-form>
...@@ -39,6 +40,7 @@ export default { ...@@ -39,6 +40,7 @@ export default {
isReadOnly: false, isReadOnly: false,
billClass: null, billClass: null,
oldBillData: null, oldBillData: null,
hideButtonGroup: false
}; };
}, },
watch: { watch: {
......
...@@ -40,6 +40,14 @@ export default { ...@@ -40,6 +40,14 @@ export default {
}, },
immediate: true immediate: true
}, },
'tmpBill.$attrs.hideButtonGroup': {
handler(nv) {
if (nv) {
this.buttonShow = false
}
},
immediate: true
},
}, },
mounted() { mounted() {
......
...@@ -702,7 +702,14 @@ export default { ...@@ -702,7 +702,14 @@ export default {
"type": "field", "type": "field",
"title": "单据id", "title": "单据id",
"key": "billId" "key": "billId"
} },
{
"isRequired": true,
"ref": "columnField",
"type": "Boolean",
"title": "隐藏工具栏",
"key": "hideButton"
},
] ]
}, },
"description": "指定跳转页面,配置单据id和单据类型,通过在当前页签打开形式进行跳转", "description": "指定跳转页面,配置单据id和单据类型,通过在当前页签打开形式进行跳转",
......
...@@ -24,7 +24,8 @@ export default { ...@@ -24,7 +24,8 @@ export default {
{ {
templateName: context.selects[0][param.viewName], templateName: context.selects[0][param.viewName],
id: context.selects[0][param.billId], id: context.selects[0][param.billId],
state: 'readOnly' state: 'readOnly',
hideButtonGroup: param.hideButton? true: false
}, },
{ {
openWay: "FUNCTAB", openWay: "FUNCTAB",
...@@ -39,6 +40,7 @@ export default { ...@@ -39,6 +40,7 @@ export default {
c.modal_visible = true; c.modal_visible = true;
c.isReadOnly = true c.isReadOnly = true
c.state = 'readOnly' c.state = 'readOnly'
c.hideButtonGroup = param.hideButton? true: false
}) })
} }
} }
......
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