修复公告列表和活动列表bug

This commit is contained in:
Leo_Ding 2025-07-03 11:07:44 +08:00
parent b085e15b46
commit 6815d7787c
4 changed files with 7 additions and 14 deletions

View File

@ -12,7 +12,7 @@ VITE_ROUTER_BASE=/
VITE_ROUTER_HISTORY=hash
# api
VITE_API_BASIC=http://10.10.1.6:8070
VITE_API_BASIC=https://zh.shibeitong.com
VITE_API_HTTP=/api/v1/
# storage
VITE_STORAGE_NAMESPACE = gin-admin_local_

View File

@ -57,7 +57,7 @@ export default {
// role
'pages.system.role.add': '添加角色',
'pages.system.role.edit': '编辑角色',
'pages.system.role.delTip': '确定删除该角色吗',
'pages.system.role.delTip': '确定删除该条项目',
'pages.system.role.form.code': '编码',
'pages.system.role.form.code.placeholder': '请输入编码',
'pages.system.role.form.code.required': '编码是必填项!',

View File

@ -69,8 +69,7 @@
</a-col>
<a-col :span="24">
<a-form-item :label="'活动图片'" name="fileList">
<gx-upload v-model="formData.fileList" accept-types=".jpg,.png,.webp" :fileNumber="20"
@uploadSuccess="uploadSuccess" />
<gx-upload v-model="formData.fileList" accept-types=".jpg,.png,.webp" :fileNumber="20" />
</a-form-item>
</a-col>
</a-row>
@ -91,6 +90,7 @@ import { useI18n } from 'vue-i18n'
import dayjs from 'dayjs'
import GxUpload from '@/components/GxUpload/index.vue'
import { customersEnum, areaEnum } from "@/enums/useEnum"
import {spliceUrl} from "@/utils/util"
const emit = defineEmits(['ok'])
const { t } = useI18n() // t
const { modal, showModal, hideModal, showLoading, hideLoading } = useModal()
@ -191,8 +191,8 @@ function handleOk() {
showLoading()
const params = {
...values,
cover: fileList.value[0],
images:[...fileList.value]
cover:spliceUrl(formData.value.fileList[0]),
images:formData.value.fileList?formData.value.fileList.map(item=>spliceUrl(item)):[]
}
let result = null
switch (modal.value.type) {

View File

@ -79,13 +79,6 @@
<template v-if="column.dataIndex === 'areaId'">
<span>{{ areaEnum.getName(record.areaId) }}</span>
</template>
<template v-if="statusTypeEnum.is('disabled', record.status)">
{{ dayjs(record.createdAt).format('YYYY-MM-DD HH:mm:ss') }}
</template>
<template v-if="'createdAt' === column.dataIndex">
{{ dayjs(record.createdAt).format('YYYY-MM-DD HH:mm:ss') }}
</template>
@ -187,7 +180,7 @@ function handleRemove({ id }) {
return new Promise((resolve, reject) => {
; (async () => {
try {
const { success } = await apis.role.delRole(id).catch(() => {
const { success } = await apis.announcement.delNotices(id).catch(() => {
throw new Error()
})
if (config('http.code.success') === success) {