Просмотр исходного кода

[fix]
完善字段描述,解决bug

chenchen 1 месяц назад
Родитель
Сommit
fbccfc404c

+ 11 - 0
src/api/system/DictionaryController.ts

@@ -387,4 +387,15 @@ export default class DictionaryController extends BaseController {
         });
     });
   }
+  static dictDirectoryInfoByType(params: ANY_OBJECT, httpOptions?: RequestOption) {
+    return new Promise<DictionaryBase>((resolve, reject) => {
+      super.get<DictData[]>('/admin/app/directoryInfo/listDictByType', params, httpOptions)
+        .then(res => {
+          let dictData = new DictionaryBase('门户菜单字典', res.data);
+          resolve(dictData);
+        }).catch(err => {
+          reject(err);
+        });
+    });
+  }
 }

+ 1 - 1
src/pages/tourismProject/formTourismProject.vue

@@ -623,7 +623,7 @@ const loadBelongTabFilterDropdownList = (): Promise<ListData<DictData>> => {
     const params = {
       directoryType: 1,
     };
-    DictionaryController.dictDirectoryInfoBytype(params)
+    DictionaryController.dictDirectoryInfoByType(params)
       .then(res => {
         resolve({
           dataList: res.getList(),

+ 2 - 2
src/pages/tourismProject/verifyTourismProjectDatePrice.vue

@@ -93,7 +93,7 @@ const gridOptions = reactive<VxeGridProps>({
       field: 'adultPrice',
       width: 150,
       editRender: {},
-      title: '成人价格(元/人)',
+      title: '成人价格',
       slots: {
         edit({ row }) {
           return (
@@ -110,7 +110,7 @@ const gridOptions = reactive<VxeGridProps>({
       field: 'childrenPrice',
       width: 150,
       editRender: {},
-      title: '儿童价格(元/人)',
+      title: '儿童价格',
       slots: {
         edit({ row }) {
           return (