From e500f3ad66d88053118d76f4c838f6f176736615 Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期三, 19 十月 2022 17:10:16 +0800
Subject: [PATCH] 封装table组件,封装上传组件,修改消息发布,修改bug
---
src/components/process/index.vue | 58 ++++++++++++++++++++++++----------------------------------
1 files changed, 24 insertions(+), 34 deletions(-)
diff --git a/src/components/process/index.vue b/src/components/process/index.vue
index ef53b8b..20f092a 100644
--- a/src/components/process/index.vue
+++ b/src/components/process/index.vue
@@ -30,7 +30,7 @@
<div class="desc-title">鐜妭鐢ㄦ椂:{{item.disposeRecords.length !==0 ? item.disposeRecords[0].linkTime : ''}}</div>
<div class="desc-content" v-if="active > index">
<div class="desc-content-message">1111111</div>
- <div class="desc-content-endtime">{{item.disposeRecords.length !==0 ? item.disposeRecords[0].endTime:''}}</div>
+ <div class="desc-content-endtime">{{item.disposeRecords.length !==0 ? filterTime(item.disposeRecords[0].endTime):''}}</div>
</div>
</div>
</div>
@@ -38,52 +38,42 @@
</div>
</template>
<script>
+import helper from '@/utils/mydate'
export default {
data() {
return {
active: 0,
list: [
- {
- title: '涓婃姤',
- status: 'success',
- },
- {
- title: '绔嬫',
- status: 'process',
- },
- {
- title: '娲鹃仯',
- status: 'process',
- },
- {
- title: '澶勭疆',
- status: 'process',
- },
- {
- title: '鏍告煡',
- status: 'process',
- },
- {
- title: '缁撴',
- status: 'process',
- }
],
}
},
- props:['handlePassVo'],
+ props:['handlePassVo','baseCase'],
created(){
- console.log('process');
- const {handlePassVo:{workflowConfigSteps:mylist}} = this;
+ const {handlePassVo:{workflowConfigSteps:mylist},baseCase:{state:mystate}} = this;
// console.log(this.handlePassVo.workflowConfigSteps[0].name);
// console.log(mylist);
- mylist.forEach(item=>{
- if(item.disposeRecords.length!==0){
- this.active ++;
- }
- })
- console.log(this.active);
+ console.log(mystate);
+ if(mystate ===6){
+ this.active = 1;
+ }else if(mystate===7){
+ this.active = 2;
+ }else if(mystate ===8){
+ this.active = 3;
+ }else if(mystate ===9){
+ this.active = 4;
+ }else{
+ this.active = -1;
+ }
this.list = mylist;
},
+ methods:{
+ filterTime(time){
+ if(time){
+ return helper(time)
+ }
+ return;
+ }
+ }
}
</script>
<style lang="scss" scoped>
--
Gitblit v1.8.0