|
|
@@ -9,13 +9,13 @@
|
|
|
<div class="right_sidebar">
|
|
|
<div class="sideBar_box">
|
|
|
<div class="clearfix" @click="routerLink('/repairPersonnel')">
|
|
|
- <span>{{version==0?'维修员':'Maintenance staff'}}</span>
|
|
|
- <span>{{repairman}} {{version==0?'个':'individual'}} <i class="el-icon-arrow-right"></i> </span>
|
|
|
+ <span>{{'Maintenance staff'}}</span>
|
|
|
+ <span>{{repairman}} {{'individual'}} <i class="el-icon-arrow-right"></i> </span>
|
|
|
</div>
|
|
|
- <p>{{version==0?'近期维修':'Recent repairs'}}<span @click="routerLink('/maintenanceRecord')">{{version==0?'查看全部':'view all'}}</span></p>
|
|
|
+ <p>{{'Recent repairs'}}<span @click="routerLink('/maintenanceRecord')">{{'view all'}}</span></p>
|
|
|
<ul>
|
|
|
<li class="right_sideBar_list" v-for="item in projectList" :key="item.id">
|
|
|
- <p>{{item.project_name}}<span>{{version==0?'维修员':'Maintenance staff'}} {{item.repair_username}}</span></p>
|
|
|
+ <p>{{item.project_name}}<span>{{'Maintenance staff'}} {{item.repair_username}}</span></p>
|
|
|
<p><span>{{item.lampid}}:</span>{{item.repair_solution}}</p>
|
|
|
<div class="clearfix">
|
|
|
<span>{{item.createtime}}</span>
|
|
|
@@ -31,35 +31,35 @@
|
|
|
<div class="wrap">
|
|
|
<div class="main_top clearfix">
|
|
|
<div class="button_box">
|
|
|
- <el-button round @click="exportExcel()" v-loading="loading.exportExcel">{{version==0?'导出Excel':'Export Excel'}}</el-button>
|
|
|
- <el-button round @click="printing()" v-loading="loading.printing">{{version == 0 ?'打印列表' : 'Print'}}</el-button>
|
|
|
- <el-button round icon="el-icon-refresh" @click="refresh()">{{version == 0 ?'刷新' : 'Refresh'}}</el-button>
|
|
|
+ <el-button round @click="exportExcel()" v-loading="loading.exportExcel">{{'Export Excel'}}</el-button>
|
|
|
+ <el-button round @click="printing()" v-loading="loading.printing">{{'Print'}}</el-button>
|
|
|
+ <el-button round icon="el-icon-refresh" @click="refresh()">{{'Refresh'}}</el-button>
|
|
|
</div>
|
|
|
- <ul class="alarm_nav clearfix" :class="{'alarm_nav_en':version == 1}">
|
|
|
+ <ul class="alarm_nav clearfix" :class="{'alarm_nav_en':version == 0}">
|
|
|
<li @click="alarmNavFun(item.name)" :class="{'alarm_nav_select':alarmNav==item.name}" v-for="item in alarmNavListEN" :key="item.id"><span>{{item.name}}</span></li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class="screen-box clearfix" :class="{'screen-box_en':version == 1}">
|
|
|
+ <div class="screen-box clearfix" :class="{'screen-box_en':version == 0}">
|
|
|
<div class="search_box screen-box_box">
|
|
|
- <el-input :placeholder="version==0?'- 输入关键词进行搜索':'- Enter keywords to search'" v-model="keyword" class="search" @change="search()">
|
|
|
- <template slot="prepend">{{version==0?'搜索':'Search'}}</template>
|
|
|
+ <el-input :placeholder="'- Enter keywords to search'" v-model="keyword" class="search" @change="search()">
|
|
|
+ <template slot="prepend">{{'Search'}}</template>
|
|
|
</el-input>
|
|
|
</div>
|
|
|
- <div class="screen-box_box" v-if="alarmNav != '巡检设置' && alarmNav != 'Inspection setup'">
|
|
|
- <span>{{version==0?'时间':'Time'}}</span>
|
|
|
+ <div class="screen-box_box" v-if="alarmNav != 'Inspection setup'">
|
|
|
+ <span>{{'Time'}}</span>
|
|
|
<el-date-picker
|
|
|
v-model="dateTime"
|
|
|
type="datetimerange"
|
|
|
range-separator="-"
|
|
|
- :start-placeholder="version==0?'开始时间':'Start time'"
|
|
|
- :end-placeholder="version==0?'结束时间':'End Time'"
|
|
|
+ :start-placeholder="'Start time'"
|
|
|
+ :end-placeholder="'End Time'"
|
|
|
align="right">
|
|
|
</el-date-picker>
|
|
|
</div>
|
|
|
- <div class="screen-box_box" v-if="alarmNav != '巡检设置' && alarmNav != 'Inspection setup'">
|
|
|
- <span>{{version==0?'类型':'Type'}}</span>
|
|
|
+ <div class="screen-box_box" v-if="alarmNav != 'Inspection setup'">
|
|
|
+ <span>{{'Type'}}</span>
|
|
|
<el-select v-model="alarmType">
|
|
|
- <el-option key="0" value="0" :label="version==0?'全部':'All'"></el-option>
|
|
|
+ <el-option key="0" value="0" :label="'All'"></el-option>
|
|
|
<el-option
|
|
|
v-for="item in alarmTypeList"
|
|
|
:key="item.name"
|
|
|
@@ -68,15 +68,14 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
- <div class="screen-box_box" v-if="alarmNav != '巡检设置' && alarmNav != 'Inspection setup'">
|
|
|
- <span>{{version==0?'标注':'Callout'}}</span>
|
|
|
+ <div class="screen-box_box" v-if="alarmNav != 'Inspection setup'">
|
|
|
+ <span>{{'Callout'}}</span>
|
|
|
<el-select v-model="alarmStatus">
|
|
|
- <el-option key="-1" value="-1" :label="version==0?'全部':'All'"></el-option>
|
|
|
- <el-option key="1" value="1" :label="version==0?'已处理':'Processed'"></el-option>
|
|
|
- <el-option key="0" value="0" :label="version==0?'未处理':'Untreated'"></el-option>
|
|
|
+ <el-option key="-1" value="-1" :label="'All'"></el-option>
|
|
|
+ <el-option key="1" value="1" :label="'Processed'"></el-option>
|
|
|
+ <el-option key="0" value="0" :label="'Untreated'"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
- <!-- <el-button style="margin-top: 5px;float: right;" round @click="BatchSetup()" v-if="alarmNav == '巡检设置'|| alarmNav == 'Inspection setup'">{{version == 0 ?'批量设置' : 'Batch setup'}}</el-button> -->
|
|
|
</div>
|
|
|
<div class="information_box">
|
|
|
<el-table
|
|
|
@@ -87,35 +86,15 @@
|
|
|
width="100%"
|
|
|
:height="showOverflowTooltip?'calc(100% - 92px)':''"
|
|
|
@selection-change="handleSelectionChange"
|
|
|
- :class="{'table_style':(alarmNav != '巡检设置'&&alarmNav != 'Inspection setup')}"
|
|
|
+ :class="{'table_style':(alarmNav != 'Inspection setup')}"
|
|
|
:row-class-name="tableRowClassName">
|
|
|
- <!-- <el-table-column
|
|
|
- type="selection"
|
|
|
- v-if="alarmNav == '巡检设置'||alarmNav == 'Inspection setup'"
|
|
|
- :width="48">
|
|
|
- </el-table-column> -->
|
|
|
<el-table-column
|
|
|
- v-if="version == 0"
|
|
|
- label="编号"
|
|
|
- prop="GL_index"
|
|
|
- align="center"
|
|
|
- :show-overflow-tooltip="showOverflowTooltip"
|
|
|
- width="52">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- v-if="version == 1"
|
|
|
label="Number"
|
|
|
prop="GL_index"
|
|
|
align="center"
|
|
|
:show-overflow-tooltip="showOverflowTooltip"
|
|
|
width="82">
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column align="center" :show-overflow-tooltip="showOverflowTooltip" :prop="item.prop" :label="item.label" :key="item.id" :min-width="item.prop=='updatetime'?'160':(item.label.length+1)*14+20" v-for="(item,index) in tableList" v-if="version == 0">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span class="tag_select" v-if="item.prop == 'number'" @click="routerLampLink('streetLightInformation',scope.row)">{{scope.row[item.prop]}}</span>
|
|
|
- <span v-if="item.prop != 'number'" :title="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column> -->
|
|
|
<el-table-column align="center" :show-overflow-tooltip="showOverflowTooltip" :prop="item.prop" :label="item.label" :key="item.id" :min-width="item.prop=='updatetime'?'160':(item.label.length+1)*9+20" v-for="(item) in tableList">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="tag_select" v-if="item.prop == 'number'" @click="routerLampLink('streetLightInformation',scope.row)">{{scope.row[item.prop]}}</span>
|
|
|
@@ -123,26 +102,26 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
- v-if="alarmNav!='历史告警' && alarmNav!='Historical alarm'"
|
|
|
- :label="version==0?'操作':'operate'"
|
|
|
+ v-if="alarmNav!='Historical alarm'"
|
|
|
+ :label="'operate'"
|
|
|
align="center"
|
|
|
- :width="version==0?'230px':'350px'">
|
|
|
+ :width="'350px'">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" size="small" v-if="(alarmNav == '告警信息'||alarmNav=='Alarm')&&scope.row.status == 0" @click="tableOperationfun1(scope.row)">{{version==0?'标记处理':'Tag processing'}}</el-button>
|
|
|
+ <el-button type="text" size="small" v-if="(alarmNav=='Alarm')&&scope.row.status == 0" @click="tableOperationfun1(scope.row)">{{'Tag processing'}}</el-button>
|
|
|
<el-popover trigger="hover" placement="top" v-if="scope.row.name">
|
|
|
<p>姓名: {{ scope.row.name }}</p>
|
|
|
<div slot="reference" class="name-wrapper" style="display: inherit">
|
|
|
- <el-button type="text" size="small" v-if="(alarmNav == '告警信息'||alarmNav=='Alarm')&&scope.row.status == 1" @click="tableOperationfun1(scope.row)">{{version==0?'处理人':'Operator'}}</el-button>
|
|
|
+ <el-button type="text" size="small" v-if="(alarmNav=='Alarm')&&scope.row.status == 1" @click="tableOperationfun1(scope.row)">{{'Operator'}}</el-button>
|
|
|
</div>
|
|
|
</el-popover>
|
|
|
- <el-button type="text" size="small" v-if="(alarmNav == '告警信息'||alarmNav=='Alarm')&&scope.row.status == 1&&!scope.row.name" @click="tableOperationfun1(scope.row)">{{version==0?'处理人':'Operator'}}</el-button>
|
|
|
- <el-button type="text" size="small" v-if="(alarmNav == '告警信息'||alarmNav=='Alarm')&&scope.row.status == 0" @click="tableOperationfun2(scope.row)">{{version==0?'维修调度':'Maintenance scheduling'}}</el-button>
|
|
|
- <el-button type="text" size="small" v-if="(alarmNav == '告警信息'||alarmNav=='Alarm')&&scope.row.status == 1" @click="tableOperationfun2(scope.row)">{{version==0?'维修信息':'Maintenance information'}}</el-button>
|
|
|
+ <el-button type="text" size="small" v-if="(alarmNav=='Alarm')&&scope.row.status == 1&&!scope.row.name" @click="tableOperationfun1(scope.row)">{{'Operator'}}</el-button>
|
|
|
+ <el-button type="text" size="small" v-if="(alarmNav=='Alarm')&&scope.row.status == 0" @click="tableOperationfun2(scope.row)">{{'Maintenance scheduling'}}</el-button>
|
|
|
+ <el-button type="text" size="small" v-if="(alarmNav=='Alarm')&&scope.row.status == 1" @click="tableOperationfun2(scope.row)">{{'Maintenance information'}}</el-button>
|
|
|
|
|
|
- <el-button type="text" style="color:#fc8440" v-if="alarmNav == '告警信息'||alarmNav=='Alarm'" size="small" @click="tableOperationfun3(scope.row)">{{version==0?'删除':'delete'}}</el-button>
|
|
|
- <el-button type="text" style="color:#fc8440" v-if="alarmNav == '巡检设置'||alarmNav == 'Inspection setup'" size="small" @click="tableOperationfun2(scope.row)">{{version==0?'设置':'Set up'}}</el-button>
|
|
|
- <el-button type="text" v-if="alarmNav == '巡检设置'||alarmNav == 'Inspection setup'" size="small" @click="tableOperationfun3(scope.row)">{{version==0?'详情':'details'}}</el-button>
|
|
|
- <el-button type="text" v-if="alarmNav == '巡检设置'||alarmNav == 'Inspection setup'" size="small" @click="tableOperationfun4(scope.row)" v-loading="scope.row.synchronizationLoading">{{version==0?'同步巡检':'Synchronous inspection'}}</el-button>
|
|
|
+ <el-button type="text" style="color:#fc8440" v-if="alarmNav=='Alarm'" size="small" @click="tableOperationfun3(scope.row)">{{'delete'}}</el-button>
|
|
|
+ <el-button type="text" style="color:#fc8440" v-if="alarmNav == 'Inspection setup'" size="small" @click="tableOperationfun2(scope.row)">{{'Set up'}}</el-button>
|
|
|
+ <el-button type="text" v-if="alarmNav == 'Inspection setup'" size="small" @click="tableOperationfun3(scope.row)">{{'details'}}</el-button>
|
|
|
+ <el-button type="text" v-if="alarmNav == 'Inspection setup'" size="small" @click="tableOperationfun4(scope.row)" v-loading="scope.row.synchronizationLoading">{{'Synchronous inspection'}}</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -161,11 +140,11 @@
|
|
|
</div>
|
|
|
<!-- 巡检设置 -->
|
|
|
<el-dialog
|
|
|
- :title="version==0?'巡检设置':'Inspection setting'"
|
|
|
+ :title="'Inspection setting'"
|
|
|
:visible.sync="inspectionSetupDialog"
|
|
|
width="60%">
|
|
|
- <el-form ref="form" :model="inspectionSetupform" :label-width="version==0?'140px':'180px'">
|
|
|
- <el-form-item :label="version==0?'巡检命令:':'Inspection order:'">
|
|
|
+ <el-form ref="form" :model="inspectionSetupform" :label-width="'180px'">
|
|
|
+ <el-form-item :label="'Inspection order:'">
|
|
|
<el-select :disabled="inspectionSetupType=='XQ'" v-model="inspectionSetupform.switch" style="width:100%" @keyup.native="inspectionSetupdown($event)">
|
|
|
<el-option
|
|
|
v-for="item in patrolOrderList"
|
|
|
@@ -175,7 +154,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="version==0?'巡检时间间隔(min):':'Inspection interval(min):'">
|
|
|
+ <el-form-item :label="'Inspection interval(min):'">
|
|
|
<el-select :disabled="inspectionSetupType=='XQ'" v-model="inspectionSetupform.interval" style="width:100%" @keyup.native="inspectionSetupdown($event)">
|
|
|
<el-option key="15" value="15" label="15"></el-option>
|
|
|
<el-option key="30" value="30" label="30"></el-option>
|
|
|
@@ -186,17 +165,17 @@
|
|
|
<el-option key="1440" value="1440" label="1440"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="inspectionSetupType=='XQ'" :label="version==0?'参数设置时间:':'Parameter setting time:'">
|
|
|
+ <el-form-item v-if="inspectionSetupType=='XQ'" :label="'Parameter setting time:'">
|
|
|
<el-input disabled v-model="inspectionSetupform.updatetime" style="width:100%" @keyup.native="inspectionSetupdown($event)"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div class="dialog_foot" v-if="inspectionSetupType!='XQ'">
|
|
|
- <el-button type="primary" @click="inspectionSetupSave(lampId)" v-loading="loading.inspectionSetupSave">{{version==0?'保 存':'Save'}}</el-button>
|
|
|
+ <el-button type="primary" @click="inspectionSetupSave(lampId)" v-loading="loading.inspectionSetupSave">{{'Save'}}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 故障详情弹框 -->
|
|
|
<el-dialog
|
|
|
- :title="version==0?'故障详情':'Fault details'"
|
|
|
+ :title="'Fault details'"
|
|
|
:visible.sync="detailsDetailsDialog"
|
|
|
:close-on-click-modal="false"
|
|
|
class="detailsDetails_box"
|
|
|
@@ -204,22 +183,22 @@
|
|
|
<el-form label-width="80px" :model="detailsDetailsData" label-position="right" class="box">
|
|
|
<el-row>
|
|
|
<el-col :span="12" style="padding-right: 15px">
|
|
|
- <el-form-item :label="version==0?'项目名称:':'Project name:'">
|
|
|
+ <el-form-item :label="'Project name:'">
|
|
|
<el-input v-model="detailsDetailsData.projectname" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="version==0?'报警事件:':'Alarm event:'">
|
|
|
+ <el-form-item :label="'Alarm event:'">
|
|
|
<el-input v-model="detailsDetailsData.stralarmtype" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12" style="padding-left: 15px">
|
|
|
- <el-form-item :label="version==0?'报警路灯:':'Alarm Lamp:'">
|
|
|
+ <el-form-item :label="'Alarm Lamp:'">
|
|
|
<el-input v-model="detailsDetailsData.number" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="version==0?'报警时间:':'Alarm time:'">
|
|
|
+ <el-form-item :label="'Alarm time:'">
|
|
|
<el-input v-model="detailsDetailsData.updatetime" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-form-item :label="version==0?'维修调度:':'Maintenance scheduling:'">
|
|
|
+ <el-form-item :label="'Maintenance scheduling:'">
|
|
|
<el-select v-model="detailsDetailsData.userid" @keyup.native="detailsDetailsKeydown($event)">
|
|
|
<el-option
|
|
|
v-for="item in detailsDetailsData.list"
|
|
|
@@ -232,12 +211,12 @@
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<div class="dialog_foot">
|
|
|
- <el-button type="primary" @click="detailsDetailsKeep()" v-loading="loading.detailsDetailsKeep">{{version==0?'确 定':'Determine'}}</el-button>
|
|
|
+ <el-button type="primary" @click="detailsDetailsKeep()" v-loading="loading.detailsDetailsKeep">{{'Determine'}}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 处理人 -->
|
|
|
<el-dialog
|
|
|
- :title="version==0?'处理人':'Operator'"
|
|
|
+ :title="'Operator'"
|
|
|
:visible.sync="itionsDialog"
|
|
|
width="80%">
|
|
|
<el-table
|
|
|
@@ -248,15 +227,6 @@
|
|
|
height="calc(100% - 92px)"
|
|
|
:row-class-name="tableRowClassName">
|
|
|
<el-table-column
|
|
|
- v-if="version == 0"
|
|
|
- label="编号"
|
|
|
- prop="GL_index"
|
|
|
- align="center"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- width="52">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- v-if="version == 1"
|
|
|
label="Number"
|
|
|
prop="GL_index"
|
|
|
align="center"
|
|
|
@@ -278,12 +248,12 @@
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
<div class="dialog_foot">
|
|
|
- <el-button type="primary" @click="itionsDialog = false">{{version==0?'关 闭':'Close'}}</el-button>
|
|
|
+ <el-button type="primary" @click="itionsDialog = false">{{'Close'}}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 维修信息 -->
|
|
|
<el-dialog
|
|
|
- :title="version==0?'维修信息':'Maintenance information'"
|
|
|
+ :title="'Maintenance information'"
|
|
|
:visible.sync="schedulingInformationDialog"
|
|
|
width="80%">
|
|
|
<el-table
|
|
|
@@ -294,23 +264,12 @@
|
|
|
height="calc(100% - 92px)"
|
|
|
:row-class-name="tableRowClassName">
|
|
|
<el-table-column
|
|
|
- v-if="version == 0"
|
|
|
- label="编号"
|
|
|
- prop="GL_index"
|
|
|
- align="center"
|
|
|
- :show-overflow-tooltip="true"
|
|
|
- width="52">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- v-if="version == 1"
|
|
|
label="Number"
|
|
|
prop="GL_index"
|
|
|
align="center"
|
|
|
:show-overflow-tooltip="true"
|
|
|
width="82">
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column align="center" :show-overflow-tooltip="true" :prop="item.prop" :label="item.label" :key="item.id" :min-width="item.prop=='updatetime'?'160':(item.label.length+1)*14+20" v-for="(item) in schedulingInformationList" v-if="version == 0">
|
|
|
- </el-table-column> -->
|
|
|
<el-table-column align="center" :show-overflow-tooltip="true" :prop="item.prop" :label="item.label" :key="item.id" :min-width="item.prop=='repair_time'?'160':(item.label.length+1)*8+15" v-for="(item) in schedulingInformationListEN">
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -324,28 +283,28 @@
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
<div class="dialog_foot">
|
|
|
- <el-button type="primary" @click="schedulingInformationDialog = false">{{version==0?'关 闭':'Close'}}</el-button>
|
|
|
+ <el-button type="primary" @click="schedulingInformationDialog = false">{{'Close'}}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- 添加维修记录 -->
|
|
|
<el-dialog
|
|
|
- :title="version==0?'维修信息':'Maintenance information'"
|
|
|
+ :title="'Maintenance information'"
|
|
|
:visible.sync="recordDialog"
|
|
|
class="record_dialog"
|
|
|
width="60%">
|
|
|
<el-form ref="recordForm" :model="recordForm" label-width="140px">
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item :label="version==0?'维修人员名称:':'Maintenance personnel name:'" prop="repair_id">
|
|
|
+ <el-form-item :label="'Maintenance personnel name:'" prop="repair_id">
|
|
|
<el-input v-model="recordForm.repair_id" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="version==0?'网络名称:':'Network name:'" prop="networkid">
|
|
|
+ <el-form-item :label="'Network name:'" prop="networkid">
|
|
|
<el-input v-model="recordForm.networkid" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="version==0?'维修的故障:':'Repair failure:'">
|
|
|
+ <el-form-item :label="'Repair failure:'">
|
|
|
<el-input v-model="recordForm.repair_hitch"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="version==0?'维修方案时间:':'Maintenance schedule:'">
|
|
|
+ <el-form-item :label="'Maintenance schedule:'">
|
|
|
<el-date-picker
|
|
|
v-model="recordForm.repair_time"
|
|
|
type="datetime">
|
|
|
@@ -353,23 +312,23 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item :label="version==0?'项目名称:':'project name:'" prop="projectid">
|
|
|
+ <el-form-item :label="'project name:'" prop="projectid">
|
|
|
<el-input v-model="recordForm.projectid" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="version==0?'路灯ID:':'Lamp ID:'" prop="lampid">
|
|
|
+ <el-form-item :label="'Lamp ID:'" prop="lampid">
|
|
|
<el-input v-model="recordForm.lampid" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="version==0?'维修方案:':'maintenance proposal:'">
|
|
|
+ <el-form-item :label="'maintenance proposal:'">
|
|
|
<el-input v-model="recordForm.repair_solution" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item :label="version==0?'路段:':'Road section:'">
|
|
|
+ <el-form-item :label="'Road section:'">
|
|
|
<el-input v-model="recordForm.address" disabled></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<div class="dialog_foot">
|
|
|
- <el-button type="primary" @click="recordDialog = false">{{version==0?'关 闭':'Close'}}</el-button>
|
|
|
+ <el-button type="primary" @click="recordDialog = false">{{'Close'}}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<button type="button" id="btn2" style="display: none"></button>
|
|
|
@@ -472,21 +431,19 @@
|
|
|
})
|
|
|
},
|
|
|
mounted(){
|
|
|
- if(this.version == 1){
|
|
|
- this.alarmNav = 'Alarm';
|
|
|
- }
|
|
|
+ this.alarmNav = 'Alarm';
|
|
|
// this.getProjectNav('默认')
|
|
|
this.nearRepairList();
|
|
|
this.alarmTypeListFun();
|
|
|
|
|
|
- this.patrolOrderList = [{value:'1',label:this.version==0?'开':'on'},{value:'0',label:this.version==0?'关':'off'}];
|
|
|
+ this.patrolOrderList = [{value:'1',label:'on'},{value:'0',label:'off'}];
|
|
|
},
|
|
|
methods:{
|
|
|
handleSelectionChange(val) {
|
|
|
this.multipleSelection = val;
|
|
|
},
|
|
|
refresh(){
|
|
|
- if(this.alarmNav != '巡检设置' && this.alarmNav != 'Inspection setup'){
|
|
|
+ if(this.alarmNav != 'Inspection setup'){
|
|
|
this.alarmGet(1,data => {
|
|
|
console.log(data)
|
|
|
})
|
|
|
@@ -568,7 +525,7 @@
|
|
|
}else{
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
- message:this.version == 0?'请先选中灯控':'Please select the light control',
|
|
|
+ message:'Please select the light control',
|
|
|
type: 'warning'
|
|
|
});
|
|
|
}
|
|
|
@@ -646,11 +603,7 @@
|
|
|
data =>{
|
|
|
// this.total = data.data.list.total*16;
|
|
|
this.loading.printing = false;
|
|
|
- if(this.version == 1){
|
|
|
- this.tableList = this.alarmTableListEN;
|
|
|
- }else{
|
|
|
- this.tableList = this.alarmTableList;
|
|
|
- }
|
|
|
+ this.tableList = this.alarmTableListEN;
|
|
|
this.tableData = data.data.list.history_list;
|
|
|
this.loading.table = false;
|
|
|
let i = (this.currentPage - 1)*this.pageSize+1;
|
|
|
@@ -701,28 +654,16 @@
|
|
|
{},
|
|
|
data =>{
|
|
|
this.loading.printing = false;
|
|
|
- if(this.version == 1){
|
|
|
- this.tableList = this.patrolTableListEN;
|
|
|
- }else{
|
|
|
- this.tableList = this.patrolTableList;
|
|
|
- }
|
|
|
+ this.tableList = this.patrolTableListEN;
|
|
|
this.tableData = data.data.patrol_list;
|
|
|
let i = (this.currentPage - 1)*this.pageSize+1;
|
|
|
for(let d of this.tableData){
|
|
|
d.GL_index = i;
|
|
|
i++;
|
|
|
if(d.patroltype == '1'){
|
|
|
- if(this.version =='0'){
|
|
|
- d.patroltype = '开'
|
|
|
- }else{
|
|
|
- d.patroltype = 'on'
|
|
|
- }
|
|
|
+ d.patroltype = 'on'
|
|
|
}else if(d.patroltype == '0'){
|
|
|
- if(this.version =='0'){
|
|
|
- d.patroltype = '关'
|
|
|
- }else{
|
|
|
- d.patroltype = 'off'
|
|
|
- }
|
|
|
+ d.patroltype = 'off'
|
|
|
}
|
|
|
}
|
|
|
this.loading.table = false;
|
|
|
@@ -811,11 +752,7 @@
|
|
|
downloads = 0;
|
|
|
this.loading.table = true;
|
|
|
}
|
|
|
- if(this.version == 1){
|
|
|
- this.tableList = this.patrolTableListEN;
|
|
|
- }else{
|
|
|
- this.tableList = this.patrolTableList;
|
|
|
- }
|
|
|
+ this.tableList = this.patrolTableListEN;
|
|
|
// this.$refs.elTable.doLayout();
|
|
|
baseApi.ajax_post(
|
|
|
allUrl.alarm.patrol_list,
|
|
|
@@ -842,17 +779,9 @@
|
|
|
d.GL_index = i;
|
|
|
i++;
|
|
|
if(d.patroltype == '1'){
|
|
|
- if(this.version =='0'){
|
|
|
- d.patroltype = '开'
|
|
|
- }else{
|
|
|
- d.patroltype = 'on'
|
|
|
- }
|
|
|
+ d.patroltype = 'on'
|
|
|
}else if(d.patroltype == '0'){
|
|
|
- if(this.version =='0'){
|
|
|
- d.patroltype = '关'
|
|
|
- }else{
|
|
|
- d.patroltype = 'off'
|
|
|
- }
|
|
|
+ d.patroltype = 'off'
|
|
|
}
|
|
|
}
|
|
|
this.loading.table = false;
|
|
|
@@ -865,10 +794,10 @@
|
|
|
},
|
|
|
alarmGet(value,callback,download){
|
|
|
let type = '';
|
|
|
- if(this.alarmNav == '告警信息' || this.alarmNav == 'Alarm'){
|
|
|
+ if(this.alarmNav == 'Alarm'){
|
|
|
type = 0;
|
|
|
}
|
|
|
- if(this.alarmNav == '历史告警' || this.alarmNav == 'Historical alarm'){
|
|
|
+ if(this.alarmNav == 'Historical alarm'){
|
|
|
type = 1;
|
|
|
}
|
|
|
let downloads = '';
|
|
|
@@ -879,11 +808,7 @@
|
|
|
downloads = 0;
|
|
|
this.loading.table = true;
|
|
|
}
|
|
|
- if(this.version == 1){
|
|
|
- this.tableList = this.alarmTableListEN;
|
|
|
- }else{
|
|
|
- this.tableList = this.alarmTableList;
|
|
|
- }
|
|
|
+ this.tableList = this.alarmTableListEN;
|
|
|
// this.$refs.elTable.doLayout();
|
|
|
baseApi.ajax_post(
|
|
|
allUrl.alarm.alarmGet,
|
|
|
@@ -939,11 +864,7 @@
|
|
|
// console.log(data,'公司列表')
|
|
|
this.projectNav = data.data;
|
|
|
for(var key in data.data){
|
|
|
- if(this.version == 1){
|
|
|
- this.$set(data.data[key],'type','Unfold')
|
|
|
- }else{
|
|
|
- this.$set(data.data[key],'type','展开')
|
|
|
- }
|
|
|
+ this.$set(data.data[key],'type','Unfold')
|
|
|
if(data.data[key].project_list){
|
|
|
for(var d of data.data[key].project_list){
|
|
|
this.$set(d,'companyId',data.data[key].id)
|
|
|
@@ -977,63 +898,58 @@
|
|
|
},
|
|
|
/*侧边栏里展开收起*/
|
|
|
sideBarListIsOpen(data){
|
|
|
- if(data.type == '收起'){
|
|
|
- data.type = '展开';
|
|
|
- }else if(data.type == '展开'){
|
|
|
- data.type = '收起';
|
|
|
- }
|
|
|
- if(this.version == 1){
|
|
|
- if(data.type == 'Collapse'){
|
|
|
- data.type = 'Unfold';
|
|
|
- }else{
|
|
|
- data.type = 'Collapse';
|
|
|
- }
|
|
|
+ if(data.isOpen){
|
|
|
+ data.isOpen = false;
|
|
|
+ }else{
|
|
|
+ data.isOpen = true;
|
|
|
}
|
|
|
},
|
|
|
- projectSelectFun(data){
|
|
|
- this.companyId = data.companyId;
|
|
|
- this.projectId = data.id;
|
|
|
+ projectSelectFun(type,data,d){
|
|
|
var storage = window.localStorage;
|
|
|
storage.setItem('projectId',data.id);
|
|
|
- storage.setItem('companyId',data.companyId);
|
|
|
-
|
|
|
- if(!data.isOpen){
|
|
|
+ if(this.sideBarCompanyType != 0){
|
|
|
+ if(d.cId != this.companyId){
|
|
|
+ this.companyId = d.cId;
|
|
|
+ storage.setItem('companyId',d.cId);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.projectId = data.id;
|
|
|
+ this.roadId = '';
|
|
|
+ if(!data.isOpen||this.projectId != data.id){
|
|
|
this.$set(data,'isOpen',true)
|
|
|
this.sectionNavGet(this.projectId,data)
|
|
|
}else{
|
|
|
this.$set(data,'isOpen',false)
|
|
|
}
|
|
|
- this.roadId = '';
|
|
|
-
|
|
|
- if(this.alarmNav != '巡检设置' && this.alarmNav != 'Inspection setup'){
|
|
|
- this.alarmGet(1,() => {
|
|
|
- // console.log(data)
|
|
|
- })
|
|
|
+ if(this.alarmNav != 'Inspection setup'){
|
|
|
+ this.alarmGet(1,() => {})
|
|
|
}else{
|
|
|
- this.patrol_list(1,() => {
|
|
|
- // console.log(data)
|
|
|
- })
|
|
|
+ this.patrol_list(1,() => {})
|
|
|
}
|
|
|
},
|
|
|
roadSelectFun(data,obj,d){
|
|
|
var storage = window.localStorage;
|
|
|
- if(d.id != this.companyId){
|
|
|
- storage.setItem('companyId',d.id);
|
|
|
- this.companyId = d.id;
|
|
|
- }
|
|
|
- if(obj.id != this.projectId){
|
|
|
- storage.setItem('projectId',data.id);
|
|
|
- this.projectId = obj.id;
|
|
|
+ if(this.sideBarCompanyType == 0){
|
|
|
+ if(data.id != this.projectId){
|
|
|
+ storage.setItem('projectId',data.id);
|
|
|
+ this.projectId = data.id;
|
|
|
+ }
|
|
|
+ this.roadId = obj.name;
|
|
|
+ }else{
|
|
|
+ if(data.cId != this.companyId){
|
|
|
+ this.companyId = data.cId;
|
|
|
+ storage.setItem('companyId',data.cId);
|
|
|
+ }
|
|
|
+ if(obj.id != this.projectId){
|
|
|
+ storage.setItem('projectId',obj.id);
|
|
|
+ this.projectId = obj.id;
|
|
|
+ }
|
|
|
+ this.roadId = d.name;
|
|
|
}
|
|
|
- this.roadId = data.value;
|
|
|
- if(this.alarmNav != '巡检设置' && this.alarmNav != 'Inspection setup'){
|
|
|
- this.alarmGet(1,() => {
|
|
|
- // console.log(data)
|
|
|
- })
|
|
|
+ if(this.alarmNav != 'Inspection setup'){
|
|
|
+ this.alarmGet(1,() => {})
|
|
|
}else{
|
|
|
- this.patrol_list(1,() => {
|
|
|
- // console.log(data)
|
|
|
- })
|
|
|
+ this.patrol_list(1,() => {})
|
|
|
}
|
|
|
},
|
|
|
sectionNavGet(id,obj){
|
|
|
@@ -1296,7 +1212,7 @@
|
|
|
if(data.updatetime == null){
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
- message:this.version == 0?'该路灯尚未设置':'The street lamp has not been set up',
|
|
|
+ message:'The street lamp has not been set up',
|
|
|
type: 'warning'
|
|
|
});
|
|
|
}else{
|
|
|
@@ -1312,9 +1228,9 @@
|
|
|
this.inspectionSetupType = 'XQ';
|
|
|
}
|
|
|
}else{
|
|
|
- this.$confirm(this.version==0?'此操作将永久删除该灯控, 是否继续?':'This operation will permanently delete the light control and continue?', this.version==0?'提示':'prompt', {
|
|
|
- confirmButtonText: this.version==0?'确定':'determine',
|
|
|
- cancelButtonText: this.version==0?'取消':'cancel',
|
|
|
+ this.$confirm('This operation will permanently delete the light control and continue?', 'prompt', {
|
|
|
+ confirmButtonText:'determine',
|
|
|
+ cancelButtonText:'cancel',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
baseApi.ajax_post(
|
|
|
@@ -1340,7 +1256,7 @@
|
|
|
}).catch(() => {
|
|
|
this.$message({
|
|
|
type: 'info',
|
|
|
- message: this.version == 0?'已取消删除':'Canceled Del'
|
|
|
+ message:'Canceled Del'
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
@@ -1421,7 +1337,7 @@
|
|
|
}
|
|
|
}
|
|
|
// console.log(this.role)
|
|
|
- if(this.role == '超级管理员'|| this.role == 'Super administrator'){
|
|
|
+ if(this.role == 'Super administrator'){
|
|
|
isImplement = true;
|
|
|
}
|
|
|
if(isImplement){
|
|
|
@@ -1429,7 +1345,7 @@
|
|
|
}else{
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
- message:this.version==0?'无查看权限':'No view permissions',
|
|
|
+ message:'No view permissions',
|
|
|
type: 'warning'
|
|
|
});
|
|
|
}
|
|
|
@@ -1654,8 +1570,8 @@
|
|
|
}
|
|
|
.screen-box{
|
|
|
margin-bottom: 20px;
|
|
|
+ display: flex;
|
|
|
.search_box{
|
|
|
- float: left;
|
|
|
width:344px;
|
|
|
height:50px;line-height: 50px;
|
|
|
background:rgba(255,255,255,1);
|