Browse Source

应用管理应用类型从字典获取

wangzhiqiang 2 weeks ago
parent
commit
a49e313cc6
1 changed files with 3 additions and 17 deletions
  1. 3 17
      src/views/main/outBagModule/appAdmin.vue

+ 3 - 17
src/views/main/outBagModule/appAdmin.vue

@@ -92,8 +92,7 @@
           <el-col :span="10">
             <el-form-item label="应用类型:" prop="appType">
               <el-select v-model="formEdit.appType">
-                <el-option :value="1" label="Android" />
-                <el-option :value="2" label="IOS" />
+                <el-option v-for="item in getOptions('app_type')" :key="item.label" :value="item.value" :label="item.label" />
               </el-select>
             </el-form-item>
           </el-col>
@@ -169,7 +168,7 @@ import { usePermission } from '@/hooks/usePermission.js'
 import { promoterUserAssignment, promoterUserAssignmentDelete, promoterUserQueryList } from "@/api/outBagModule.js";
 
 const { checkPermission } = usePermission()
-const { loadDictData, getDictionaryName } = useGetDictList();
+const { loadDictData, getDictionaryName, getOptions } = useGetDictList();
 const tableData = ref([]);
 
 // 分页参数, 供table使用
@@ -213,20 +212,7 @@ const settingData = () => {
         label: "应用类型",
         prop: "appType",
         type: "select",
-        options: [
-          {
-            label: "全部",
-            value: null,
-          },
-          {
-            label: "Android",
-            value: 1,
-          },
-          {
-            label: "IOS",
-            value: 2,
-          },
-        ],
+        options: getOptions('app_type')
       },
     ];
   });