This commit is contained in:
qiuyuan 2025-08-13 12:29:15 +08:00
parent ae489532cc
commit dc23c31f98
2 changed files with 14 additions and 2 deletions

View File

@ -146,7 +146,8 @@ const handleCustomRequest = async (options) => {
formData.append('file', file); formData.append('file', file);
const { data } = await apis.common.uploadImg(formData); const { data } = await apis.common.uploadImg(formData);
const fullUrl = config('http.apiBasic') + data; console.log("========sdfsdf",data)
const fullUrl = config('http.apiBasic') + data.data;
// //
onSuccess({ onSuccess({

View File

@ -9,6 +9,15 @@
<a-input :placeholder="'请输入名称'" v-model:value="formData.name"></a-input> <a-input :placeholder="'请输入名称'" v-model:value="formData.name"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="24">
<a-form-item :label="'所属区域'" name="areaId">
<a-select ref="select" v-model:value="formData.areaId" :placeholder="$t('pages.system.announcement.form.content.placeholder')">
<a-select-option
v-for="item in areaEnum.getAll()"
:value="item.value">{{item.name }}</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-item :label="'顺序'" name="sequence"> <a-form-item :label="'顺序'" name="sequence">
<a-input-number :placeholder="'请输入顺序'" v-model:value="formData.sequence"></a-input-number> <a-input-number :placeholder="'请输入顺序'" v-model:value="formData.sequence"></a-input-number>
@ -34,6 +43,7 @@
</template> </template>
<script setup> <script setup>
import { areaEnum } from "@/enums/useEnum"
import { cloneDeep } from 'lodash-es' import { cloneDeep } from 'lodash-es'
import { ref } from 'vue' import { ref } from 'vue'
import { config } from '@/config' import { config } from '@/config'
@ -76,9 +86,10 @@ function handleCreate() {
async function handleEdit(record = {}) { async function handleEdit(record = {}) {
showModal({ showModal({
type: 'edit', type: 'edit',
title: t('pages.system.user.edit'), title: '编辑',
}) })
const { data, success } = await apis.imgmgt.getMenu(record.id).catch() const { data, success } = await apis.imgmgt.getMenu(record.id).catch()
console.log("====data",data)
if (!success) { if (!success) {
hideModal() hideModal()
return return