Commit b167f54813af25586c9992123d02b0ae9c2b0e0b
1 parent
ee6317e9
refactor: vue3 delete function
Showing
26 changed files
with
45 additions
and
147 deletions
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm
| ... | ... | @@ -74,11 +74,6 @@ |
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - // 删除操作 | |
| 78 | - const handleDelete = (row: ${simpleClassName}VO) => { | |
| 79 | - delList(row.id, false) | |
| 80 | - } | |
| 81 | - | |
| 82 | 77 | // ========== 详情相关 ========== |
| 83 | 78 | const detailRef = ref() // 详情 Ref |
| 84 | 79 | |
| ... | ... | @@ -161,7 +156,7 @@ |
| 161 | 156 | link |
| 162 | 157 | type="primary" |
| 163 | 158 | v-hasPermi="['${permissionPrefix}:delete']" |
| 164 | - @click="handleDelete(row)" | |
| 159 | + @click="delList(row.id, false)" | |
| 165 | 160 | > |
| 166 | 161 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 167 | 162 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/bpm/form/index.vue
| ... | ... | @@ -68,11 +68,6 @@ const submitForm = async () => { |
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | -// 删除操作 | |
| 72 | -const handleDelete = (row: FormVO) => { | |
| 73 | - delList(row.id, false) | |
| 74 | -} | |
| 75 | - | |
| 76 | 71 | // ========== 详情相关 ========== |
| 77 | 72 | const detailRef = ref() // 详情 Ref |
| 78 | 73 | |
| ... | ... | @@ -125,7 +120,12 @@ getList() |
| 125 | 120 | <el-button link type="primary" v-hasPermi="['bpm:form:update']" @click="handleDetail(row)"> |
| 126 | 121 | <Icon icon="ep:view" class="mr-1px" /> {{ t('action.detail') }} |
| 127 | 122 | </el-button> |
| 128 | - <el-button link type="primary" v-hasPermi="['bpm:form:delete']" @click="handleDelete(row)"> | |
| 123 | + <el-button | |
| 124 | + link | |
| 125 | + type="primary" | |
| 126 | + v-hasPermi="['bpm:form:delete']" | |
| 127 | + @click="delList(row.id, false)" | |
| 128 | + > | |
| 129 | 129 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 130 | 130 | </el-button> |
| 131 | 131 | </template> | ... | ... |
yudao-ui-admin-vue3/src/views/bpm/group/group.data.ts
yudao-ui-admin-vue3/src/views/bpm/group/index.vue
| ... | ... | @@ -82,11 +82,6 @@ const submitForm = async () => { |
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | -// 删除操作 | |
| 86 | -const handleDelete = (row: UserGroupVO) => { | |
| 87 | - delList(row.id, false) | |
| 88 | -} | |
| 89 | - | |
| 90 | 85 | // 根据用户名获取用户真实名 |
| 91 | 86 | const getUserNickName = (userId: number) => { |
| 92 | 87 | for (const user of userOptions.value) { |
| ... | ... | @@ -168,7 +163,7 @@ onMounted(async () => { |
| 168 | 163 | link |
| 169 | 164 | type="primary" |
| 170 | 165 | v-hasPermi="['bpm:user-group:delete']" |
| 171 | - @click="handleDelete(row)" | |
| 166 | + @click="delList(row.id, false)" | |
| 172 | 167 | > |
| 173 | 168 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 174 | 169 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/infra/apiErrorLog/index.vue
yudao-ui-admin-vue3/src/views/infra/codegen/index.vue
| ... | ... | @@ -49,10 +49,6 @@ const handleGenTable = async (row: CodegenTableVO) => { |
| 49 | 49 | const res = await CodegenApi.downloadCodegenApi(row.id) |
| 50 | 50 | download.zip(res, 'codegen-' + row.className + '.zip') |
| 51 | 51 | } |
| 52 | -// 删除操作 | |
| 53 | -const handleDelete = (row: CodegenTableVO) => { | |
| 54 | - delList(row.id, false) | |
| 55 | -} | |
| 56 | 52 | // 查询操作 |
| 57 | 53 | const handleQuery = () => { |
| 58 | 54 | getList() |
| ... | ... | @@ -112,7 +108,7 @@ getList() |
| 112 | 108 | link |
| 113 | 109 | type="primary" |
| 114 | 110 | v-hasPermi="['infra:codegen:delete']" |
| 115 | - @click="handleDelete(row)" | |
| 111 | + @click="delList(row.id, false)" | |
| 116 | 112 | > |
| 117 | 113 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 118 | 114 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/infra/config/index.vue
| ... | ... | @@ -74,11 +74,6 @@ const submitForm = async () => { |
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | -// 删除操作 | |
| 78 | -const handleDelete = (row: ConfigVO) => { | |
| 79 | - delList(row.id, false) | |
| 80 | -} | |
| 81 | - | |
| 82 | 77 | // ========== 详情相关 ========== |
| 83 | 78 | const detailRef = ref() // 详情 Ref |
| 84 | 79 | |
| ... | ... | @@ -156,7 +151,7 @@ getList() |
| 156 | 151 | link |
| 157 | 152 | type="primary" |
| 158 | 153 | v-hasPermi="['infra:config:delete']" |
| 159 | - @click="handleDelete(row)" | |
| 154 | + @click="delList(row.id, false)" | |
| 160 | 155 | > |
| 161 | 156 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 162 | 157 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue
| ... | ... | @@ -79,11 +79,6 @@ const submitForm = async () => { |
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | -// 删除操作 | |
| 83 | -const handleDelete = (row: FileConfigVO) => { | |
| 84 | - delList(row.id, false) | |
| 85 | -} | |
| 86 | - | |
| 87 | 82 | // ========== 详情相关 ========== |
| 88 | 83 | const detailRef = ref() // 详情 Ref |
| 89 | 84 | |
| ... | ... | @@ -169,7 +164,7 @@ getList() |
| 169 | 164 | link |
| 170 | 165 | type="primary" |
| 171 | 166 | v-hasPermi="['infra:file-config:delete']" |
| 172 | - @click="handleDelete(row)" | |
| 167 | + @click="delList(row.id, false)" | |
| 173 | 168 | > |
| 174 | 169 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 175 | 170 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/infra/fileList/index.vue
| ... | ... | @@ -69,10 +69,6 @@ const excelUploadError = (): void => { |
| 69 | 69 | const detailRef = ref() // 详情 Ref |
| 70 | 70 | const dialogVisible = ref(false) // 是否显示弹出层 |
| 71 | 71 | const dialogTitle = ref('') // 弹出层标题 |
| 72 | -// 删除操作 | |
| 73 | -const handleDelete = (row: FileVO) => { | |
| 74 | - delList(row.id, false) | |
| 75 | -} | |
| 76 | 72 | // 详情操作 |
| 77 | 73 | const handleDetail = (row: FileVO) => { |
| 78 | 74 | // 设置数据 |
| ... | ... | @@ -128,7 +124,7 @@ getList() |
| 128 | 124 | link |
| 129 | 125 | type="primary" |
| 130 | 126 | v-hasPermi="['infra:file:delete']" |
| 131 | - @click="handleDelete(row)" | |
| 127 | + @click="delList(row.id, false)" | |
| 132 | 128 | > |
| 133 | 129 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 134 | 130 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/infra/job/index.vue
| ... | ... | @@ -92,11 +92,6 @@ const submitForm = async () => { |
| 92 | 92 | } |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | -// 删除操作 | |
| 96 | -const handleDelete = (row: JobVO) => { | |
| 97 | - delList(row.id, false) | |
| 98 | -} | |
| 99 | - | |
| 100 | 95 | // ========== 详情相关 ========== |
| 101 | 96 | const detailRef = ref() // 详情 Ref |
| 102 | 97 | |
| ... | ... | @@ -157,7 +152,12 @@ getList() |
| 157 | 152 | <el-button link type="primary" v-hasPermi="['infra:job:query']" @click="handleDetail(row)"> |
| 158 | 153 | <Icon icon="ep:view" class="mr-1px" /> {{ t('action.detail') }} |
| 159 | 154 | </el-button> |
| 160 | - <el-button link type="primary" v-hasPermi="['infra:job:delete']" @click="handleDelete(row)"> | |
| 155 | + <el-button | |
| 156 | + link | |
| 157 | + type="primary" | |
| 158 | + v-hasPermi="['infra:job:delete']" | |
| 159 | + @click="delList(row.id, false)" | |
| 160 | + > | |
| 161 | 161 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 162 | 162 | </el-button> |
| 163 | 163 | <el-button link type="primary" v-hasPermi="['infra:job:trigger']" @click="handleRun(row)"> | ... | ... |
yudao-ui-admin-vue3/src/views/pay/app/index.vue
| ... | ... | @@ -74,11 +74,6 @@ const submitForm = async () => { |
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | -// 删除操作 | |
| 78 | -const handleDelete = (row: AppVO) => { | |
| 79 | - delList(row.id, false) | |
| 80 | -} | |
| 81 | - | |
| 82 | 77 | // ========== 详情相关 ========== |
| 83 | 78 | const detailRef = ref() // 详情 Ref |
| 84 | 79 | |
| ... | ... | @@ -153,7 +148,7 @@ getList() |
| 153 | 148 | link |
| 154 | 149 | type="primary" |
| 155 | 150 | v-hasPermi="['system:post:delete']" |
| 156 | - @click="handleDelete(row)" | |
| 151 | + @click="delList(row.id, false)" | |
| 157 | 152 | > |
| 158 | 153 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 159 | 154 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/pay/merchant/index.vue
| ... | ... | @@ -74,11 +74,6 @@ const submitForm = async () => { |
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | -// 删除操作 | |
| 78 | -const handleDelete = (row: MerchantVO) => { | |
| 79 | - delList(row.id, false) | |
| 80 | -} | |
| 81 | - | |
| 82 | 77 | // ========== 详情相关 ========== |
| 83 | 78 | const detailRef = ref() // 详情 Ref |
| 84 | 79 | |
| ... | ... | @@ -153,7 +148,7 @@ getList() |
| 153 | 148 | link |
| 154 | 149 | type="primary" |
| 155 | 150 | v-hasPermi="['system:post:delete']" |
| 156 | - @click="handleDelete(row)" | |
| 151 | + @click="delList(row.id, false)" | |
| 157 | 152 | > |
| 158 | 153 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 159 | 154 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/pay/order/index.vue
| ... | ... | @@ -71,11 +71,6 @@ const submitForm = async () => { |
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | -// 删除操作 | |
| 75 | -const handleDelete = (row: OrderVO) => { | |
| 76 | - delList(row.id, false) | |
| 77 | -} | |
| 78 | - | |
| 79 | 74 | // ========== 详情相关 ========== |
| 80 | 75 | const detailRef = ref() // 详情 Ref |
| 81 | 76 | |
| ... | ... | @@ -133,7 +128,12 @@ getList() |
| 133 | 128 | <el-button link type="primary" v-hasPermi="['pay:order:update']" @click="handleDetail(row)"> |
| 134 | 129 | <Icon icon="ep:view" class="mr-1px" /> {{ t('action.detail') }} |
| 135 | 130 | </el-button> |
| 136 | - <el-button link type="primary" v-hasPermi="['pay:order:delete']" @click="handleDelete(row)"> | |
| 131 | + <el-button | |
| 132 | + link | |
| 133 | + type="primary" | |
| 134 | + v-hasPermi="['pay:order:delete']" | |
| 135 | + @click="delList(row.id, false)" | |
| 136 | + > | |
| 137 | 137 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 138 | 138 | </el-button> |
| 139 | 139 | </template> | ... | ... |
yudao-ui-admin-vue3/src/views/pay/refund/index.vue
| ... | ... | @@ -26,11 +26,6 @@ const handleExport = async () => { |
| 26 | 26 | const dialogVisible = ref(false) // 是否显示弹出层 |
| 27 | 27 | const dialogTitle = ref('edit') // 弹出层标题 |
| 28 | 28 | |
| 29 | -// 删除操作 | |
| 30 | -const handleDelete = (row: RefundVO) => { | |
| 31 | - delList(row.id, false) | |
| 32 | -} | |
| 33 | - | |
| 34 | 29 | // ========== 详情相关 ========== |
| 35 | 30 | const detailRef = ref() // 详情 Ref |
| 36 | 31 | |
| ... | ... | @@ -95,7 +90,7 @@ getList() |
| 95 | 90 | link |
| 96 | 91 | type="primary" |
| 97 | 92 | v-hasPermi="['system:post:delete']" |
| 98 | - @click="handleDelete(row)" | |
| 93 | + @click="delList(row.id, false)" | |
| 99 | 94 | > |
| 100 | 95 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 101 | 96 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/system/dict/index.vue
| ... | ... | @@ -38,10 +38,6 @@ const handleTypeUpdate = async (row: DictTypeVO) => { |
| 38 | 38 | const res = await DictTypeApi.getDictTypeApi(row.id) |
| 39 | 39 | unref(typeFormRef)?.setValues(res) |
| 40 | 40 | } |
| 41 | -// 字典分类删除操作 | |
| 42 | -const handleTypeDelete = async (row: DictTypeVO) => { | |
| 43 | - await delTypeList(row.id, false) | |
| 44 | -} | |
| 45 | 41 | |
| 46 | 42 | // ========== 字典数据列表相关 ========== |
| 47 | 43 | const tableTypeSelect = ref(false) |
| ... | ... | @@ -71,10 +67,6 @@ const handleDataUpdate = async (row: DictDataVO) => { |
| 71 | 67 | const res = await DictDataApi.getDictDataApi(row.id) |
| 72 | 68 | unref(dataFormRef)?.setValues(res) |
| 73 | 69 | } |
| 74 | -// 字典数据删除操作 | |
| 75 | -const handleDataDelete = async (row: DictTypeVO) => { | |
| 76 | - await delDataList(row.id, false) | |
| 77 | -} | |
| 78 | 70 | // 字典分类点击行事件 |
| 79 | 71 | const parentType = ref('') |
| 80 | 72 | const onClickType = async (data: { [key: string]: any }) => { |
| ... | ... | @@ -195,7 +187,7 @@ onMounted(async () => { |
| 195 | 187 | link |
| 196 | 188 | type="primary" |
| 197 | 189 | v-hasPermi="['system:dict:delete']" |
| 198 | - @click="handleTypeDelete(row)" | |
| 190 | + @click="delTypeList(row.id, false)" | |
| 199 | 191 | > |
| 200 | 192 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 201 | 193 | </el-button> |
| ... | ... | @@ -252,7 +244,7 @@ onMounted(async () => { |
| 252 | 244 | link |
| 253 | 245 | type="primary" |
| 254 | 246 | v-hasPermi="['system:dict:delete']" |
| 255 | - @click="handleDataDelete(row)" | |
| 247 | + @click="delDataList(row.id, false)" | |
| 256 | 248 | > |
| 257 | 249 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 258 | 250 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/system/errorCode/index.vue
| ... | ... | @@ -68,11 +68,6 @@ const submitForm = async () => { |
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | -// 删除操作 | |
| 72 | -const handleDelete = (row: ErrorCodeVO) => { | |
| 73 | - delList(row.id, false) | |
| 74 | -} | |
| 75 | - | |
| 76 | 71 | // ========== 详情相关 ========== |
| 77 | 72 | const detailRef = ref() // 详情 Ref |
| 78 | 73 | |
| ... | ... | @@ -139,7 +134,7 @@ getList() |
| 139 | 134 | link |
| 140 | 135 | type="primary" |
| 141 | 136 | v-hasPermi="['system:error-code:delete']" |
| 142 | - @click="handleDelete(row)" | |
| 137 | + @click="delList(row.id, false)" | |
| 143 | 138 | > |
| 144 | 139 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 145 | 140 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/system/notice/index.vue
| ... | ... | @@ -67,11 +67,6 @@ const submitForm = async () => { |
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | -// 删除操作 | |
| 71 | -const handleDelete = (row: NoticeVO) => { | |
| 72 | - delList(row.id, false) | |
| 73 | -} | |
| 74 | - | |
| 75 | 70 | // ========== 详情相关 ========== |
| 76 | 71 | const detailRef = ref() // 详情 Ref |
| 77 | 72 | |
| ... | ... | @@ -141,7 +136,7 @@ getList() |
| 141 | 136 | link |
| 142 | 137 | type="primary" |
| 143 | 138 | v-hasPermi="['system:notice:delete']" |
| 144 | - @click="handleDelete(row)" | |
| 139 | + @click="delList(row.id, false)" | |
| 145 | 140 | > |
| 146 | 141 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 147 | 142 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/system/oauth2/client/index.vue
| ... | ... | @@ -68,11 +68,6 @@ const submitForm = async () => { |
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | -// 删除操作 | |
| 72 | -const handleDelete = (row: OAuth2ClientVo) => { | |
| 73 | - delList(row.id, false) | |
| 74 | -} | |
| 75 | - | |
| 76 | 71 | // ========== 详情相关 ========== |
| 77 | 72 | const detailRef = ref() // 详情 Ref |
| 78 | 73 | |
| ... | ... | @@ -152,7 +147,7 @@ getList() |
| 152 | 147 | link |
| 153 | 148 | type="primary" |
| 154 | 149 | v-hasPermi="['system:oauth2-client:delete']" |
| 155 | - @click="handleDelete(row)" | |
| 150 | + @click="delList(row.id, false)" | |
| 156 | 151 | > |
| 157 | 152 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 158 | 153 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/system/post/index.vue
| ... | ... | @@ -74,11 +74,6 @@ const submitForm = async () => { |
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | -// 删除操作 | |
| 78 | -const handleDelete = (row: PostVO) => { | |
| 79 | - delList(row.id, false) | |
| 80 | -} | |
| 81 | - | |
| 82 | 77 | // ========== 详情相关 ========== |
| 83 | 78 | const detailRef = ref() // 详情 Ref |
| 84 | 79 | |
| ... | ... | @@ -153,7 +148,7 @@ getList() |
| 153 | 148 | link |
| 154 | 149 | type="primary" |
| 155 | 150 | v-hasPermi="['system:post:delete']" |
| 156 | - @click="handleDelete(row)" | |
| 151 | + @click="delList(row.id, false)" | |
| 157 | 152 | > |
| 158 | 153 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 159 | 154 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/system/role/index.vue
| ... | ... | @@ -83,11 +83,6 @@ const submitForm = async () => { |
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | -// 删除操作 | |
| 87 | -const handleDelete = (row: RoleVO) => { | |
| 88 | - delList(row.id, false) | |
| 89 | -} | |
| 90 | - | |
| 91 | 86 | // ========== 详情相关 ========== |
| 92 | 87 | const detailRef = ref() // 详情 Ref |
| 93 | 88 | |
| ... | ... | @@ -221,7 +216,7 @@ getList() |
| 221 | 216 | link |
| 222 | 217 | type="primary" |
| 223 | 218 | v-hasPermi="['system:role:delete']" |
| 224 | - @click="handleDelete(row)" | |
| 219 | + @click="delList(row.id, false)" | |
| 225 | 220 | > |
| 226 | 221 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 227 | 222 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/system/sensitiveWord/index.vue
| ... | ... | @@ -79,11 +79,6 @@ const submitForm = async () => { |
| 79 | 79 | } |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | -// 删除操作 | |
| 83 | -const handleDelete = (row: SensitiveWordVO) => { | |
| 84 | - delList(row.id, false) | |
| 85 | -} | |
| 86 | - | |
| 87 | 82 | // ========== 详情相关 ========== |
| 88 | 83 | const detailRef = ref() // 详情 Ref |
| 89 | 84 | |
| ... | ... | @@ -171,7 +166,7 @@ onMounted(async () => { |
| 171 | 166 | link |
| 172 | 167 | type="primary" |
| 173 | 168 | v-hasPermi="['system:post:delete']" |
| 174 | - @click="handleDelete(row)" | |
| 169 | + @click="delList(row.id, false)" | |
| 175 | 170 | > |
| 176 | 171 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 177 | 172 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/system/sms/smsChannel/index.vue
| ... | ... | @@ -68,11 +68,6 @@ const submitForm = async () => { |
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | -// 删除操作 | |
| 72 | -const handleDelete = (row: SmsChannelVO) => { | |
| 73 | - delList(row.id, false) | |
| 74 | -} | |
| 75 | - | |
| 76 | 71 | // ========== 详情相关 ========== |
| 77 | 72 | const detailRef = ref() // 详情 Ref |
| 78 | 73 | |
| ... | ... | @@ -142,7 +137,7 @@ getList() |
| 142 | 137 | link |
| 143 | 138 | type="primary" |
| 144 | 139 | v-hasPermi="['system:sms-channel:delete']" |
| 145 | - @click="handleDelete(row)" | |
| 140 | + @click="delList(row.id, false)" | |
| 146 | 141 | > |
| 147 | 142 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 148 | 143 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/index.vue
| ... | ... | @@ -68,11 +68,6 @@ const submitForm = async () => { |
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | -// 删除操作 | |
| 72 | -const handleDelete = (row: SmsTemplateVO) => { | |
| 73 | - delList(row.id, false) | |
| 74 | -} | |
| 75 | - | |
| 76 | 71 | // ========== 详情相关 ========== |
| 77 | 72 | const detailRef = ref() // 详情 Ref |
| 78 | 73 | |
| ... | ... | @@ -190,7 +185,7 @@ getList() |
| 190 | 185 | link |
| 191 | 186 | type="primary" |
| 192 | 187 | v-hasPermi="['system:sms-template:delete']" |
| 193 | - @click="handleDelete(row)" | |
| 188 | + @click="delList(row.id, false)" | |
| 194 | 189 | > |
| 195 | 190 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 196 | 191 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/system/tenant/index.vue
| ... | ... | @@ -97,11 +97,6 @@ const submitForm = async () => { |
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | -// 删除操作 | |
| 101 | -const handleDelete = (row: TenantVO) => { | |
| 102 | - delList(row.id, false) | |
| 103 | -} | |
| 104 | - | |
| 105 | 100 | // ========== 详情相关 ========== |
| 106 | 101 | const detailRef = ref() // 详情 Ref |
| 107 | 102 | |
| ... | ... | @@ -191,7 +186,7 @@ onMounted(async () => { |
| 191 | 186 | link |
| 192 | 187 | type="primary" |
| 193 | 188 | v-hasPermi="['system:tenant:delete']" |
| 194 | - @click="handleDelete(row)" | |
| 189 | + @click="delList(row.id, false)" | |
| 195 | 190 | > |
| 196 | 191 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 197 | 192 | </el-button> | ... | ... |
yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue
| ... | ... | @@ -101,11 +101,6 @@ const submitForm = async () => { |
| 101 | 101 | } |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | -// 删除操作 | |
| 105 | -const handleDelete = (row: TenantPackageVO) => { | |
| 106 | - delList(row.id, false) | |
| 107 | -} | |
| 108 | - | |
| 109 | 104 | // ========== 初始化 ========== |
| 110 | 105 | onMounted(async () => { |
| 111 | 106 | await getList() |
| ... | ... | @@ -149,7 +144,7 @@ onMounted(async () => { |
| 149 | 144 | <el-button link type="primary" @click="handleUpdate(row)"> |
| 150 | 145 | <Icon icon="ep:edit" class="mr-1px" /> {{ t('action.edit') }} |
| 151 | 146 | </el-button> |
| 152 | - <el-button link type="primary" @click="handleDelete(row)"> | |
| 147 | + <el-button link type="primary" @click="delList(row.id, false)"> | |
| 153 | 148 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 154 | 149 | </el-button> |
| 155 | 150 | </template> | ... | ... |
yudao-ui-admin-vue3/src/views/system/user/index.vue
| ... | ... | @@ -164,10 +164,6 @@ const handleResetPwd = (row: UserVO) => { |
| 164 | 164 | }) |
| 165 | 165 | }) |
| 166 | 166 | } |
| 167 | -// 删除操作 | |
| 168 | -const handleDelete = (row: UserVO) => { | |
| 169 | - delList(row.id, false) | |
| 170 | -} | |
| 171 | 167 | |
| 172 | 168 | // 导出操作 |
| 173 | 169 | const handleExport = async () => { |
| ... | ... | @@ -360,7 +356,7 @@ getList() |
| 360 | 356 | link |
| 361 | 357 | type="primary" |
| 362 | 358 | v-hasPermi="['system:user:delete']" |
| 363 | - @click="handleDelete(row)" | |
| 359 | + @click="delList(row.id, false)" | |
| 364 | 360 | > |
| 365 | 361 | <Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }} |
| 366 | 362 | </el-button> | ... | ... |