bug修改,同步设置联动控制按钮是否可用

fencang
anthonywj 3 years ago
parent 8aca9b7fce
commit 73749c373f

@ -14,6 +14,7 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="handleAddClick"
:disabled="!configParms.entrustAction"
>新增
</el-button
>
@ -36,6 +37,7 @@
<el-button
type="text"
size="small"
:disabled="!configParms.entrustAction"
@click.native.stop="handleModifyClick(scope.row)"
>编辑
</el-button
@ -43,6 +45,7 @@
<el-button
type="text"
size="small"
:disabled="!configParms.entrustAction"
@click.native.stop="deleteDialog(scope.row)"
>删除
</el-button
@ -111,6 +114,7 @@ import {
} from "../../api/basic/EntrustRece";
import modifyDialog from "./BasicEntrutsReceModify";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default {
data() {
@ -149,6 +153,8 @@ export default {
multipleSelection: [],
uploadFileUrl: null,
headers: {},
configParms: {},
};
},
@ -303,6 +309,16 @@ export default {
.catch(() => {
});
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
},
components: {
modifyDialog,

@ -54,7 +54,7 @@
<template slot-scope="scope">
<el-button
type="text"
size="small"
size="small" :disabled="!configParms.typeBus"
@click.native.stop="handleModifyClick(scope.row)"
>编辑
</el-button

@ -51,6 +51,7 @@
<el-button
type="text"
size="small"
:disabled="!configParms.typeThird"
@click.native.stop="handleModifyClick(scope.row)"
>编辑
</el-button

@ -102,14 +102,14 @@
<el-button
type="text"
size="small"
:disabled="scope.row.pid!=0"
:disabled="scope.row.pid!=0" :disabled="!configParms.basicInv"
@click.native.stop="handleSubForm(scope.row, 'add')"
>添加分库
</el-button
>
<el-button
type="text"
size="small"
size="small" :disabled="!configParms.basicInv"
@click.native.stop="handleForm( scope.row, 'edit')"
>编辑
</el-button
@ -159,21 +159,21 @@
<el-button
type="text"
size="small"
size="small" :disabled="!configParms.basicInv"
@click.native.stop="addUser(scope.row)"
>添加用户
</el-button
>
<el-button
type="text"
size="small"
size="small" :disabled="!configParms.basicInv"
@click.native.stop="addBussinessType(scope.row)"
>添加单据类型
</el-button
>
<el-button
type="text"
size="small"
size="small" :disabled="!configParms.basicInv"
@click.native.stop="handleSubForm( scope.row, 'edit')"
>编辑
</el-button

@ -79,7 +79,7 @@
<el-button
type="text"
size="small"
size="small" :disabled="!configParms.basicThirdInv"
@click.native.stop="handleSubForm( scope.row, 'add')"
>添加分库
</el-button
@ -87,8 +87,7 @@
<el-button
type="text"
size="small"
:disabled="!configParms.basicThirdInv"
size="small" :disabled="!configParms.basicThirdInv"
@click.native.stop="handleForm(node, scope.row, 'edit')"
>编辑
</el-button

@ -272,7 +272,7 @@ export default {
});
},
editDialog(row) {
this.checkQuery = row;
this.checkQuery = JSON.parse(JSON.stringify(row));
this.editDialogVisible = true;
},
cancelDialog() {

Loading…
Cancel
Save