Quellcode durchsuchen

update: 快捷导航增加地点信息

cfort vor 2 Jahren
Ursprung
Commit
cf8d3e4de2

+ 8 - 3
src/views/system/dashboard/components/util.js

@@ -98,7 +98,8 @@ export function buildComponent (name, column, preview, vm) {
                     quickNavform: {
                         urlName: '',
                         urlAddr: '',
-                        display: '_blank'
+                        display: '_blank',
+                        diDian: second || first
                     },
                     defaultForm: {},
 
@@ -390,7 +391,8 @@ export function buildComponent (name, column, preview, vm) {
                         myTesting: 'rygl/kszx/wdks',
                         myDevices: 'sbgls/mywh',
                         notice: 'tygl/tzgg',
-                        myFacility: 'sshjgl/sshjjk/sshjkzzl'
+                        myFacility: 'sshjgl/sshjjk/sshjkzzl',
+                        quickNavigation: 'xtgl/xtsjpz/tyglpz/kjdhpz'
                     }
                     if (menuMap[url]) {
                         const alias = menuMap[url].split('/')[0]
@@ -403,7 +405,10 @@ export function buildComponent (name, column, preview, vm) {
                  * 处理更多
                  */
                 handleMore () {
-                    if (this.attrs.colUrl === '') {
+                    if (this.attrs.alias === 'quickNavigation') {
+                        return this.openPlate('quickNavigation')
+                    }
+                    if (!this.attrs.colUrl) {
                         return this.$message.warning('未设置更多路径的url')
                     }
                     this.openPlate(this.attrs.colUrl)

+ 1 - 1
src/views/system/dashboard/templates/quickNavigation.vue

@@ -5,7 +5,7 @@
             <span>快捷导航</span>
             <ibps-desktop-toolbar
                 ref="toolbar"
-                :actions="[{ key: 'add' }, { key: 'collapse' }]"
+                :actions="[{ key: 'add' }, { key: 'more' }, { key: 'collapse' }]"
                 @action-event="handleActionEvent"
             />
         </div>