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

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

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

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

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

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

Loading…
Cancel
Save