From c48511779f77e1d525638ef2450fde5057dce9d5 Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期四, 07 九月 2023 09:46:06 +0800 Subject: [PATCH] 调整部署 --- src/views/inspectionManagement/commissionInspection/index.vue | 35 ++++++++++++++++++++--------------- 1 files changed, 20 insertions(+), 15 deletions(-) diff --git a/src/views/inspectionManagement/commissionInspection/index.vue b/src/views/inspectionManagement/commissionInspection/index.vue index b6dec7b..7901cd7 100644 --- a/src/views/inspectionManagement/commissionInspection/index.vue +++ b/src/views/inspectionManagement/commissionInspection/index.vue @@ -1,6 +1,6 @@ <template> <div> - <div v-if="!showDetail"> + <div> <div class="content-main"> <div class="top-bar"> <el-form ref="form" :inline="true" :model="searchData"> @@ -24,19 +24,19 @@ </el-form-item> </el-form> <el-form> - <el-popover placement="left" width="350" trigger="click"> + <el-popover placement="left" width="400" trigger="click"> <div class="vue_qr_div"> <el-row> <el-col> <el-input v-model="view" readonly size="medium" style="width: 250px;margin-right: 10px;"></el-input> - <el-button size="small" type="primary" v-if="viewId==null" @click="viewDia=true">鐢熸垚</el-button> - <el-button size="small" type="primary" v-else-if="viewId!=null" @click="copy">澶嶅埗</el-button> + <el-button size="small" type="primary" @click="viewDia=true">鐢熸垚</el-button> + <el-button size="small" type="primary" @click="copy">澶嶅埗</el-button> </el-col> </el-row> <el-row style="margin-top: 10px;"> <el-col v-if="viewId==null">褰撳墠閾炬帴宸茶繃鏈燂紝璇风偣鍑荤敓鎴愭寜閽噸鏂扮敓鎴�</el-col> <el-col - v-else-if="viewId!=null">褰撳墠閾炬帴灏嗗湪{{(parseInt(viewTime)/60/60)>1?(parseInt(viewTime)/60/60).toFixed(1)+'灏忔椂':Math.round(parseInt(viewTime)/60)+'鍒嗛挓'}}鍚庤繃鏈�</el-col> + v-else-if="viewId!=null">褰撳墠閾炬帴灏嗗湪{{(parseInt(viewTime2)/60/60)>1?(parseInt(viewTime2)/60/60).toFixed(1)+'灏忔椂':Math.round(parseInt(viewTime2)/60)+'鍒嗛挓'}}鍚庤繃鏈�</el-col> </el-row> </div> <el-button slot="reference" class="rightBtn" type="primary" @click="goToaddCommision">鏂板濮旀墭</el-button> @@ -73,7 +73,7 @@ <el-table-column prop="contacts" label="濮旀墭缂栧埗浜�" min-width="8%" /> <el-table-column prop="inspection_status" label="鐘舵��" min-width="8%"> <template slot-scope="scope"> - <div v-if="scope.row.inspection_status === 0"> + <div v-if="scope.row.inspection_status === 2"> <span style="color: green;">宸叉姤妫�</span> </div> <div v-else> @@ -97,9 +97,6 @@ </div> </div> </div> - </div> - <div v-else> - <router-view /> </div> <el-dialog title="閾炬帴鏃堕暱璁剧疆" :visible.sync="viewDia" width="30%"> <div> @@ -212,11 +209,11 @@ value: null }, { - label: '宸叉楠�', - value: 0 + label: '宸叉姤妫�', + value: 2 }, { - label: '寰呮楠�', + label: '鏈姤妫�', value: 1 } ], @@ -228,7 +225,15 @@ view: null, viewId: null, viewTime: 1, + viewTime2: 1, viewDia: false + } + }, + watch:{ + addReportDialog(newVal){ + if(newVal === false){ + this.resetForm("addInspectionForm"); + } } }, created() { @@ -469,9 +474,9 @@ selectViewUUID({ day: this.day }).then(res => { - this.view = `${this.vueIp}addCommision/${res.data.id}` + this.view = `${this.vueIp}/#/addCommision/${res.data.id}` this.viewId = res.data.id - this.viewTime = res.data.time + this.viewTime2 = res.data.time }) }, getViewId() { @@ -479,7 +484,7 @@ day: this.viewTime == null ? 1 : this.viewTime }).then(res => { this.viewId = res.data - this.view = `${this.vueIp}addCommision/${res.data.id}` + this.view = `${this.vueIp}/#/addCommision/${res.data.id}` this.viewDia = false this.$message.success('閾炬帴宸茬敓鎴愶紝鐐瑰嚮澶嶅埗鎸夐挳杩涜澶嶅埗') }) -- Gitblit v1.9.3