公司地址

zhangtao
吕天方 1 year ago
parent 80f5d82c2f
commit 72507970ae

@ -2,7 +2,7 @@
# @Author: 张涛
# @Date: 2023-07-18 13:04:50
# @LastEditors: JC9527
# @LastEditTime: 2023-10-11 08:53:18
# @LastEditTime: 2023-10-11 09:40:45
# @FilePath: \Mudu2PC\.env.development
###
# 页面标题
@ -13,8 +13,8 @@ ENV = 'development'
# 苏州应急执法计划管理系统/开发环境
# VUE_APP_BASE_API = 'http://39.101.188.84:9033'
# VUE_APP_BASE_API = 'http://192.168.0.105:9033'
VUE_APP_BASE_API = 'http://180.108.205.123:13002'
VUE_APP_BASE_API = 'http://192.168.0.105:9033'
# VUE_APP_BASE_API = 'http://180.108.205.123:13002'
# VUE_APP_BASE_API = '/api'

@ -6,8 +6,8 @@ ENV = 'production'
# 苏州应急执法计划管理系统/生产环境
# VUE_APP_BASE_API = 'http://192.168.0.105:9033'
# VUE_APP_BASE_API = 'http://39.101.188.84:9033'
VUE_APP_BASE_API = 'http://180.108.205.123:13002'
VUE_APP_BASE_API = 'http://39.101.188.84:9033'
# VUE_APP_BASE_API = 'http://180.108.205.123:13002'
# 路由懒加载

@ -138,20 +138,20 @@ export default {
})
.then(() => {
this.$store.dispatch("LogOut").then(() => {
// location.href = process.env.NODE_ENV === "production"
// ? "/demo/suzhouyingjiPC/"
// : "/";
location.href = process.env.NODE_ENV === "production"
? "/demo/suzhouyingjiPC/"
: "/";
let isGovernmentAffairsNetwork = localStorage.getItem('isGovernmentAffairsNetwork')
if(process.env.NODE_ENV === "production") {
if(isGovernmentAffairsNetwork == '1') {
location.href = 'http://180.108.205.123:8090/sso-server/oauth2/login?aid=17847210&cbu=http%3A%2F%2F180.108.205.123%3A13001%2F'
} else {
location.href = "/"
}
} else {
location.href = "/"
}
// let isGovernmentAffairsNetwork = localStorage.getItem('isGovernmentAffairsNetwork')
// if(process.env.NODE_ENV === "production") {
// if(isGovernmentAffairsNetwork == '1') {
// location.href = 'http://180.108.205.123:8090/sso-server/oauth2/login?aid=17847210&cbu=http%3A%2F%2F180.108.205.123%3A13001%2F'
// } else {
// location.href = "/"
// }
// } else {
// location.href = "/"
// }
});
})
.catch(() => {});

@ -112,21 +112,21 @@ export default {
})
.then(() => {
this.$store.dispatch("LogOut").then(() => {
// location.href = process.env.NODE_ENV === "production"
// ? "/demo/suzhouyingjiPC/"
// : "/";
let isGovernmentAffairsNetwork = localStorage.getItem('isGovernmentAffairsNetwork')
if(process.env.NODE_ENV === "production") {
console.log('production')
if(isGovernmentAffairsNetwork == '1') {
console.log('进入跳转政务网的登录页')
location.href = 'http://180.108.205.123:8090/sso-server/oauth2/login?aid=17847210&cbu=http%3A%2F%2F180.108.205.123%3A13001%2F'
} else {
location.href = "/"
}
} else {
location.href = "/"
}
location.href = process.env.NODE_ENV === "production"
? "/demo/suzhouyingjiPC/"
: "/";
// let isGovernmentAffairsNetwork = localStorage.getItem('isGovernmentAffairsNetwork')
// if(process.env.NODE_ENV === "production") {
// console.log('production')
// if(isGovernmentAffairsNetwork == '1') {
// console.log('')
// location.href = 'http://180.108.205.123:8090/sso-server/oauth2/login?aid=17847210&cbu=http%3A%2F%2F180.108.205.123%3A13001%2F'
// } else {
// location.href = "/"
// }
// } else {
// location.href = "/"
// }
});
})
.catch(() => {});

@ -210,8 +210,8 @@ Router.prototype.replace = function push(location) {
};
export default new Router({
mode: "history", // 去掉url中的#
base: "/",
// mode: "history", // 去掉url中的#
// base: "/",
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes,
});

