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