隐藏未提交状态下的审批按钮
This commit is contained in:
@ -66,7 +66,7 @@
|
||||
</el-form>
|
||||
|
||||
<div class="mb8 btn-list">
|
||||
<el-button
|
||||
<!-- <el-button
|
||||
type="success"
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
@ -74,7 +74,7 @@
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['benyi:themetermplan:edit']"
|
||||
>审批</el-button
|
||||
>
|
||||
> -->
|
||||
</div>
|
||||
|
||||
<el-table
|
||||
@ -147,7 +147,7 @@
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['benyi:themetermplan:edit']"
|
||||
|
||||
v-show="isShow(scope.row)"
|
||||
>审批</el-button
|
||||
>
|
||||
<el-button
|
||||
@ -304,6 +304,14 @@ export default {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// 未提交不显示审批按钮
|
||||
isShow(row) {
|
||||
if (row.status == "0") {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
// 字典翻译
|
||||
classFormat(row, column) {
|
||||
// return this.selectDictLabel(this.classOptions, row.classid);
|
||||
|
Reference in New Issue
Block a user