@ -215,7 +215,7 @@
<template slot-scope="scope">
<dict-tag
:options="dict.type.entpr_color"
:value="scope.row.entprColor"
:value="scope.row.entprColor || '/'"
>
</dict-tag>
</template>

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2023-09-04 10:20:06
* @LastEditors: JC9527
* @LastEditTime: 2023-10-10 16:14:06
* @LastEditTime: 2023-10-11 10:28:00
-->
<template>
<div class="plan-management">
@ -189,6 +189,7 @@
district:[],
plannedYear:''
},
district:[],
mydistrict:'',
props:{
value:'county',
@ -268,11 +269,11 @@
if(!this.disabled) {
if(Array.isArray(newForm.district)){
if(newForm.district.length == 2) {
let district = this.form.district[1].slice(0, 11);
obj = { ...this.pages, ...this.form,district };
this.district = this.form.district[1].slice(0, 10);
obj = { ...this.pages, ...this.form,district:this.district };
} else if(newForm.district.length == 1) {
let district = this.form.district[0].slice(0, 8);
obj = { ...this.pages, ...this.form,district };
this.district = this.form.district[0].slice(0, 7);
obj = { ...this.pages, ...this.form,district:this.district };
} else {
obj = { ...this.pages, ...this.form};
}
@ -280,11 +281,11 @@
} else {
//
if(this.county){
let district = this.form.district.slice(0, 8);
obj = { ...this.pages, ...this.form,district };
this.district = this.form.district.slice(0, 7);
obj = { ...this.pages, ...this.form,district:this.district };
} else {
let district = this.form.district.slice(0, 11);
obj = { ...this.pages, ...this.form,district };
this.district = this.form.district.slice(0, 10);
obj = { ...this.pages, ...this.form,district:this.district };
}
}
} else {
@ -294,8 +295,8 @@
// obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
// } else if(this.dept.ancestors.split(',').length == 3){
// let district = this.form.district.slice(1, 11);
let district = this.form.district;
obj = { ...this.pages, ...this.form,district };
this.district = this.form.district;
obj = { ...this.pages, ...this.form,district:this.district };
// }
}
// console.log(obj,'obj')
@ -328,24 +329,24 @@
// console.log('123123')
this.pages = pages
let district
if(this.dept.ancestors.split(',').length == 2){
if(Array.isArray(this.form.district)) {
if(this.form.district.length == 2) {
district = this.form.district[1].slice(0, 11);
}
} else {
district = this.form.district.slice(0, 8);
}
} else if(this.dept.ancestors.split(',').length == 3){
district = this.form.district[1].slice(0, 11);
} else {
if(this.form.district.length == 2) {
district = this.form.district[1].slice(0, 11);
} else if(this.form.district.length == 1){
district = this.form.district[0].slice(0, 8);
}
}
this.getList({...pages,...this.form,district:district})
// if(this.dept.ancestors.split(',').length == 2){
// if(Array.isArray(this.form.district)) {
// if(this.form.district.length == 2) {
// district = this.form.district[1].slice(0, 10);
// }
// } else {
// district = this.form.district.slice(0, 7);
// }
// } else if(this.dept.ancestors.split(',').length == 3){
// district = this.form.district[1].slice(0, 10);
// } else {
// if(this.form.district.length == 2) {
// district = this.form.district[1].slice(0, 10);
// } else if(this.form.district.length == 1){
// district = this.form.district[0].slice(0, 7);
// }
// }
this.getList({...pages,...this.form,district:this.district})
},
//
handleSelectionChange(val) {
@ -372,21 +373,21 @@
type: "warning",
})
.then(() => {
let district
if(Array.isArray(this.form.district)){
if(this.form.district.length == 1){
district = this.form.district[0];
} else if(this.form.district.length == 2){
district = this.form.district[1];
}
} else {
district = this.form.district;
}
// let district
// if(Array.isArray(this.form.district)){
// if(this.form.district.length == 1){
// district = this.form.district[0];
// } else if(this.form.district.length == 2){
// district = this.form.district[1];
// }
// } else {
// district = this.form.district;
// }
this.download(
"/pharmaceuticals/bPlanEnterprise/exportplan",
{
...this.form,
district
district:this.district
},
`计划管理.xlsx`
);
@ -403,6 +404,7 @@
// this.pages.pageSize = 10;
// this.$refs.mypagination.defaultPages();
// let obj
this.district = [];
if(this.dept.ancestors.split(',').length == 1) {
this.form = {
plannedYear:'',
@ -427,10 +429,10 @@
if(!this.disabled) {
if(Array.isArray(this.form.district)){
if(this.form.district.length == 2) {
let district = this.form.district[1].slice(0, 11);
let district = this.form.district[1].slice(0, 10);
obj = { ...this.pages, ...this.form,district };
} else if(this.form.district.length == 1) {
let district = this.form.district[0].slice(0, 8);
let district = this.form.district[0].slice(0, 7);
obj = { ...this.pages, ...this.form,district };
} else {
obj = { ...this.pages, ...this.form};
@ -439,10 +441,10 @@
} else {
//
if(this.county){
let district = this.form.district.slice(0, 8);
let district = this.form.district.slice(0, 7);
obj = { ...this.pages, ...this.form,district };
} else {
let district = this.form.district.slice(0, 11);
let district = this.form.district.slice(0, 10);
obj = { ...this.pages, ...this.form,district };
}
}
@ -520,12 +522,12 @@
// let { district} = this.form;
let district
if(this.dept.ancestors.split(',').length == 2) {
district = this.form.district.slice(0, 8);
district = this.form.district.slice(0, 7);
} else if(this.dept.ancestors.split(',').length == 3) {
district = this.form.district;
} else {
if(this.form.district.length == 1) {
district = this.form.district.slice(0, 8);
district = this.form.district.slice(0, 7);
} else {
district = this.form.district;
}

@ -25,8 +25,8 @@ module.exports = {
// 部署生产环境和开发环境下的URL。
// 默认情况下Vue CLI 会假设你的应用是被部署在一个域名的根路径上
// 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。
// publicPath: process.env.NODE_ENV === "production" ? "/demo/suzhouyingjiPC/" : "/",
publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
publicPath: process.env.NODE_ENV === "production" ? "/demo/suzhouyingjiPC/" : "/",
// publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
// 在npm run build 或 yarn build 时 生成文件的目录名称要和baseUrl的生产环境路径一致默认dist
outputDir: "dist",
// 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)

Loading…
Cancel
Save