公司地址

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

@ -2,7 +2,7 @@
# @Author: 张涛 # @Author: 张涛
# @Date: 2023-07-18 13:04:50 # @Date: 2023-07-18 13:04:50
# @LastEditors: JC9527 # @LastEditors: JC9527
# @LastEditTime: 2023-10-11 08:53:18 # @LastEditTime: 2023-10-11 09:40:45
# @FilePath: \Mudu2PC\.env.development # @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://39.101.188.84:9033'
# VUE_APP_BASE_API = 'http://192.168.0.105: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://180.108.205.123:13002'
# VUE_APP_BASE_API = '/api' # 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://192.168.0.105:9033'
# VUE_APP_BASE_API = 'http://39.101.188.84: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://180.108.205.123:13002'
# 路由懒加载 # 路由懒加载

@ -138,20 +138,20 @@ export default {
}) })
.then(() => { .then(() => {
this.$store.dispatch("LogOut").then(() => { this.$store.dispatch("LogOut").then(() => {
// location.href = process.env.NODE_ENV === "production" location.href = process.env.NODE_ENV === "production"
// ? "/demo/suzhouyingjiPC/" ? "/demo/suzhouyingjiPC/"
// : "/"; : "/";
let isGovernmentAffairsNetwork = localStorage.getItem('isGovernmentAffairsNetwork') // let isGovernmentAffairsNetwork = localStorage.getItem('isGovernmentAffairsNetwork')
if(process.env.NODE_ENV === "production") { // if(process.env.NODE_ENV === "production") {
if(isGovernmentAffairsNetwork == '1') { // 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' // 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 { // } else {
location.href = "/" // location.href = "/"
} // }
} else { // } else {
location.href = "/" // location.href = "/"
} // }
}); });
}) })
.catch(() => {}); .catch(() => {});

@ -112,21 +112,21 @@ export default {
}) })
.then(() => { .then(() => {
this.$store.dispatch("LogOut").then(() => { this.$store.dispatch("LogOut").then(() => {
// location.href = process.env.NODE_ENV === "production" location.href = process.env.NODE_ENV === "production"
// ? "/demo/suzhouyingjiPC/" ? "/demo/suzhouyingjiPC/"
// : "/"; : "/";
let isGovernmentAffairsNetwork = localStorage.getItem('isGovernmentAffairsNetwork') // let isGovernmentAffairsNetwork = localStorage.getItem('isGovernmentAffairsNetwork')
if(process.env.NODE_ENV === "production") { // if(process.env.NODE_ENV === "production") {
console.log('production') // console.log('production')
if(isGovernmentAffairsNetwork == '1') { // if(isGovernmentAffairsNetwork == '1') {
console.log('进入跳转政务网的登录页') // 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' // 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 { // } else {
location.href = "/" // location.href = "/"
} // }
} else { // } else {
location.href = "/" // location.href = "/"
} // }
}); });
}) })
.catch(() => {}); .catch(() => {});

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

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

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

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

Loading…
Cancel
Save