根据同步设置启用按钮

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", path: "/systemParam",
component: Empty, component: Empty,
@ -251,6 +243,15 @@ export const asyncRouterMap = [
authRule: ["systemParam/systemParamConfig"] authRule: ["systemParam/systemParamConfig"]
}, },
children: [ children: [
{
path: "phoneRegisterManage",
component: phoneRegisterManage,
name: "设备管理",
icon: "",
meta: {
authRule: ["admin/phoneRegisterManage"]
}
},
{ {
path: "systemParamConfig", path: "systemParamConfig",
component: systemParamConfig, component: systemParamConfig,
@ -277,22 +278,7 @@ export const asyncRouterMap = [
authRule: ["system/BussinessTypeLocl"] 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", path: "spsSyncData",
component: spsSyncData, component: spsSyncData,
name: "数据同步", name: "同步记录",
icon: "", icon: "",
meta: { meta: {
authRule: ["spsSyncMange/spsSyncData"] 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", // path: "bussinessType",
@ -729,179 +744,180 @@ export const asyncRouterMap = [
} }
] ]
}, },
]
},
{
path: "/thrsys",
redirect: "/products/thrProducts",
component: Empty,
name: "第三方数据",
icon: "tongyong",
hidden: false,
noDropdown: false,
meta: {
authRule: ["thrsys"]
},
children: [
{
path: "thrInvWarehouse",
component: thrInvWarehouse,
name: "仓库信息",
icon: "",
meta: {
authRule: ["thrsys/thrInvWarehouse"]
}
},
{ {
path: "/thrsys", path: "/products",
redirect: "/products/thrProducts", redirect: "/products/thrProducts",
name: "产品信息",
component: Empty, component: Empty,
name: "第三方数据",
hidden: false,
noDropdown: false,
meta: { meta: {
authRule: ["thrsys"] authRule: ["thrsys/thrProducts"]
}, },
children: [ children: [
{ {
path: "thrInvWarehouse", path: "thrProducts",
component: thrInvWarehouse, name: "产品信息查询",
name: "仓库信息", component: thrProducts,
icon: "", meta: {
authRule: ["thrsys/thrProducts/search"]
},
},
{
path: "thrProductsImport",
name: "产品信息导入",
component: thrProductsImport,
meta: { meta: {
authRule: ["thrsys/thrInvWarehouse"] authRule: ["thrsys/thrProductsImport"]
} }
}, },
{ {
path: "/products", path: "thrProductsExport",
redirect: "/products/thrProducts", name: "产品信息导出",
name: "产品信息", component: thrProductsExport,
component: Empty,
meta: { meta: {
authRule: ["thrsys/thrProducts"] authRule: ["thrsys/thrProductsExport"]
}, }
children: [
{
path: "thrProducts",
name: "产品信息查询",
component: thrProducts,
meta: {
authRule: ["thrsys/thrProducts/search"]
},
},
{
path: "thrProductsImport",
name: "产品信息导入",
component: thrProductsImport,
meta: {
authRule: ["thrsys/thrProductsImport"]
}
},
{
path: "thrProductsExport",
name: "产品信息导出",
component: thrProductsExport,
meta: {
authRule: ["thrsys/thrProductsExport"]
}
},
]
}, },
]
},
{
path: "/corps",
redirect: "/corps/ThrCorps",
name: "往来单位",
component: Empty,
meta: {
authRule: ["thrsys/corp"]
},
children: [
{ {
path: "/corps", path: "ThrCorps",
redirect: "/corps/ThrCorps", name: "往来单位查询",
name: "往来单位", component: ThrCorps,
component: Empty,
meta: { meta: {
authRule: ["thrsys/corp"] authRule: ["thrsys/ThrCorps"]
}, }
children: [
{
path: "ThrCorps",
name: "往来单位查询",
component: ThrCorps,
meta: {
authRule: ["thrsys/ThrCorps"]
}
},
{
path: "thrCorpsImport",
name: "往来单位导入",
component: thrCorpsImport,
meta: {
authRule: ["thrsys/thrCorpsImport"]
}
},
{
path: "thrCorpsExport",
name: "往来单位导出",
component: thrCorpsExport,
meta: {
authRule: ["thrsys/thrCorpsExport"]
}
}
],
}, },
{ {
path: "/orders", path: "thrCorpsImport",
redirect: "/orders/ThrOrders", name: "往来单位导入",
name: "业务单据", component: thrCorpsImport,
component: Empty,
meta: { meta: {
authRule: ["thrsys/throrders"] authRule: ["thrsys/thrCorpsImport"]
}, }
children: [
{
path: "ThrOrders",
name: "业务单据查询",
component: ThrOrders,
meta: {
authRule: ["thrsys/order/search"]
}
},
{
path: "thrOrderImport",
name: "业务单据导入",
component: thrOrderImport,
meta: {
authRule: ["thrsys/thrOrderImport"]
}
},
{
path: "thrOrderExport",
name: "业务单据导出",
component: thrOrderExport,
meta: {
authRule: ["thrsys/thrOrderExport"]
}
},],
}, },
{ {
path: "/invProducts", path: "thrCorpsExport",
redirect: "/invProducts/ThrInvProducts", name: "往来单位导出",
name: "库存信息", component: thrCorpsExport,
component: Empty,
meta: { meta: {
authRule: ["thrsys/inv"] authRule: ["thrsys/thrCorpsExport"]
}, }
children: [ }
],
{ },
path: "ThrInvProducts", {
name: "库存信息查询", path: "/orders",
component: ThrInvProducts, redirect: "/orders/ThrOrders",
meta: { name: "业务单据",
authRule: ["thrsys/ThrInvProducts"] component: Empty,
} meta: {
}, authRule: ["thrsys/throrders"]
{ },
path: "thrInvProductsImport", children: [
name: "库存信息导入", {
component: thrInvProductsImport, path: "ThrOrders",
meta: { name: "业务单据查询",
authRule: ["thrsys/thrInvProductsImport"] component: ThrOrders,
} meta: {
}, authRule: ["thrsys/order/search"]
{ }
path: "thrInvProductsExport",
name: "库存信息导出",
component: thrInvProductsExport,
meta: {
authRule: ["thrsys/thrInvProductsExport"]
}
},]
}, },
{
path: "thrOrderImport",
name: "业务单据导入",
component: thrOrderImport,
meta: {
authRule: ["thrsys/thrOrderImport"]
}
},
{
path: "thrOrderExport",
name: "业务单据导出",
component: thrOrderExport,
meta: {
authRule: ["thrsys/thrOrderExport"]
}
},],
},
{
path: "/invProducts",
redirect: "/invProducts/ThrInvProducts",
name: "库存信息",
component: Empty,
meta: {
authRule: ["thrsys/inv"]
},
children: [
// { {
// path: "thirdSys", path: "ThrInvProducts",
// name: "参数设置", name: "库存信息查询",
// component: thirdSys, component: ThrInvProducts,
// meta: { meta: {
// authRule: ["thrsys/thirdSys"] authRule: ["thrsys/ThrInvProducts"]
// } }
// }, },
{
] path: "thrInvProductsImport",
name: "库存信息导入",
component: thrInvProductsImport,
meta: {
authRule: ["thrsys/thrInvProductsImport"]
}
},
{
path: "thrInvProductsExport",
name: "库存信息导出",
component: thrInvProductsExport,
meta: {
authRule: ["thrsys/thrInvProductsExport"]
}
},]
}, },
// {
// path: "thirdSys",
// name: "参数设置",
// component: thirdSys,
// meta: {
// authRule: ["thrsys/thirdSys"]
// }
// },
] ]
}, },
@ -1140,7 +1156,7 @@ export const asyncRouterMap = [
component: Home, component: Home,
icon: "tongyong", icon: "tongyong",
name: "API接口", name: "API接口",
hidden: false, hidden: true,
noDropdown: false, noDropdown: false,
meta: { meta: {
authRule: ["api"] authRule: ["api"]

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

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

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

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

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

Loading…
Cancel
Save