ソースを参照

feat: fix typo

gemercheung 11 ヶ月 前
コミット
d03eafba6a

+ 1 - 1
src/store/permission.ts

@@ -19,7 +19,7 @@ changSaveLocal("permission", () => permission.value);
  * @param routeNames 所有路由
  */
 export const getPermissionRoutes = (routeNames: string[]) => {
-  console.error(permission.value);
+  console.warn(permission.value);
   return routeNames
     .filter((routeName) =>
       permission.value.some((p) => p.resourceKey === routeName)

+ 19 - 4
src/view/organization/edit.vue

@@ -12,6 +12,7 @@
         <el-radio
           v-for="option in deptTypeOptions"
           :label="option.value"
+          :value="option.value"
           :key="option.value"
         >
           {{ option.label }}
@@ -25,11 +26,20 @@
         :modelValue="superiorValue"
         @update:modelValue="(val: string[]) => updateSuperiorValue(val)"
         :options="organTrees"
-        :props="{ checkStrictly: true, label: 'name', value: 'id', disabled: 'disabled' }"
+        :props="{
+          checkStrictly: true,
+          label: 'name',
+          value: 'id',
+          disabled: 'disabled',
+        }"
       />
     </el-form-item>
     <el-form-item label="负责人">
-      <el-input v-model="bindDept.leader" maxlength="30" placeholder="请输入"></el-input>
+      <el-input
+        v-model="bindDept.leader"
+        maxlength="30"
+        placeholder="请输入"
+      ></el-input>
     </el-form-item>
     <el-form-item label="联系电话">
       <el-input
@@ -63,7 +73,10 @@ import { QuiskExpose } from "@/helper/mount";
 
 const props = defineProps<{ dept?: Organization }>();
 
-const queryPathById = (id: string, current: Organization[]): string[] | null => {
+const queryPathById = (
+  id: string,
+  current: Organization[]
+): string[] | null => {
   for (const item of current) {
     if (item.id === id) {
       return [item.id];
@@ -76,7 +89,9 @@ const queryPathById = (id: string, current: Organization[]): string[] | null =>
   }
   return null;
 };
-const bindDept = ref<Organization>((props.dept ? { ...props.dept } : {}) as Organization);
+const bindDept = ref<Organization>(
+  (props.dept ? { ...props.dept } : {}) as Organization
+);
 const organTrees = ref<Organization[]>([]);
 const superiorValue = computed(() => {
   if (bindDept.value.parentId) {

+ 12 - 3
src/view/setting/index.vue

@@ -1,5 +1,6 @@
 <template>
-  <com-head :options="[{ name: '系统设置', value: '2' }]" notContent> </com-head>
+  <com-head :options="[{ name: '系统设置', value: '2' }]" notContent>
+  </com-head>
 
   <div class="body-layer" style="padding: 24px" v-loading="loading">
     <el-form :model="form" label-width="auto" style="max-width: 600px">
@@ -13,8 +14,16 @@
       </el-form-item>
       <el-form-item label="系统主题色">
         <el-radio-group v-model="form.color">
-          <el-radio :label="color" size="large" v-for="color in themeColors">
-            <span class="radio-box" :style="{ 'background-color': '#' + color }"></span>
+          <el-radio
+            :value="color"
+            :label="color"
+            size="large"
+            v-for="color in themeColors"
+          >
+            <span
+              class="radio-box"
+              :style="{ 'background-color': '#' + color }"
+            ></span>
           </el-radio>
         </el-radio-group>
       </el-form-item>

+ 1 - 0
src/view/window/role/edit.vue

@@ -56,6 +56,7 @@
                 v-for="item in scopeOptions"
                 :key="item.id"
                 :label="item.id"
+                :value="item.id"
                 size="large"
                 >{{ item.value }}</el-radio
               >