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);
|
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({
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user