diff --git a/.env.development b/.env.development index 60617e5..041ec31 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,6 @@ NODE_ENV=development VUE_APP_PREVIEW=true VUE_APP_API_BASE_URL=/api -VUE_APP_API_URL=http://192.168.0.53:8099 +VUE_APP_API_URL=http://192.168.0.225:8099 VUE_APP_MAP_BASE_URL=/map -VUE_APP_MAP_URL=http://192.168.0.53:8090 +VUE_APP_MAP_URL=http://192.168.0.225:8090 \ No newline at end of file diff --git a/.env.production b/.env.production index 7d88973..b3cfff7 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ NODE_ENV=production VUE_APP_PREVIEW=true VUE_APP_API_BASE_URL=/api -VUE_APP_API_URL=http://192.168.0.53:8099 +VUE_APP_API_URL=http://192.168.0.225:8099 diff --git a/public/config.js b/public/config.js index 2d1e4c9..02d9207 100644 --- a/public/config.js +++ b/public/config.js @@ -19,7 +19,7 @@ window._CONFIG = { evaluationSrc: 'http://192.168.0.53:8088/thirdLogin/thirdLoginPage?username=admin', // 服务端地址 - VUE_APP_API_URL: 'http://192.168.0.53:8099', + VUE_APP_API_URL: 'http://192.168.0.225:8099', // websocket服务地址 - VUE_APP_WEBSOCKET_URL: 'ws://192.168.0.53:8099', + VUE_APP_WEBSOCKET_URL: 'ws://192.168.0.225:8099', } diff --git a/public/index.html b/public/index.html index 21b42ec..e44d585 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,7 @@ - 基于大数据的智能化后装保障链仿真分析方法工具 + 中印边境自卫作战联合反击后装保障效能全业务全链路仿真系统 diff --git a/src/config/defaultSettings.js b/src/config/defaultSettings.js index 061ae60..ed302b2 100644 --- a/src/config/defaultSettings.js +++ b/src/config/defaultSettings.js @@ -23,7 +23,7 @@ export default { menu: { locale: true }, - title: '基于大数据的智能化后装保障链仿真分析方法工具', + title: '中印边境自卫作战联合反击后装保障效能全业务全链路仿真系统', pwa: false, iconfontUrl: '', production: process.env.NODE_ENV === 'production' && process.env.VUE_APP_PREVIEW !== 'true' diff --git a/src/config/router.config.js b/src/config/router.config.js index 4b67e36..5abd827 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -18,7 +18,7 @@ export const constantRouterMap = [ path: '/', name: 'index', component: RouteView, - meta: { title: '基于大数据的智能化后装保障链仿真分析方法工具' }, + meta: { title: '中印边境自卫作战联合反击后装保障效能全业务全链路仿真系统' }, redirect: '/user/welcome', }, { diff --git a/src/views/subsystem/model/index.vue b/src/views/subsystem/model/index.vue index f14e11d..06ad0d9 100644 --- a/src/views/subsystem/model/index.vue +++ b/src/views/subsystem/model/index.vue @@ -58,12 +58,12 @@ - + –>
key === item.key); + if (target) { + target[column] = value; + this.data = newData; + } + }, + edit(key) { + const newData = [...this.data]; + const target = newData.find(item => key === item.key); + if (target) { + target.editable = true; + this.data = newData; + } + }, + save(key) { + const newData = [...this.data]; + const target = newData.find(item => key === item.key); + if (target) { + delete target.editable; + this.data = newData; + } + }, + cancel(key) { + const newData = [...this.data]; + const target = newData.find(item => key === item.key); + if (target) { + Object.assign(target, this.cacheData.find(item => key === item.key)); + delete target.editable; + this.data = newData; + } + }, + handleDelete(key) { + this.data = this.data.filter(item => item.key !== key); + }, + handleAdd() { + this.data.push({ + key: Date.now(), + name: '', + age: null, + address: '', + editable: true + }); + }, getTree(target, treeData, showKeys) { treeData.forEach((item) => { const newChildren = [] diff --git a/src/views/subsystem/scene/index.vue b/src/views/subsystem/scene/index.vue index 87ace9f..8637a8b 100644 --- a/src/views/subsystem/scene/index.vue +++ b/src/views/subsystem/scene/index.vue @@ -56,7 +56,45 @@
- + +
+ 新增 + + + + + +
+
+
{ this.childWindow && this.childWindow.close() return true // 必须设置 returnValue 才能显示确认框 @@ -276,6 +327,60 @@ export default { }) }, methods: { + getWeathers(){ + this.$http({ + url: `/baseData/weatherResource/list`, + method: 'get', + params: { scenarioId: this.scenarioId}, + }).then(res => { + this.data = res.data + }) + }, + handleChange(value, key, column) { + const newData = [...this.data]; + const target = newData.find(item => key === item.key); + if (target) { + target[column] = value; + this.data = newData; + } + }, + edit(key) { + const newData = [...this.data]; + const target = newData.find(item => key === item.key); + if (target) { + target.editable = true; + this.data = newData; + } + }, + save(key) { + const newData = [...this.data]; + const target = newData.find(item => key === item.key); + if (target) { + delete target.editable; + this.data = newData; + } + }, + cancel(key) { + const newData = [...this.data]; + const target = newData.find(item => key === item.key); + if (target) { + // Object.assign(target, this.newData.find(item => key === item.key)); + delete target.editable; + this.data = newData; + } + }, + handleDelete(key) { + this.data = this.data.filter(item => item.key !== key); + }, + handleAdd() { + this.data.push({ + key: Date.now(), + name: '', + age: null, + address: '', + editable: true + }); + }, getTree(target, treeData, showKeys) { treeData.forEach((item) => { const newChildren = [] diff --git a/src/views/subsystem/scene/presetting.vue b/src/views/subsystem/scene/presetting.vue index 087b583..fe2094c 100644 --- a/src/views/subsystem/scene/presetting.vue +++ b/src/views/subsystem/scene/presetting.vue @@ -131,7 +131,45 @@
- + +
+ 新增 + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+