File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 35
35
<Icon icon =" fa:sort-amount-desc" class =" mr-5px" />
36
36
排序
37
37
</el-button >
38
- <el-button v-else link type =" info" class =" mr-20px" @click.stop =" handleAddModel ('create')" >
38
+ <el-button v-else link type =" info" class =" mr-20px" @click.stop =" openModelForm ('create')" >
39
39
<Icon icon =" fa:plus" class =" mr-5px" />
40
40
新建
41
41
</el-button >
150
150
<el-button
151
151
link
152
152
type =" primary"
153
- @click =" openForm ('update', scope.row.id)"
153
+ @click =" openModelForm ('update', scope.row.id)"
154
154
v-hasPermi =" ['bpm:model:update']"
155
155
:disabled =" !isManagerUser(scope.row)"
156
156
>
@@ -299,12 +299,6 @@ const handleCategoryCommand = (command: string) => {
299
299
}
300
300
}
301
301
302
- /** 添加/修改操作 */
303
- const formRef = ref ()
304
- const openForm = (type : string , id ? : number ) => {
305
- formRef .value .open (type , id )
306
- }
307
-
308
302
/** 删除按钮操作 */
309
303
const handleDelete = async (row : any ) => {
310
304
try {
@@ -481,8 +475,8 @@ const handleDeleteGroup = async () => {
481
475
482
476
// 添加流程模型弹窗
483
477
const modelFormRef = ref ()
484
- const handleAddModel = (type : string ) => {
485
- modelFormRef .value .open (type )
478
+ const openModelForm = (type : string , id ? : number ) => {
479
+ modelFormRef .value .open (type , id )
486
480
}
487
481
488
482
watch (() => props .categoryInfo .modelList , updateTableData , { immediate: true })
You can’t perform that action at this time.
0 commit comments