From 9c28048f97d505b4ded004cca696c43d82580b21 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期二, 30 四月 2024 16:50:49 +0800 Subject: [PATCH] 改为连表查询 --- src/views/system/work-order/index.vue | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/system/work-order/index.vue b/src/views/system/work-order/index.vue index 401bf4b..14f07aa 100644 --- a/src/views/system/work-order/index.vue +++ b/src/views/system/work-order/index.vue @@ -44,12 +44,12 @@ </el-form> <el-row :gutter="20"> - <el-col :xl="6" :lg="8" :md="12" :sm="24" v-for="item in workOrderList" :key="item" style="margin-bottom: 20px;"> + <el-col :xl="6" :lg="8" :md="12" :sm="24" v-for="item in workOrderList" :key="item.id" style="margin-bottom: 20px;"> <el-card :body-style="{ padding: '0px',display: 'flex' }"> <el-image :preview-src-list="['https://img2.baidu.com/it/u=68398439,1553004927&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=357']" fit="cover" src="https://img2.baidu.com/it/u=68398439,1553004927&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=357" class="image"/> <div style="padding-right: 10px;padding-top: 10px;"> <el-row> - <el-col :span="24" class="time">鏁呴殰绫诲瀷锛�<el-tag size="small" type="danger">甯傛斂鏂藉伐</el-tag></el-col> + <el-col :span="24" class="time">鏁呴殰绫诲瀷锛�<el-tag size="small" type="danger">{{ item.errorType }}</el-tag></el-col> </el-row> <el-row class="work-order-item"> <el-col class="time" :span="24">杩愮淮浜哄憳锛歿{ item.ywPeopleName }}</el-col> @@ -141,10 +141,10 @@ <el-input v-model="auditingForm.ywPeopleName" disabled /> </el-form-item> <el-form-item label="鐜板満鎯呭喌" v-if="auditingForm.condition"> - <el-input type="textarea" v-html="auditingForm.condition" disabled /> + <span v-html="auditingForm.condition"></span> </el-form-item> <el-form-item label="浣愯瘉鏉愭枡" v-if="auditingForm.proofMaterials"> - <el-link v-for="item in auditingForm.proofMaterials != null ? auditingForm.proofMaterials.split(',') : auditingForm.proofMaterials" :underline="false" :key="item" @click="handleDownload(item)">{{ item.substring(item.lastIndexOf("/") + 1) }}</el-link> + <el-link v-for="item in auditingForm.proofMaterials != null ? auditingForm.proofMaterials.split(',') : auditingForm.proofMaterials" :underline="false" :key="item.id" @click="handleDownload(item)">{{ item.substring(item.lastIndexOf("/") + 1) }}</el-link> </el-form-item> <el-form-item label="瀹℃牳缁撴灉" prop="auditingResult"> <el-radio v-model="auditingForm.auditingResult" label="AUDITING_SUCCESS">閫氳繃</el-radio> @@ -212,7 +212,7 @@ </el-step> <el-step title="杩愮淮澶勭悊"> <template slot="description"> - <div class="y-item" v-for="(item, index) in ywHandleList"> + <div class="y-item" v-for="(item, index) in ywHandleList" :key="index"> <div class="y-item-1"> <div class="flow-item-x"> 鐜板満鎯呭喌锛� @@ -237,7 +237,7 @@ </el-step> <el-step title="缁撴灉瀹℃牳"> <template slot="description"> - <div class="y-item" v-for="(item, index) in ywAuditingList"> + <div class="y-item" v-for="(item, index) in ywAuditingList" :key="index"> <div class="y-item-1"> <div class="flow-item-x"> 瀹℃牳缁撴灉锛�<el-tag :type="item.result == '瀹℃牳閫氳繃' ? 'success' : 'danger'" size="small">{{ item.result }}</el-tag> @@ -538,8 +538,8 @@ getList() { this.loading = true; this.queryParams.params = {}; - this.queryParams["start"] = this.daterangeYwHandleTime[0]; - this.queryParams["end"] = this.daterangeYwHandleTime[1]; + this.queryParams["start"] = this.daterangeYwHandleTime ? this.daterangeYwHandleTime[0] : null; + this.queryParams["end"] = this.daterangeYwHandleTime ? this.daterangeYwHandleTime[1] : null; if (this.queryParams["status"] == "") { this.queryParams["status"] = "DISTRIBUTED"; } listWorkOrder(this.queryParams).then(response => { this.workOrderList = response.data; -- Gitblit v1.8.0