修改上传不好使的问题

This commit is contained in:
yangjun 2025-05-15 16:48:57 +08:00
parent 9924005cdd
commit dae83f0919
7 changed files with 22 additions and 8 deletions

View File

@ -1,5 +1,5 @@
# 是否打开mock
VITE_USE_MOCK = true
VITE_USE_MOCK = false
# 发布路径
VITE_PUBLIC_PATH = /

View File

@ -3,6 +3,7 @@ import { message } from 'ant-design-vue';
import { useGlobSetting } from '/@/hooks/setting';
const globSetting = useGlobSetting();
const baseUploadUrl = globSetting.uploadUrl;
const baseApiUrl = globSetting.apiUrl;
enum Api {
positionList = '/sys/position/list',
userList = '/sys/user/list',
@ -28,7 +29,7 @@ export const getNuList = (params) => {
/**
*
*/
export const uploadUrl = `${baseUploadUrl}/sys/common/upload`;
export const uploadUrl = `${baseApiUrl}/sys/common/upload`;
/**
*

View File

@ -10,7 +10,7 @@
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
const title = ref<string>('');
const width = ref<string>('80%');
const width = ref<number>(1200);
const visible = ref<boolean>(false);
const disableSubmit = ref<boolean>(false);
const registerForm = ref();

View File

@ -55,6 +55,13 @@ export const columns: BasicColumn[] = [
];
export const selectedColumns: BasicColumn[] = [
{
title: '序号',
dataIndex: 'index',
key: 'index',
width: 60,
align: 'center',
},
{
title: '分类标签',
align: 'center',

View File

@ -55,6 +55,9 @@
<a-table :columns="selectedColumns" :data-source="directiveList" :scroll="{ x: '100%', y: '32vh' }"
:pagination="false" size="small">
<template v-slot:bodyCell="{ column, record, index, text }">
<span v-if="column.dataIndex === 'index'">
{{ parseInt(index) + 1 }}
</span>
<span v-if="column.dataIndex === 'instructionTagId'">
{{ filterDictTextByCache('instruction_tag', text) }}
</span>
@ -78,6 +81,9 @@
<a @click="removeDirective(record.id)">移除</a>
</template>
</a-table>
<div style="text-align: right;margin-top: 10px;margin-right: 10px;">
{{ directiveList.length }} 条记录
</div>
<!-- 表单区域 -->
<ConfigServiceDirectiveModal ref="registerModal" @success="handleSuccess"></ConfigServiceDirectiveModal>

View File

@ -46,7 +46,7 @@
<JRangeNumber v-model:value="queryParam.comPrice" class="query-group-cust"></JRangeNumber>
</a-form-item>
</a-col> -->
<a-col :lg="6">
<!-- <a-col :lg="6">
<a-form-item name="izReimbursement">
<template #label><span title="医保报销">医保报销</span></template>
<j-dict-select-tag type='list' v-model:value="queryParam.izReimbursement" dictCode="med_ins_reimb"
@ -59,7 +59,7 @@
<j-dict-select-tag type='list' v-model:value="queryParam.izPreferential"
dictCode="institutional_discount" :ignoreDisabled="true" placeholder="请选择机构优惠" allowClear />
</a-form-item>
</a-col>
</a-col> -->
<!-- <a-col :lg="6">
<a-form-item name="chargingFrequency">
<template #label><span title="收费频次">收费频次</span></template>
@ -82,13 +82,13 @@
placeholder="请选择情绪标签" allowClear />
</a-form-item>
</a-col>
<a-col :lg="6">
<!-- <a-col :lg="6">
<a-form-item name="cycleType">
<template #label><span title="周期类型">周期类型</span></template>
<j-dict-select-tag type="list" v-model:value="queryParam.cycleType" dictCode="period_type"
:ignoreDisabled="true" placeholder="请选择周期类型" allowClear />
</a-form-item>
</a-col>
</a-col> -->
<a-col :lg="6">
<a-form-item name="izEnabled">
<template #label><span title="是否启用">是否启用</span></template>

View File

@ -3,7 +3,7 @@
<JFormContainer :disabled="disabled">
<template #detail>
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol"
name="ConfigServiceDirectiveForm">
name="ConfigService2DirectiveForm">
<a-row>
<a-col :span="12">
<a-form-item label="分类标签" v-bind="validateInfos.instructionTagId"