修改维修必填字段和没有权限推出的问题
This commit is contained in:
parent
c24b7fdfc3
commit
da33f75322
@ -244,6 +244,7 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
console.log('layout 再一次进入')
|
||||
this.onLayoutResize();
|
||||
window.addEventListener('resize', this.onLayoutResize);
|
||||
const menu = this.$router.sc_getMenu();
|
||||
|
||||
@ -6,9 +6,9 @@
|
||||
<div class="router-err__content">
|
||||
<h2>无权限或找不到页面</h2>
|
||||
<p>当前页面无权限访问或者打开了一个不存在的链接,请检查当前账户权限和链接的可访问性。</p>
|
||||
<el-button type="primary" plain round @click="gohome">返回首页</el-button>
|
||||
<el-button type="primary" plain round @click="gologin">重新登录</el-button>
|
||||
<el-button type="primary" round @click="goback">返回上一页</el-button>
|
||||
<el-button type="primary" plain round @click="goHome">返回首页</el-button>
|
||||
<el-button type="primary" plain round @click="goLogin">重新登录</el-button>
|
||||
<el-button type="primary" round @click="goBack">返回上一页</el-button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -16,15 +16,15 @@
|
||||
<script>
|
||||
export default {
|
||||
methods: {
|
||||
gohome(){
|
||||
goHome(){
|
||||
location.href="#/"
|
||||
},
|
||||
goback(){
|
||||
goLogin(){
|
||||
this.$router.push("/login");
|
||||
},
|
||||
goBack(){
|
||||
this.$router.go(-1);
|
||||
},
|
||||
gologin(){
|
||||
this.$router.push("/login");
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -46,7 +46,8 @@ function startHeartbeat() {
|
||||
start();
|
||||
}
|
||||
|
||||
function start() {//开启心跳
|
||||
//开启心跳
|
||||
function start() {
|
||||
timeoutObj && clearTimeout(timeoutObj);
|
||||
serverTimeoutObj && clearTimeout(serverTimeoutObj);
|
||||
timeoutObj = setTimeout(function () {
|
||||
@ -65,7 +66,22 @@ function start() {//开启心跳
|
||||
}
|
||||
|
||||
function createWebSocket(callback, token) {
|
||||
if (websocket == null || typeof websocket !== WebSocket) {
|
||||
console.log(websocket,'websocket')
|
||||
// if (websocket == null || typeof websocket !== WebSocket) {
|
||||
// initWebSocket(callback, token);
|
||||
// }
|
||||
|
||||
// websocket.readyState 0 (CONNECTING) 1 (OPEN) 2 (CLOSING) 3 (CLOSED)
|
||||
// 0 连接正在建立中,尚未连接
|
||||
// 1 已经建立,可以进行通信
|
||||
// 2 关闭握手过程,即将关闭
|
||||
// 3 闭或者根本没有建立
|
||||
|
||||
if(websocket && websocket.readyState === 1){
|
||||
return
|
||||
}
|
||||
console.log(websocket)
|
||||
if (websocket === null || websocket.readyState === 3) {
|
||||
initWebSocket(callback, token);
|
||||
}
|
||||
}
|
||||
@ -121,7 +137,6 @@ function closeSock(active) {
|
||||
function webSocketOnMessage(msg) {
|
||||
// 收到信息为Blob类型时
|
||||
let result = null;
|
||||
// debugger
|
||||
// 二进制文件
|
||||
if (msg.data instanceof Blob) {
|
||||
const reader = new FileReader();
|
||||
|
||||
@ -114,14 +114,20 @@
|
||||
{{scope.row.m_ascription===1?'旧部件':'新部件'}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="part_mpn" label="部件MPN" :show-overflow-tooltip="true" width="240">
|
||||
<el-table-column prop="part_mpn" label="部件MPN" :show-overflow-tooltip="false" width="250">
|
||||
<template #default="scope">
|
||||
<el-input :size="size" v-model="scope.row.part_mpn" placeholder="部件MPN"></el-input>
|
||||
<div class="flexBox">
|
||||
<span class="requiredText" v-if="item.repair_action==1">*</span>
|
||||
<el-input :size="size" v-model="scope.row.part_mpn" placeholder="部件MPN" style="width: 230px;"></el-input>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="part_sn" label="部件SN" :show-overflow-tooltip="true" width="240">
|
||||
<el-table-column prop="part_sn" label="部件SN" :show-overflow-tooltip="false" width="250">
|
||||
<template #default="scope">
|
||||
<el-input :size="size" v-model="scope.row.part_sn" placeholder="部件SN"></el-input>
|
||||
<div class="flexBox">
|
||||
<span class="requiredText" v-if="item.repair_action==1">*</span>
|
||||
<el-input :size="size" v-model="scope.row.part_sn" placeholder="部件SN" style="width: 230px;"></el-input>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</sc-table>
|
||||
@ -327,7 +333,17 @@
|
||||
color: var(--el-color-danger);
|
||||
}
|
||||
}
|
||||
|
||||
.flexBox{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.requiredText{
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--el-color-danger);
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
.btnBox {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<el-container class="mainBox mainHeaderNoBorderPadding">
|
||||
<el-header class="header">
|
||||
<div class="left-panel">
|
||||
<el-button type="primary" :disabled="selection.length!==1" :size="size" icon="sc-icon-MaintenanceSetup" @click="upkeep">执行维修</el-button>
|
||||
</div>
|
||||
<div class="right-panel">
|
||||
<!-- <el-header class="header">-->
|
||||
<!-- <div class="left-panel">-->
|
||||
<!-- <el-button type="primary" :disabled="selection.length!==1" :size="size" icon="sc-icon-MaintenanceSetup" @click="upkeep">执行维修</el-button>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div class="right-panel">-->
|
||||
|
||||
</div>
|
||||
</el-header>
|
||||
<!-- </div>-->
|
||||
<!-- </el-header>-->
|
||||
<el-main class="nopadding">
|
||||
<div class="flowPath">
|
||||
<flow :list="flowList"/>
|
||||
@ -22,7 +22,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<scTable ref="table" :apiObj="list.apiObj" :column="list.column" :params="params" row-key="id" stripe border :size="size" @selection-change="selectionChange" @columnBack="columnBack">
|
||||
<el-table-column type="selection" align="center" width="40"></el-table-column>
|
||||
<!-- <el-table-column type="selection" align="center" width="40"></el-table-column>-->
|
||||
<template #repair_status="scope">
|
||||
<span v-for="(item,ind) in setMap.statusList" :key="ind">
|
||||
<span :style="{color:item.value==1?`var(--el-order-color-1)`:item.value==2?`var(--el-order-color-2)`:item.value==3?`var(--el-order-color-3)`:item.value==4?`var(--el-order-color-4)`:`var(--el-order-color-100)`}"
|
||||
@ -303,6 +303,9 @@ export default {
|
||||
padding: 0 10px;
|
||||
}
|
||||
}
|
||||
.mainHeaderNoBorderPadding{
|
||||
padding-top: 10px;
|
||||
}
|
||||
.logoCell{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user