This commit is contained in:
PQZ 2024-10-18 17:21:09 +08:00
parent 4cc5d30085
commit 73f262c2ae
2 changed files with 9 additions and 3 deletions

View File

@ -89,7 +89,7 @@ export default {
}, },
gotoDetail() { gotoDetail() {
uni.navigateTo({ uni.navigateTo({
url: '/pages-order/orderDetail/orderDetail?id=' + this.order.id url: '/pages-order/orderDetail/orderDetail?id=' + this.order.id + '&isDetail=' + '1'
}) })
}, },
/** /**

View File

@ -112,7 +112,7 @@
<view v-if="selectedProj && selectedProj.length > 0" class="card cardInfo projCard"> <view v-if="selectedProj && selectedProj.length > 0" class="card cardInfo projCard">
<view class="projTitle">维修项目</view> <view class="projTitle">维修项目</view>
<view class="projList"> <view class="projList">
<template v-if="role == 'admin'"> <template v-if="isDetail == '1'">
<view v-for="item in selectedProj" :key="item.id" class="projItem"> <view v-for="item in selectedProj" :key="item.id" class="projItem">
<view class="projTop"> <view class="projTop">
<text class="projName">{{ item.projName }}</text> <text class="projName">{{ item.projName }}</text>
@ -228,7 +228,8 @@ export default {
}, },
data() { data() {
return { return {
role: 'admin', //(01)
isDetail:'1',
// role: 'yewu', // role: 'yewu',
orderId: '', orderId: '',
orderInfo: {}, orderInfo: {},
@ -306,8 +307,13 @@ export default {
if (data.id) { if (data.id) {
this.orderId = data.id this.orderId = data.id
} }
if (data.isDetail){
this.isDetail = data.isDetail
}
}, },
methods: { methods: {
editPeople(type, proj) { editPeople(type, proj) {
bus.$off('choosePeople') bus.$off('choosePeople')
bus.$on('choosePeople', (data) => { bus.$on('choosePeople', (data) => {