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' import { cookie } from '../utils/cookie.util'
// const basePath = 'http://api.dianwutong.com'; // const basePath = 'http://api.dianwutong.com';
const basePath = 'https://api.saas.dianwutong.com' const basePath = 'https://cdyapi.saas.dianwutong.com'
const http = {} const http = {}

View File

@ -46,7 +46,7 @@ a {
box-sizing: border-box; box-sizing: border-box;
.container { .container {
height: 100%; 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; background-repeat: no-repeat;
position: relative; position: relative;

View File

@ -8,7 +8,7 @@
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" /> <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> <title>修改密码</title>
</head> </head>
@ -16,7 +16,7 @@
<div class="container"> <div class="container">
<div class="header"> <div class="header">
<div class="content"> <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> <span>找回密码</span>
</div> </div>
</div> </div>

View File

@ -8,7 +8,7 @@
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" /> <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> <title>登录</title>
</head> </head>
@ -17,7 +17,7 @@
<div class="header"> <div class="header">
<div class="container"> <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> </div>
<div class="body"> <div class="body">
@ -68,20 +68,17 @@
<div class="height21"></div> <div class="height21"></div>
<div class="qr-code-con"> <div class="qr-code-con">
<div class="qr-code"> <div class="qr-code">
<div>电务通app下载</div> <div>app下载</div>
<img src="http://cdn.saas.dianwutong.com/common/img/dianwutong_app_download.png"> <img src="http://cdycdn.saas.dianwutong.com/common/img/dianwutong_app_download.png">
</div> </div>
<div class="qr-code"> <!-- <div class="qr-code">
<div>电务通官方微信</div> <div>电务通官方微信</div>
<!-- edit start 2018/11/22 14:24 kangzhi --> <img src="http://cdycdn.saas.dianwutong.com/common/img/wechat_icon.png">
<!-- <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 -->
</div> </div>
<div class="qr-code"> <div class="qr-code">
<div>电务通官方抖音</div> <div>电务通官方抖音</div>
<img src="http://cdn.saas.dianwutong.com/common/img/douyin.jpg"> <img src="http://cdycdn.saas.dianwutong.com/common/img/douyin.jpg">
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>

View File

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

View File

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

View File

@ -6,7 +6,7 @@ import { Component, OnInit } from '@angular/core'
export class CircuitComponent implements OnInit { export class CircuitComponent implements OnInit {
ngOnInit() { ngOnInit() {
// 跳转到一次接线图绘制页面 // 跳转到一次接线图绘制页面
window.open('https://circuit.saas.dianwutong.com') window.open('https://cdycircuit.saas.dianwutong.com')
window.location.href = 'https://console.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('table')" [class.active]="path == 'table'">点表设置</li>
<li (click)="navigate('tag')" [class.active]="path == 'tag'">标签设置</li> <li (click)="navigate('tag')" [class.active]="path == 'tag'">标签设置</li>
<!-- Add start 2018/9/3 15:48 kangzhi --> <!-- 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 --> <!-- 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> </ul>
</div> </div>

View File

@ -18,7 +18,7 @@
<li (click)="navigate('table')" [class.active]="path == 'table'">点表设置</li> <li (click)="navigate('table')" [class.active]="path == 'table'">点表设置</li>
<li (click)="navigate('tag')" [class.active]="path == 'tag'">标签设置</li> <li (click)="navigate('tag')" [class.active]="path == 'tag'">标签设置</li>
<!-- Add start 2018/9/3 15:48 kangzhi --> <!-- 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 --> <!-- 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> -->
<!-- <li (click)="navigate('fuzailv')" [class.active]="path == 'fuzailv'">变压器负载率设置</li> --> <!-- <li (click)="navigate('fuzailv')" [class.active]="path == 'fuzailv'">变压器负载率设置</li> -->

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,8 @@
export const environment = { export const environment = {
production: false, production: false,
apiBasePath: 'https://api.saas.dianwutong.com', apiBasePath: 'https://cdyapi.saas.dianwutong.com',
accountPath: 'https://account.saas.dianwutong.com/', accountPath: 'https://cdyaccount.saas.dianwutong.com/',
// apiBasePath: 'http://api.dianwutong.com', // apiBasePath: 'http://api.dianwutong.com',
// accountPath: 'http://account.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 直接跳转到登陆页 // 如果没有token 直接跳转到登陆页
if (!/token/.test(document.cookie)) { 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> </script>

View File

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

View File

@ -563,7 +563,7 @@ app.exportAlarms = function () {
if (res.code == 200) { if (res.code == 200) {
var a = $('<a>') 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('download', '报警记录' + model.startDate + '至' + model.endDate + '.xls')
a.attr('href', url) a.attr('href', url)
$('body').append(a[0]) $('body').append(a[0])

View File

@ -178,7 +178,7 @@ ctrl.bind = function () {
UI.hideProgress() UI.hideProgress()
if (res.code == 200) { if (res.code == 200) {
var a = $('<a>') 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('download', '报警记录' + '.xls')
a.attr('href', url) a.attr('href', url)
$('body').append(a[0]) $('body').append(a[0])

View File

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

View File

@ -421,7 +421,7 @@ local.bind = function () {
if (res && res.code == 200) { if (res && res.code == 200) {
if (res.body.length && res.body.length > 0) { if (res.body.length && res.body.length > 0) {
let circuitId = res.body[0]['circuitId'] 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 { } else {
UI.alert({ UI.alert({
'content': '当前配电室没有一次接线图信息', '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) { if (local.menuStatus.hasWorkTickets) {
@ -891,17 +891,17 @@ local.getPowerRoomDom = function (item) {
dom += '<div class="second-title">日志查询</div>' dom += '<div class="second-title">日志查询</div>'
dom += '</div>' dom += '</div>'
dom += '<div class="third inspection-logs" power-room-id="' + item.prId + '">巡检日志</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 work-tickets" power-room-id="' + item.prId + '">工作票</div>'
dom += '<div class="third operation-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>' // dom += '<div>'
dom += '<div class="second repairing-list">' // dom += '<div class="second repairing-list">'
dom += '<i class="iconfont second-arrow">&#xe607;</i>' // dom += '<i class="iconfont second-arrow">&#xe607;</i>'
dom += '<div class="second-title">抢修单</div>' // dom += '<div class="second-title">抢修单</div>'
dom += '</div>' // dom += '</div>'
dom += '</div>' // dom += '</div>'
// add s 2023/9/22 // add s 2023/9/22
// 电费核算 // 电费核算

View File

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

View File

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

View File

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

View File

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

View File

@ -968,7 +968,7 @@ app.getProblemList = function () {
model.getProblemList().subscribe(res => { model.getProblemList().subscribe(res => {
if (res && res.code == 200) { if (res && res.code == 200) {
this.problemList = res.body this.problemList = res.body
this.prefix = 'https://file.saas.dianwutong.com/' this.prefix = 'https://cdyfile.saas.dianwutong.com/'
this.renderProblemList() this.renderProblemList()
} }

View File

@ -534,7 +534,7 @@ app.getProblemList = function () {
model.getProblemList().subscribe(res => { model.getProblemList().subscribe(res => {
if (res && res.code == 200) { if (res && res.code == 200) {
this.problemList = res.body this.problemList = res.body
this.prefix = 'https://file.saas.dianwutong.com/' this.prefix = 'https://cdyfile.saas.dianwutong.com/'
this.renderProblemList() this.renderProblemList()
} }

View File

@ -214,7 +214,7 @@ app.bind = function () {
if (res) { if (res) {
var a = $('<a>') var a = $('<a>')
var report = reportModel.report 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 dateRange = $("#date-range").val().replace('至', '-');
// var name = '统计报表(' + dateRange + ').xls'; // var name = '统计报表(' + dateRange + ').xls';

View File

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

View File

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

View File

@ -85,7 +85,7 @@ app.getOrderDetail = function () {
var dom = '' var dom = ''
for (var i = 0; i < photosUrl.length; i++) { 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 += '<div class="pic item">' dom += '<div class="pic item">'
dom += '<img src="' + src + '" alt=""/>' dom += '<img src="' + src + '" alt=""/>'
@ -114,7 +114,7 @@ app.getOrderDetail = function () {
var dom = '' var dom = ''
for (var i = 0; i < photosUrl.length; i++) { 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 += '<div class="pic item">' dom += '<div class="pic item">'
dom += '<img src="' + src + '" alt=""/>' dom += '<img src="' + src + '" alt=""/>'

View File

@ -134,7 +134,7 @@ app.bind = function () {
if (res) { if (res) {
var a = $('<a>') var a = $('<a>')
var report = model.report 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("download", name)
a.attr('href', url) a.attr('href', url)
$("body").append(a[0]) $("body").append(a[0])

View File

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

View File

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

View File

@ -16,11 +16,11 @@
<input id="date-range" class="date-range md" placeholder="请选择日期区间"> <input id="date-range" class="date-range md" placeholder="请选择日期区间">
</div> </div>
<div class="width1"></div> <!-- <div class="width1"></div>
<div id="return-old"> <div id="return-old">
<span>回到旧版</span> <span>回到旧版</span>
</div> </div> -->
</div> </div>
</header> </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(/edp.dianwutong.com(:\d+)?/g, 'edp.dianwutong.com')
mod._source._value = mod._source._value.replace(/console.dianwutong.com(:\d+)?/g, 'console.dianwutong.com') mod._source._value = mod._source._value.replace(/console.dianwutong.com(:\d+)?/g, 'console.dianwutong.com')
} else if (this.env === 'production') { } 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(/api.dianwutong.com/g, 'cdyapi.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(/account.dianwutong.com(:\d+)?/g, 'cdyaccount.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(/ems.dianwutong.com(:\d+)?/g, 'cdyems.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(/console.dianwutong.com(:\d+)?/g, 'cdyconsole.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(/edp.dianwutong.com(:\d+)?/g, 'cdyedp.saas.dianwutong.com')
} }
console.log("替换成功") console.log("替换成功")
} catch (error) { } catch (error) {

View File

@ -38,7 +38,7 @@ app.initPowerRoomBaseInfo = function () {
powerRoomModel.getPowerRoomBaseInfo().subscribe(function (res) { powerRoomModel.getPowerRoomBaseInfo().subscribe(function (res) {
if (res.code === 200) { if (res.code === 200) {
var pr = res.body var pr = res.body
app.prefix = 'https://file.saas.dianwutong.com/' app.prefix = 'https://cdyfile.saas.dianwutong.com/'
$('.pr-name').text(pr.prName) $('.pr-name').text(pr.prName)
$('#pr-address').text(pr.address) $('#pr-address').text(pr.address)
$('#customer-name').text(pr.cusName) $('#customer-name').text(pr.cusName)

View File

@ -1,39 +1,39 @@
// 跳转到console点表页面 // 跳转到console点表页面
require('../../scss/compare-energy.scss'); require('../../scss/compare-energy.scss')
require('../common/service/user.info.service'); require('../common/service/user.info.service')
let $ = require('jquery'); let $ = require('jquery')
import { UI } from '../common/ui'; //ui import { UI } from '../common/ui' //ui
import { appUtil } from '../utils/app.util'; // 公共方法 import { appUtil } from '../utils/app.util' // 公共方法
import { model } from './model'; import { model } from './model'
import { powerRoomCommonController } from '../common/power-room-common-controller'; import { powerRoomCommonController } from '../common/power-room-common-controller'
import { powerRoomModel } from '../common/power-room-model'; import { powerRoomModel } from '../common/power-room-model'
import { TodoTasksService } from '../common/service/todo.tasks.service'; import { TodoTasksService } from '../common/service/todo.tasks.service'
import { from } from 'rxjs/observable/from'; import { from } from 'rxjs/observable/from'
require('../common/power-room-common-controller'); require('../common/power-room-common-controller')
require('../common/layout-controller.js'); require('../common/layout-controller.js')
let app = { let app = {
init: {} init: {}
}; }
$(function () { $(function () {
app.init(); app.init()
TodoTasksService.start(); TodoTasksService.start()
}); })
app.init = function () { app.init = function () {
// 为了便于展示点表信息,隐藏右侧配电室基本信息 // 为了便于展示点表信息,隐藏右侧配电室基本信息
$('.base-info').hide(); $('.base-info').hide()
// 将左侧容器宽度设置为100% // 将左侧容器宽度设置为100%
$('.page').css('width', '100%'); $('.page').css('width', '100%')
app.prId = appUtil.getParameter('id'); app.prId = appUtil.getParameter('id')
app.setJumpFlag(); app.setJumpFlag()
}; }
app.setJumpFlag = function () { app.setJumpFlag = function () {
let iFrame = $('#compareEnergyIframe'); let iFrame = $('#compareEnergyIframe')
iFrame.attr('src', 'https://edp.dianwutong.com/compare-energy.html?prid=' + app.prId); 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 => { model.getProblemList().subscribe(res => {
if (res && res.code == 200) { if (res && res.code == 200) {
this.problemList = res.body this.problemList = res.body
this.prefix = 'https://file.saas.dianwutong.com/' this.prefix = 'https://cdyfile.saas.dianwutong.com/'
this.renderProblemList() this.renderProblemList()
} }

View File

@ -137,7 +137,7 @@ app.renderPrInfo = function (prId) {
powerRoomModel.getPowerRoomBaseInfo(prId).subscribe(res => { powerRoomModel.getPowerRoomBaseInfo(prId).subscribe(res => {
if (res.code === 200) { if (res.code === 200) {
var pr = res.body var pr = res.body
app.prefix = 'https://file.saas.dianwutong.com/' app.prefix = 'https://cdyfile.saas.dianwutong.com/'
$('.pr-name').text(pr.prName) $('.pr-name').text(pr.prName)
$('#pr-address').text(pr.address) $('#pr-address').text(pr.address)
$('#customer-name').text(pr.cusName) $('#customer-name').text(pr.cusName)

View File

@ -23,7 +23,7 @@ model.getBugById = function () {
if (res.code === 200) { if (res.code === 200) {
this.bugInfo = res.body this.bugInfo = res.body
// this.prefix = res.prefix; // this.prefix = res.prefix;
this.prefix = 'https://file.saas.dianwutong.com/' this.prefix = 'https://cdyfile.saas.dianwutong.com/'
res.success = true res.success = true
return res return res
} else { } else {

View File

@ -77,7 +77,7 @@ model.getOrder = function (id) {
if (res.code === 200) { if (res.code === 200) {
model.order = res.body model.order = res.body
model.logs = model.order.logs model.logs = model.order.logs
model.prefix = 'https://file.saas.dianwutong.com/' model.prefix = 'https://cdyfile.saas.dianwutong.com/'
model.handleOrder() model.handleOrder()
return true return true
} else { } else {

View File

@ -405,7 +405,7 @@ app.disPowerRoomInfo = function (prId) {
appModel.getPowerRoomById(prId).subscribe(function (res) { appModel.getPowerRoomById(prId).subscribe(function (res) {
if (res.code === 200) { if (res.code === 200) {
var pr = res.body var pr = res.body
app.prefix = 'https://file.saas.dianwutong.com/' app.prefix = 'https://cdyfile.saas.dianwutong.com/'
$('.pr-name').text(pr.prName) $('.pr-name').text(pr.prName)
$('#pr-address').text(pr.province + ' ' + pr.city + ' ' + (pr.area ? pr.area : '') + ' ' + pr.address) $('#pr-address').text(pr.province + ' ' + pr.city + ' ' + (pr.area ? pr.area : '') + ' ' + pr.address)
$('#customer-name').text(pr.cusName) $('#customer-name').text(pr.cusName)

View File

@ -42,7 +42,7 @@ model.getRepairOrderBaseInfo = function () {
if (res.code === 200) { if (res.code === 200) {
// model.prefix = res.prefix; // model.prefix = res.prefix;
model.prefix = 'https://file.saas.dianwutong.com/' model.prefix = 'https://cdyfile.saas.dianwutong.com/'
let order = res.body let order = res.body
// 过滤出查勘任务和抢修任务 // 过滤出查勘任务和抢修任务

View File

@ -1,4 +1,4 @@
import { http } from "../utils/http.util"; import { http } from "../utils/http.util"
let model = { let model = {
prId: null, prId: null,
@ -9,20 +9,36 @@ let model = {
getPrInspectionLogs: {}, getPrInspectionLogs: {},
} }
model.getPrInspectionLogs = function(){ model.getPrInspectionLogs = function () {
let param = { // let param = {
prId: this.prId, // prId: this.prId,
page: this.page, // page: this.page,
pageSize: this.pageSize, // pageSize: this.pageSize,
startDate: this.startDate, // startDate: this.startDate,
endDate: this.endDate // 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; if (this.endDate) {
!param.endDate && delete param.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) { if (res.code === 200) {
let container = $("#power-room-metarial") let container = $("#power-room-metarial")
this.fileBaseUrl = 'https://file.saas.dianwutong.com/' this.fileBaseUrl = 'https://cdyfile.saas.dianwutong.com/'
let files = res.body let files = res.body
let length = files.length let length = files.length

View File

@ -1,47 +1,47 @@
// 跳转到console点表页面 // 跳转到console点表页面
require('../../scss/pr-table-setting.scss'); require('../../scss/pr-table-setting.scss')
require('../common/service/user.info.service'); require('../common/service/user.info.service')
let $ = require('jquery'); let $ = require('jquery')
import { UI } from '../common/ui'; //ui import { UI } from '../common/ui' //ui
import { appUtil } from '../utils/app.util'; // 公共方法 import { appUtil } from '../utils/app.util' // 公共方法
import { model } from './model'; import { model } from './model'
import { powerRoomCommonController } from '../common/power-room-common-controller'; import { powerRoomCommonController } from '../common/power-room-common-controller'
import { powerRoomModel } from '../common/power-room-model'; import { powerRoomModel } from '../common/power-room-model'
import { TodoTasksService } from '../common/service/todo.tasks.service'; import { TodoTasksService } from '../common/service/todo.tasks.service'
import { from } from 'rxjs/observable/from'; import { from } from 'rxjs/observable/from'
require('../common/layout-controller.js'); require('../common/layout-controller.js')
let app = { let app = {
init: {} init: {}
}; }
$(function () { $(function () {
app.init(); app.init()
}); })
app.init = function () { app.init = function () {
// 为了便于展示点表信息,隐藏右侧配电室基本信息 // 为了便于展示点表信息,隐藏右侧配电室基本信息
$('.base-info').hide(); $('.base-info').hide()
// 将左侧容器宽度设置为100% // 将左侧容器宽度设置为100%
$('.page').css('width', '100%'); $('.page').css('width', '100%')
// 将顶部header "点表配置按钮" 激活 // 将顶部header "点表配置按钮" 激活
$('#prTableSetting').addClass('active'); $('#prTableSetting').addClass('active')
app.prId = appUtil.getParameter('id'); app.prId = appUtil.getParameter('id')
app.setJumpFlag(); app.setJumpFlag()
}; }
app.setJumpFlag = function () { app.setJumpFlag = function () {
UI.showProgress(); UI.showProgress()
model.setJumpFlag(app.prId).subscribe(res => { model.setJumpFlag(app.prId).subscribe(res => {
UI.hideProgress(); UI.hideProgress()
if (res.code == 200) { if (res.code == 200) {
let iFrame = $('#frameSrc'); let iFrame = $('#frameSrc')
iFrame.attr('src', 'https://console.dianwutong.com:4200'); iFrame.attr('src', 'https://cdyconsole.saas.dianwutong.com')
} }
}) })
} }

View File

@ -311,7 +311,7 @@ app.initRTDSocket = function (param) {
// this.getRealData(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) this.getRealData(param)
} else { } else {
this.getRealData(param) this.getRealData(param)

View File

@ -314,7 +314,7 @@ app.initRTDSocket = function (param) {
if (!app.socket) { if (!app.socket) {
// add start 2023/9/7 // add start 2023/9/7
if (app.isMqttPr) { if (app.isMqttPr) {
model.websocketAddress = 'wss://api.saas.dianwutong.com/mqtt/websocket' model.websocketAddress = 'wss://cdyapi.saas.dianwutong.com/mqtt/websocket'
this.getRealData(param) this.getRealData(param)
return return

View File

@ -588,7 +588,7 @@ app.getProblemList = function () {
model.getProblemList().subscribe(res => { model.getProblemList().subscribe(res => {
if (res && res.code == 200) { if (res && res.code == 200) {
this.problemList = res.body this.problemList = res.body
this.prefix = 'https://file.saas.dianwutong.com/' this.prefix = 'https://cdyfile.saas.dianwutong.com/'
this.renderProblemList() this.renderProblemList()
} }

View File

@ -1,39 +1,39 @@
// 跳转到console点表页面 // 跳转到console点表页面
require('../../scss/report.scss'); require('../../scss/report.scss')
require('../common/service/user.info.service'); require('../common/service/user.info.service')
let $ = require('jquery'); let $ = require('jquery')
import { UI } from '../common/ui'; //ui import { UI } from '../common/ui' //ui
import { appUtil } from '../utils/app.util'; // 公共方法 import { appUtil } from '../utils/app.util' // 公共方法
import { model } from './model'; import { model } from './model'
import { powerRoomCommonController } from '../common/power-room-common-controller'; import { powerRoomCommonController } from '../common/power-room-common-controller'
import { powerRoomModel } from '../common/power-room-model'; import { powerRoomModel } from '../common/power-room-model'
import { TodoTasksService } from '../common/service/todo.tasks.service'; import { TodoTasksService } from '../common/service/todo.tasks.service'
import { from } from 'rxjs/observable/from'; import { from } from 'rxjs/observable/from'
require('../common/layout-controller.js'); require('../common/layout-controller.js')
let app = { let app = {
init: {} init: {}
}; }
$(function () { $(function () {
app.init(); app.init()
TodoTasksService.start(); TodoTasksService.start()
}); })
app.init = function () { app.init = function () {
// 为了便于展示点表信息,隐藏右侧配电室基本信息 // 为了便于展示点表信息,隐藏右侧配电室基本信息
$('.base-info').hide(); $('.base-info').hide()
// 将左侧容器宽度设置为100% // 将左侧容器宽度设置为100%
$('.page').css('width', '100%'); $('.page').css('width', '100%')
app.prId = appUtil.getParameter('id'); app.prId = appUtil.getParameter('id')
app.shortName = appUtil.getParameter('shortname'); app.shortName = appUtil.getParameter('shortname')
app.setJumpFlag(); app.setJumpFlag()
}; }
app.setJumpFlag = function () { app.setJumpFlag = function () {
let iFrame = $('#reportIframe'); let iFrame = $('#reportIframe')
iFrame.attr('src', 'https://edp.dianwutong.com/report.html?prid=' + app.prId + '&shortname=' + app.shortName); 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 = '' var dom = ''
for (var i = 0; i < photosUrl.length; i++) { 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 += '<div class="pic item">' dom += '<div class="pic item">'
dom += '<img src="' + src + '" alt=""/>' dom += '<img src="' + src + '" alt=""/>'
@ -146,7 +146,7 @@ app.getOrderDetail = function () {
var dom = '' var dom = ''
for (var i = 0; i < photosUrl.length; i++) { 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 += '<div class="pic item">' dom += '<div class="pic item">'
dom += '<img src="' + src + '" alt=""/>' dom += '<img src="' + src + '" alt=""/>'

View File

@ -247,7 +247,7 @@ ctrl.bind = function () {
UI.hideProgress() UI.hideProgress()
if (res.code == 200) { if (res.code == 200) {
var a = $('<a>') 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('download', '报警记录' + '.xls')
a.attr('href', url) a.attr('href', url)
$('body').append(a[0]) $('body').append(a[0])

View File

@ -1,38 +1,38 @@
// 跳转到console点表页面 // 跳转到console点表页面
require('../../scss/time-energy.scss'); require('../../scss/time-energy.scss')
require('../common/service/user.info.service'); require('../common/service/user.info.service')
let $ = require('jquery'); let $ = require('jquery')
import { UI } from '../common/ui'; //ui import { UI } from '../common/ui' //ui
import { appUtil } from '../utils/app.util'; // 公共方法 import { appUtil } from '../utils/app.util' // 公共方法
import { model } from './model'; import { model } from './model'
import { powerRoomCommonController } from '../common/power-room-common-controller'; import { powerRoomCommonController } from '../common/power-room-common-controller'
import { powerRoomModel } from '../common/power-room-model'; import { powerRoomModel } from '../common/power-room-model'
import { TodoTasksService } from '../common/service/todo.tasks.service'; import { TodoTasksService } from '../common/service/todo.tasks.service'
import { from } from 'rxjs/observable/from'; import { from } from 'rxjs/observable/from'
require('../common/layout-controller.js'); require('../common/layout-controller.js')
let app = { let app = {
init: {} init: {}
}; }
$(function () { $(function () {
app.init(); app.init()
TodoTasksService.start(); TodoTasksService.start()
}); })
app.init = function () { app.init = function () {
// 为了便于展示点表信息,隐藏右侧配电室基本信息 // 为了便于展示点表信息,隐藏右侧配电室基本信息
$('.base-info').hide(); $('.base-info').hide()
// 将左侧容器宽度设置为100% // 将左侧容器宽度设置为100%
$('.page').css('width', '100%'); $('.page').css('width', '100%')
app.prId = appUtil.getParameter('id'); app.prId = appUtil.getParameter('id')
app.setJumpFlag(); app.setJumpFlag()
}; }
app.setJumpFlag = function () { app.setJumpFlag = function () {
let iFrame = $('#timeEnergyIframe'); let iFrame = $('#timeEnergyIframe')
iFrame.attr('src', 'https://edp.dianwutong.com/time-energy.html?prid=' + app.prId); iFrame.attr('src', 'https://cdyedp.saas.dianwutong.com/time-energy.html?prid=' + app.prId)
} }

View File

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

View File

@ -76,7 +76,7 @@ model.getOrder = function (id) {
if (res.code === 200) { if (res.code === 200) {
model.order = res.body model.order = res.body
model.logs = model.order.logs model.logs = model.order.logs
model.prefix = 'https://file.saas.dianwutong.com/' model.prefix = 'https://cdyfile.saas.dianwutong.com/'
model.handleOrder() model.handleOrder()
return true return true
} else { } else {

View File

@ -172,7 +172,7 @@
</div> </div>
<div id="code"> <div id="code">
</div> </div>
<img src="https://cdn.saas.dianwutong.com/common/img/favicon.ico" id="img-buffer" style="display: none;" <img src="https://cdycdn.saas.dianwutong.com/common/img/favicon.ico" id="img-buffer" style="display: none;"
id="img-buffer"> id="img-buffer">
<a id="downloadLink"></a> <a id="downloadLink"></a>
</div> </div>

View File

@ -12,9 +12,9 @@
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" /> <meta http-equiv="Expires" content="0" />
<link rel="icon" type="image/x-icon" href="//cdn.saas.dianwutong.com/common/img/favicon.ico"> <link rel="icon" type="image/x-icon" href="//cdycdn.saas.dianwutong.com/common/img/favicon.ico">
<!-- 引入样式表 --> <!-- 引入样式表 -->
<link rel="stylesheet" type="text/css" href="//cdn.saas.dianwutong.com/common/css/iconfont.css" /> <link rel="stylesheet" type="text/css" href="//cdycdn.saas.dianwutong.com/common/css/iconfont.css" />
<script type="text/javascript" src="build/dev/vendor.dll.js"></script> <script type="text/javascript" src="build/dev/vendor.dll.js"></script>
</head> </head>
@ -23,7 +23,7 @@
<div class="nav-list"> <div class="nav-list">
<div class="height5"></div> <div class="height5"></div>
<div class="logo"> <div class="logo">
<img src="//cdn.saas.dianwutong.com/ems/image/logo.png"> <img src="//cdycdn.saas.dianwutong.com/ems/image/logo.png">
</div> </div>
<div class="height40"></div> <div class="height40"></div>
<div class="nav-content"> <div class="nav-content">
@ -143,7 +143,7 @@
</div> </div>
<!-- add start 2019/4/25 kangzhi --> <!-- add start 2019/4/25 kangzhi -->
<!-- 增加edp\app菜单权限设置 --> <!-- 增加edp\app菜单权限设置 -->
<div class="nav-content-item menu-privilege" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG"> <!-- <div class="nav-content-item menu-privilege" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">
<a class="nav-item color-grey" href="menu-privilege.html"> <a class="nav-item color-grey" href="menu-privilege.html">
<i class="iconfont icon icon-bg-xunjianwenti">&#xe613;</i> <i class="iconfont icon icon-bg-xunjianwenti">&#xe613;</i>
<span>权限设置</span> <span>权限设置</span>
@ -151,12 +151,12 @@
<div class="badge" id="menu-privilege-badge"></div> <div class="badge" id="menu-privilege-badge"></div>
</a> </a>
<div class="height20"></div> <div class="height20"></div>
</div> </div> -->
<!-- add end 2019/4/25 kangzhi --> <!-- add end 2019/4/25 kangzhi -->
<!-- add start 2019/5/9 10:04 kangzhi --> <!-- add start 2019/5/9 10:04 kangzhi -->
<!-- 在侧边导航栏中添加“简历审核” --> <!-- 在侧边导航栏中添加“简历审核” -->
<div class="nav-content-item interviewer-list" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG"> <!-- <div class="nav-content-item interviewer-list" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">
<a class="nav-item color-grey" href="interviewer-list.html"> <a class="nav-item color-grey" href="interviewer-list.html">
<i class="iconfont icon icon-bg-xitongguapai">&#xe613;</i> <i class="iconfont icon icon-bg-xitongguapai">&#xe613;</i>
<span>简历审核</span> <span>简历审核</span>
@ -164,12 +164,12 @@
<div class="badge" id="interviewer-badge"></div> <div class="badge" id="interviewer-badge"></div>
</a> </a>
<div class="height20"></div> <div class="height20"></div>
</div> </div> -->
<!-- add end 2019/5/9 10:04 kangzhi --> <!-- add end 2019/5/9 10:04 kangzhi -->
<!-- add start 2019/9/18 15:57 kangzhi --> <!-- add start 2019/9/18 15:57 kangzhi -->
<!-- 在侧边导航栏中添加“简历审核” --> <!-- 在侧边导航栏中添加“简历审核” -->
<div class="nav-content-item work-attendance" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG"> <!-- <div class="nav-content-item work-attendance" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">
<a class="nav-item color-grey" href="work-attendance.html"> <a class="nav-item color-grey" href="work-attendance.html">
<i class="iconfont icon icon-bg-xunjianrizhi">&#xe613;</i> <i class="iconfont icon icon-bg-xunjianrizhi">&#xe613;</i>
<span>抢单考勤</span> <span>抢单考勤</span>
@ -177,7 +177,7 @@
<div class="badge" id="work-attendance-badge"></div> <div class="badge" id="work-attendance-badge"></div>
</a> </a>
<div class="height20"></div> <div class="height20"></div>
</div> </div> -->
<!-- add end 2019/9/18 15:57 kangzhi --> <!-- add end 2019/9/18 15:57 kangzhi -->
<!-- add start 2020/6/18 kangzhi --> <!-- add start 2020/6/18 kangzhi -->
@ -219,17 +219,17 @@
</a> </a>
<div class="height20"></div> <div class="height20"></div>
</div> </div>
<div class="nav-content-item ddn-setting" privilege="ZTZ,KHZG,KHJKY,GZZJKY,KHZZ,KHzbz,KHZBY,YQZG"> <!-- <div class="nav-content-item ddn-setting" privilege="ZTZ,KHZG,KHJKY,GZZJKY,KHZZ,KHzbz,KHZBY,YQZG">
<a class="nav-item color-grey" href="ddh-setting.html"> <a class="nav-item color-grey" href="ddh-setting.html">
<i class="iconfont icon icon-bg-reportproject">&#xe61c;</i> <i class="iconfont icon icon-bg-reportproject">&#xe61c;</i>
<span>调度号划分</span> <span>调度号划分</span>
<i class="iconfont arrow">&#xe61a;</i> <i class="iconfont arrow">&#xe61a;</i>
</a> </a>
<div class="height20"></div> <div class="height20"></div>
</div> </div> -->
<!-- add end 2021/5/24 kangzhi --> <!-- add end 2021/5/24 kangzhi -->
<!-- add by guoyuanyuan 2021/4/26 --> <!-- add by guoyuanyuan 2021/4/26 -->
<div class="nav-content-item device-item" privilege="ZTZ,KHZG,KHJKY,GZZJKY,KHZZ,KHzbz,KHZBY,YQZG"> <!-- <div class="nav-content-item device-item" privilege="ZTZ,KHZG,KHJKY,GZZJKY,KHZZ,KHzbz,KHZBY,YQZG">
<a class="nav-item color-grey" href="device-list.html"> <a class="nav-item color-grey" href="device-list.html">
<i class="iconfont icon icon icon-bg-xunjiananpai">&#xe614;</i> <i class="iconfont icon icon icon-bg-xunjiananpai">&#xe614;</i>
<span>点检工单配置</span> <span>点检工单配置</span>
@ -237,7 +237,7 @@
<div class="badge"></div> <div class="badge"></div>
</a> </a>
<div class="height20"></div> <div class="height20"></div>
</div> </div> -->
<!-- add end --> <!-- add end -->
<!-- add start 2021/7/26 kangzhi --> <!-- add start 2021/7/26 kangzhi -->
<!-- <div class="nav-content-item unusual-inspection" privilege="ZBZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG"> <!-- <div class="nav-content-item unusual-inspection" privilege="ZBZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">

View File

@ -12,9 +12,9 @@
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" /> <meta http-equiv="Expires" content="0" />
<link rel="icon" type="image/x-icon" href="//cdn.saas.dianwutong.com/common/img/favicon.ico"> <link rel="icon" type="image/x-icon" href="//cdycdn.saas.dianwutong.com/common/img/favicon.ico">
<!-- 引入样式表 --> <!-- 引入样式表 -->
<link rel="stylesheet" type="text/css" href="//cdn.saas.dianwutong.com/common/css/iconfont.css" /> <link rel="stylesheet" type="text/css" href="//cdycdn.saas.dianwutong.com/common/css/iconfont.css" />
<script type="text/javascript" src="build/dev/vendor.dll.js"></script> <script type="text/javascript" src="build/dev/vendor.dll.js"></script>
</head> </head>
@ -23,7 +23,7 @@
<div class="nav-list"> <div class="nav-list">
<div class="height5"></div> <div class="height5"></div>
<div class="logo"> <div class="logo">
<img src="//cdn.saas.dianwutong.com/ems/image/logo.png"> <img src="//cdycdn.saas.dianwutong.com/ems/image/logo.png">
</div> </div>
<div class="height40"></div> <div class="height40"></div>
<div class="nav-content"> <div class="nav-content">
@ -140,7 +140,7 @@
</a> </a>
<div class="height20"></div> <div class="height20"></div>
</div> </div>
<div class="nav-content-item menu-privilege" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG"> <!-- <div class="nav-content-item menu-privilege" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">
<a class="nav-item color-grey" href="menu-privilege.html"> <a class="nav-item color-grey" href="menu-privilege.html">
<i class="iconfont icon icon-bg-xunjianwenti">&#xe613;</i> <i class="iconfont icon icon-bg-xunjianwenti">&#xe613;</i>
<span>权限设置</span> <span>权限设置</span>
@ -148,9 +148,9 @@
<div class="badge" id="menu-privilege-badge"></div> <div class="badge" id="menu-privilege-badge"></div>
</a> </a>
<div class="height20"></div> <div class="height20"></div>
</div> </div> -->
<!-- 在侧边导航栏中添加“简历审核” --> <!-- 在侧边导航栏中添加“简历审核” -->
<div class="nav-content-item interviewer-list" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG"> <!-- <div class="nav-content-item interviewer-list" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">
<a class="nav-item color-grey" href="interviewer-list.html"> <a class="nav-item color-grey" href="interviewer-list.html">
<i class="iconfont icon icon-bg-xitongguapai">&#xe613;</i> <i class="iconfont icon icon-bg-xitongguapai">&#xe613;</i>
<span>简历审核</span> <span>简历审核</span>
@ -158,10 +158,10 @@
<div class="badge" id="interviewer-badge"></div> <div class="badge" id="interviewer-badge"></div>
</a> </a>
<div class="height20"></div> <div class="height20"></div>
</div> </div> -->
<!-- 在侧边导航栏中添加“简历审核” --> <!-- 在侧边导航栏中添加“简历审核” -->
<div class="nav-content-item work-attendance" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG"> <!-- <div class="nav-content-item work-attendance" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">
<a class="nav-item color-grey" href="work-attendance.html"> <a class="nav-item color-grey" href="work-attendance.html">
<i class="iconfont icon icon-bg-xunjianrizhi">&#xe613;</i> <i class="iconfont icon icon-bg-xunjianrizhi">&#xe613;</i>
<span>抢单考勤</span> <span>抢单考勤</span>
@ -169,7 +169,7 @@
<div class="badge" id="work-attendance-badge"></div> <div class="badge" id="work-attendance-badge"></div>
</a> </a>
<div class="height20"></div> <div class="height20"></div>
</div> </div> -->
<div class="nav-content-item run-log-list" privilege="ZTZ,KHZG,KHJKY,GZZJKY,KHZZ,KHzbz,KHZBY,YQZG"> <div class="nav-content-item run-log-list" privilege="ZTZ,KHZG,KHJKY,GZZJKY,KHZZ,KHzbz,KHZBY,YQZG">
<a class="nav-item color-grey" href="run-log-list.html"> <a class="nav-item color-grey" href="run-log-list.html">
@ -217,16 +217,16 @@
<div class="height20"></div> <div class="height20"></div>
</div> --> </div> -->
<div class="nav-content-item ddn-setting" privilege="ZBZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG"> <!-- <div class="nav-content-item ddn-setting" privilege="ZBZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">
<a class="nav-item color-grey" href="ddh-setting.html"> <a class="nav-item color-grey" href="ddh-setting.html">
<i class="iconfont icon icon-bg-reportproject">&#xe61c;</i> <i class="iconfont icon icon-bg-reportproject">&#xe61c;</i>
<span>调度号划分</span> <span>调度号划分</span>
<i class="iconfont arrow">&#xe61a;</i> <i class="iconfont arrow">&#xe61a;</i>
</a> </a>
<div class="height20"></div> <div class="height20"></div>
</div> </div> -->
<!-- add by guoyuanyuan 2021/4/26 --> <!-- add by guoyuanyuan 2021/4/26 -->
<div class="nav-content-item device-item" privilege="ZTZ,KHZG,KHJKY,GZZJKY,KHZZ,KHzbz,KHZBY,YQZG"> <!-- <div class="nav-content-item device-item" privilege="ZTZ,KHZG,KHJKY,GZZJKY,KHZZ,KHzbz,KHZBY,YQZG">
<a class="nav-item color-grey" href="device-list.html"> <a class="nav-item color-grey" href="device-list.html">
<i class="iconfont icon icon icon-bg-xunjiananpai">&#xe614;</i> <i class="iconfont icon icon icon-bg-xunjiananpai">&#xe614;</i>
<span>点检工单配置</span> <span>点检工单配置</span>
@ -234,7 +234,7 @@
<div class="badge"></div> <div class="badge"></div>
</a> </a>
<div class="height20"></div> <div class="height20"></div>
</div> </div> -->
<!-- add end --> <!-- add end -->
<!-- <div class="nav-content-item person-manage" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY"> <!-- <div class="nav-content-item person-manage" privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY">
@ -291,10 +291,10 @@
<a class="tabs-item real-time-data" href="real-time-data.html" <a class="tabs-item real-time-data" href="real-time-data.html"
privilege="KH,ZTZ,XJZZ,QXBZ,QXZZ,AQY,ZBZ,JKY,KHJL,GCS,GZZJKY,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">实时数据</a> privilege="KH,ZTZ,XJZZ,QXBZ,QXZZ,AQY,ZBZ,JKY,KHJL,GCS,GZZJKY,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">实时数据</a>
<!-- <a class="tabs-item real-time-data-new" href="real-time-data-new.html" privilege="KH,ZTZ,XJZZ,QXBZ,QXZZ,AQY,ZBZ,JKY,KHJL,GCS,GZZJKY,KHZG,KHJKY">实时数据(新)</a> --> <!-- <a class="tabs-item real-time-data-new" href="real-time-data-new.html" privilege="KH,ZTZ,XJZZ,QXBZ,QXZZ,AQY,ZBZ,JKY,KHJL,GCS,GZZJKY,KHZG,KHJKY">实时数据(新)</a> -->
<a class="tabs-item report-setting" href="report-setting.html" <!-- <a class="tabs-item report-setting" href="report-setting.html"
privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">报表配置</a> privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">报表配置</a> -->
<a class="tabs-item alarm-pusher-setting" href="alarm-pusher-setting.html" <!-- <a class="tabs-item alarm-pusher-setting" href="alarm-pusher-setting.html"
privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">预报警推送设置</a> privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG">预报警推送设置</a> -->
<a class="tabs-item pr-table-setting" href="javascript:;" <a class="tabs-item pr-table-setting" href="javascript:;"
privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG" id="prTableSetting">点表设置</a> privilege="ZTZ,KHZG,KHJKY,KHZZ,KHzbz,KHZBY,YQZG" id="prTableSetting">点表设置</a>
<a class="tabs-item compare-energy" href="compare-energy.html" <a class="tabs-item compare-energy" href="compare-energy.html"

View File

@ -691,4 +691,4 @@
</div> </div>
</div> </div>
<script src="//cdn.saas.dianwutong.com/vendor/echarts1.min.js"></script> <script src="//cdycdn.saas.dianwutong.com/vendor/echarts1.min.js"></script>

View File

@ -62,4 +62,4 @@
</div> </div>
</div> </div>
</div> </div>
<script src="//cdn.saas.dianwutong.com/vendor/ckeditor/ckeditor.js"></script> <script src="//cdycdn.saas.dianwutong.com/vendor/ckeditor/ckeditor.js"></script>

View File

@ -19,10 +19,10 @@
<div class="ui-btn-group ui-btn-group-primary width5"> <div class="ui-btn-group ui-btn-group-primary width5">
<button class="width150 ui-btn active" id="creat-inspect">新增巡检</button> <button class="width150 ui-btn active" id="creat-inspect">新增巡检</button>
</div> </div>
<div class="width5"></div> <!-- <div class="width5"></div>
<div id="return-old"> <div id="return-old">
<span>回到旧版</span> <span>回到旧版</span>
</div> </div> -->
</div> </div>
</header> </header>
<div class="conPadding1"> <div class="conPadding1">

View File

@ -1,10 +1,10 @@
<input type="hidden" value="ZTZ,ZBZ,QXBZ,XJZZ,QXZZ,KHZG,KHJKY,GZZJKY,KHZZ,KHzbz,KHZBY,YQZG" id="page-privilege"> <input type="hidden" value="ZTZ,ZBZ,QXBZ,XJZZ,QXZZ,KHZG,KHJKY,GZZJKY,KHZZ,KHzbz,KHZBY,YQZG" id="page-privilege">
<header class="header"> <header class="header">
<div class="row"> <div class="row">
<div class="left" id="return-old"> <!-- <div class="left" id="return-old">
<span class="color-primary">返回旧版</span> <span class="color-primary">返回旧版</span>
</div> </div>
<div class="width2"></div> <div class="width2"></div> -->
<div class="width15"> <div class="width15">
<div class="ui-select" tabindex="-1" id="power-room-selector"> <div class="ui-select" tabindex="-1" id="power-room-selector">
<input placeholder="请选择配电室" disabled> <input placeholder="请选择配电室" disabled>

View File

@ -32,12 +32,12 @@
</li> </li>
<li> <li>
<div>电工证信息</div> <div>电工证信息</div>
<img src="//cdn.saas.dianwutong.com/ems/image/logo.png" alt=""> <img src="//cdycdn.saas.dianwutong.com/ems/image/logo.png" alt="">
</li> </li>
<li> <li>
<div>实名认证</div> <div>实名认证</div>
<img src="//cdn.saas.dianwutong.com/ems/image/logo.png" alt=""> <img src="//cdycdn.saas.dianwutong.com/ems/image/logo.png" alt="">
<img src="//cdn.saas.dianwutong.com/ems/image/logo.png" alt=""> <img src="//cdycdn.saas.dianwutong.com/ems/image/logo.png" alt="">
</li> --> </li> -->
</ul> </ul>
</div> </div>

View File

@ -31,7 +31,7 @@
<p>引入laydate</p> <p>引入laydate</p>
<pre> <pre>
// 指定动态加载css的基地址 // 指定动态加载css的基地址
laydate.path = 'https://cdn.saas.dianwutong.com/vendor/laydate/'; laydate.path = 'https://cdycdn.saas.dianwutong.com/vendor/laydate/';
laydate.render({ laydate.render({
elem: '#date', elem: '#date',
type: 'date', type: 'date',

View File

@ -25,13 +25,13 @@
<script src="https://cdn.bootcss.com/rxjs/5.2.0/Rx.min.js"></script> <script src="https://cdn.bootcss.com/rxjs/5.2.0/Rx.min.js"></script>
<script src="//cdn.saas.dianwutong.com/vendor/jquery.min.js"></script> <script src="//cdycdn.saas.dianwutong.com/vendor/jquery.min.js"></script>
<script src="//cdn.saas.dianwutong.com/vendor/jquery.cookie.js"></script> <script src="//cdycdn.saas.dianwutong.com/vendor/jquery.cookie.js"></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=TT0RktRPwhEbTvTRK5I416aW"></script> <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=TT0RktRPwhEbTvTRK5I416aW"></script>
<script type="text/javascript" <script type="text/javascript"
src="https://api.map.baidu.com/library/AreaRestriction/1.2/src/AreaRestriction_min.js"></script> src="https://api.map.baidu.com/library/AreaRestriction/1.2/src/AreaRestriction_min.js"></script>
<script src="//cdn.saas.dianwutong.com/vendor/convertor.js"></script> <script src="//cdycdn.saas.dianwutong.com/vendor/convertor.js"></script>
<script src="//cdn.saas.dianwutong.com/common/js/dateUtils.js"></script> <script src="//cdycdn.saas.dianwutong.com/common/js/dateUtils.js"></script>
</body> </body>

View File

@ -69,4 +69,4 @@
</div> </div>
</div> </div>
<script src="//cdn.saas.dianwutong.com/vendor/ckeditor/ckeditor.js"></script> <script src="//cdycdn.saas.dianwutong.com/vendor/ckeditor/ckeditor.js"></script>

View File

@ -11,7 +11,7 @@
<meta name="renderer" content="webkit"> <meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" /> <meta http-equiv="Cache-Control" content="no-siteapp" />
<!-- 引入样式表 --> <!-- 引入样式表 -->
<link rel="stylesheet" type="text/css" href="//cdn.saas.dianwutong.com/common/css/iconfont.css" /> <link rel="stylesheet" type="text/css" href="//cdycdn.saas.dianwutong.com/common/css/iconfont.css" />
<script type="text/javascript" src="build/dev/vendor.dll.js"></script> <script type="text/javascript" src="build/dev/vendor.dll.js"></script>
</head> </head>
@ -38,7 +38,7 @@
<div class="center"> <div class="center">
<div class=""> <div class="">
<div class="height100"></div> <div class="height100"></div>
<img src="//cdn.saas.dianwutong.com/common/img/privilege-error.png"> <img src="//cdycdn.saas.dianwutong.com/common/img/privilege-error.png">
</div> </div>
<div style="color: #aaa">你没有权限访问该页面!</div> <div style="color: #aaa">你没有权限访问该页面!</div>
</div> </div>

View File

@ -276,4 +276,4 @@
</div> </div>
</div> </div>
</div> </div>
<script src="//cdn.saas.dianwutong.com/vendor/echarts1.min.js"></script> <script src="//cdycdn.saas.dianwutong.com/vendor/echarts1.min.js"></script>

View File

@ -74,4 +74,4 @@
</div> </div>
</div> </div>
<script src="//cdn.saas.dianwutong.com/vendor/ckeditor/ckeditor.js"></script> <script src="//cdycdn.saas.dianwutong.com/vendor/ckeditor/ckeditor.js"></script>

View File

@ -68,4 +68,4 @@
</div> </div>
</div> </div>
</div> </div>
<script src="//cdn.saas.dianwutong.com/vendor/ckeditor/ckeditor.js"></script> <script src="//cdycdn.saas.dianwutong.com/vendor/ckeditor/ckeditor.js"></script>

View File

@ -31,7 +31,7 @@ import { model } from './model'
(function () { (function () {
let iFrame = $('#alarmList') let iFrame = $('#alarmList')
iFrame.attr('src', 'https://terminal.saas.dianwutong.com/warning-list.html') iFrame.attr('src', 'https://cdycdyterminal.saas.dianwutong.com/warning-list.html')
// tab切换事件委托 // tab切换事件委托
// $('.monitor').on('click', ' a', function () { // $('.monitor').on('click', ' a', function () {

View File

@ -3,7 +3,7 @@ import { cookie } from './cookie.util'
// const basePath = 'https://192.168.0.109:8280/dwt-ems-web/'; // const basePath = 'https://192.168.0.109:8280/dwt-ems-web/';
//const basePath = 'https://api.dianwutong.com'; //const basePath = 'https://api.dianwutong.com';
const basePath = 'https://api.saas.dianwutong.com' const basePath = 'https://cdyapi.saas.dianwutong.com'
const http = {} const http = {}

View File

@ -258,7 +258,7 @@ ctrl.viewDiagram = function (prId) {
$('#view-diagram-panel').html('正在加载画面...') $('#view-diagram-panel').html('正在加载画面...')
setTimeout(function () { setTimeout(function () {
var ax = new ActiveXObject('WEBVIEWX.WebViewXCtrl.1') var ax = new ActiveXObject('WEBVIEWX.WebViewXCtrl.1')
$('#view-diagram-panel').html('<OBJECT ID="webX" height=100% width=100% CLASSID="CLSID:EE1272EB-144F-485B-9A1B-DC2FE6B07AA3" codebase="https://cdn.saas.dianwutong.com/common/resource/jiekong/fmWebPackage.CAB#version=7,6,0,49"> </OBJECT>') $('#view-diagram-panel').html('<OBJECT ID="webX" height=100% width=100% CLASSID="CLSID:EE1272EB-144F-485B-9A1B-DC2FE6B07AA3" codebase="https://cdycdn.saas.dianwutong.com/common/resource/jiekong/fmWebPackage.CAB#version=7,6,0,49"> </OBJECT>')
webX.browserLang = navigator.browserLanguage webX.browserLang = navigator.browserLanguage
webX.SrvName = address webX.SrvName = address
webX.SrvParam = 'user=,password=' webX.SrvParam = 'user=,password='
@ -274,7 +274,7 @@ ctrl.viewDiagram = function (prId) {
}, 1000) }, 1000)
} catch (e) { } catch (e) {
$('#view-diagram-panel').html('您尚未安装控件,请<a href="https://cdn.saas.dianwutong.com/common/resource/jiekong/fmWebPackage.exe" download="fmWebPackage.exe">下载安装</a>') $('#view-diagram-panel').html('您尚未安装控件,请<a href="https://cdycdn.saas.dianwutong.com/common/resource/jiekong/fmWebPackage.exe" download="fmWebPackage.exe">下载安装</a>')
} }
} else { } else {
console.log('显示一次接线图前 查询配电室信息 发生错误') console.log('显示一次接线图前 查询配电室信息 发生错误')
@ -300,7 +300,7 @@ ctrl.initNewDiagram = function (prId) {
if (res && res.code == 200) { if (res && res.code == 200) {
if (res.body.length && res.body.length > 0) { if (res.body.length && res.body.length > 0) {
let circuitId = res.body[0]['circuitId'] let circuitId = res.body[0]['circuitId']
$('#diagram-panel-frame').attr('src', `https://circuit.saas.dianwutong.com/run.html?circuitId=${circuitId}&prId=${prId}&flag=1`) $('#diagram-panel-frame').attr('src', `https://cdycircuit.saas.dianwutong.com/run.html?circuitId=${circuitId}&prId=${prId}&flag=1`)
} else { } else {
UI.alert({ UI.alert({
'content': '当前配电室没有一次接线图信息', 'content': '当前配电室没有一次接线图信息',

View File

@ -431,7 +431,7 @@ ctrl.viewDiagram = function (prId) {
setTimeout(function () { setTimeout(function () {
try { try {
var ax = new ActiveXObject('WEBVIEWX.WebViewXCtrl.1') var ax = new ActiveXObject('WEBVIEWX.WebViewXCtrl.1')
$('#diagram-panel-body').html('<OBJECT ID="webX" height=100% width=100% CLASSID="CLSID:EE1272EB-144F-485B-9A1B-DC2FE6B07AA3" codebase="https://cdn.saas.dianwutong.com/common/resource/jiekong/fmWebPackage.CAB#version=7,6,21,4"> </OBJECT>') $('#diagram-panel-body').html('<OBJECT ID="webX" height=100% width=100% CLASSID="CLSID:EE1272EB-144F-485B-9A1B-DC2FE6B07AA3" codebase="https://cdycdn.saas.dianwutong.com/common/resource/jiekong/fmWebPackage.CAB#version=7,6,21,4"> </OBJECT>')
webX.browserLang = navigator.browserLanguage webX.browserLang = navigator.browserLanguage
webX.SrvName = address webX.SrvName = address
webX.SrvParam = 'user=,password=' webX.SrvParam = 'user=,password='
@ -445,7 +445,7 @@ ctrl.viewDiagram = function (prId) {
webX.OcxBackColor = 16776187 webX.OcxBackColor = 16776187
webX.AutoLogoffIdleMinute = 0 webX.AutoLogoffIdleMinute = 0
} catch (e) { } catch (e) {
$('#view-diagram-panel').html('您尚未安装控件,请<a href="https://cdn.saas.dianwutong.com/common/resource/jiekong/fmWebPackage.exe" download="fmWebPackage.exe">下载安装</a>') $('#view-diagram-panel').html('您尚未安装控件,请<a href="https://cdycdn.saas.dianwutong.com/common/resource/jiekong/fmWebPackage.exe" download="fmWebPackage.exe">下载安装</a>')
} }
}, 1000) }, 1000)
@ -492,7 +492,7 @@ ctrl.initNewDiagram = function (prId) {
if (res && res.code == 200) { if (res && res.code == 200) {
if (res.body.length && res.body.length > 0) { if (res.body.length && res.body.length > 0) {
let circuitId = res.body[0]['circuitId'] let circuitId = res.body[0]['circuitId']
$('#diagram-panel-frame').attr('src', `https://circuit.saas.dianwutong.com/run.html?circuitId=${circuitId}&prId=${prId}&flag=1`) $('#diagram-panel-frame').attr('src', `https://cdycircuit.saas.dianwutong.com/run.html?circuitId=${circuitId}&prId=${prId}&flag=1`)
} else { } else {
UI.alert({ UI.alert({
'content': '当前配电室没有一次接线图信息', 'content': '当前配电室没有一次接线图信息',

View File

@ -135,7 +135,7 @@ import { cookie } from '../lib/cookie.util';
temperature = res.now.temp temperature = res.now.temp
wind = res.now.wind_dir + res.now.wind_class wind = res.now.wind_dir + res.now.wind_class
humidity = res.now.rh + '%' // 相对湿度 humidity = res.now.rh + '%' // 相对湿度
let weatherImg = "https://cdn.saas.dianwutong.com/terminal/images/" + weatherImgMap[weatherType] let weatherImg = "https://cdycdn.saas.dianwutong.com/terminal/images/" + weatherImgMap[weatherType]
if (!weatherImgMap[weatherType]) { if (!weatherImgMap[weatherType]) {
var now = new Date() var now = new Date()
@ -161,7 +161,7 @@ import { cookie } from '../lib/cookie.util';
// // wind = res.results[0].weather_data[0].wind; // // wind = res.results[0].weather_data[0].wind;
// // pm25 = res.results[0].pm25; // // pm25 = res.results[0].pm25;
// let weatherImg = "https://cdn.saas.dianwutong.com/terminal/images/"+ weatherImgMap[weatherType]; // let weatherImg = "https://cdycdn.saas.dianwutong.com/terminal/images/"+ weatherImgMap[weatherType];
// if(!weatherImgMap[weatherType]){ // if(!weatherImgMap[weatherType]){
// var now = new Date(); // var now = new Date();

View File

@ -47,7 +47,7 @@
} }
var Domain = 'https://cdn.saas.dianwutong.com/vendor/ezuikit/' var Domain = 'https://cdycdn.saas.dianwutong.com/vendor/ezuikit/'
// var Domain = './'; // var Domain = './';
var logDomain = 'https://log.ys7.com/statistics.do' var logDomain = 'https://log.ys7.com/statistics.do'

View File

@ -8,7 +8,7 @@
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" /> <meta http-equiv="Expires" content="0" />
<link rel="stylesheet" type="text/css" href="https://cdn.saas.dianwutong.com/common/css/iconfont.css" /> <link rel="stylesheet" type="text/css" href="https://cdycdn.saas.dianwutong.com/common/css/iconfont.css" />
</head> </head>

View File

@ -74,12 +74,12 @@
<div class="container"> <div class="container">
<select class="page-selector"> <select class="page-selector">
<option value="">请选择</option> <option value="">请选择</option>
<option value="https://terminal.saas.dianwutong.com/weather.html">天气页面</option> <option value="https://cdyterminal.saas.dianwutong.com/weather.html">天气页面</option>
<option value="https://terminal.saas.dianwutong.com/warning-statistic.html">报警统计</option> <option value="https://cdyterminal.saas.dianwutong.com/warning-statistic.html">报警统计</option>
<option value="https://terminal.saas.dianwutong.com/customer-statistic.html">客户统计</option> <option value="https://cdyterminal.saas.dianwutong.com/customer-statistic.html">客户统计</option>
<option value="https://terminal.saas.dianwutong.com/warning-list.html">报警列表</option> <option value="https://cdyterminal.saas.dianwutong.com/warning-list.html">报警列表</option>
<option value="https://terminal.saas.dianwutong.com/map.html">地图GIS</option> <option value="https://cdyterminal.saas.dianwutong.com/map.html">地图GIS</option>
<option value="https://terminal.saas.dianwutong.com/camera-h5.html">视频监控</option> <option value="https://cdyterminal.saas.dianwutong.com/camera-h5.html">视频监控</option>
</select> </select>
或者 或者
<input class="url" placeholder="请输入要投放URL">&nbsp; <input class="url" placeholder="请输入要投放URL">&nbsp;
@ -90,12 +90,12 @@
<div class="container"> <div class="container">
<select class="page-selector"> <select class="page-selector">
<option value="">请选择</option> <option value="">请选择</option>
<option value="https://terminal.saas.dianwutong.com/weather.html">天气页面</option> <option value="https://cdyterminal.saas.dianwutong.com/weather.html">天气页面</option>
<option value="https://terminal.saas.dianwutong.com/warning-statistic.html">报警统计</option> <option value="https://cdyterminal.saas.dianwutong.com/warning-statistic.html">报警统计</option>
<option value="https://terminal.saas.dianwutong.com/customer-statistic.html">客户统计</option> <option value="https://cdyterminal.saas.dianwutong.com/customer-statistic.html">客户统计</option>
<option value="https://terminal.saas.dianwutong.com/warning-list.html">报警列表</option> <option value="https://cdyterminal.saas.dianwutong.com/warning-list.html">报警列表</option>
<option value="https://terminal.saas.dianwutong.com/map.html">地图GIS</option> <option value="https://cdyterminal.saas.dianwutong.com/map.html">地图GIS</option>
<option value="https://terminal.saas.dianwutong.com/camera-h5.html">视频监控</option> <option value="https://cdyterminal.saas.dianwutong.com/camera-h5.html">视频监控</option>
</select> </select>
或者 或者
<input class="url" placeholder="请输入要投放URL">&nbsp; <input class="url" placeholder="请输入要投放URL">&nbsp;
@ -106,12 +106,12 @@
<div class="container"> <div class="container">
<select class="page-selector"> <select class="page-selector">
<option value="">请选择</option> <option value="">请选择</option>
<option value="https://terminal.saas.dianwutong.com/weather.html">天气页面</option> <option value="https://cdyterminal.saas.dianwutong.com/weather.html">天气页面</option>
<option value="https://terminal.saas.dianwutong.com/warning-statistic.html">报警统计</option> <option value="https://cdyterminal.saas.dianwutong.com/warning-statistic.html">报警统计</option>
<option value="https://terminal.saas.dianwutong.com/customer-statistic.html">客户统计</option> <option value="https://cdyterminal.saas.dianwutong.com/customer-statistic.html">客户统计</option>
<option value="https://terminal.saas.dianwutong.com/warning-list.html">报警列表</option> <option value="https://cdyterminal.saas.dianwutong.com/warning-list.html">报警列表</option>
<option value="https://terminal.saas.dianwutong.com/map.html">地图GIS</option> <option value="https://cdyterminal.saas.dianwutong.com/map.html">地图GIS</option>
<option value="https://terminal.saas.dianwutong.com/camera-h5.html">视频监控</option> <option value="https://cdyterminal.saas.dianwutong.com/camera-h5.html">视频监控</option>
</select> </select>
或者 或者
<input class="url" placeholder="请输入要投放URL">&nbsp; <input class="url" placeholder="请输入要投放URL">&nbsp;
@ -122,12 +122,12 @@
<div class="container"> <div class="container">
<select class="page-selector"> <select class="page-selector">
<option value="">请选择</option> <option value="">请选择</option>
<option value="https://terminal.saas.dianwutong.com/weather.html">天气页面</option> <option value="https://cdyterminal.saas.dianwutong.com/weather.html">天气页面</option>
<option value="https://terminal.saas.dianwutong.com/warning-statistic.html">报警统计</option> <option value="https://cdyterminal.saas.dianwutong.com/warning-statistic.html">报警统计</option>
<option value="https://terminal.saas.dianwutong.com/customer-statistic.html">客户统计</option> <option value="https://cdyterminal.saas.dianwutong.com/customer-statistic.html">客户统计</option>
<option value="https://terminal.saas.dianwutong.com/warning-list.html">报警列表</option> <option value="https://cdyterminal.saas.dianwutong.com/warning-list.html">报警列表</option>
<option value="https://terminal.saas.dianwutong.com/map.html">地图GIS</option> <option value="https://cdyterminal.saas.dianwutong.com/map.html">地图GIS</option>
<option value="https://terminal.saas.dianwutong.com/camera-h5.html">视频监控</option> <option value="https://cdyterminal.saas.dianwutong.com/camera-h5.html">视频监控</option>
</select> </select>
或者 或者
<input class="url" placeholder="请输入要投放URL">&nbsp; <input class="url" placeholder="请输入要投放URL">&nbsp;

View File

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
@ -7,10 +8,11 @@
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" /> <meta http-equiv="Expires" content="0" />
<link rel="stylesheet" type="text/css" href="https://cdn.saas.dianwutong.com/common/css/iconfont.css" /> <link rel="stylesheet" type="text/css" href="https://cdycdn.saas.dianwutong.com/common/css/iconfont.css" />
</head> </head>
<body> <body>
<div > <div>
<div class="height30"></div> <div class="height30"></div>
<div style="margin-right:3rem;"> <div style="margin-right:3rem;">
<div class="col-lg-12 text-align-r font30 color-white" id="time"></div> <div class="col-lg-12 text-align-r font30 color-white" id="time"></div>
@ -28,12 +30,15 @@
</div> </div>
<div class="weather1-r font24 color-white"> <div class="weather1-r font24 color-white">
<div><span id="area"></span><i class="iconfont">&#xe609;</i></div><!-- <div><span id="area"></span><i class="iconfont">&#xe609;</i></div><!--
--><div><span id="weatherType"></span><img src="../images/shu.png"></div><!-- -->
--><div><span id="wind"></span><img src="../images/shuidi.png"></div> <div><span id="weatherType"></span><img src="../images/shu.png"></div><!--
-->
<div><span id="wind"></span><img src="../images/shuidi.png"></div>
</div> </div>
</div> </div>
</div><!-- </div><!--
--><div> -->
<div>
<div class="real-time-temperature"> <div class="real-time-temperature">
实时温度<span class="temperature"></span> 实时温度<span class="temperature"></span>
</div> </div>
@ -42,9 +47,11 @@
<div class="height60"></div> <div class="height60"></div>
<div class="pm25con"> <div class="pm25con">
<div class="font30 color-white text-align-r" style="white-space: nowrap;">相对湿度:</div><!-- <div class="font30 color-white text-align-r" style="white-space: nowrap;">相对湿度:</div><!--
--><div class="pm25"><span id="humidity"></span>&nbsp;&nbsp;&nbsp; -->
<div class="pm25"><span id="humidity"></span>&nbsp;&nbsp;&nbsp;
<!-- <span id="airQuality"></span></div> --> <!-- <span id="airQuality"></span></div> -->
</div> </div>
</div> </div>
</body> </body>
</html> </html>