diff --git a/config/index.js b/config/index.js index fd2332c..da1b580 100644 --- a/config/index.js +++ b/config/index.js @@ -48,10 +48,10 @@ build: { // Template for index.htmlru - index: path.resolve(__dirname, '../smartwell/index.html'), + index: path.resolve(__dirname, '../dist/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../smartwell'), + assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', /** @@ -61,7 +61,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/smartwell/', + assetsPublicPath: '/smartwell_front/', /** * Source Maps diff --git a/config/index.js b/config/index.js index fd2332c..da1b580 100644 --- a/config/index.js +++ b/config/index.js @@ -48,10 +48,10 @@ build: { // Template for index.htmlru - index: path.resolve(__dirname, '../smartwell/index.html'), + index: path.resolve(__dirname, '../dist/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../smartwell'), + assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', /** @@ -61,7 +61,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/smartwell/', + assetsPublicPath: '/smartwell_front/', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index 0a353f1..bcc4cef 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,5 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://42.81.160.165:2021"', + BASE_API: '"http://111.198.10.15:11304"', } diff --git a/config/index.js b/config/index.js index fd2332c..da1b580 100644 --- a/config/index.js +++ b/config/index.js @@ -48,10 +48,10 @@ build: { // Template for index.htmlru - index: path.resolve(__dirname, '../smartwell/index.html'), + index: path.resolve(__dirname, '../dist/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../smartwell'), + assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', /** @@ -61,7 +61,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/smartwell/', + assetsPublicPath: '/smartwell_front/', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index 0a353f1..bcc4cef 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,5 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://42.81.160.165:2021"', + BASE_API: '"http://111.198.10.15:11304"', } diff --git a/package.json b/package.json index 596b8c1..d2e7fd3 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "axios": "0.18.0", "babel-polyfill": "^6.26.0", "echarts": "^4.2.1", - "element-ui": "^2.12.0", + "element-themex": "^1.0.3", + "element-ui": "^2.13.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", @@ -49,7 +50,7 @@ "copy-webpack-plugin": "4.5.2", "cross-env": "^5.2.0", "css-loader": "1.0.0", - "element-theme-chalk": "^2.12.0", + "element-theme-chalk": "^2.13.2", "eslint": "4.19.1", "eslint-friendly-formatter": "4.0.1", "eslint-loader": "2.0.0", diff --git a/config/index.js b/config/index.js index fd2332c..da1b580 100644 --- a/config/index.js +++ b/config/index.js @@ -48,10 +48,10 @@ build: { // Template for index.htmlru - index: path.resolve(__dirname, '../smartwell/index.html'), + index: path.resolve(__dirname, '../dist/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../smartwell'), + assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', /** @@ -61,7 +61,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/smartwell/', + assetsPublicPath: '/smartwell_front/', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index 0a353f1..bcc4cef 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,5 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://42.81.160.165:2021"', + BASE_API: '"http://111.198.10.15:11304"', } diff --git a/package.json b/package.json index 596b8c1..d2e7fd3 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "axios": "0.18.0", "babel-polyfill": "^6.26.0", "echarts": "^4.2.1", - "element-ui": "^2.12.0", + "element-themex": "^1.0.3", + "element-ui": "^2.13.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", @@ -49,7 +50,7 @@ "copy-webpack-plugin": "4.5.2", "cross-env": "^5.2.0", "css-loader": "1.0.0", - "element-theme-chalk": "^2.12.0", + "element-theme-chalk": "^2.13.2", "eslint": "4.19.1", "eslint-friendly-formatter": "4.0.1", "eslint-loader": "2.0.0", diff --git a/src/App.vue b/src/App.vue index 721d3a3..6ef30ae 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ diff --git a/config/index.js b/config/index.js index fd2332c..da1b580 100644 --- a/config/index.js +++ b/config/index.js @@ -48,10 +48,10 @@ build: { // Template for index.htmlru - index: path.resolve(__dirname, '../smartwell/index.html'), + index: path.resolve(__dirname, '../dist/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../smartwell'), + assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', /** @@ -61,7 +61,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/smartwell/', + assetsPublicPath: '/smartwell_front/', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index 0a353f1..bcc4cef 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,5 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://42.81.160.165:2021"', + BASE_API: '"http://111.198.10.15:11304"', } diff --git a/package.json b/package.json index 596b8c1..d2e7fd3 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "axios": "0.18.0", "babel-polyfill": "^6.26.0", "echarts": "^4.2.1", - "element-ui": "^2.12.0", + "element-themex": "^1.0.3", + "element-ui": "^2.13.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", @@ -49,7 +50,7 @@ "copy-webpack-plugin": "4.5.2", "cross-env": "^5.2.0", "css-loader": "1.0.0", - "element-theme-chalk": "^2.12.0", + "element-theme-chalk": "^2.13.2", "eslint": "4.19.1", "eslint-friendly-formatter": "4.0.1", "eslint-loader": "2.0.0", diff --git a/src/App.vue b/src/App.vue index 721d3a3..6ef30ae 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ diff --git a/src/api/configResponse.js b/src/api/configResponse.js new file mode 100644 index 0000000..59b81bf --- /dev/null +++ b/src/api/configResponse.js @@ -0,0 +1,19 @@ +/** + * 联系人配置接口 + */ +import request from '@/utils/request' +// 组织查询 +export function getDeptResponseList(params) { + return request({ + url: '/config/deptResponsiblePersonList', + method: 'get', + params + }) +} +export function setDeptResponse(params) { + return request({ + url: '/config/responsiblePersonConfig', + method: 'post', + params + }) +} diff --git a/config/index.js b/config/index.js index fd2332c..da1b580 100644 --- a/config/index.js +++ b/config/index.js @@ -48,10 +48,10 @@ build: { // Template for index.htmlru - index: path.resolve(__dirname, '../smartwell/index.html'), + index: path.resolve(__dirname, '../dist/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../smartwell'), + assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', /** @@ -61,7 +61,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/smartwell/', + assetsPublicPath: '/smartwell_front/', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index 0a353f1..bcc4cef 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,5 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://42.81.160.165:2021"', + BASE_API: '"http://111.198.10.15:11304"', } diff --git a/package.json b/package.json index 596b8c1..d2e7fd3 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "axios": "0.18.0", "babel-polyfill": "^6.26.0", "echarts": "^4.2.1", - "element-ui": "^2.12.0", + "element-themex": "^1.0.3", + "element-ui": "^2.13.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", @@ -49,7 +50,7 @@ "copy-webpack-plugin": "4.5.2", "cross-env": "^5.2.0", "css-loader": "1.0.0", - "element-theme-chalk": "^2.12.0", + "element-theme-chalk": "^2.13.2", "eslint": "4.19.1", "eslint-friendly-formatter": "4.0.1", "eslint-loader": "2.0.0", diff --git a/src/App.vue b/src/App.vue index 721d3a3..6ef30ae 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ diff --git a/src/api/configResponse.js b/src/api/configResponse.js new file mode 100644 index 0000000..59b81bf --- /dev/null +++ b/src/api/configResponse.js @@ -0,0 +1,19 @@ +/** + * 联系人配置接口 + */ +import request from '@/utils/request' +// 组织查询 +export function getDeptResponseList(params) { + return request({ + url: '/config/deptResponsiblePersonList', + method: 'get', + params + }) +} +export function setDeptResponse(params) { + return request({ + url: '/config/responsiblePersonConfig', + method: 'post', + params + }) +} diff --git a/src/api/well.js b/src/api/well.js index a7261ee..7251853 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -1,10 +1,10 @@ /** - * 窨井管理接口 + * 井管理接口 */ import request from '@/utils/request' import qs from 'qs' -// 窨井查询 +// 井查询 export function getWellList(params) { return request({ url: 'well/list', @@ -12,7 +12,7 @@ params }) } -// 获取窨井详情 +// 获取井详情 export function getWellInfo(id) { return request({ url: 'well/info', @@ -23,7 +23,7 @@ }) } -// 窨井类别 +// 井类别 export function getWellType(params) { return request({ url: 'dict/code/sluicewellType', @@ -32,7 +32,7 @@ }) } -// 添加窨井 +// 添加井 export function addWell(params) { return request({ url: 'well/add', @@ -40,7 +40,7 @@ params }) } -// 修改窨井 +// 修改井 export function updateWell(params) { return request({ url: 'well/update', @@ -48,7 +48,7 @@ params }) } -// 删除窨井 +// 删除井 export function delWell(ids) { return request({ url: 'well/delete', @@ -114,7 +114,7 @@ } }) } -// 窨井批量布防 +// 井批量布防 export function batchBfcf(params) { return request({ url: 'well/batchBfcf', @@ -123,7 +123,7 @@ }) } -// 根据布防状态统计窨井数量 +// 根据布防状态统计井数量 export function wellCountByBfzt() { return request({ url: 'well/countByBfzt', @@ -131,7 +131,7 @@ }) } -// 单个窨井查询 +// 单个井查询 export function getWellOne(params) { return request({ url: 'well/selectOne', diff --git a/config/index.js b/config/index.js index fd2332c..da1b580 100644 --- a/config/index.js +++ b/config/index.js @@ -48,10 +48,10 @@ build: { // Template for index.htmlru - index: path.resolve(__dirname, '../smartwell/index.html'), + index: path.resolve(__dirname, '../dist/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../smartwell'), + assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', /** @@ -61,7 +61,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/smartwell/', + assetsPublicPath: '/smartwell_front/', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index 0a353f1..bcc4cef 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,5 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://42.81.160.165:2021"', + BASE_API: '"http://111.198.10.15:11304"', } diff --git a/package.json b/package.json index 596b8c1..d2e7fd3 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "axios": "0.18.0", "babel-polyfill": "^6.26.0", "echarts": "^4.2.1", - "element-ui": "^2.12.0", + "element-themex": "^1.0.3", + "element-ui": "^2.13.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", @@ -49,7 +50,7 @@ "copy-webpack-plugin": "4.5.2", "cross-env": "^5.2.0", "css-loader": "1.0.0", - "element-theme-chalk": "^2.12.0", + "element-theme-chalk": "^2.13.2", "eslint": "4.19.1", "eslint-friendly-formatter": "4.0.1", "eslint-loader": "2.0.0", diff --git a/src/App.vue b/src/App.vue index 721d3a3..6ef30ae 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ diff --git a/src/api/configResponse.js b/src/api/configResponse.js new file mode 100644 index 0000000..59b81bf --- /dev/null +++ b/src/api/configResponse.js @@ -0,0 +1,19 @@ +/** + * 联系人配置接口 + */ +import request from '@/utils/request' +// 组织查询 +export function getDeptResponseList(params) { + return request({ + url: '/config/deptResponsiblePersonList', + method: 'get', + params + }) +} +export function setDeptResponse(params) { + return request({ + url: '/config/responsiblePersonConfig', + method: 'post', + params + }) +} diff --git a/src/api/well.js b/src/api/well.js index a7261ee..7251853 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -1,10 +1,10 @@ /** - * 窨井管理接口 + * 井管理接口 */ import request from '@/utils/request' import qs from 'qs' -// 窨井查询 +// 井查询 export function getWellList(params) { return request({ url: 'well/list', @@ -12,7 +12,7 @@ params }) } -// 获取窨井详情 +// 获取井详情 export function getWellInfo(id) { return request({ url: 'well/info', @@ -23,7 +23,7 @@ }) } -// 窨井类别 +// 井类别 export function getWellType(params) { return request({ url: 'dict/code/sluicewellType', @@ -32,7 +32,7 @@ }) } -// 添加窨井 +// 添加井 export function addWell(params) { return request({ url: 'well/add', @@ -40,7 +40,7 @@ params }) } -// 修改窨井 +// 修改井 export function updateWell(params) { return request({ url: 'well/update', @@ -48,7 +48,7 @@ params }) } -// 删除窨井 +// 删除井 export function delWell(ids) { return request({ url: 'well/delete', @@ -114,7 +114,7 @@ } }) } -// 窨井批量布防 +// 井批量布防 export function batchBfcf(params) { return request({ url: 'well/batchBfcf', @@ -123,7 +123,7 @@ }) } -// 根据布防状态统计窨井数量 +// 根据布防状态统计井数量 export function wellCountByBfzt() { return request({ url: 'well/countByBfzt', @@ -131,7 +131,7 @@ }) } -// 单个窨井查询 +// 单个井查询 export function getWellOne(params) { return request({ url: 'well/selectOne', diff --git a/src/store/modules/websocket.js b/src/store/modules/websocket.js index 63c87c9..f87e54c 100644 --- a/src/store/modules/websocket.js +++ b/src/store/modules/websocket.js @@ -3,7 +3,7 @@ import user from './user' const websocket = { state: { - wsUrl: 'ws://111.198.10.15:11307/websocket/', + wsUrl: 'ws://111.198.10.15:11304/websocket/', websocket: null, wsStatus: false, // websocket连接状态 needRefresh: false // 是否需要刷新数据 @@ -44,6 +44,7 @@ } // 监听socket消息接收 socket.onmessage = function(msg) { + debugger // 转换为json对象 const data = JSON.parse(msg.data) console.log(data) diff --git a/config/index.js b/config/index.js index fd2332c..da1b580 100644 --- a/config/index.js +++ b/config/index.js @@ -48,10 +48,10 @@ build: { // Template for index.htmlru - index: path.resolve(__dirname, '../smartwell/index.html'), + index: path.resolve(__dirname, '../dist/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../smartwell'), + assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', /** @@ -61,7 +61,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/smartwell/', + assetsPublicPath: '/smartwell_front/', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index 0a353f1..bcc4cef 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,5 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://42.81.160.165:2021"', + BASE_API: '"http://111.198.10.15:11304"', } diff --git a/package.json b/package.json index 596b8c1..d2e7fd3 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "axios": "0.18.0", "babel-polyfill": "^6.26.0", "echarts": "^4.2.1", - "element-ui": "^2.12.0", + "element-themex": "^1.0.3", + "element-ui": "^2.13.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", @@ -49,7 +50,7 @@ "copy-webpack-plugin": "4.5.2", "cross-env": "^5.2.0", "css-loader": "1.0.0", - "element-theme-chalk": "^2.12.0", + "element-theme-chalk": "^2.13.2", "eslint": "4.19.1", "eslint-friendly-formatter": "4.0.1", "eslint-loader": "2.0.0", diff --git a/src/App.vue b/src/App.vue index 721d3a3..6ef30ae 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ diff --git a/src/api/configResponse.js b/src/api/configResponse.js new file mode 100644 index 0000000..59b81bf --- /dev/null +++ b/src/api/configResponse.js @@ -0,0 +1,19 @@ +/** + * 联系人配置接口 + */ +import request from '@/utils/request' +// 组织查询 +export function getDeptResponseList(params) { + return request({ + url: '/config/deptResponsiblePersonList', + method: 'get', + params + }) +} +export function setDeptResponse(params) { + return request({ + url: '/config/responsiblePersonConfig', + method: 'post', + params + }) +} diff --git a/src/api/well.js b/src/api/well.js index a7261ee..7251853 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -1,10 +1,10 @@ /** - * 窨井管理接口 + * 井管理接口 */ import request from '@/utils/request' import qs from 'qs' -// 窨井查询 +// 井查询 export function getWellList(params) { return request({ url: 'well/list', @@ -12,7 +12,7 @@ params }) } -// 获取窨井详情 +// 获取井详情 export function getWellInfo(id) { return request({ url: 'well/info', @@ -23,7 +23,7 @@ }) } -// 窨井类别 +// 井类别 export function getWellType(params) { return request({ url: 'dict/code/sluicewellType', @@ -32,7 +32,7 @@ }) } -// 添加窨井 +// 添加井 export function addWell(params) { return request({ url: 'well/add', @@ -40,7 +40,7 @@ params }) } -// 修改窨井 +// 修改井 export function updateWell(params) { return request({ url: 'well/update', @@ -48,7 +48,7 @@ params }) } -// 删除窨井 +// 删除井 export function delWell(ids) { return request({ url: 'well/delete', @@ -114,7 +114,7 @@ } }) } -// 窨井批量布防 +// 井批量布防 export function batchBfcf(params) { return request({ url: 'well/batchBfcf', @@ -123,7 +123,7 @@ }) } -// 根据布防状态统计窨井数量 +// 根据布防状态统计井数量 export function wellCountByBfzt() { return request({ url: 'well/countByBfzt', @@ -131,7 +131,7 @@ }) } -// 单个窨井查询 +// 单个井查询 export function getWellOne(params) { return request({ url: 'well/selectOne', diff --git a/src/store/modules/websocket.js b/src/store/modules/websocket.js index 63c87c9..f87e54c 100644 --- a/src/store/modules/websocket.js +++ b/src/store/modules/websocket.js @@ -3,7 +3,7 @@ import user from './user' const websocket = { state: { - wsUrl: 'ws://111.198.10.15:11307/websocket/', + wsUrl: 'ws://111.198.10.15:11304/websocket/', websocket: null, wsStatus: false, // websocket连接状态 needRefresh: false // 是否需要刷新数据 @@ -44,6 +44,7 @@ } // 监听socket消息接收 socket.onmessage = function(msg) { + debugger // 转换为json对象 const data = JSON.parse(msg.data) console.log(data) diff --git a/src/views/alarmRule/components/editRule.vue b/src/views/alarmRule/components/editRule.vue index d29d47a..3149b14 100644 --- a/src/views/alarmRule/components/editRule.vue +++ b/src/views/alarmRule/components/editRule.vue @@ -3,7 +3,7 @@ - + @@ -100,8 +100,8 @@ dialogFormVisible: false, // 对话框是否显示 dialogStatus: '', // 对话框类型:create,update baseInfo: { - wellCode: '', // 窨井编号 - wellName: '', // 窨井名称 + wellCode: '', // 井编号 + wellName: '', // 井名称 deep: '', // 井深 deviceType: '', // 设备类别 deviceTypeName: '', // 设备类别 @@ -214,8 +214,8 @@ // 重置表单 resetForm() { this.baseInfo = { - wellCode: '', // 窨井编号 - wellName: '', // 窨井名称 + wellCode: '', // 井编号 + wellName: '', // 井名称 deep: '', // 井深 deviceType: '', // 设备类别 deviceTypeName: '', // 设备类别 diff --git a/config/index.js b/config/index.js index fd2332c..da1b580 100644 --- a/config/index.js +++ b/config/index.js @@ -48,10 +48,10 @@ build: { // Template for index.htmlru - index: path.resolve(__dirname, '../smartwell/index.html'), + index: path.resolve(__dirname, '../dist/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../smartwell'), + assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', /** @@ -61,7 +61,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/smartwell/', + assetsPublicPath: '/smartwell_front/', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index 0a353f1..bcc4cef 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,5 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://42.81.160.165:2021"', + BASE_API: '"http://111.198.10.15:11304"', } diff --git a/package.json b/package.json index 596b8c1..d2e7fd3 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "axios": "0.18.0", "babel-polyfill": "^6.26.0", "echarts": "^4.2.1", - "element-ui": "^2.12.0", + "element-themex": "^1.0.3", + "element-ui": "^2.13.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", @@ -49,7 +50,7 @@ "copy-webpack-plugin": "4.5.2", "cross-env": "^5.2.0", "css-loader": "1.0.0", - "element-theme-chalk": "^2.12.0", + "element-theme-chalk": "^2.13.2", "eslint": "4.19.1", "eslint-friendly-formatter": "4.0.1", "eslint-loader": "2.0.0", diff --git a/src/App.vue b/src/App.vue index 721d3a3..6ef30ae 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ diff --git a/src/api/configResponse.js b/src/api/configResponse.js new file mode 100644 index 0000000..59b81bf --- /dev/null +++ b/src/api/configResponse.js @@ -0,0 +1,19 @@ +/** + * 联系人配置接口 + */ +import request from '@/utils/request' +// 组织查询 +export function getDeptResponseList(params) { + return request({ + url: '/config/deptResponsiblePersonList', + method: 'get', + params + }) +} +export function setDeptResponse(params) { + return request({ + url: '/config/responsiblePersonConfig', + method: 'post', + params + }) +} diff --git a/src/api/well.js b/src/api/well.js index a7261ee..7251853 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -1,10 +1,10 @@ /** - * 窨井管理接口 + * 井管理接口 */ import request from '@/utils/request' import qs from 'qs' -// 窨井查询 +// 井查询 export function getWellList(params) { return request({ url: 'well/list', @@ -12,7 +12,7 @@ params }) } -// 获取窨井详情 +// 获取井详情 export function getWellInfo(id) { return request({ url: 'well/info', @@ -23,7 +23,7 @@ }) } -// 窨井类别 +// 井类别 export function getWellType(params) { return request({ url: 'dict/code/sluicewellType', @@ -32,7 +32,7 @@ }) } -// 添加窨井 +// 添加井 export function addWell(params) { return request({ url: 'well/add', @@ -40,7 +40,7 @@ params }) } -// 修改窨井 +// 修改井 export function updateWell(params) { return request({ url: 'well/update', @@ -48,7 +48,7 @@ params }) } -// 删除窨井 +// 删除井 export function delWell(ids) { return request({ url: 'well/delete', @@ -114,7 +114,7 @@ } }) } -// 窨井批量布防 +// 井批量布防 export function batchBfcf(params) { return request({ url: 'well/batchBfcf', @@ -123,7 +123,7 @@ }) } -// 根据布防状态统计窨井数量 +// 根据布防状态统计井数量 export function wellCountByBfzt() { return request({ url: 'well/countByBfzt', @@ -131,7 +131,7 @@ }) } -// 单个窨井查询 +// 单个井查询 export function getWellOne(params) { return request({ url: 'well/selectOne', diff --git a/src/store/modules/websocket.js b/src/store/modules/websocket.js index 63c87c9..f87e54c 100644 --- a/src/store/modules/websocket.js +++ b/src/store/modules/websocket.js @@ -3,7 +3,7 @@ import user from './user' const websocket = { state: { - wsUrl: 'ws://111.198.10.15:11307/websocket/', + wsUrl: 'ws://111.198.10.15:11304/websocket/', websocket: null, wsStatus: false, // websocket连接状态 needRefresh: false // 是否需要刷新数据 @@ -44,6 +44,7 @@ } // 监听socket消息接收 socket.onmessage = function(msg) { + debugger // 转换为json对象 const data = JSON.parse(msg.data) console.log(data) diff --git a/src/views/alarmRule/components/editRule.vue b/src/views/alarmRule/components/editRule.vue index d29d47a..3149b14 100644 --- a/src/views/alarmRule/components/editRule.vue +++ b/src/views/alarmRule/components/editRule.vue @@ -3,7 +3,7 @@ - + @@ -100,8 +100,8 @@ dialogFormVisible: false, // 对话框是否显示 dialogStatus: '', // 对话框类型:create,update baseInfo: { - wellCode: '', // 窨井编号 - wellName: '', // 窨井名称 + wellCode: '', // 井编号 + wellName: '', // 井名称 deep: '', // 井深 deviceType: '', // 设备类别 deviceTypeName: '', // 设备类别 @@ -214,8 +214,8 @@ // 重置表单 resetForm() { this.baseInfo = { - wellCode: '', // 窨井编号 - wellName: '', // 窨井名称 + wellCode: '', // 井编号 + wellName: '', // 井名称 deep: '', // 井深 deviceType: '', // 设备类别 deviceTypeName: '', // 设备类别 diff --git a/src/views/alarmRule/components/listRule.vue b/src/views/alarmRule/components/listRule.vue index d13e743..17673bd 100644 --- a/src/views/alarmRule/components/listRule.vue +++ b/src/views/alarmRule/components/listRule.vue @@ -5,7 +5,7 @@ - + @@ -86,13 +86,13 @@ }, // 筛选条件 columns: [ { - text: '窨井编号', + text: '井编号', value: 'wellCode', align: 'center', type: 'Button' }, { - text: '窨井名称', + text: '井名称', value: 'wellName', align: 'center' }, @@ -130,7 +130,7 @@ showDeviceType: true, listLoading: true, // 加载动画 editShow: false, // 是否显示编辑框 - wellShow: false // 是否显示窨井详情 + wellShow: false // 是否显示井详情 } }, created() { @@ -138,7 +138,7 @@ this.fetchData()// 获取数据 }, methods: { - // 显示窨井详情 + // 显示井详情 showWellDetail(row) { this.wellShow = true this.$refs.wellInfo.initDialog(row.wellId) diff --git a/config/index.js b/config/index.js index fd2332c..da1b580 100644 --- a/config/index.js +++ b/config/index.js @@ -48,10 +48,10 @@ build: { // Template for index.htmlru - index: path.resolve(__dirname, '../smartwell/index.html'), + index: path.resolve(__dirname, '../dist/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../smartwell'), + assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', /** @@ -61,7 +61,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/smartwell/', + assetsPublicPath: '/smartwell_front/', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index 0a353f1..bcc4cef 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,5 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://42.81.160.165:2021"', + BASE_API: '"http://111.198.10.15:11304"', } diff --git a/package.json b/package.json index 596b8c1..d2e7fd3 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "axios": "0.18.0", "babel-polyfill": "^6.26.0", "echarts": "^4.2.1", - "element-ui": "^2.12.0", + "element-themex": "^1.0.3", + "element-ui": "^2.13.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", @@ -49,7 +50,7 @@ "copy-webpack-plugin": "4.5.2", "cross-env": "^5.2.0", "css-loader": "1.0.0", - "element-theme-chalk": "^2.12.0", + "element-theme-chalk": "^2.13.2", "eslint": "4.19.1", "eslint-friendly-formatter": "4.0.1", "eslint-loader": "2.0.0", diff --git a/src/App.vue b/src/App.vue index 721d3a3..6ef30ae 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ diff --git a/src/api/configResponse.js b/src/api/configResponse.js new file mode 100644 index 0000000..59b81bf --- /dev/null +++ b/src/api/configResponse.js @@ -0,0 +1,19 @@ +/** + * 联系人配置接口 + */ +import request from '@/utils/request' +// 组织查询 +export function getDeptResponseList(params) { + return request({ + url: '/config/deptResponsiblePersonList', + method: 'get', + params + }) +} +export function setDeptResponse(params) { + return request({ + url: '/config/responsiblePersonConfig', + method: 'post', + params + }) +} diff --git a/src/api/well.js b/src/api/well.js index a7261ee..7251853 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -1,10 +1,10 @@ /** - * 窨井管理接口 + * 井管理接口 */ import request from '@/utils/request' import qs from 'qs' -// 窨井查询 +// 井查询 export function getWellList(params) { return request({ url: 'well/list', @@ -12,7 +12,7 @@ params }) } -// 获取窨井详情 +// 获取井详情 export function getWellInfo(id) { return request({ url: 'well/info', @@ -23,7 +23,7 @@ }) } -// 窨井类别 +// 井类别 export function getWellType(params) { return request({ url: 'dict/code/sluicewellType', @@ -32,7 +32,7 @@ }) } -// 添加窨井 +// 添加井 export function addWell(params) { return request({ url: 'well/add', @@ -40,7 +40,7 @@ params }) } -// 修改窨井 +// 修改井 export function updateWell(params) { return request({ url: 'well/update', @@ -48,7 +48,7 @@ params }) } -// 删除窨井 +// 删除井 export function delWell(ids) { return request({ url: 'well/delete', @@ -114,7 +114,7 @@ } }) } -// 窨井批量布防 +// 井批量布防 export function batchBfcf(params) { return request({ url: 'well/batchBfcf', @@ -123,7 +123,7 @@ }) } -// 根据布防状态统计窨井数量 +// 根据布防状态统计井数量 export function wellCountByBfzt() { return request({ url: 'well/countByBfzt', @@ -131,7 +131,7 @@ }) } -// 单个窨井查询 +// 单个井查询 export function getWellOne(params) { return request({ url: 'well/selectOne', diff --git a/src/store/modules/websocket.js b/src/store/modules/websocket.js index 63c87c9..f87e54c 100644 --- a/src/store/modules/websocket.js +++ b/src/store/modules/websocket.js @@ -3,7 +3,7 @@ import user from './user' const websocket = { state: { - wsUrl: 'ws://111.198.10.15:11307/websocket/', + wsUrl: 'ws://111.198.10.15:11304/websocket/', websocket: null, wsStatus: false, // websocket连接状态 needRefresh: false // 是否需要刷新数据 @@ -44,6 +44,7 @@ } // 监听socket消息接收 socket.onmessage = function(msg) { + debugger // 转换为json对象 const data = JSON.parse(msg.data) console.log(data) diff --git a/src/views/alarmRule/components/editRule.vue b/src/views/alarmRule/components/editRule.vue index d29d47a..3149b14 100644 --- a/src/views/alarmRule/components/editRule.vue +++ b/src/views/alarmRule/components/editRule.vue @@ -3,7 +3,7 @@ - + @@ -100,8 +100,8 @@ dialogFormVisible: false, // 对话框是否显示 dialogStatus: '', // 对话框类型:create,update baseInfo: { - wellCode: '', // 窨井编号 - wellName: '', // 窨井名称 + wellCode: '', // 井编号 + wellName: '', // 井名称 deep: '', // 井深 deviceType: '', // 设备类别 deviceTypeName: '', // 设备类别 @@ -214,8 +214,8 @@ // 重置表单 resetForm() { this.baseInfo = { - wellCode: '', // 窨井编号 - wellName: '', // 窨井名称 + wellCode: '', // 井编号 + wellName: '', // 井名称 deep: '', // 井深 deviceType: '', // 设备类别 deviceTypeName: '', // 设备类别 diff --git a/src/views/alarmRule/components/listRule.vue b/src/views/alarmRule/components/listRule.vue index d13e743..17673bd 100644 --- a/src/views/alarmRule/components/listRule.vue +++ b/src/views/alarmRule/components/listRule.vue @@ -5,7 +5,7 @@ - + @@ -86,13 +86,13 @@ }, // 筛选条件 columns: [ { - text: '窨井编号', + text: '井编号', value: 'wellCode', align: 'center', type: 'Button' }, { - text: '窨井名称', + text: '井名称', value: 'wellName', align: 'center' }, @@ -130,7 +130,7 @@ showDeviceType: true, listLoading: true, // 加载动画 editShow: false, // 是否显示编辑框 - wellShow: false // 是否显示窨井详情 + wellShow: false // 是否显示井详情 } }, created() { @@ -138,7 +138,7 @@ this.fetchData()// 获取数据 }, methods: { - // 显示窨井详情 + // 显示井详情 showWellDetail(row) { this.wellShow = true this.$refs.wellInfo.initDialog(row.wellId) diff --git a/src/views/alarmRule/listRule.vue b/src/views/alarmRule/listRule.vue index fe31090..60d5324 100644 --- a/src/views/alarmRule/listRule.vue +++ b/src/views/alarmRule/listRule.vue @@ -130,7 +130,7 @@ showDeviceType: true, listLoading: true, // 加载动画 editShow: false, // 是否显示编辑框 - wellShow: false // 是否显示窨井详情 + wellShow: false // 是否显示井详情 } }, created() { @@ -138,7 +138,7 @@ this.fetchData()// 获取数据 }, methods: { - // 显示窨井详情 + // 显示井详情 showWellDetail(row) { this.wellShow = true this.$refs.wellInfo.initDialog(row.wellId) diff --git a/config/index.js b/config/index.js index fd2332c..da1b580 100644 --- a/config/index.js +++ b/config/index.js @@ -48,10 +48,10 @@ build: { // Template for index.htmlru - index: path.resolve(__dirname, '../smartwell/index.html'), + index: path.resolve(__dirname, '../dist/index.html'), // Paths - assetsRoot: path.resolve(__dirname, '../smartwell'), + assetsRoot: path.resolve(__dirname, '../dist'), assetsSubDirectory: 'static', /** @@ -61,7 +61,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/smartwell/', + assetsPublicPath: '/smartwell_front/', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index 0a353f1..bcc4cef 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,5 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://42.81.160.165:2021"', + BASE_API: '"http://111.198.10.15:11304"', } diff --git a/package.json b/package.json index 596b8c1..d2e7fd3 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "axios": "0.18.0", "babel-polyfill": "^6.26.0", "echarts": "^4.2.1", - "element-ui": "^2.12.0", + "element-themex": "^1.0.3", + "element-ui": "^2.13.2", "event-source-polyfill": "^1.0.5", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", @@ -49,7 +50,7 @@ "copy-webpack-plugin": "4.5.2", "cross-env": "^5.2.0", "css-loader": "1.0.0", - "element-theme-chalk": "^2.12.0", + "element-theme-chalk": "^2.13.2", "eslint": "4.19.1", "eslint-friendly-formatter": "4.0.1", "eslint-loader": "2.0.0", diff --git a/src/App.vue b/src/App.vue index 721d3a3..6ef30ae 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ diff --git a/src/api/configResponse.js b/src/api/configResponse.js new file mode 100644 index 0000000..59b81bf --- /dev/null +++ b/src/api/configResponse.js @@ -0,0 +1,19 @@ +/** + * 联系人配置接口 + */ +import request from '@/utils/request' +// 组织查询 +export function getDeptResponseList(params) { + return request({ + url: '/config/deptResponsiblePersonList', + method: 'get', + params + }) +} +export function setDeptResponse(params) { + return request({ + url: '/config/responsiblePersonConfig', + method: 'post', + params + }) +} diff --git a/src/api/well.js b/src/api/well.js index a7261ee..7251853 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -1,10 +1,10 @@ /** - * 窨井管理接口 + * 井管理接口 */ import request from '@/utils/request' import qs from 'qs' -// 窨井查询 +// 井查询 export function getWellList(params) { return request({ url: 'well/list', @@ -12,7 +12,7 @@ params }) } -// 获取窨井详情 +// 获取井详情 export function getWellInfo(id) { return request({ url: 'well/info', @@ -23,7 +23,7 @@ }) } -// 窨井类别 +// 井类别 export function getWellType(params) { return request({ url: 'dict/code/sluicewellType', @@ -32,7 +32,7 @@ }) } -// 添加窨井 +// 添加井 export function addWell(params) { return request({ url: 'well/add', @@ -40,7 +40,7 @@ params }) } -// 修改窨井 +// 修改井 export function updateWell(params) { return request({ url: 'well/update', @@ -48,7 +48,7 @@ params }) } -// 删除窨井 +// 删除井 export function delWell(ids) { return request({ url: 'well/delete', @@ -114,7 +114,7 @@ } }) } -// 窨井批量布防 +// 井批量布防 export function batchBfcf(params) { return request({ url: 'well/batchBfcf', @@ -123,7 +123,7 @@ }) } -// 根据布防状态统计窨井数量 +// 根据布防状态统计井数量 export function wellCountByBfzt() { return request({ url: 'well/countByBfzt', @@ -131,7 +131,7 @@ }) } -// 单个窨井查询 +// 单个井查询 export function getWellOne(params) { return request({ url: 'well/selectOne', diff --git a/src/store/modules/websocket.js b/src/store/modules/websocket.js index 63c87c9..f87e54c 100644 --- a/src/store/modules/websocket.js +++ b/src/store/modules/websocket.js @@ -3,7 +3,7 @@ import user from './user' const websocket = { state: { - wsUrl: 'ws://111.198.10.15:11307/websocket/', + wsUrl: 'ws://111.198.10.15:11304/websocket/', websocket: null, wsStatus: false, // websocket连接状态 needRefresh: false // 是否需要刷新数据 @@ -44,6 +44,7 @@ } // 监听socket消息接收 socket.onmessage = function(msg) { + debugger // 转换为json对象 const data = JSON.parse(msg.data) console.log(data) diff --git a/src/views/alarmRule/components/editRule.vue b/src/views/alarmRule/components/editRule.vue index d29d47a..3149b14 100644 --- a/src/views/alarmRule/components/editRule.vue +++ b/src/views/alarmRule/components/editRule.vue @@ -3,7 +3,7 @@ - + @@ -100,8 +100,8 @@ dialogFormVisible: false, // 对话框是否显示 dialogStatus: '', // 对话框类型:create,update baseInfo: { - wellCode: '', // 窨井编号 - wellName: '', // 窨井名称 + wellCode: '', // 井编号 + wellName: '', // 井名称 deep: '', // 井深 deviceType: '', // 设备类别 deviceTypeName: '', // 设备类别 @@ -214,8 +214,8 @@ // 重置表单 resetForm() { this.baseInfo = { - wellCode: '', // 窨井编号 - wellName: '', // 窨井名称 + wellCode: '', // 井编号 + wellName: '', // 井名称 deep: '', // 井深 deviceType: '', // 设备类别 deviceTypeName: '', // 设备类别 diff --git a/src/views/alarmRule/components/listRule.vue b/src/views/alarmRule/components/listRule.vue index d13e743..17673bd 100644 --- a/src/views/alarmRule/components/listRule.vue +++ b/src/views/alarmRule/components/listRule.vue @@ -5,7 +5,7 @@ - + @@ -86,13 +86,13 @@ }, // 筛选条件 columns: [ { - text: '窨井编号', + text: '井编号', value: 'wellCode', align: 'center', type: 'Button' }, { - text: '窨井名称', + text: '井名称', value: 'wellName', align: 'center' }, @@ -130,7 +130,7 @@ showDeviceType: true, listLoading: true, // 加载动画 editShow: false, // 是否显示编辑框 - wellShow: false // 是否显示窨井详情 + wellShow: false // 是否显示井详情 } }, created() { @@ -138,7 +138,7 @@ this.fetchData()// 获取数据 }, methods: { - // 显示窨井详情 + // 显示井详情 showWellDetail(row) { this.wellShow = true this.$refs.wellInfo.initDialog(row.wellId) diff --git a/src/views/alarmRule/listRule.vue b/src/views/alarmRule/listRule.vue index fe31090..60d5324 100644 --- a/src/views/alarmRule/listRule.vue +++ b/src/views/alarmRule/listRule.vue @@ -130,7 +130,7 @@ showDeviceType: true, listLoading: true, // 加载动画 editShow: false, // 是否显示编辑框 - wellShow: false // 是否显示窨井详情 + wellShow: false // 是否显示井详情 } }, created() { @@ -138,7 +138,7 @@ this.fetchData()// 获取数据 }, methods: { - // 显示窨井详情 + // 显示井详情 showWellDetail(row) { this.wellShow = true this.$refs.wellInfo.initDialog(row.wellId) diff --git a/src/views/dashboard/components/DeviceCountByOnline.vue b/src/views/dashboard/components/DeviceCountByOnline.vue index b30e092..83e3a85 100644 --- a/src/views/dashboard/components/DeviceCountByOnline.vue +++ b/src/views/dashboard/components/DeviceCountByOnline.vue @@ -1,5 +1,5 @@