首页跳转
This commit is contained in:
parent
278a2da67f
commit
b250e14aab
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<el-button type="text" icon="el-icon-arrow-left" @click="goBack">返回</el-button>
|
<el-button type="text" icon="el-icon-arrow-left" @click="goBack">返回</el-button>
|
||||||
<span class="page-title">装备维修</span>
|
<span class="page-title">装备退役</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-form ref="outFormRef" :model="outForm" inline :rules="outFormRules" label-width="auto" size="small">
|
<el-form ref="outFormRef" :model="outForm" inline :rules="outFormRules" label-width="auto" size="small">
|
||||||
|
|
|
||||||
|
|
@ -149,9 +149,9 @@
|
||||||
<el-form-item label="质检日期" prop="qcTime">
|
<el-form-item label="质检日期" prop="qcTime">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="addOrEditForm.qcTime"
|
v-model="addOrEditForm.qcTime"
|
||||||
type="datetime"
|
type="date"
|
||||||
placeholder="请选择质检日期"
|
placeholder="请选择质检日期"
|
||||||
value-format="YYYY-MM-DD hh:mm:ss"
|
value-format="yyyy-MM-dd"
|
||||||
clearable
|
clearable
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@change="onQcChange"
|
@change="onQcChange"
|
||||||
|
|
@ -164,9 +164,9 @@
|
||||||
<el-form-item label="下次质检日期" prop="nextCheckTime">
|
<el-form-item label="下次质检日期" prop="nextCheckTime">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="addOrEditForm.nextCheckTime"
|
v-model="addOrEditForm.nextCheckTime"
|
||||||
type="datetime"
|
type="date"
|
||||||
placeholder="请选择下次质检日期"
|
placeholder="请选择下次质检日期"
|
||||||
value-format="YYYY-MM-DD hh:mm:ss"
|
value-format="yyyy-MM-dd"
|
||||||
clearable
|
clearable
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
/>
|
/>
|
||||||
|
|
@ -312,7 +312,6 @@
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<el-popconfirm
|
<el-popconfirm
|
||||||
width="220"
|
width="220"
|
||||||
:icon="InfoFilled"
|
|
||||||
icon-color="#626AEF"
|
icon-color="#626AEF"
|
||||||
title="确定删除该记录吗?"
|
title="确定删除该记录吗?"
|
||||||
@confirm="onDelete(row)"
|
@confirm="onDelete(row)"
|
||||||
|
|
@ -625,7 +624,7 @@ export default {
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('删除质检记录失败:', error)
|
console.error('删除质检记录失败:', error)
|
||||||
this.$message.error('删除失败,请重试')
|
// this.$message.error('删除失败,请重试')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -278,10 +278,29 @@ export default {
|
||||||
// 对于有多个出线的节点,默认高亮第一条线
|
// 对于有多个出线的节点,默认高亮第一条线
|
||||||
if (nodeId === 'equipmentLedger') {
|
if (nodeId === 'equipmentLedger') {
|
||||||
this.activeLine = 'ledgerToShelf';
|
this.activeLine = 'ledgerToShelf';
|
||||||
|
this.$router.push({ path: '/equipment/equipment-ledger' })
|
||||||
} else if (nodeId === 'equipmentShelf') {
|
} else if (nodeId === 'equipmentShelf') {
|
||||||
this.activeLine = 'shelfToRental';
|
this.activeLine = 'shelfToRental';
|
||||||
|
this.$router.push({ path: '/equipment/equipment-ledger' })
|
||||||
} else if (nodeId === 'equipmentRepair') {
|
} else if (nodeId === 'equipmentRepair') {
|
||||||
this.activeLine = 'repairToRetire';
|
this.activeLine = 'repairToRetire';
|
||||||
|
this.$router.push({ path: '/equipment/equ-repair' })
|
||||||
|
} else if (nodeId === 'equipmentEntry') {
|
||||||
|
this.$router.push({ path: '/equipment/equipmentEntry/equipment-entry-apply' })
|
||||||
|
} else if (nodeId === 'entryAudit') {
|
||||||
|
this.$router.push({ path: '/equipment/equipmentEntry/equipment-entry-approval' })
|
||||||
|
} else if (nodeId === 'equipmentOffShelf') {
|
||||||
|
this.$router.push({ path: '/equipment/equipment-ledger' })
|
||||||
|
} else if (nodeId === 'selfUseOut') {
|
||||||
|
this.$router.push({ path: '/equipment/euq-out' })
|
||||||
|
} else if (nodeId === 'equipmentRetire') {
|
||||||
|
this.$router.push({ path: '/equipment/equipment-retire' })
|
||||||
|
} else if (nodeId === 'equipmentReturn' || nodeId === 'shareReturn') {
|
||||||
|
this.$router.push({ path: '/equipment/equ-repair' })
|
||||||
|
} else if (nodeId === 'rentalHall') {
|
||||||
|
this.$router.push({ path: '/equipmentShared/MallIframe' })
|
||||||
|
} else if (nodeId === 'shareOut') {
|
||||||
|
this.$router.push({ path: '/equipmentShared/equipment-shared-lessor' })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
updateConnections() {
|
updateConnections() {
|
||||||
|
|
@ -308,7 +327,7 @@ export default {
|
||||||
this.lineDefs.forEach((ld) => {
|
this.lineDefs.forEach((ld) => {
|
||||||
const fromEl = this.$refs[ld.from];
|
const fromEl = this.$refs[ld.from];
|
||||||
const toEl = this.$refs[ld.to];
|
const toEl = this.$refs[ld.to];
|
||||||
const f = buildMetrics(fromEl);
|
const f = buildMetrics(fromEl);
|
||||||
const t = buildMetrics(toEl);
|
const t = buildMetrics(toEl);
|
||||||
if (!f || !t) return;
|
if (!f || !t) return;
|
||||||
const fa = getEdgeAnchors(f);
|
const fa = getEdgeAnchors(f);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue