From 7986bc00e330411ffc73da24fdd168c6af8cf295 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期一, 27 三月 2023 10:46:12 +0800 Subject: [PATCH] 0327测试 --- pages/public-page/forward/forward.vue | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/pages/public-page/forward/forward.vue b/pages/public-page/forward/forward.vue index e10f843..9b1f156 100644 --- a/pages/public-page/forward/forward.vue +++ b/pages/public-page/forward/forward.vue @@ -1,7 +1,8 @@ <template> <!-- 杞彂 --> <view class="forward"> - <view><u-notice-bar :text="text" :fontSize="30" mode="link"></u-notice-bar></view> + <view v-if="roleType == 1"><u-notice-bar :text="text" :fontSize="30" mode="link"></u-notice-bar></view> + <view v-else-if="roleType == 2"><u-notice-bar :text="text1" :fontSize="30" mode="link"></u-notice-bar></view> <view class="forward-card" v-for="(val, index) in jhOrderPlanForwardList"> <u--form labelPosition="top" :model="forwardForm" ref="form1"> <u-form-item label="杞彂瀵硅薄" labelWidth="20%" ref="item1" @click="forwardObjectClick(index)"> @@ -53,8 +54,12 @@ export default { onLoad(params) { + // 瀹㈡埛 this.cars2 = Number(params.cars2); this.carNumSurplus1 = Number(params.carNumSurplus1); + // 璐т唬 + this.carNum = Number(params.carNum); + this.carNumSurplusHuodai = Number(params.carNumSurplusHuodai); if (params.carNumSurplus1 || params.carNumSurplusHuodai) { if (params.carNumSurplus1 != 0) { this.forwardSurplus = params.carNumSurplus1; @@ -76,7 +81,6 @@ checkboxValue1: '' }; }); - console.log(this.jhOrderPlanForwardList, '鍒楄〃'); } else { this.jhOrderPlanForwardList = this.jhOrderPlanForwardList.map(v => { if (!v.orderPlanId) { @@ -122,6 +126,8 @@ tabHuoDai: false, carNumSurplus1: '', cars2: '', + carNum: '', + carNumSurplusHuodai: '', formNum: 1 }; }, @@ -138,6 +144,9 @@ }, text() { return `宸查鍙�${this.cars2}寮犳棩璁″垝鍗�,鍓╀綑${this.carNumSurplus1}寮犳棩璁″垝鍗昤; + }, + text1() { + return `宸叉嫢鏈�${this.carNum}寮犳棩璁″垝鍗�,鍓╀綑${this.carNumSurplusHuodai}寮犳棩璁″垝鍗昤; } }, methods: { -- Gitblit v1.9.1