|
@@ -4,8 +4,8 @@
|
|
<el-col :span="8" v-if="$store.state.windowsSize.width >= 1300" class="logoBox">
|
|
<el-col :span="8" v-if="$store.state.windowsSize.width >= 1300" class="logoBox">
|
|
<div class="logo"></div>
|
|
<div class="logo"></div>
|
|
<div class="title">
|
|
<div class="title">
|
|
- {{ systemInfo.c_system_name ? systemInfo.c_system_name : "浦东新区资源环境智慧审计平台" }}
|
|
|
|
- <span class="title_version">Version:{{ systemInfo.c_version ? systemInfo.c_version : "版本信息获取失败!" }}</span>
|
|
|
|
|
|
+ {{ systemInfo.system_name ? systemInfo.system_name : "浦东新区资源环境智慧审计平台" }}
|
|
|
|
+ <span class="title_version">Version:{{ systemInfo.version ? systemInfo.version : "版本信息获取失败!" }}</span>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="2" v-if="$store.state.windowsSize.width < 1300" class="logoBox">
|
|
<el-col :span="2" v-if="$store.state.windowsSize.width < 1300" class="logoBox">
|
|
@@ -120,12 +120,12 @@ export default {
|
|
// 请求系统信息
|
|
// 请求系统信息
|
|
getSystemInfo() {
|
|
getSystemInfo() {
|
|
let params = new FormData();
|
|
let params = new FormData();
|
|
- params.append("columnId", "83");
|
|
|
|
|
|
+ params.append("columnId", "33");
|
|
params.append("states", "2,3");
|
|
params.append("states", "2,3");
|
|
params.append("pageSize", 10);
|
|
params.append("pageSize", 10);
|
|
params.append("page", 0);
|
|
params.append("page", 0);
|
|
- let sortparam = [{ field: "c_publish_time", orderByType: 2 }];
|
|
|
|
- params.append("orderBy", JSON.stringify(sortparam));
|
|
|
|
|
|
+ // let sortparam = [{ field: "c_publish_time", orderByType: 2 }];
|
|
|
|
+ // params.append("orderBy", JSON.stringify(sortparam));
|
|
this.$Post(this.urlsCollection.selectContentList, params).then(
|
|
this.$Post(this.urlsCollection.selectContentList, params).then(
|
|
res => {
|
|
res => {
|
|
if (res.code === 200 && res.content.data.length > 0) {
|
|
if (res.code === 200 && res.content.data.length > 0) {
|
|
@@ -134,13 +134,13 @@ export default {
|
|
this.systemInfo = tableData[0];
|
|
this.systemInfo = tableData[0];
|
|
let systemVersion = localStorage.getItem("SYSTEM_VERSION");
|
|
let systemVersion = localStorage.getItem("SYSTEM_VERSION");
|
|
if (systemVersion) {
|
|
if (systemVersion) {
|
|
- if (systemVersion != this.systemInfo.c_version) {
|
|
|
|
|
|
+ if (systemVersion != this.systemInfo.version) {
|
|
this.$message.success("新版本已发布!自动更新中!");
|
|
this.$message.success("新版本已发布!自动更新中!");
|
|
- localStorage.setItem("SYSTEM_VERSION", this.systemInfo.c_version);
|
|
|
|
|
|
+ localStorage.setItem("SYSTEM_VERSION", this.systemInfo.version);
|
|
window.location.reload();
|
|
window.location.reload();
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- localStorage.setItem("SYSTEM_VERSION", this.systemInfo.c_version);
|
|
|
|
|
|
+ localStorage.setItem("SYSTEM_VERSION", this.systemInfo.version);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|