generated from Leo_Ding/web-template
1
This commit is contained in:
parent
ae489532cc
commit
dc23c31f98
@ -146,7 +146,8 @@ const handleCustomRequest = async (options) => {
|
||||
formData.append('file', file);
|
||||
|
||||
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({
|
||||
|
||||
@ -9,6 +9,15 @@
|
||||
<a-input :placeholder="'请输入名称'" v-model:value="formData.name"></a-input>
|
||||
</a-form-item>
|
||||
</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-form-item :label="'顺序'" name="sequence">
|
||||
<a-input-number :placeholder="'请输入顺序'" v-model:value="formData.sequence"></a-input-number>
|
||||
@ -34,6 +43,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { areaEnum } from "@/enums/useEnum"
|
||||
import { cloneDeep } from 'lodash-es'
|
||||
import { ref } from 'vue'
|
||||
import { config } from '@/config'
|
||||
@ -76,9 +86,10 @@ function handleCreate() {
|
||||
async function handleEdit(record = {}) {
|
||||
showModal({
|
||||
type: 'edit',
|
||||
title: t('pages.system.user.edit'),
|
||||
title: '编辑',
|
||||
})
|
||||
const { data, success } = await apis.imgmgt.getMenu(record.id).catch()
|
||||
console.log("====data",data)
|
||||
if (!success) {
|
||||
hideModal()
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user