File tree Expand file tree Collapse file tree 1 file changed +50
-3
lines changed Expand file tree Collapse file tree 1 file changed +50
-3
lines changed Original file line number Diff line number Diff line change 16
16
<ImageTaskCard :image-detail =" imageDetail" />
17
17
</div >
18
18
</div >
19
+ <!-- 时间 -->
20
+ <div class =" item" >
21
+ <div class =" tip" >时间</div >
22
+ <div class =" body" >
23
+ <div >提交时间:{{imageDetail.createTime}}</div >
24
+ <div >生成时间:{{imageDetail.updateTime}}</div >
25
+ </div >
26
+ </div >
27
+ <!-- 模型 -->
28
+ <div class =" item" >
29
+ <div class =" tip" >模型</div >
30
+ <div class =" body" >
31
+ {{imageDetail.model}}
32
+ </div >
33
+ </div >
19
34
<!-- 提示词 -->
20
35
<div class =" item" >
21
36
<div class =" tip" >提示词</div >
22
37
<div class =" body" >
23
38
{{imageDetail.prompt}}
24
39
</div >
25
40
</div >
41
+ <!-- 风格 -->
42
+ <div class =" item" >
43
+ <div class =" tip" >风格</div >
44
+ <div class =" body" >
45
+ {{imageDetail.style}}
46
+ </div >
47
+ </div >
48
+ <!-- 地址 -->
49
+ <div class =" item" >
50
+ <div class =" tip" >地址</div >
51
+ <div class =" body" >
52
+ {{imageDetail.picUrl}}
53
+ </div >
54
+ </div >
55
+ <!-- 生成地址 -->
56
+ <div class =" item" >
57
+ <div class =" tip" >生成地址</div >
58
+ <div class =" body" >
59
+ {{imageDetail.originalPicUrl}}
60
+ </div >
61
+ </div >
26
62
</el-drawer >
27
63
</template >
28
64
@@ -39,6 +75,10 @@ const props = defineProps({
39
75
type: Boolean ,
40
76
require: true ,
41
77
default: false
78
+ },
79
+ id: {
80
+ type: Number ,
81
+ required: true
42
82
}
43
83
})
44
84
@@ -64,17 +104,24 @@ const handlerTaskDetail = async () => {
64
104
showDrawer .value = true
65
105
}
66
106
67
- // watch
107
+ // watch show
68
108
const { show } = toRefs (props )
69
109
watch (show , async (newValue , oldValue ) => {
70
110
showDrawer .value = newValue as boolean
71
111
})
112
+ // watch id
113
+ const { id } = toRefs (props )
114
+ watch (id , async (newVal , oldVal ) => {
115
+ console .log (' newVal' , newVal )
116
+ if (newVal ) {
117
+ await getImageDetail (newVal )
118
+ }
119
+ })
72
120
//
73
121
const emits = defineEmits ([' handlerDrawerClose' ])
74
-
75
122
//
76
123
onMounted (async () => {
77
- await getImageDetail ( 1 )
124
+
78
125
})
79
126
</script >
80
127
<style scoped lang="scss">
You can’t perform that action at this time.
0 commit comments