lcl 8 місяців тому
батько
коміт
cd06cd772b

+ 7 - 1
src/views/app/appBottomNavs/hook.tsx

@@ -11,7 +11,7 @@ export function useAppBottomNavs() {
 
   });
   let form = reactive({
-    kind: "", //分类
+    kind: "creater", //分类
 
   });
   const dataList = ref([]);
@@ -193,6 +193,11 @@ export function useAppBottomNavs() {
     editUpdateFormData.value = row;
   };
 
+  // 分类选项数据
+  const kindOptionList = [
+    { label: '创客版', id: 'creater' }
+  ]
+
   return {
     form,
     loading,
@@ -203,6 +208,7 @@ export function useAppBottomNavs() {
     handleSizeChange,
     handleCurrentChange,
     handleSelectionChange,
+    kindOptionList,
     ruleFormRef,
 
     handleAdd,

+ 7 - 2
src/views/app/appBottomNavs/index.vue

@@ -34,6 +34,7 @@ const {
   editUpdateVisible,
   editUpdateFormData,
   handleDelete,
+  kindOptionList,
 
 } = useAppBottomNavs();
 // 关闭添加
@@ -65,8 +66,12 @@ provide('closeEditUpdateVisible', closeEditUpdateVisible)
       :rules="rules"
     )
       el-form-item(label='分类' prop="kind")
-        el-input(v-model='form.kind' autocomplete='off'
-          placeholder="请输入分类")
+        el-select(
+          v-model="form.kind",
+          placeholder="请选择分类",
+          clearable,
+        )
+          el-option(:label="item.label", :value="item.id" v-for="(item,index) in kindOptionList")
 
       el-form-item
         el-button(

+ 13 - 7
src/views/app/appVersion/hook.tsx

@@ -11,7 +11,7 @@ export function useAppVersion() {
 
   });
   let form = reactive({
-    kind: "", //分类
+    kind: "creater", //分类
 
   });
   const dataList = ref([]);
@@ -36,11 +36,6 @@ export function useAppVersion() {
       width: 70,
       hide: ({ checkList }) => !checkList.includes("序号列")
     },
-    {
-      label: "ID",
-      prop: "id",
-      minWidth: 200
-    },
     {
       label: "终端类型",
       prop: "terminalKind",
@@ -71,6 +66,11 @@ export function useAppVersion() {
       prop: "downloadUrl",
       minWidth: 200
     },
+    {
+      label: "ID",
+      prop: "id",
+      minWidth: 200
+    },
 
     {
       label: "操作",
@@ -147,7 +147,7 @@ export function useAppVersion() {
         type: "warning"
       }
     ).then(async () => {
-      const { status, msg }: any = await http.Request({ method: UrlList.kxsConfigServer.appVersiondelete.method, url: UrlList.kxsConfigServer.appVersiondelete.url, params: String(row.id) });
+      const { status, msg }: any = await http.Request({ method: UrlList.kxsConfigServer.appVersiondelete.method, url: UrlList.kxsConfigServer.appVersiondelete.url, params: row.id });
       if (status === 1) {
         ElMessage({
           message: "删除成功",
@@ -178,6 +178,11 @@ export function useAppVersion() {
     editUpdateFormData.value = row;
   };
 
+  // 分类选项数据
+  const kindOptionList = [
+    { label: '创客版', id: 'creater' }
+  ]
+
   return {
     form,
     loading,
@@ -188,6 +193,7 @@ export function useAppVersion() {
     handleSizeChange,
     handleCurrentChange,
     handleSelectionChange,
+    kindOptionList,
     ruleFormRef,
 
     handleAdd,

+ 8 - 3
src/views/app/appVersion/index.vue

@@ -34,6 +34,7 @@ const {
   editUpdateVisible,
   editUpdateFormData,
   handleDelete,
+  kindOptionList,
 
 } = useAppVersion();
 // 关闭添加
@@ -64,9 +65,13 @@ provide('closeEditUpdateVisible', closeEditUpdateVisible)
       ref="ruleFormRef"
       :rules="rules"
     )
-      el-form-item(label='分类' prop="kind")
-        el-input(v-model='form.kind' autocomplete='off'
-          placeholder="请输入分类")
+      el-form-item(label="分类", prop="kind")
+        el-select(
+          v-model="form.kind",
+          placeholder="请选择分类",
+          clearable,
+        )
+          el-option(:label="item.label", :value="item.id" v-for="(item,index) in kindOptionList")
 
       el-form-item
         el-button(

+ 7 - 1
src/views/app/fileUpdateInfo/hook.tsx

@@ -11,7 +11,7 @@ export function useFileUpdateInfo() {
 
   });
   let form = reactive({
-    kind: "", //分类
+    kind: "creater", //分类
 
   });
   const dataList = ref([]);
@@ -204,6 +204,11 @@ export function useFileUpdateInfo() {
     editUpVersionFormData.value = row;
   };
 
+  // 分类选项数据
+  const kindOptionList = [
+    { label: '创客版', id: 'creater' }
+  ]
+
   return {
     form,
     loading,
@@ -214,6 +219,7 @@ export function useFileUpdateInfo() {
     handleSizeChange,
     handleCurrentChange,
     handleSelectionChange,
+    kindOptionList,
     ruleFormRef,
 
     handleAdd,

+ 7 - 2
src/views/app/fileUpdateInfo/index.vue

@@ -39,6 +39,7 @@ const {
   handleSycn,
   editUpVersionVisible,
   editUpVersionFormData,
+  kindOptionList,
 
 } = useFileUpdateInfo();
 // 关闭添加
@@ -76,8 +77,12 @@ provide('closeEditUpVersionVisible', closeEditUpVersionVisible)
       :rules="rules"
     )
       el-form-item(label='分类' prop="kind")
-        el-input(v-model='form.kind' autocomplete='off'
-          placeholder="请输入分类")
+        el-select(
+          v-model="form.kind",
+          placeholder="请选择分类",
+          clearable,
+        )
+          el-option(:label="item.label", :value="item.id" v-for="(item,index) in kindOptionList")
 
       el-form-item
         el-button(

+ 7 - 1
src/views/app/pageUpdateInfo/hook.tsx

@@ -11,7 +11,7 @@ export function usePageUpdateInfo() {
 
   });
   let form = reactive({
-    kind: "", //分类
+    kind: "creater", //分类
 
   });
   const dataList = ref([]);
@@ -204,6 +204,11 @@ export function usePageUpdateInfo() {
     editUpVersionFormData.value = row;
   };
 
+  // 分类选项数据
+  const kindOptionList = [
+    { label: '创客版', id: 'creater' }
+  ]
+
   return {
     form,
     loading,
@@ -214,6 +219,7 @@ export function usePageUpdateInfo() {
     handleSizeChange,
     handleCurrentChange,
     handleSelectionChange,
+    kindOptionList,
     ruleFormRef,
 
     handleAdd,

+ 7 - 2
src/views/app/pageUpdateInfo/index.vue

@@ -39,6 +39,7 @@ const {
   handleSycn,
   editUpVersionVisible,
   editUpVersionFormData,
+  kindOptionList,
 
 } = usePageUpdateInfo();
 // 关闭添加
@@ -76,8 +77,12 @@ provide('closeEditUpVersionVisible', closeEditUpVersionVisible)
       :rules="rules"
     )
       el-form-item(label='分类' prop="kind")
-        el-input(v-model='form.kind' autocomplete='off'
-          placeholder="请输入分类")
+        el-select(
+          v-model="form.kind",
+          placeholder="请选择分类",
+          clearable,
+        )
+          el-option(:label="item.label", :value="item.id" v-for="(item,index) in kindOptionList")
 
       el-form-item
         el-button(