From 3a45da15c947c2d478a44a51bd0f926647b1b841 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 11 四月 2025 16:33:17 +0800
Subject: [PATCH] 提交
---
company/src/components/business/dispatchReview.vue | 101 ++++++++++++++++++++++++++------------------------
1 files changed, 52 insertions(+), 49 deletions(-)
diff --git a/company/src/components/business/dispatchReview.vue b/company/src/components/business/dispatchReview.vue
index 431b072..3c3e5f8 100644
--- a/company/src/components/business/dispatchReview.vue
+++ b/company/src/components/business/dispatchReview.vue
@@ -14,45 +14,44 @@
</div>
</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.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 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>
@@ -104,26 +103,30 @@
flag = 1;
tempworktyps.push(item1);
}
- if(flag ==1){
- this.duSolutionList.push({duWorktypeList:tempworktyps,solutionName:item.solutionName})
- }
})
+ if(flag ==1){
+ this.duSolutionList.push({duWorktypeList:tempworktyps,solutionName:item.solutionName})
+ }
})
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