吕天方 1 year ago
commit 6c93d9fa48

@ -12,8 +12,8 @@ VUE_APP_TITLE = 苏州应急执法计划管理系统
ENV = 'development' ENV = 'development'
# 苏州应急执法计划管理系统/开发环境 # 苏州应急执法计划管理系统/开发环境
# VUE_APP_BASE_API = 'http://localhost:9028' VUE_APP_BASE_API = 'http://39.101.188.84:9033'
VUE_APP_BASE_API = '/api' # VUE_APP_BASE_API = '/api'
# 路由懒加载 # 路由懒加载

@ -6,7 +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'
# 路由懒加载 # 路由懒加载

@ -139,9 +139,11 @@ export default {
.then(() => { .then(() => {
this.$store.dispatch("LogOut").then(() => { this.$store.dispatch("LogOut").then(() => {
location.href = location.href =
process.env.NODE_ENV === "production" // process.env.NODE_ENV === "production"
? "/demo/suzhouyingjiPC/" // ? "/demo/suzhouyingjiPC/"
: "/"; // : "/";
location.href =
process.env.NODE_ENV === "production" ? "./" : "/";
}); });
}) })
.catch(() => {}); .catch(() => {});

@ -51,13 +51,13 @@
<el-dropdown-item @click.native="logout">退出登录</el-dropdown-item> <el-dropdown-item @click.native="logout">退出登录</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
<div <!-- <div
class="showGLstyle" class="showGLstyle"
v-if="roles && roles[0] == 'admin'" v-if="roles && roles[0] == 'admin'"
@click="toNewPage" @click="toNewPage"
> >
进入管理平台 进入管理平台
</div> </div> -->
</header> </header>
<div class="bottom-view"> <div class="bottom-view">
<router-view></router-view> <router-view></router-view>
@ -113,9 +113,12 @@ export default {
.then(() => { .then(() => {
this.$store.dispatch("LogOut").then(() => { this.$store.dispatch("LogOut").then(() => {
location.href = location.href =
process.env.NODE_ENV === "production" // process.env.NODE_ENV === "production"
? "/demo/suzhouyingjiPC/" // ? "/demo/suzhouyingjiPC/"
: "/"; // : "/";
location.href =
process.env.NODE_ENV === "production" ? "./" : "/";
}); });
}) })
.catch(() => {}); .catch(() => {});

@ -46,10 +46,16 @@ export default {
dept: (state) => state.user.dept, dept: (state) => state.user.dept,
}), }),
}, },
props: {
none: {
type: Boolean,
default: false,
},
},
methods: { methods: {
xzList() { xzList() {
xzTree().then((res) => { xzTree().then((res) => {
if (this.dept.parentId == 0 || this.dept.leader == 'admin') { if (this.dept.parentId == 0 || this.dept.leader == "admin") {
res.data.forEach((value, index) => { res.data.forEach((value, index) => {
this.compartment.push({ this.compartment.push({
value: value.county, value: value.county,
@ -66,10 +72,11 @@ export default {
} }
}); });
} }
this.$emit("quhuadizhi", this.compartment) this.$emit("quhuadizhi", this.compartment);
}); });
}, },
getData(e) { getData(e) {
if (!this.none) {
if (e.length == 1) { if (e.length == 1) {
this.$emit("quhua", e[0].slice(1, 8)); this.$emit("quhua", e[0].slice(1, 8));
} else if (e.length == 2 && e[0] == e[1]) { } else if (e.length == 2 && e[0] == e[1]) {
@ -77,6 +84,15 @@ export default {
} else { } else {
this.$emit("quhua", e[1].slice(1, 11)); this.$emit("quhua", e[1].slice(1, 11));
} }
} else {
if (e.length == 1) {
this.$emit("quhua", e[0]);
} else if (e.length == 2 && e[0] == e[1]) {
this.$emit("quhua", e[0]);
} else {
this.$emit("quhua", e[1]);
}
}
}, },
}, },
}; };
@ -88,7 +104,10 @@ export default {
.el-input__inner { .el-input__inner {
height: 33px; height: 33px;
} }
.el-input .el-input__suffix .el-input__suffix-inner .el-icon-arrow-down::before { .el-input
.el-input__suffix
.el-input__suffix-inner
.el-icon-arrow-down::before {
content: ""; content: "";
background: url(../../../assets/images/down2.png) center center no-repeat; background: url(../../../assets/images/down2.png) center center no-repeat;
background-size: cover; background-size: cover;

@ -139,9 +139,9 @@ export default {
position: "center", position: "center",
formatter: function (params) { formatter: function (params) {
console.log(params); console.log(params);
return `{a|${Number(params.data.pt) * 100}%}\n{b|${ return `{a|${(Number(params.data.pt) * 100).toFixed(
params.data.name 2
}完成率}`; )}%}\n{b|${params.data.name}完成率}`;
}, },
rich: { rich: {
a: { a: {

@ -23,7 +23,7 @@
</div> </div>
<div class="select-input"> <div class="select-input">
<div class="select-span">区划:</div> <div class="select-span">区划:</div>
<executive @quhua="quhua" @quhuadizhi="quhuadizhi" ref="executive"></executive> <executive @quhua="quhua" @quhuadizhi="quhuadizhi" :none="true" ref="executive"></executive>
</div> </div>
<div class="my-checkbox"> <div class="my-checkbox">
<el-checkbox-group v-model="checkList" @change="setmealSelect"> <el-checkbox-group v-model="checkList" @change="setmealSelect">

@ -11,13 +11,13 @@
<div class="enforce-the-law-title"> <div class="enforce-the-law-title">
<div class="filtrate-condition"> <div class="filtrate-condition">
<div class="select-input"> <div class="select-input">
<div class="select-span">:</div> <div class="select-span">:</div>
<div> <div>
<el-date-picker <el-date-picker
v-model="queryParms.year" v-model="queryParms.year"
type="month" type="year"
placeholder="请选择" placeholder="请选择年份"
value-format="yyyy-MM" value-format="yyyy"
size="small" size="small"
> >
</el-date-picker> </el-date-picker>
@ -89,9 +89,9 @@
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column type="selection" width="55"></el-table-column> <el-table-column type="selection" width="55"></el-table-column>
<el-table-column prop="year" label="计划年" header-align="center"> <el-table-column prop="year" label="计划年" header-align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ $moment(new Date(scope.row.year)).format("yyyy-MM") }} {{ $moment(new Date(scope.row.year)).format("yyyy") }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -270,7 +270,7 @@
<div class="filtrate"> <div class="filtrate">
<el-descriptions :column="2" border> <el-descriptions :column="2" border>
<el-descriptions-item label="计划年份"> <el-descriptions-item label="计划年份">
{{ $moment(new Date(details.year)).format("yyyy-MM") }} {{ $moment(new Date(details.year)).format("yyyy") }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="企业名称"> <el-descriptions-item label="企业名称">
{{ details.enterpriseName }} {{ details.enterpriseName }}
@ -934,4 +934,3 @@ export default {
// line-height: 40px; // line-height: 40px;
} }
</style> </style>

@ -25,7 +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" ? "./" : "/",
// 在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) 的;(项目打包之后,静态资源会放在这个文件夹下)
@ -48,15 +49,14 @@ module.exports = {
// ["^" + process.env.VUE_APP_BASE_API]: "", // ["^" + process.env.VUE_APP_BASE_API]: "",
// }, // },
// }, // },
'/api': { "/api": {
target: `http://39.101.188.84:9033`, target: `http://39.101.188.84:9033`,
// target: `http://192.168.0.119:9033`, // target: `http://192.168.0.119:9033`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/api': '' "^/api": "",
}, },
}, },
}, },
disableHostCheck: true, disableHostCheck: true,
}, },

Loading…
Cancel
Save