This commit is contained in:
kangz 2024-12-26 17:02:02 +08:00
parent 94a63bbcaa
commit 608ec6e181
82 changed files with 340 additions and 323 deletions

View File

@ -3,7 +3,7 @@ import { Rx } from 'rxjs'
import { cookie } from '../utils/cookie.util'
// const basePath = 'http://api.dianwutong.com';
const basePath = 'https://api.saas.dianwutong.com'
const basePath = 'https://cdyapi.saas.dianwutong.com'
const http = {}

View File

@ -46,7 +46,7 @@ a {
box-sizing: border-box;
.container {
height: 100%;
background: url('http://cdn.saas.dianwutong.com/account/img/login-bg.png');
background: url('http://cdycdn.saas.dianwutong.com/account/img/login-bg.png');
background-repeat: no-repeat;
position: relative;

View File

@ -8,7 +8,7 @@
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<link rel="icon" type="image/x-icon" href="http://cdn.saas.dianwutong.com/common/img/favicon.ico">
<link rel="icon" type="image/x-icon" href="http://cdycdn.saas.dianwutong.com/common/img/favicon.ico">
<title>修改密码</title>
</head>
@ -16,7 +16,7 @@
<div class="container">
<div class="header">
<div class="content">
<img src="http://cdn.saas.dianwutong.com/edp/img/bee.png">
<img src="http://cdycdn.saas.dianwutong.com/edp/img/bee.png">
<span>找回密码</span>
</div>
</div>

View File

@ -8,7 +8,7 @@
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<link rel="icon" type="image/x-icon" href="http://cdn.saas.dianwutong.com/common/img/favicon.ico">
<link rel="icon" type="image/x-icon" href="http://cdycdn.saas.dianwutong.com/common/img/favicon.ico">
<title>登录</title>
</head>
@ -17,7 +17,7 @@
<div class="header">
<div class="container">
<img src="http://cdn.saas.dianwutong.com/common/img/logo.png" style="transform: scale(1.3)">
<img src="http://cdycdn.saas.dianwutong.com/common/img/logo.png" style="transform: scale(1.3)">
</div>
</div>
<div class="body">
@ -68,20 +68,17 @@
<div class="height21"></div>
<div class="qr-code-con">
<div class="qr-code">
<div>电务通app下载</div>
<img src="http://cdn.saas.dianwutong.com/common/img/dianwutong_app_download.png">
<div>app下载</div>
<img src="http://cdycdn.saas.dianwutong.com/common/img/dianwutong_app_download.png">
</div>
<div class="qr-code">
<!-- <div class="qr-code">
<div>电务通官方微信</div>
<!-- edit start 2018/11/22 14:24 kangzhi -->
<!-- <img src="http://www.dianwutong.com/images/wechat_icon.png"> -->
<img src="http://cdn.saas.dianwutong.com/common/img/wechat_icon.png">
<!-- edit end 2018/11/22 14:24 kangzhi -->
<img src="http://cdycdn.saas.dianwutong.com/common/img/wechat_icon.png">
</div>
<div class="qr-code">
<div>电务通官方抖音</div>
<img src="http://cdn.saas.dianwutong.com/common/img/douyin.jpg">
</div>
<img src="http://cdycdn.saas.dianwutong.com/common/img/douyin.jpg">
</div> -->
</div>
</div>
</div>

View File

@ -20,7 +20,7 @@ import { AttrFnMap } from '../../common/attr-fn-map'
let app = {
ws: null,
wsAddress: 'wss://api.saas.dianwutong.com/mqtt/websocket',
wsAddress: 'wss://cdyapi.saas.dianwutong.com/mqtt/websocket',
wsParam: null,
graph: null,

View File

@ -2,10 +2,10 @@
let baseUrl = '' // 这里是一个默认的url可以没有
switch (process.env.NODE_ENV) {
case 'development':
baseUrl = 'https://api.saas.dianwutong.com' // 开发环境url
baseUrl = 'https://cdyapi.saas.dianwutong.com' // 开发环境url
break
case 'production':
baseUrl = 'https://api.saas.dianwutong.com' // 生产环境url
baseUrl = 'https://cdyapi.saas.dianwutong.com' // 生产环境url
break
}

View File

@ -6,7 +6,7 @@ import { Component, OnInit } from '@angular/core'
export class CircuitComponent implements OnInit {
ngOnInit() {
// 跳转到一次接线图绘制页面
window.open('https://circuit.saas.dianwutong.com')
window.location.href = 'https://console.saas.dianwutong.com'
window.open('https://cdycircuit.saas.dianwutong.com')
window.location.href = 'https://cdyconsole.saas.dianwutong.com'
}
}

View File

@ -19,9 +19,9 @@
<li (click)="navigate('table')" [class.active]="path == 'table'">点表设置</li>
<li (click)="navigate('tag')" [class.active]="path == 'tag'">标签设置</li>
<!-- Add start 2018/9/3 15:48 kangzhi -->
<li (click)="navigate('pusher')" [class.active]="path == 'pusher'">预报警推送设置</li>
<!-- <li (click)="navigate('pusher')" [class.active]="path == 'pusher'">预报警推送设置</li> -->
<!-- Add end 2018/9/3 15:48 kangzhi -->
<li (click)="navigate('table-new')" [class.active]="path == 'table-new'">点表设置新版(测试中)</li>
<!-- <li (click)="navigate('table-new')" [class.active]="path == 'table-new'">点表设置新版(测试中)</li> -->
<!-- -->
</ul>
</div>

View File

@ -18,7 +18,7 @@
<li (click)="navigate('table')" [class.active]="path == 'table'">点表设置</li>
<li (click)="navigate('tag')" [class.active]="path == 'tag'">标签设置</li>
<!-- Add start 2018/9/3 15:48 kangzhi -->
<li (click)="navigate('pusher')" [class.active]="path == 'pusher'">预报警推送设置</li>
<!-- <li (click)="navigate('pusher')" [class.active]="path == 'pusher'">预报警推送设置</li> -->
<!-- Add end 2018/9/3 15:48 kangzhi -->
<!-- <li (click)="navigate('table-new')" [class.active]="path == 'table-new'">点表设置新版(测试中)</li> -->
<!-- <li (click)="navigate('fuzailv')" [class.active]="path == 'fuzailv'">变压器负载率设置</li> -->

View File

@ -174,7 +174,7 @@
</div>
</div>
<div class="height15"></div>
<div class="row">
<!-- <div class="row">
<div class="col-md-3 text-right">
<div class="height5"></div>
短信通知:
@ -190,7 +190,7 @@
<div class="col-md-5 paddingL15">
<input type="number" class="form-control" placeholder="手机号" [(ngModel)]="tagData.phoneNum">
</div>
</div>
</div> -->
<div class="height15"></div>
</div>
<div class="modal-footer">

View File

@ -39,7 +39,8 @@ export class ServiceConfigListComponent implements OnInit {
// edit start 2019/11/04 kangzhi
// this.router.navigate(['/base/serviceConfig/' + router, data]);
this.router.navigate([
'/base/serviceConfig/' + router + '/' + data + '/configDetail',
'/base/serviceConfig/configDetailSwitch/' + data + '/' + router,
// '/base/serviceConfig/' + router + '/' + data + '/configDetail',
])
// edit end 2019/11/04 kangzhi
}

View File

@ -15,7 +15,7 @@
<ul>
<!-- <li [routerLink]="[/base/configList/configDetailSwitch, cid, 'configDetail']" routerLinkActive="active" >旧版</li>
<li [routerLink]="[/base/configList/configDetailSwitch, cid, 'configDetailNew']" routerLinkActive="active" >新版</li> -->
<li (click)="navigate('configDetail')" [ngClass]="{active: path == 'configDetail'}">旧版</li>
<!-- <li (click)="navigate('configDetail')" [ngClass]="{active: path == 'configDetail'}">旧版</li> -->
<li (click)="navigate('mqttConfig')" [ngClass]="{active: path == 'mqttConfig'}">MQTT管理</li>
<li (click)="navigate('tagConfig')" [ngClass]="{active: path == 'tagConfig'}">点表管理</li>
<!-- <li (click)="navigate('gatwayConfig')" [ngClass]="{active: path == 'gatwayConfig'}">网关管理(测试中)</li> -->

View File

@ -34,7 +34,7 @@
{{serverConfig.useStatus == 1? '使用中':'已饱和'}}</td>
<td class="text-center">{{serverConfig.prCount}}</td>
<td class="color-yellow pointer text-center"
(click)="navigate('configDetailSwitch',serverConfig['configId'])">详情</td>
(click)="navigate('mqttConfig',serverConfig['configId'])">详情</td>
</tr>
</tbody>

View File

@ -3,20 +3,16 @@
<i class="checkbox" (click)="toggle($event)" [ngClass]="{'checked': role.selected, 'disabled': disabled}"></i>
<span>{{role.roleName}}</span>
</div><!-- 组团长,巡检组长,抢修组长 运营中心监控员 工作站绑定
--><div *ngIf="(role.roleId == ROLES.ZTZ || role.roleId == ROLES.XJZZ || role.roleId == ROLES.QXZZ || role.roleId == ROLES.GZZJKY || role.roleId == ROLES.YYZXJKY) && role.selected">
<search-select
[data]="workstations"
[selectedValue]="selectStation.stationId"
(search)="search($event)"
(selected)="handleSelected($event)"
[placeHolder]="'请选择工作站'" [ngClass]="{'none':disabled}"></search-select>
-->
<div
*ngIf="(role.roleId == ROLES.ZTZ || role.roleId == ROLES.XJZZ || role.roleId == ROLES.QXZZ || role.roleId == ROLES.GZZJKY) && role.selected">
<search-select [data]="workstations" [selectedValue]="selectStation.stationId" (search)="search($event)"
(selected)="handleSelected($event)" [placeHolder]="'请选择工作站'" [ngClass]="{'none':disabled}"></search-select>
<span *ngIf="disabled">{{selectStation.stationName?'工作站:'+selectStation.stationName:''}}</span>
</div><!-- 安全员,监控员, 工作站绑定
--><div *ngIf="(role.roleId == ROLES.AQY || role.roleId == ROLES.JKY ) && role.selected">
<checkbox [title]="'工作站'"
[colums]="3"
[data]="workstations"
(selected)="handleSelectedStations($event)"
-->
<div *ngIf="(role.roleId == ROLES.AQY || role.roleId == ROLES.JKY ) && role.selected">
<checkbox [title]="'工作站'" [colums]="3" [data]="workstations" (selected)="handleSelectedStations($event)"
[editMode]="!disabled"></checkbox>
</div>
</div>
</div>

View File

@ -1,6 +1,6 @@
// 文件下载地址
export let URLS = {
prefix: 'https://file.saas.dianwutong.com/',
prefix: 'https://cdyfile.saas.dianwutong.com/',
}
// 上传的文件类型

View File

@ -1,6 +1,6 @@
export const environment = {
production: true,
apiBasePath: 'https://api.saas.dianwutong.com',
accountPath: 'https://account.saas.dianwutong.com/',
currentPath: 'https://console.saas.dianwutong.com',
apiBasePath: 'https://cdyapi.saas.dianwutong.com',
accountPath: 'https://cdyaccount.saas.dianwutong.com/',
currentPath: 'https://cdyconsole.saas.dianwutong.com',
}

View File

@ -1,8 +1,8 @@
export const environment = {
production: false,
apiBasePath: 'https://api.saas.dianwutong.com',
accountPath: 'https://account.saas.dianwutong.com/',
apiBasePath: 'https://cdyapi.saas.dianwutong.com',
accountPath: 'https://cdyaccount.saas.dianwutong.com/',
// apiBasePath: 'http://api.dianwutong.com',
// accountPath: 'http://account.dianwutong.com/',
currentPath: 'http://console.dianwutong.com:4200',
currentPath: 'http://cdyconsole.dianwutong.com:4200',
}

View File

@ -23,7 +23,7 @@
// 如果没有token 直接跳转到登陆页
if (!/token/.test(document.cookie)) {
window.location.href = 'https://account.saas.dianwutong.com/login.html?from=' + location.href
window.location.href = 'https://cdyaccount.saas.dianwutong.com/login.html?from=' + location.href
}
</script>

View File

@ -1,5 +1,5 @@
function ReleaseHandlePlugin(options) {
this.env = options.env;
function ReleaseHandlePlugin (options) {
this.env = options.env
}
ReleaseHandlePlugin.prototype.apply = function (complier) {
@ -9,43 +9,43 @@ ReleaseHandlePlugin.prototype.apply = function (complier) {
try {
if (this.env === 'test') {
// mod._source._value = mod._source._value.replace(/api.dianwutong.com/g, 'api.t.dianwutong.com');
mod._source._value = mod._source._value.replace(/account.dianwutong.com(:\d+)?/g, 'account.dianwutong.com');
mod._source._value = mod._source._value.replace(/edp.dianwutong.com(:\d+)?/g, 'edp.dianwutong.com');
mod._source._value = mod._source._value.replace(/account.dianwutong.com(:\d+)?/g, 'account.dianwutong.com')
mod._source._value = mod._source._value.replace(/edp.dianwutong.com(:\d+)?/g, 'edp.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(/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(/edp.dianwutong.com(:\d+)?/g, 'cdyedp.saas.dianwutong.com')
// mod._source._value = mod._source._value.replace(/edp.dianwutong.com(:\d+)?/g, 'edp.saas.dianwutong.com');
}
console.log("替换成功")
} catch (error) {
console.error("替换失败")
}
});
});
})
})
compilation.plugin(
'html-webpack-plugin-before-html-processing',
(data, cb) => {
let html = data.html;
html = html.replace('<script type="text/javascript" src="build/dev/vendor.dll.js"></script>','');
let html = data.html
html = html.replace('<script type="text/javascript" src="build/dev/vendor.dll.js"></script>', '')
if(this.env === 'test'){
if (this.env === 'test') {
html = html.replace(/account.dianwutong.com:(\d+)/g, 'account.test.dianwutong.com')
}else if(this.env === 'production'){
} else if (this.env === 'production') {
html = html.replace(/account.dianwutong.com(:\d+)?/g, 'account.saas.dianwutong.com')
}
data.html = html;
data.html = html
cb(null, data)
}
)
});
})
}
module.exports = ReleaseHandlePlugin;
module.exports = ReleaseHandlePlugin

