This commit is contained in:
parent
01d3dc1ed3
commit
6ddf353606
|
|
@ -8,7 +8,7 @@
|
|||
<span style="font-size: 20px; font-weight: 800">维修申请设备</span>
|
||||
</el-col>
|
||||
<el-col v-if="!routerParams.isView" :span="20" style="display: flex; justify-content: flex-end">
|
||||
<el-button v-if="!routerParams.isSubmit && !hideAddDelete" type="primary" @click="handleNumDialog">添加</el-button>
|
||||
<el-button v-if="!routerParams.isSubmit" type="primary" @click="handleNumDialog">添加</el-button>
|
||||
<el-button type="primary" @click="submit">确认申请</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ export default {
|
|||
},
|
||||
// 查看
|
||||
handleView(row) {
|
||||
this.$router.push({ path: './repairView', query: { applyId: row.id, isView: true } })
|
||||
this.$router.push({ path: './repairView', query: { applyId: row.id, isView: true, isApply: true } })
|
||||
},
|
||||
// 编辑
|
||||
handleEdit(row) {
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<GoBack :title="'维修审核'" @goBack="goBack" />
|
||||
<GoBack :title="tipTitle" @goBack="goBack" />
|
||||
<!-- 列表 -->
|
||||
<el-card>
|
||||
<el-row class="mb8" :gutter="10" justify="end">
|
||||
<el-col :span="4">
|
||||
<span style="font-size: 20px; font-weight: 800">维修审核列表</span>
|
||||
<span style="font-size: 20px; font-weight: 800">{{ tipTitle }}列表</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
|
|
@ -90,6 +90,7 @@ export default {
|
|||
components: { GoBack },
|
||||
data() {
|
||||
return {
|
||||
tipTitle: '',
|
||||
routerParams: {},
|
||||
isLoading: false,
|
||||
queryParams: {
|
||||
|
|
@ -135,13 +136,15 @@ export default {
|
|||
created() {
|
||||
this.routerParams = this.$route.query
|
||||
const title = this.routerParams.isView ? '维修查看' : '列表查看'
|
||||
this.tipTitle = this.$route.query.isApply ? '维修申请' : '维修审核'
|
||||
this.queryParams.id = this.routerParams.applyId || ''
|
||||
this.$tab.updatePage(Object.assign({}, this.$route, { title }))
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
this.$router.push({ path: '/equipmentRepair/repairAuditList' })
|
||||
// this.$router.push({ path: '/equipmentRepair/repairAuditList' })
|
||||
this.$router.back()
|
||||
},
|
||||
async getList() {
|
||||
this.isLoading = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue