Luka 1 ماه پیش
والد
کامیت
3dabdfd301

+ 8 - 6
src/views/notificationInfoManage/notificationListManage/components/detail.vue

@@ -140,15 +140,16 @@
 									</template>
 									<!-- 发出单位 -->
 									<template v-if="item.type === 'deliveryUnit'">
-										<el-tree-select
+										<el-select
 											v-model="formData[item.prop]"
-											:data="treeData"
-											:render-after-expand="false"
-											node-key="id"
-											filterable
 											:placeholder="item.placeholder"
 											style="width: 100%"
-										/>
+											:disabled="item.disabled"
+										>
+											<template v-for="(val, index) in bj_lssuing_unit" :key="index">
+												<el-option :value="val.value" :label="val.label" />
+											</template>
+										</el-select>
 									</template>
 								</el-form-item>
 							</el-col>
@@ -183,6 +184,7 @@ import { outTypeList, outDeptTree } from '@/libs/commonMeth';
 const bj_notification_type = outTypeList('bj_notification_type'); //通报类型
 const bj_category_onm = outTypeList('bj_category_onm'); //通报事项类别
 const bj_nl_released_status = outTypeList('bj_nl_released_status'); //通报事项清单发布状态
+const bj_lssuing_unit = outTypeList('bj_lssuing_unit'); //发出单位
 // 定义props
 interface IProps {
 	modalConfig: {

+ 1 - 2
src/views/notificationInfoManage/notificationListManage/config/search.config.ts

@@ -45,8 +45,7 @@ const searchConfig = {
 		{
 			label: '发出单位',
 			prop: 'deliveryUnit',
-			slotName: 'deliveryUnit',
-			type: 'custom',
+			type: 'select',
 			multiple: false,
 			options: [] as Array<Inew>,
 			placeholder: '请选择发出单位',

+ 4 - 10
src/views/notificationInfoManage/notificationListManage/index.vue

@@ -11,16 +11,6 @@
 					placeholder="请选择发布单位"
 				/>
 			</template>
-			<template #deliveryUnit="scope">
-				<el-tree-select
-					v-model="scope.value"
-					:data="treeData"
-					node-key="id"
-					filterable
-					@change="newVal => onMessageChange(scope, newVal)"
-					placeholder="请选择发出单位"
-				/>
-			</template>
 		</pageSearch>
 
 		<pageContent ref="tableListRef" :total="total" :contentConfig="contentConfig" :pageList="tableData">
@@ -99,6 +89,7 @@ import { TreeOptions } from '@/types/global';
 const bj_notification_type = outTypeList('bj_notification_type'); //通报类型
 const bj_category_onm = outTypeList('bj_category_onm'); //通报事项类别
 const bj_nl_released_status = outTypeList('bj_nl_released_status'); //通报事项清单发布状态
+const bj_lssuing_unit = outTypeList('bj_lssuing_unit'); //发出单位
 
 // 使用pinia数据
 const systemStore = useSystemStore();
@@ -194,6 +185,9 @@ async function searchItem() {
 		if (item.prop === 'releaseStatus') {
 			item.options = bj_nl_released_status;
 		}
+		if (item.prop === 'deliveryUnit') {
+			item.options = bj_lssuing_unit;
+		}
 	});
 }
 

+ 1 - 1
vite.config.ts

@@ -20,7 +20,7 @@ export default defineConfig(({ mode, command }) => {
 					changeOrigin: true,
 					// 接口地址
 					target: env.VITE_APP_API_URL,
-					rewrite: path => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), ''),
+					rewrite: path => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), 'api'),
 				},
 			},
 		},