Selaa lähdekoodia

:lipstick: Updating the UI. fix some bug

冷冷 5 vuotta sitten
vanhempi
commit
478164e29c

+ 1 - 0
src/const/crud/admin/client.js

@@ -80,6 +80,7 @@ export const tableOption = {
     label: '授权模式',
     prop: 'authorizedGrantTypes',
     type: 'checkbox',
+    dataType: 'string',
     dicUrl: '/admin/dict/type/grant_types',
     align: 'center',
     overHidden: true,

+ 6 - 3
src/const/crud/admin/dict.js

@@ -44,10 +44,13 @@ export const tableOption = {
   }, {
     label: '字典类型',
     prop: 'system',
-    type: 'radio',
+    type: 'select',
     dicUrl: '/admin/dict/type/dict_type',
-    addDisplay: false,
-    editDisplay: false,
+    rules: [{
+      required: true,
+      message: '请输入字典类型',
+      trigger: 'blur'
+    }],
     search: true
   }, {
     label: '备注信息',

+ 7 - 3
src/const/crud/admin/sys-public-param.js

@@ -24,6 +24,7 @@ export const tableOption = {
       search: true,
       prop: 'publicName',
       rules: [
+        { required: true, message: '请输名称', trigger: 'blur' },
         { max: 30, message: '长度在 30 个字符', trigger: 'blur' },
         { validator: rule.validatorNameCn, trigger: 'blur'}
       ]
@@ -50,12 +51,15 @@ export const tableOption = {
       prop: 'validateCode'
     },
     {
-      label: '作用',
+      label: '类型',
       prop: 'system',
       type: 'select',
       dicUrl: '/admin/dict/type/dict_type',
-      addDisplay: false,
-      editDisplay: false,
+      rules: [{
+        required: true,
+        message: '请输入类型',
+        trigger: 'blur'
+      }],
       search: true
     },
     {

+ 3 - 3
src/page/wel.vue

@@ -4,9 +4,9 @@
       <div class="banner-text">
         <span>
           <a href="https://avue.top/#/pay" target="_blank">
-            <img src="https://img.shields.io/badge/Avue-2.1.2-green.svg" alt="Build Status">
+            <img src="https://img.shields.io/badge/Avue-2.2.0-green.svg" alt="Build Status">
           </a>
-          <img src="https://img.shields.io/badge/Spring%20Boot-2.1.9.RELEASE-yellowgreen.svg" alt="Downloads">
+          <img src="https://img.shields.io/badge/Spring%20Boot-2.1.10.RELEASE-yellowgreen.svg" alt="Downloads">
           <img src="https://img.shields.io/badge/Spring%20Cloud-Greenwich.SR3-blue.svg" alt="Coverage Status">
         </span>
         <br>
@@ -15,7 +15,7 @@
             <el-collapse-item title="完整的微服务架构" name="1">
               <div>基于Spring Cloud Gateway</div>
               <div>基于Spring Cloud Greenwich.SR3</div>
-              <div>基于Spring Boot 2.1.9.RELEASE</div>
+              <div>基于Spring Boot 2.1.10.RELEASE</div>
             </el-collapse-item>
             <el-collapse-item title="完善的权限控制" name="2">
               <div>基于Spring Security OAuth实现鉴权体系;</div>

+ 5 - 5
src/views/admin/client/index.vue

@@ -94,12 +94,13 @@
                 })
             },
             handleUpdate: function (row, index, done) {
-                if (row.accessTokenValidity === 0) {
+                if (row.accessTokenValidity === undefined) {
                     row.accessTokenValidity = 60 * 60 * 12
                 }
-                if (row.refreshTokenValidity === 0) {
+                if (row.refreshTokenValidity === undefined) {
                     row.refreshTokenValidity = 60 * 60 * 24 * 30
                 }
+
                 putObj(row).then(() => {
                     this.$message.success('修改成功');
                     this.refreshChange()
@@ -107,11 +108,10 @@
                 })
             },
             handleSave: function (row, done) {
-                row.authorizedGrantTypes = row.authorizedGrantTypes.join(',')
-                if (row.accessTokenValidity === 0) {
+                if (row.accessTokenValidity === undefined) {
                     row.accessTokenValidity = 60 * 60 * 12
                 }
-                if (row.refreshTokenValidity === 0) {
+                if (row.refreshTokenValidity === undefined) {
                     row.refreshTokenValidity = 60 * 60 * 24 * 30
                 }
                 addObj(row).then(() => {

+ 1 - 1
src/views/admin/file/index.vue

@@ -113,7 +113,7 @@ export default {
       this.getList(this.page, form)
     },
     refreshChange() {
-      this.searchForm = form
+      this.searchForm = this.form
       this.getList(this.page)
     },
     download: function(row, index) {