Bladeren bron

其他修改

zhongxiaoyu 3 jaren geleden
bovenliggende
commit
e78e9bc0ed
3 gewijzigde bestanden met toevoegingen van 7 en 9 verwijderingen
  1. 1 2
      src/components/msgTree/index.vue
  2. 2 3
      src/utils/validate.js
  3. 4 4
      src/views/dashboard/index.vue

+ 1 - 2
src/components/msgTree/index.vue

@@ -1,10 +1,9 @@
 <!--
  * @Author: zk
  * @Date: 2022-02-09 15:47:09
- * @LastEditTime: 2022-03-30 14:21:01
+ * @LastEditTime: 2022-04-11 16:05:37
  * @LastEditors: your name
  * @Description: 用户组树
- * @FilePath: \Foshan4A4.0\src\components\usergrouptree\index.vue
 -->
 <template>
   <div class="userGroupTree">

+ 2 - 3
src/utils/validate.js

@@ -1,10 +1,9 @@
 /*
  * @Author: your name
  * @Date: 2021-12-13 09:43:22
- * @LastEditTime: 2022-04-06 17:43:49
+ * @LastEditTime: 2022-04-11 14:56:25
  * @LastEditors: your name
  * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- * @FilePath: \Foshan4A2.0\src\utils\validate.js
  */
 /**
  * Created by PanJiaChen on 16/11/18.
@@ -325,7 +324,7 @@ export function positiveIntegerValidator(rule, value, callback) {
   if (value.length === 0) {
     callback()
   } else if (/^[1-9][0-9]*$/.test(value)) {
-    value = parseInt(value)
+    value = Number(value)
     if (value < min) {
       rule.message = `不能小于${min}`
       callback(new Error('Size Error'))

+ 4 - 4
src/views/dashboard/index.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2021-10-14 17:17:53
- * @LastEditTime: 2022-04-01 10:59:05
+ * @LastEditTime: 2022-04-11 14:49:29
  * @LastEditors: your name
  * @Description: In User Settings Edit
  * @FilePath: \Foshan4A\src\views\dashboard\index.vue
@@ -19,8 +19,8 @@
           <el-dropdown
             placement="bottom"
             trigger="click"
-            @command="handleCommand"
             class="fl-list-button"
+            @command="handleCommand"
           >
             <div class="flex">
               <div class="fl-list-img">
@@ -386,14 +386,14 @@ export default {
                 break
             }
           })
-          if (parseInt(item.requestType) === 1) {
+          if (Number(item.requestType) === 1) {
             method = 'get'
             const form = document.createElement('form')
             form.action = item.appUrl + (url.length ? '?' + url.join('&') : '')
             form.target = '_blank'
             form.method = method
             form.style.display = 'none'
-            for (let key in params) {
+            for (const key in params) {
               const input = document.createElement('input')
               input.name = key
               input.value = params[key]