View File

@ -563,7 +563,7 @@ app.exportAlarms = function () {
if (res.code == 200) {
var a = $('<a>')
var url = 'https://file.saas.dianwutong.com/' + res.body.fileUrl
var url = 'https://cdyfile.saas.dianwutong.com/' + res.body.fileUrl
a.attr('download', '报警记录' + model.startDate + '至' + model.endDate + '.xls')
a.attr('href', url)
$('body').append(a[0])

View File

@ -178,7 +178,7 @@ ctrl.bind = function () {
UI.hideProgress()
if (res.code == 200) {
var a = $('<a>')
var url = 'https://file.saas.dianwutong.com/' + res.body.fileUrl
var url = 'https://cdyfile.saas.dianwutong.com/' + res.body.fileUrl
a.attr('download', '报警记录' + '.xls')
a.attr('href', url)
$('body').append(a[0])

View File

@ -78,7 +78,7 @@ app.renderBug = function () {
this.getBug().subscribe(res => {
let bug = res.body
let prefix = 'https://file.saas.dianwutong.com/'
let prefix = 'https://cdyfile.saas.dianwutong.com/'
$("#power-room").text(bug.prName)
$("#inspection-grouper").text(bug.employeeName)

View File

@ -421,7 +421,7 @@ local.bind = function () {
if (res && res.code == 200) {
if (res.body.length && res.body.length > 0) {
let circuitId = res.body[0]['circuitId']
$('#main-frame').attr('src', `https://circuit.saas.dianwutong.com/run.html?circuitId=${circuitId}&prId=${prId}&flag=1`)
$('#main-frame').attr('src', `https://cdycircuit.saas.dianwutong.com/run.html?circuitId=${circuitId}&prId=${prId}&flag=1`)
} else {
UI.alert({
'content': '当前配电室没有一次接线图信息',
@ -699,11 +699,11 @@ local.getPowerRoomDom = function (item) {
}
if (local.menuStatus.hasRepairLogs) {
// if (local.menuStatus.hasRepairLogs) {
dom += '<div class="third repair-logs" power-room-id="' + item.prId + '">抢修日志</div>'
// dom += '<div class="third repair-logs" power-room-id="' + item.prId + '">抢修日志</div>'
}
// }
if (local.menuStatus.hasWorkTickets) {
@ -891,17 +891,17 @@ local.getPowerRoomDom = function (item) {
dom += '<div class="second-title">日志查询</div>'
dom += '</div>'
dom += '<div class="third inspection-logs" power-room-id="' + item.prId + '">巡检日志</div>'
dom += '<div class="third repair-logs" power-room-id="' + item.prId + '">抢修日志</div>'
// dom += '<div class="third repair-logs" power-room-id="' + item.prId + '">抢修日志</div>'
dom += '<div class="third work-tickets" power-room-id="' + item.prId + '">工作票</div>'
dom += '<div class="third operation-tickets" power-room-id="' + item.prId + '">操作票</div>'
dom += '</div>'
dom += '<div>'
dom += '<div class="second repairing-list">'
dom += '<i class="iconfont second-arrow">&#xe607;</i>'
dom += '<div class="second-title">抢修单</div>'
dom += '</div>'
dom += '</div>'
// dom += '<div>'
// dom += '<div class="second repairing-list">'
// dom += '<i class="iconfont second-arrow">&#xe607;</i>'
// dom += '<div class="second-title">抢修单</div>'
// dom += '</div>'
// dom += '</div>'
// add s 2023/9/22
// 电费核算

View File

@ -79,7 +79,7 @@ app.renderBug = function () {
let bug = res.body
// let prefix = res.prefix;
let prefix = 'https://file.saas.dianwutong.com/'
let prefix = 'https://cdyfile.saas.dianwutong.com/'
$("#power-room").text(bug.prName)
$("#inspection-grouper").text(bug.employeeName)

View File

@ -38,7 +38,7 @@ local.getTicket = function () {
}).subscribe(function (res) {
if (res.code === 200) {
local.ticket = res.body
local.prefix = 'https://file.saas.dianwutong.com/'
local.prefix = 'https://cdyfile.saas.dianwutong.com/'
local.renderTicket()
} else {

View File

@ -22,7 +22,7 @@ model.getRepairOrderBaseInfo = function () {
return http.get('/ems/rest/qx/order', data).map(res => {
if (res.code === 200) {
model.prefix = 'https://file.saas.dianwutong.com/'
model.prefix = 'https://cdyfile.saas.dianwutong.com/'
let order = res.body
// 过滤出查勘任务和抢修任务

View File

@ -29,7 +29,7 @@ model.getLog = function () {
if (res[0].code === 200 && res[1].code === 200) {
model.log = res[1].body
// model.prefix = res[1].prefix;
model.prefix = 'https://file.saas.dianwutong.com/'
model.prefix = 'https://cdyfile.saas.dianwutong.com/'
model.handleData()
model.log.pr = res[0].body
return true

View File

@ -968,7 +968,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()
}

View File

@ -534,7 +534,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()
}

View File

@ -214,7 +214,7 @@ app.bind = function () {
if (res) {
var a = $('<a>')
var report = reportModel.report
var url = 'https://file.saas.dianwutong.com/' + report.fileUrl
var url = 'https://cdyfile.saas.dianwutong.com/' + report.fileUrl
// 将导出报表前端设置去掉,后端设置
// var dateRange = $("#date-range").val().replace('至', '-');
// var name = '统计报表(' + dateRange + ').xls';

View File

@ -129,7 +129,7 @@ app.getSuggestDetail = function () {
Model.getSuggestDetail()
.then(function (res) {
Model.data = res.entity
Model.prefix = 'https://file.saas.dianwutong.com/' //前缀
Model.prefix = 'https://cdyfile.saas.dianwutong.com/' //前缀
app.renderDetail()
})
.catch(function () {

View File

@ -112,7 +112,7 @@ app.bind = function () {
}
Common.uploadFile(file, UPLOAD.FROM_SUGGEST, 2).subscribe(function (res) {
if (res.code == '0') {
var path = 'https://file.saas.dianwutong.com/' + res.resultPath
var path = 'https://cdyfile.saas.dianwutong.com/' + res.resultPath
app.pics.push(res.resultPath)
var domImg = `<a href="${path}" class="group-img"><img src="${path}" title="${file.name}"></a>`
$('.viewer').append(domImg)
@ -279,7 +279,7 @@ app.render = function (res) {
this.pagination.update(totalPage, page)
let list = res.pageResult.records
Model.prefix = 'https://file.saas.dianwutong.com/' //前缀
Model.prefix = 'https://cdyfile.saas.dianwutong.com/' //前缀
if (!list || list.length == 0) {
Common.emptyTips('list', '搜索不到反馈记录')
} else {

View File

@ -85,7 +85,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 += '<div class="pic item">'
dom += '<img src="' + src + '" alt=""/>'
@ -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 += '<div class="pic item">'
dom += '<img src="' + src + '" alt=""/>'

View File

@ -134,7 +134,7 @@ app.bind = function () {
if (res) {
var a = $('<a>')
var report = model.report
var url = 'https://file.saas.dianwutong.com/' + report.fileUrl
var url = 'https://cdyfile.saas.dianwutong.com/' + report.fileUrl
a.attr("download", name)
a.attr('href', url)
$("body").append(a[0])

View File

@ -5,7 +5,7 @@ import { cookie } from '../utils/cookie.util'
import { UI } from '../common/ui'
// const basePath = 'https://api.dianwutong.com'
const basePath = 'https://api.saas.dianwutong.com'
const basePath = 'https://cdyapi.saas.dianwutong.com'
const http = {}
let hasAlert = false // 标识是否token失效弹框

View File

@ -38,7 +38,7 @@ app.getTicket = function () {
}).subscribe(function (res) {
if (res.code === 200) {
app.ticket = res.body
app.prefix = 'https://file.saas.dianwutong.com/'
app.prefix = 'https://cdyfile.saas.dianwutong.com/'
app.renderTicket()
} else {

View File

@ -16,11 +16,11 @@
<input id="date-range" class="date-range md" placeholder="请选择日期区间">
</div>
<div class="width1"></div>
<!-- <div class="width1"></div>
<div id="return-old">
<span>回到旧版</span>
</div>
</div> -->
</div>
</header>

View File

@ -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) {

View File

@ -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)

View File

@ -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)
}

View File

@ -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()
}

View File

@ -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)

View File

@ -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 {

View File

@ -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 {

View File

@ -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)

View File

@ -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
// 过滤出查勘任务和抢修任务

View File

@ -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;
exports.model = model

View File

@ -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

View File

@ -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')
}
})
}

View File

@ -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)

View File

@ -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

View File

@ -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()
}

View File

@ -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)
}

View File

@ -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 += '<div class="pic item">'
dom += '<img src="' + src + '" alt=""/>'
@ -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 += '<div class="pic item">'
dom += '<img src="' + src + '" alt=""/>'

View File

@ -247,7 +247,7 @@ ctrl.bind = function () {
UI.hideProgress()
if (res.code == 200) {
var a = $('<a>')
var url = 'https://file.saas.dianwutong.com/' + res.body.fileUrl
var url = 'https://cdyfile.saas.dianwutong.com/' + res.body.fileUrl
a.attr('download', '报警记录' + '.xls')
a.attr('href', url)
$('body').append(a[0])

View File

@ -1,38 +1,38 @@
// 跳转到console点表页面
require('../../scss/time-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/layout-controller.js');
require('../../scss/time-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.