File tree Expand file tree Collapse file tree 2 files changed +6
-60
lines changed Expand file tree Collapse file tree 2 files changed +6
-60
lines changed Original file line number Diff line number Diff line change @@ -129,29 +129,6 @@ const initData = async () => {
129
129
// 进入下一步
130
130
goToNextStep ()
131
131
}
132
-
133
- // TODO @芋艿:为了开发方便,强制设置
134
- if (false ) {
135
- formData .value .list = [
136
- {
137
- name: ' 项目说明文档.pdf' ,
138
- url: ' https://static.iocoder.cn/README_yudao.md' ,
139
- segments: []
140
- }
141
- ]
142
- goToNextStep ()
143
- }
144
- if (false ) {
145
- formData .value .list = [
146
- {
147
- id: 1 ,
148
- name: ' 项目说明文档.pdf' ,
149
- url: ' https://static.iocoder.cn/README_yudao.md' ,
150
- segments: []
151
- }
152
- ]
153
- goToNextStep ()
154
- }
155
132
}
156
133
157
134
/** 切换到下一步 */
Original file line number Diff line number Diff line change 39
39
</el-select >
40
40
</el-form-item >
41
41
<el-form-item label =" 平台" prop =" platform" >
42
- <el-select v-model =" queryParams.platform" placeholder =" 请选择平台" clearable class =" !w-240px" >
42
+ <el-select
43
+ v-model =" queryParams.platform"
44
+ placeholder =" 请选择平台"
45
+ clearable
46
+ class =" !w-240px"
47
+ >
43
48
<el-option
44
49
v-for =" dict in getStrDictOptions(DICT_TYPE.AI_PLATFORM)"
45
50
:key =" dict.value"
62
67
<el-form-item >
63
68
<el-button @click =" handleQuery" ><Icon icon =" ep:search" class =" mr-5px" /> 搜索</el-button >
64
69
<el-button @click =" resetQuery" ><Icon icon =" ep:refresh" class =" mr-5px" /> 重置</el-button >
65
- <el-button
66
- type =" primary"
67
- plain
68
- @click =" openForm('create')"
69
- v-hasPermi =" ['ai:write:create']"
70
- >
71
- <Icon icon =" ep:plus" class =" mr-5px" /> 新增
72
- </el-button >
73
- <!-- TODO @YunaiV 目前没有导出接口,需要导出吗 -->
74
- <el-button
75
- type =" success"
76
- plain
77
- @click =" handleExport"
78
- :loading =" exportLoading"
79
- v-hasPermi =" ['ai:write:export']"
80
- >
81
- <Icon icon =" ep:download" class =" mr-5px" /> 导出
82
- </el-button >
83
70
</el-form-item >
84
71
</el-form >
85
72
</ContentWrap >
143
130
<el-table-column label =" 错误信息" align =" center" prop =" errorMessage" />
144
131
<el-table-column label =" 操作" align =" center" >
145
132
<template #default =" scope " >
146
- <!-- TODO @YunaiV 目前没有修改接口,写作要可以更改吗-->
147
- <el-button
148
- link
149
- type =" primary"
150
- @click =" openForm('update', scope.row.id)"
151
- v-hasPermi =" ['ai:write:update']"
152
- >
153
- 编辑
154
- </el-button >
155
133
<el-button
156
134
link
157
135
type =" danger"
@@ -225,15 +203,6 @@ const resetQuery = () => {
225
203
handleQuery ()
226
204
}
227
205
228
- /** 新增方法,跳转到写作页面 **/
229
- const openForm = (type : string , id ? : number ) => {
230
- switch (type ) {
231
- case ' create' :
232
- router .push (' /ai/write' )
233
- break
234
- }
235
- }
236
-
237
206
/** 删除按钮操作 */
238
207
const handleDelete = async (id : number ) => {
239
208
try {
You can’t perform that action at this time.
0 commit comments