From 4be10170bc9a1546537762e03f2c963d61d2f6ea Mon Sep 17 00:00:00 2001 From: MrShi <1878285526@qq.com> Date: 星期四, 22 二月 2024 09:16:24 +0800 Subject: [PATCH] mrshi --- company/src/components/business/dispatchReview.vue | 94 ++++++++++++++++++++++++---------------------- 1 files changed, 49 insertions(+), 45 deletions(-) diff --git a/company/src/components/business/dispatchReview.vue b/company/src/components/business/dispatchReview.vue index 635f4a9..447fac7 100644 --- a/company/src/components/business/dispatchReview.vue +++ b/company/src/components/business/dispatchReview.vue @@ -15,44 +15,44 @@ </div> </div> - <div class="box" v-for="(item, index) in duSolutionList" :key="index"> - <div class="box_label">淇濋櫓鏂规锛歿{item.solutionName}}</div> - <el-table - v-if="item.duWorktypeList && item.duWorktypeList.length>0" - :data="item.duWorktypeList" - border - style="width: 100%"> - <el-table-column label="搴忓彿" width="80px"> - <template slot-scope="scope"> - <span>{{scope.$index + 1}}</span> - </template> - </el-table-column> - <el-table-column - prop="workTypeName" - label="鎵�灞炲伐绉�"> - </el-table-column> - <el-table-column - prop="name" - label="鎿嶄綔瑙嗛"> - <template slot-scope="{row}"> - <video loop controls width="150px" height="150px" :src="row.videoUrlFull"></video> - </template> - </el-table-column> - <el-table-column - label="鐘舵��"> - <template slot-scope="{row}"> - <span :class="'du-status'+row.status" v-if="row.unitStatus === 0">寰呭鏍�</span> - <span :class="'du-status'+row.status" v-if="row.unitStatus === 1">瀹℃牳閫氳繃</span> - <span :class="'du-status'+row.status" v-if="row.unitStatus === 2">瀹℃牳涓嶉�氳繃</span> - </template> - </el-table-column> - </el-table> + <div class="box" v-for="(item, index) in duSolutionList" :key="index"> + <div class="box_label">淇濋櫓鏂规锛歿{item.solutionName}}</div> + <el-table + v-if="item.duWorktypeList && item.duWorktypeList.length>0" + :data="item.duWorktypeList" + border + style="width: 100%"> + <el-table-column label="搴忓彿" width="80px"> + <template slot-scope="scope"> + <span>{{scope.$index + 1}}</span> + </template> + </el-table-column> + <el-table-column + prop="workTypeName" + label="鎵�灞炲伐绉�"> + </el-table-column> + <el-table-column + prop="name" + label="鎿嶄綔瑙嗛"> + <template slot-scope="{row}"> + <video loop controls width="150px" height="150px" :src="row.videoUrlFull" v-if="row.videoUrlFull"></video> + </template> + </el-table-column> + <el-table-column + label="鐘舵��"> + <template slot-scope="{row}"> + <span :class="'du-status'+row.status" v-if="row.status === 0">寰呭鏍�</span> + <span :class="'du-status'+row.status" v-if="row.status === 1">瀹℃牳閫氳繃</span> + <span :class="'du-status'+row.status" v-if="row.status === 2">瀹℃牳涓嶉�氳繃</span> + </template> + </el-table-column> + </el-table> </div> - <template v-slot:footer> - <el-button type="primary" @click="doSubmit(1)">瀹℃牳閫氳繃</el-button> - <el-button type="danger" @click="doSubmit(2)">瀹℃牳閫�鍥�</el-button> - <el-button @click="visible=false">鍙栨秷</el-button> - </template> + <template v-slot:footer> + <el-button type="primary" @click="doSubmit(1)">瀹℃牳閫氳繃</el-button> + <el-button type="danger" @click="doSubmit(2)">瀹℃牳閫�鍥�</el-button> + <el-button @click="visible=false">鍙栨秷</el-button> + </template> </GlobalWindow> </template> @@ -113,17 +113,21 @@ console.log(this.form) }, doSubmit(type){ + if (!this.checkInfo) { + this.$message.warning('璇疯緭鍏ュ鏍歌鏄庯紒') + return + } this.$dialog.messageConfirm('纭杩涜璇ユ搷浣滃悧锛�') - .then(() => { - this.isWorking = true - checkWorktype({id:this.form.id,checkInfo:this.checkInfo,worktypeStatus:type}) - .then(response => { - this.visible = false - this.$emit('success') - }).catch(err => { + .then(() => { + this.isWorking = true + checkWorktype({id:this.form.id,checkInfo:this.checkInfo,worktypeStatus:type}) + .then(response => { + this.visible = false + this.$emit('success') + }).catch(err => { this.$tip.apiFailed(err) }) - }) + }) } } -- Gitblit v1.9.3