根据同步设置启用按钮

master
anthonyywj2 3 years ago
parent 1af4b522dc
commit 13436b7b4f

@ -232,15 +232,7 @@ export const asyncRouterMap = [
},
]
},
{
path: "phoneRegisterManage",
component: phoneRegisterManage,
name: "设备管理",
icon: "",
meta: {
authRule: ["admin/phoneRegisterManage"]
}
},
{
path: "/systemParam",
component: Empty,
@ -251,6 +243,15 @@ export const asyncRouterMap = [
authRule: ["systemParam/systemParamConfig"]
},
children: [
{
path: "phoneRegisterManage",
component: phoneRegisterManage,
name: "设备管理",
icon: "",
meta: {
authRule: ["admin/phoneRegisterManage"]
}
},
{
path: "systemParamConfig",
component: systemParamConfig,
@ -277,22 +278,7 @@ export const asyncRouterMap = [
authRule: ["system/BussinessTypeLocl"]
}
},
{
path: "bussinessTypeThird",
name: "第三方单据类型",
component: bussinessTypeThird,
meta: {
authRule: ["system/bussinessTypeThird"]
}
},
{
path: "thirdSys",
name: "第三方系统",
component: thirdSys,
meta: {
authRule: ["system/thirdSys"]
}
},
]
},
@ -350,7 +336,7 @@ export const asyncRouterMap = [
{
path: "spsSyncData",
component: spsSyncData,
name: "数据同步",
name: "同步记录",
icon: "",
meta: {
authRule: ["spsSyncMange/spsSyncData"]
@ -358,6 +344,35 @@ export const asyncRouterMap = [
},
]
},
{
path: "/thrsysMange",
component: Empty,
name: "第三方系统",
redirect: "/thrsysMange/bussinessTypeThird",
icon: "",
meta: {
authRule: ["thrsysMange/manage"]
},
children: [
{
path: "bussinessTypeThird",
name: "单据类型",
component: bussinessTypeThird,
meta: {
authRule: ["thrsysMange/bussinessTypeThird"]
}
},
{
path: "thirdSys",
name: "接口设置",
component: thirdSys,
meta: {
authRule: ["thrsysMange/thirdSys"]
}
},
]
},
// {
// path: "bussinessType",
@ -729,11 +744,15 @@ export const asyncRouterMap = [
}
]
},
]
},
{
path: "/thrsys",
redirect: "/products/thrProducts",
component: Empty,
name: "第三方数据",
icon: "tongyong",
hidden: false,
noDropdown: false,
meta: {
@ -902,9 +921,6 @@ export const asyncRouterMap = [
]
},
]
},
{
path: "/smp",
redirect: "/smp/udiinfoExportSmp",
@ -1140,7 +1156,7 @@ export const asyncRouterMap = [
component: Home,
icon: "tongyong",
name: "API接口",
hidden: false,
hidden: true,
noDropdown: false,
meta: {
authRule: ["api"]

@ -27,6 +27,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.typeScan"
>新增
</el-button
>
@ -159,6 +160,7 @@ import modifyDialog from "./BussinessTypeModify";
import axios from "axios";
import store from "@/store";
import {getLocalJoinBusType} from "@/api/basic/busLocalType";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default {
data() {
@ -226,6 +228,7 @@ export default {
multipleSelection: [],
uploadFileUrl: null,
headers: {},
configParms: {},
};
},
@ -461,6 +464,16 @@ export default {
ADMIN_TOKEN: store.getters.token,
};
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
},
components: {
modifyDialog,
@ -469,6 +482,7 @@ export default {
},
created() {
this.init();
this.getSyncConfig();
this.getList();
},
};

@ -21,6 +21,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.typeBus"
>新增
</el-button
>
@ -117,6 +118,7 @@
import {getLocalBusType, addLocalBusType, updateLocalBusType, deleteLocalBusType} from "@/api/basic/busLocalType";
import modifyDialog from "./BussinessTypeLoclModify";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default {
data() {
@ -155,6 +157,7 @@ export default {
total: 0,
multipleSelection: [],
configParms: {},
};
},
@ -294,6 +297,16 @@ export default {
.catch(() => {
});
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
},
components: {
modifyDialog,
@ -301,7 +314,9 @@ export default {
mounted() {
},
created() {
this.getSyncConfig();
this.getList();
},
};
</script>

@ -29,6 +29,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.typeBus"
>新增
</el-button
>
@ -132,6 +133,7 @@ import {
import modifyDialog from "./BussinessTypeThirdModify";
import axios from "axios";
import {filterDetailByKey, getBasicThirdSys} from "@/api/basic/basicThirdSys";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
export default {
data() {
@ -164,6 +166,7 @@ export default {
uploadFileUrl: null,
loading: false,
thirdSysDetail: {},
configParms:{},
};
},
@ -372,6 +375,16 @@ export default {
this.getList();
}
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
},
components: {
modifyDialog,
@ -380,6 +393,7 @@ export default {
},
created() {
this.init();
this.getSyncConfig();
this.getBasicThirdSys();
this.getList();

@ -10,7 +10,7 @@
同步服务
</template>
<el-row :gutter="20" class="el-row" type="flex">
<el-col :span="6" class="el-col" style="margin-top: 6px">
<el-col :span="6" class="el-col">
<el-switch
v-model="configQuery.downstreamEnable"
@ -20,7 +20,7 @@
</el-col>
<el-col :span="14" class="el-col">
<div>
<span style="color: red;margin-top: 16px">说明:&nbsp;修改同步参数时,请关闭数据同步服务 </span>
<span style="color: red;">说明:&nbsp;修改同步参数时,请关闭数据同步服务 </span>
</div>
</el-col>

@ -22,6 +22,7 @@
>查询</el-button
>
<el-button type="primary" @click.native="handleForm(null, null)"
:disabled="!configParms.sysUser"
>新增</el-button
>
</el-button-group>
@ -171,6 +172,7 @@ import {
authAdminSave,
authAdminDelete
} from "../../../api/auth/authAdmin";
import {findConfig} from "@/api/thrsys/spsSyncStatus";
const formJson = {
id: "",
passWord: "",
@ -216,6 +218,7 @@ export default {
add: "新增",
edit: "编辑"
},
configParms: {},
formLoading: false,
formVisible: false,
formData: formJson,
@ -394,7 +397,17 @@ export default {
this.$message.info("取消删除");
});
}
},
getSyncConfig() {
findConfig()
.then((response) => {
if (response.code == 20000) {
this.configParms = response.data;
}
})
.catch(() => {
});
},
},
filters: {
statusFilterType(status) {
@ -422,6 +435,7 @@ export default {
this.query.limit = parseInt(this.query.limit);
//
this.getList();
this.getSyncConfig();
//
this.getRoleList();
}

Loading…
Cancel
Save