Commit 12c3225b by liuxin

部分前台状态信息由后端控制

parent 2c3516ba
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<template> <template>
<div class="m-Btn-eContainer" v-if="!buttonHide && ((!isReview && !funcBtnHide) || showSetBtn)"> <div class="m-Btn-eContainer" v-if="!buttonHide && ((!isReview && !funcBtnHide) || showSetBtn)">
<div class="m-funcBtn-eContainer" v-if="!isReview && !buttonHide && !funcBtnHide"> <div class="m-funcBtn-eContainer" v-if="!isReview && !buttonHide && !funcBtnHide">
<el-button type="primary" size="small" @click="confirm" :loading="$store.state.Status.loading.confirm">{{ $t('buttons.confirm') }}</el-button> <el-button type="primary" v-show="root.judgeVisiableInfo('mtabut.usrcon')" size="small" @click="confirm" :loading="$store.state.Status.loading.confirm">{{ $t('buttons.confirm') }}</el-button>
<el-button type="primary" size="small" @click="start" :loading="$store.state.Status.loading.submit">{{ $t('buttons.submit') }}</el-button> <el-button type="primary" v-show="root.judgeVisiableInfo('mtabut.sav')" size="small" @click="start" :loading="$store.state.Status.loading.submit">{{ $t('buttons.submit') }}</el-button>
<el-button size="small" @click="check" :loading="$store.state.Status.loading.check">{{ $t('buttons.check') }}</el-button> <el-button size="small" v-show="root.judgeVisiableInfo('mtabut.chk')" @click="check" :loading="$store.state.Status.loading.check">{{ $t('buttons.check') }}</el-button>
<el-button size="small" @click="save" :loading="$store.state.Status.loading.stash">{{ $t('buttons.stash') }}</el-button> <el-button size="small" @click="save" :loading="$store.state.Status.loading.stash">{{ $t('buttons.stash') }}</el-button>
<el-button size="small" @click="handleCancel">{{ $t('buttons.quit') }}</el-button> <el-button size="small" @click="handleCancel">{{ $t('buttons.quit') }}</el-button>
</div> </div>
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
// 反洗钱组件引入 // 反洗钱组件引入
export default { export default {
inject: ["root"],
// 如果需要制裁信息按钮则给组件传 showAml 方法,如果不需要则不传 // 如果需要制裁信息按钮则给组件传 showAml 方法,如果不需要则不传
props: ["handleSubmit", "handleCheck", "handleStash", "handleExit", "hideFuncBtn", "handleConfirm"], props: ["handleSubmit", "handleCheck", "handleStash", "handleExit", "hideFuncBtn", "handleConfirm"],
data: function() { data: function() {
...@@ -79,9 +80,13 @@ export default { ...@@ -79,9 +80,13 @@ export default {
}, },
buttonHide() { buttonHide() {
return this.$route.path.indexOf("display") !== -1; return this.$route.path.indexOf("display") !== -1;
} },
}, },
methods: { methods: {
// judgeVisiableInfo() {
// },
start: async function() { start: async function() {
this.handleSubmit && (await this.handleSubmit()); this.handleSubmit && (await this.handleSubmit());
}, },
......
...@@ -382,6 +382,25 @@ export default { ...@@ -382,6 +382,25 @@ export default {
layout.changeSize(1); layout.changeSize(1);
layout.currentTool = currentTool; layout.currentTool = currentTool;
layout.toolTitle = toolTitle; layout.toolTitle = toolTitle;
},
/**
* 判断状态信息,包括visiable,modified,enabled等
*/
judgeVisiableInfo(rulePath){
var model = this.model;
if(model == null){
return false;
}
var info = this.model.statusInfo;
if(info == null || info.length == 0){
return false;
}
var visiable = info["visiable"];
if(visiable[rulePath] == null){
return false;
}
return visiable[rulePath];
} }
}, },
computed: { computed: {
......
...@@ -299,7 +299,8 @@ export default class Litopn{ ...@@ -299,7 +299,8 @@ export default class Litopn{
hmdmod2:{ hmdmod2:{
bennam:"", // 交易对手名称 .hmdmod2.bennam bennam:"", // 交易对手名称 .hmdmod2.bennam
}, },
pageId: "" // ctx的key pageId: "", // ctx的key
statusInfo: "",
} }
} }
} }
\ No newline at end of file
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