Skip to content

Commit 8d9d9e7

Browse files
committed
【代码评审】AI:工作流
1 parent dafc54c commit 8d9d9e7

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/views/ai/workflow/form/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ onMounted(async () => {
215215
})
216216
</script>
217217

218+
<!-- TODO @lesan:可以用 cursor 搞成 unocss 哈 -->
218219
<style lang="scss" scoped>
219220
.border-bottom {
220221
border-bottom: 1px solid #dcdfe6;

src/views/ai/workflow/index.vue

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,7 @@
7777
<el-table-column label="备注" align="center" prop="remark" />
7878
<el-table-column label="状态" align="center" key="status">
7979
<template #default="scope">
80-
<el-switch
81-
v-model="scope.row.status"
82-
:active-value="0"
83-
:inactive-value="1"
84-
disabled
85-
/>
80+
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
8681
</template>
8782
</el-table-column>
8883
<el-table-column label="操作" align="center" fixed="right">
@@ -122,7 +117,6 @@
122117
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
123118
import * as WorkflowApi from '@/api/ai/workflow'
124119
import { dateFormatter } from '@/utils/formatTime'
125-
import { checkPermi } from '@/utils/permission'
126120
127121
defineOptions({ name: 'AiWorkflow' })
128122
@@ -193,7 +187,7 @@ const openForm = async (type: string, id?: number) => {
193187
}
194188
195189
/** 初始化 **/
196-
onMounted(async () => {
190+
onMounted(() => {
197191
getList()
198192
})
199193
</script>

0 commit comments

Comments
 (0)