'
dom += ''
@@ -114,7 +114,7 @@ app.getOrderDetail = function () {
var dom = ''
for (var i = 0; i < photosUrl.length; i++) {
- let src = 'https://file.saas.dianwutong.com/' + photosUrl[i]
+ let src = 'https://cdyfile.saas.dianwutong.com/' + photosUrl[i]
dom = ''
dom += '
diff --git a/dwt-ems/ems/releaseHandlePlugin.js b/dwt-ems/ems/releaseHandlePlugin.js
index 7bd692c..69a32b6 100644
--- a/dwt-ems/ems/releaseHandlePlugin.js
+++ b/dwt-ems/ems/releaseHandlePlugin.js
@@ -16,11 +16,11 @@ ReleaseHandlePlugin.prototype.apply = function (complier) {
mod._source._value = mod._source._value.replace(/edp.dianwutong.com(:\d+)?/g, 'edp.dianwutong.com')
mod._source._value = mod._source._value.replace(/console.dianwutong.com(:\d+)?/g, 'console.dianwutong.com')
} else if (this.env === 'production') {
- mod._source._value = mod._source._value.replace(/api.dianwutong.com/g, 'api.saas.dianwutong.com')
- mod._source._value = mod._source._value.replace(/account.dianwutong.com(:\d+)?/g, 'account.saas.dianwutong.com')
- mod._source._value = mod._source._value.replace(/ems.dianwutong.com(:\d+)?/g, 'ems.saas.dianwutong.com')
- mod._source._value = mod._source._value.replace(/console.dianwutong.com(:\d+)?/g, 'console.saas.dianwutong.com')
- mod._source._value = mod._source._value.replace(/edp.dianwutong.com(:\d+)?/g, 'edp.saas.dianwutong.com')
+ mod._source._value = mod._source._value.replace(/api.dianwutong.com/g, 'cdyapi.saas.dianwutong.com')
+ mod._source._value = mod._source._value.replace(/account.dianwutong.com(:\d+)?/g, 'cdyaccount.saas.dianwutong.com')
+ mod._source._value = mod._source._value.replace(/ems.dianwutong.com(:\d+)?/g, 'cdyems.saas.dianwutong.com')
+ mod._source._value = mod._source._value.replace(/console.dianwutong.com(:\d+)?/g, 'cdyconsole.saas.dianwutong.com')
+ mod._source._value = mod._source._value.replace(/edp.dianwutong.com(:\d+)?/g, 'cdyedp.saas.dianwutong.com')
}
console.log("替换成功")
} catch (error) {
diff --git a/dwt-ems/ems/src/js/common/power-room-common-controller.js b/dwt-ems/ems/src/js/common/power-room-common-controller.js
index b295e5e..e42f1fe 100644
--- a/dwt-ems/ems/src/js/common/power-room-common-controller.js
+++ b/dwt-ems/ems/src/js/common/power-room-common-controller.js
@@ -38,7 +38,7 @@ app.initPowerRoomBaseInfo = function () {
powerRoomModel.getPowerRoomBaseInfo().subscribe(function (res) {
if (res.code === 200) {
var pr = res.body
- app.prefix = 'https://file.saas.dianwutong.com/'
+ app.prefix = 'https://cdyfile.saas.dianwutong.com/'
$('.pr-name').text(pr.prName)
$('#pr-address').text(pr.address)
$('#customer-name').text(pr.cusName)
diff --git a/dwt-ems/ems/src/js/compare-energy/app.js b/dwt-ems/ems/src/js/compare-energy/app.js
index a92f605..4e82b3c 100644
--- a/dwt-ems/ems/src/js/compare-energy/app.js
+++ b/dwt-ems/ems/src/js/compare-energy/app.js
@@ -1,39 +1,39 @@
// 跳转到console点表页面
-require('../../scss/compare-energy.scss');
-require('../common/service/user.info.service');
-let $ = require('jquery');
-import { UI } from '../common/ui'; //ui
-import { appUtil } from '../utils/app.util'; // 公共方法
-import { model } from './model';
-import { powerRoomCommonController } from '../common/power-room-common-controller';
-import { powerRoomModel } from '../common/power-room-model';
-import { TodoTasksService } from '../common/service/todo.tasks.service';
-import { from } from 'rxjs/observable/from';
-require('../common/power-room-common-controller');
-require('../common/layout-controller.js');
+require('../../scss/compare-energy.scss')
+require('../common/service/user.info.service')
+let $ = require('jquery')
+import { UI } from '../common/ui' //ui
+import { appUtil } from '../utils/app.util' // 公共方法
+import { model } from './model'
+import { powerRoomCommonController } from '../common/power-room-common-controller'
+import { powerRoomModel } from '../common/power-room-model'
+import { TodoTasksService } from '../common/service/todo.tasks.service'
+import { from } from 'rxjs/observable/from'
+require('../common/power-room-common-controller')
+require('../common/layout-controller.js')
let app = {
init: {}
-};
+}
$(function () {
- app.init();
- TodoTasksService.start();
-});
+ app.init()
+ TodoTasksService.start()
+})
app.init = function () {
// 为了便于展示点表信息,隐藏右侧配电室基本信息
- $('.base-info').hide();
+ $('.base-info').hide()
// 将左侧容器宽度设置为100%
- $('.page').css('width', '100%');
+ $('.page').css('width', '100%')
- app.prId = appUtil.getParameter('id');
- app.setJumpFlag();
-};
+ app.prId = appUtil.getParameter('id')
+ app.setJumpFlag()
+}
app.setJumpFlag = function () {
- let iFrame = $('#compareEnergyIframe');
- iFrame.attr('src', 'https://edp.dianwutong.com/compare-energy.html?prid=' + app.prId);
+ let iFrame = $('#compareEnergyIframe')
+ iFrame.attr('src', 'https://cdyedp.saas.dianwutong.com/compare-energy.html?prid=' + app.prId)
}
\ No newline at end of file
diff --git a/dwt-ems/ems/src/js/create-report/app.js b/dwt-ems/ems/src/js/create-report/app.js
index e92918f..17d3659 100644
--- a/dwt-ems/ems/src/js/create-report/app.js
+++ b/dwt-ems/ems/src/js/create-report/app.js
@@ -1222,7 +1222,7 @@ app.getProblemList = function () {
model.getProblemList().subscribe(res => {
if (res && res.code == 200) {
this.problemList = res.body
- this.prefix = 'https://file.saas.dianwutong.com/'
+ this.prefix = 'https://cdyfile.saas.dianwutong.com/'
this.renderProblemList()
}
diff --git a/dwt-ems/ems/src/js/inspection-bug/app.js b/dwt-ems/ems/src/js/inspection-bug/app.js
index 9a8c357..0280381 100644
--- a/dwt-ems/ems/src/js/inspection-bug/app.js
+++ b/dwt-ems/ems/src/js/inspection-bug/app.js
@@ -137,7 +137,7 @@ app.renderPrInfo = function (prId) {
powerRoomModel.getPowerRoomBaseInfo(prId).subscribe(res => {
if (res.code === 200) {
var pr = res.body
- app.prefix = 'https://file.saas.dianwutong.com/'
+ app.prefix = 'https://cdyfile.saas.dianwutong.com/'
$('.pr-name').text(pr.prName)
$('#pr-address').text(pr.address)
$('#customer-name').text(pr.cusName)
diff --git a/dwt-ems/ems/src/js/inspection-bug/model.js b/dwt-ems/ems/src/js/inspection-bug/model.js
index 34030d2..c86c98f 100644
--- a/dwt-ems/ems/src/js/inspection-bug/model.js
+++ b/dwt-ems/ems/src/js/inspection-bug/model.js
@@ -23,7 +23,7 @@ model.getBugById = function () {
if (res.code === 200) {
this.bugInfo = res.body
// this.prefix = res.prefix;
- this.prefix = 'https://file.saas.dianwutong.com/'
+ this.prefix = 'https://cdyfile.saas.dianwutong.com/'
res.success = true
return res
} else {
diff --git a/dwt-ems/ems/src/js/operation-order-detail/model.js b/dwt-ems/ems/src/js/operation-order-detail/model.js
index f674f9b..49dcdbf 100644
--- a/dwt-ems/ems/src/js/operation-order-detail/model.js
+++ b/dwt-ems/ems/src/js/operation-order-detail/model.js
@@ -77,7 +77,7 @@ model.getOrder = function (id) {
if (res.code === 200) {
model.order = res.body
model.logs = model.order.logs
- model.prefix = 'https://file.saas.dianwutong.com/'
+ model.prefix = 'https://cdyfile.saas.dianwutong.com/'
model.handleOrder()
return true
} else {
diff --git a/dwt-ems/ems/src/js/order-detail/app.js b/dwt-ems/ems/src/js/order-detail/app.js
index cfed151..859cb62 100644
--- a/dwt-ems/ems/src/js/order-detail/app.js
+++ b/dwt-ems/ems/src/js/order-detail/app.js
@@ -405,7 +405,7 @@ app.disPowerRoomInfo = function (prId) {
appModel.getPowerRoomById(prId).subscribe(function (res) {
if (res.code === 200) {
var pr = res.body
- app.prefix = 'https://file.saas.dianwutong.com/'
+ app.prefix = 'https://cdyfile.saas.dianwutong.com/'
$('.pr-name').text(pr.prName)
$('#pr-address').text(pr.province + ' ' + pr.city + ' ' + (pr.area ? pr.area : '') + ' ' + pr.address)
$('#customer-name').text(pr.cusName)
diff --git a/dwt-ems/ems/src/js/order-detail/model.js b/dwt-ems/ems/src/js/order-detail/model.js
index ece99bc..a9a1d83 100644
--- a/dwt-ems/ems/src/js/order-detail/model.js
+++ b/dwt-ems/ems/src/js/order-detail/model.js
@@ -42,7 +42,7 @@ model.getRepairOrderBaseInfo = function () {
if (res.code === 200) {
// model.prefix = res.prefix;
- model.prefix = 'https://file.saas.dianwutong.com/'
+ model.prefix = 'https://cdyfile.saas.dianwutong.com/'
let order = res.body
// 过滤出查勘任务和抢修任务
diff --git a/dwt-ems/ems/src/js/pr-inspection-log/model.js b/dwt-ems/ems/src/js/pr-inspection-log/model.js
index 2cb639d..952d6e5 100644
--- a/dwt-ems/ems/src/js/pr-inspection-log/model.js
+++ b/dwt-ems/ems/src/js/pr-inspection-log/model.js
@@ -1,4 +1,4 @@
-import { http } from "../utils/http.util";
+import { http } from "../utils/http.util"
let model = {
prId: null,
@@ -9,20 +9,36 @@ let model = {
getPrInspectionLogs: {},
}
-model.getPrInspectionLogs = function(){
+model.getPrInspectionLogs = function () {
- let param = {
- prId: this.prId,
- page: this.page,
- pageSize: this.pageSize,
- startDate: this.startDate,
- endDate: this.endDate
+ // let param = {
+ // prId: this.prId,
+ // page: this.page,
+ // pageSize: this.pageSize,
+ // startDate: this.startDate,
+ // endDate: this.endDate
+ // }
+
+ // !param.startDate && delete param.startDate;
+ // !param.endDate && delete param.endDate;
+
+ // return http.get('/ems/rest/common/xj/log/page', param);
+ let url = '/test/xun-jian-pr/query/'
+ + this.page + '/'
+ + this.pageSize + '/'
+ + this.prId
+
+ let data = {}
+
+ if (this.startDate) {
+ data.startDate = this.startDate
}
- !param.startDate && delete param.startDate;
- !param.endDate && delete param.endDate;
+ if (this.endDate) {
+ data.endDate = this.endDate
+ }
- return http.get('/ems/rest/common/xj/log/page', param);
+ return http.get(url, data)
}
-exports.model = model;
\ No newline at end of file
+exports.model = model
\ No newline at end of file
diff --git a/dwt-ems/ems/src/js/pr-material/app.js b/dwt-ems/ems/src/js/pr-material/app.js
index d890d92..1ff7817 100644
--- a/dwt-ems/ems/src/js/pr-material/app.js
+++ b/dwt-ems/ems/src/js/pr-material/app.js
@@ -121,7 +121,7 @@ app.initPowerRoomFileList = function () {
if (res.code === 200) {
let container = $("#power-room-metarial")
- this.fileBaseUrl = 'https://file.saas.dianwutong.com/'
+ this.fileBaseUrl = 'https://cdyfile.saas.dianwutong.com/'
let files = res.body
let length = files.length
diff --git a/dwt-ems/ems/src/js/pr-table-setting/app.js b/dwt-ems/ems/src/js/pr-table-setting/app.js
index e1a2040..3b8fcd5 100644
--- a/dwt-ems/ems/src/js/pr-table-setting/app.js
+++ b/dwt-ems/ems/src/js/pr-table-setting/app.js
@@ -1,47 +1,47 @@
// 跳转到console点表页面
-require('../../scss/pr-table-setting.scss');
-require('../common/service/user.info.service');
-let $ = require('jquery');
-import { UI } from '../common/ui'; //ui
-import { appUtil } from '../utils/app.util'; // 公共方法
-import { model } from './model';
-import { powerRoomCommonController } from '../common/power-room-common-controller';
-import { powerRoomModel } from '../common/power-room-model';
-import { TodoTasksService } from '../common/service/todo.tasks.service';
-import { from } from 'rxjs/observable/from';
-require('../common/layout-controller.js');
+require('../../scss/pr-table-setting.scss')
+require('../common/service/user.info.service')
+let $ = require('jquery')
+import { UI } from '../common/ui' //ui
+import { appUtil } from '../utils/app.util' // 公共方法
+import { model } from './model'
+import { powerRoomCommonController } from '../common/power-room-common-controller'
+import { powerRoomModel } from '../common/power-room-model'
+import { TodoTasksService } from '../common/service/todo.tasks.service'
+import { from } from 'rxjs/observable/from'
+require('../common/layout-controller.js')
let app = {
init: {}
-};
+}
$(function () {
- app.init();
-});
+ app.init()
+})
app.init = function () {
// 为了便于展示点表信息,隐藏右侧配电室基本信息
- $('.base-info').hide();
+ $('.base-info').hide()
// 将左侧容器宽度设置为100%
- $('.page').css('width', '100%');
+ $('.page').css('width', '100%')
// 将顶部header "点表配置按钮" 激活
- $('#prTableSetting').addClass('active');
+ $('#prTableSetting').addClass('active')
- app.prId = appUtil.getParameter('id');
- app.setJumpFlag();
-};
+ app.prId = appUtil.getParameter('id')
+ app.setJumpFlag()
+}
app.setJumpFlag = function () {
- UI.showProgress();
+ UI.showProgress()
model.setJumpFlag(app.prId).subscribe(res => {
- UI.hideProgress();
+ UI.hideProgress()
if (res.code == 200) {
- let iFrame = $('#frameSrc');
- iFrame.attr('src', 'https://console.dianwutong.com:4200');
+ let iFrame = $('#frameSrc')
+ iFrame.attr('src', 'https://cdyconsole.saas.dianwutong.com')
}
})
}
\ No newline at end of file
diff --git a/dwt-ems/ems/src/js/real-time-data-new/app.js b/dwt-ems/ems/src/js/real-time-data-new/app.js
index 72d1de7..795f091 100644
--- a/dwt-ems/ems/src/js/real-time-data-new/app.js
+++ b/dwt-ems/ems/src/js/real-time-data-new/app.js
@@ -311,7 +311,7 @@ app.initRTDSocket = function (param) {
// this.getRealData(param);
// }
// });
- model.websocketAddress = 'wss://api.saas.dianwutong.com/mqtt/websocket'
+ model.websocketAddress = 'wss://cdyapi.saas.dianwutong.com/mqtt/websocket'
this.getRealData(param)
} else {
this.getRealData(param)
diff --git a/dwt-ems/ems/src/js/real-time-data/app.js b/dwt-ems/ems/src/js/real-time-data/app.js
index 61cbfea..06fb5b5 100644
--- a/dwt-ems/ems/src/js/real-time-data/app.js
+++ b/dwt-ems/ems/src/js/real-time-data/app.js
@@ -314,7 +314,7 @@ app.initRTDSocket = function (param) {
if (!app.socket) {
// add start 2023/9/7
if (app.isMqttPr) {
- model.websocketAddress = 'wss://api.saas.dianwutong.com/mqtt/websocket'
+ model.websocketAddress = 'wss://cdyapi.saas.dianwutong.com/mqtt/websocket'
this.getRealData(param)
return
diff --git a/dwt-ems/ems/src/js/report-project/app.js b/dwt-ems/ems/src/js/report-project/app.js
index 470b107..186c0ab 100644
--- a/dwt-ems/ems/src/js/report-project/app.js
+++ b/dwt-ems/ems/src/js/report-project/app.js
@@ -588,7 +588,7 @@ app.getProblemList = function () {
model.getProblemList().subscribe(res => {
if (res && res.code == 200) {
this.problemList = res.body
- this.prefix = 'https://file.saas.dianwutong.com/'
+ this.prefix = 'https://cdyfile.saas.dianwutong.com/'
this.renderProblemList()
}
diff --git a/dwt-ems/ems/src/js/report/app.js b/dwt-ems/ems/src/js/report/app.js
index ce54c81..5714370 100644
--- a/dwt-ems/ems/src/js/report/app.js
+++ b/dwt-ems/ems/src/js/report/app.js
@@ -1,39 +1,39 @@
// 跳转到console点表页面
-require('../../scss/report.scss');
-require('../common/service/user.info.service');
-let $ = require('jquery');
-import { UI } from '../common/ui'; //ui
-import { appUtil } from '../utils/app.util'; // 公共方法
-import { model } from './model';
-import { powerRoomCommonController } from '../common/power-room-common-controller';
-import { powerRoomModel } from '../common/power-room-model';
-import { TodoTasksService } from '../common/service/todo.tasks.service';
-import { from } from 'rxjs/observable/from';
-require('../common/layout-controller.js');
+require('../../scss/report.scss')
+require('../common/service/user.info.service')
+let $ = require('jquery')
+import { UI } from '../common/ui' //ui
+import { appUtil } from '../utils/app.util' // 公共方法
+import { model } from './model'
+import { powerRoomCommonController } from '../common/power-room-common-controller'
+import { powerRoomModel } from '../common/power-room-model'
+import { TodoTasksService } from '../common/service/todo.tasks.service'
+import { from } from 'rxjs/observable/from'
+require('../common/layout-controller.js')
let app = {
init: {}
-};
+}
$(function () {
- app.init();
- TodoTasksService.start();
-});
+ app.init()
+ TodoTasksService.start()
+})
app.init = function () {
// 为了便于展示点表信息,隐藏右侧配电室基本信息
- $('.base-info').hide();
+ $('.base-info').hide()
// 将左侧容器宽度设置为100%
- $('.page').css('width', '100%');
+ $('.page').css('width', '100%')
- app.prId = appUtil.getParameter('id');
- app.shortName = appUtil.getParameter('shortname');
- app.setJumpFlag();
-};
+ app.prId = appUtil.getParameter('id')
+ app.shortName = appUtil.getParameter('shortname')
+ app.setJumpFlag()
+}
app.setJumpFlag = function () {
- let iFrame = $('#reportIframe');
- iFrame.attr('src', 'https://edp.dianwutong.com/report.html?prid=' + app.prId + '&shortname=' + app.shortName);
+ let iFrame = $('#reportIframe')
+ iFrame.attr('src', 'https://cdyedp.saas.dianwutong.com/report.html?prid=' + app.prId + '&shortname=' + app.shortName)
}
\ No newline at end of file
diff --git a/dwt-ems/ems/src/js/system-order/app.js b/dwt-ems/ems/src/js/system-order/app.js
index 44d4cd5..b81b7a4 100644
--- a/dwt-ems/ems/src/js/system-order/app.js
+++ b/dwt-ems/ems/src/js/system-order/app.js
@@ -117,7 +117,7 @@ app.getOrderDetail = function () {
var dom = ''
for (var i = 0; i < photosUrl.length; i++) {
- let src = 'https://file.saas.dianwutong.com/' + photosUrl[i]
+ let src = 'https://cdyfile.saas.dianwutong.com/' + photosUrl[i]
dom = ''
dom += '
'
dom += ''
@@ -146,7 +146,7 @@ app.getOrderDetail = function () {
var dom = ''
for (var i = 0; i < photosUrl.length; i++) {
- let src = 'https://file.saas.dianwutong.com/' + photosUrl[i]
+ let src = 'https://cdyfile.saas.dianwutong.com/' + photosUrl[i]
dom = ''
dom += '
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/dwt-ems/ems/src/view/device-book.html b/dwt-ems/ems/src/view/device-book.html
index d157c6e..a2215f0 100644
--- a/dwt-ems/ems/src/view/device-book.html
+++ b/dwt-ems/ems/src/view/device-book.html
@@ -62,4 +62,4 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/dwt-ems/ems/src/view/inspection-arrange-list.html b/dwt-ems/ems/src/view/inspection-arrange-list.html
index 40a10da..6c6e224 100644
--- a/dwt-ems/ems/src/view/inspection-arrange-list.html
+++ b/dwt-ems/ems/src/view/inspection-arrange-list.html
@@ -19,10 +19,10 @@