eoss-ui 0.5.96 → 0.5.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/button-group.js +6 -2
- package/lib/button.js +6 -2
- package/lib/checkbox-group.js +6 -2
- package/lib/data-table-form.js +6 -2
- package/lib/data-table.js +28 -16
- package/lib/date-picker.js +6 -2
- package/lib/dialog.js +6 -2
- package/lib/eoss-ui.common.js +342 -266
- package/lib/flow-group.js +6 -2
- package/lib/flow-list.js +6 -2
- package/lib/flow.js +6 -2
- package/lib/form.js +6 -2
- package/lib/handle-user.js +6 -2
- package/lib/handler.js +17 -9
- package/lib/icon.js +6 -2
- package/lib/icons.js +1 -1
- package/lib/index.js +1 -1
- package/lib/input-number.js +6 -2
- package/lib/input.js +6 -2
- package/lib/login.js +9 -5
- package/lib/main.js +284 -220
- package/lib/nav.js +6 -2
- package/lib/page.js +6 -2
- package/lib/pagination.js +6 -2
- package/lib/player.js +6 -2
- package/lib/qr-code.js +6 -2
- package/lib/radio-group.js +6 -2
- package/lib/retrial-auth.js +6 -2
- package/lib/select-ganged.js +6 -2
- package/lib/select.js +6 -2
- package/lib/selector-panel.js +6 -2
- package/lib/selector.js +6 -2
- package/lib/sizer.js +6 -2
- package/lib/steps.js +6 -2
- package/lib/switch.js +6 -2
- package/lib/table-form.js +6 -2
- package/lib/tabs.js +6 -2
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff +0 -0
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/simplicity.css +1 -1
- package/lib/theme-chalk/sizer.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/tips.js +6 -2
- package/lib/tree-group.js +6 -2
- package/lib/tree.js +6 -2
- package/lib/upload.js +6 -2
- package/lib/utils/util.js +6 -2
- package/lib/wujie.js +6 -2
- package/lib/wxlogin.js +6 -2
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/data-table/src/main.vue +18 -12
- package/packages/handler/.DS_Store +0 -0
- package/packages/handler/src/main.vue +11 -6
- package/packages/icons/src/icon.json +1 -1
- package/packages/login/.DS_Store +0 -0
- package/packages/login/src/main.vue +1 -1
- package/packages/main/.DS_Store +0 -0
- package/packages/main/src/.DS_Store +0 -0
- package/packages/main/src/default/index.vue +19 -3
- package/packages/main/src/default/settings.vue +2 -2
- package/packages/main/src/main.vue +25 -4
- package/packages/main/src/simplicity/handler.vue +32 -28
- package/packages/main/src/simplicity/index.vue +46 -39
- package/packages/theme-chalk/lib/base.css +1 -1
- package/packages/theme-chalk/lib/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/lib/icon.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/main.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/lib/simplicity.css +1 -1
- package/packages/theme-chalk/lib/sizer.css +1 -1
- package/packages/theme-chalk/lib/upload.css +1 -1
- package/packages/theme-chalk/src/.DS_Store +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/src/icon.scss +8 -0
- package/packages/theme-chalk/src/mixins/util.scss +0 -0
- package/packages/theme-chalk/src/simplicity.scss +160 -0
- package/src/.DS_Store +0 -0
- package/src/index.js +1 -1
- package/src/utils/util.js +6 -2
package/lib/tips.js
CHANGED
|
@@ -2175,6 +2175,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2175
2175
|
next && next();
|
|
2176
2176
|
} else {
|
|
2177
2177
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
2178
|
+
var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
|
|
2178
2179
|
ajax({
|
|
2179
2180
|
method: 'post',
|
|
2180
2181
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
|
@@ -2273,7 +2274,10 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2273
2274
|
}
|
|
2274
2275
|
});
|
|
2275
2276
|
}
|
|
2276
|
-
|
|
2277
|
+
loadingInstance.close();
|
|
2278
|
+
}).catch(function (e) {
|
|
2279
|
+
loadingInstance.close();
|
|
2280
|
+
});
|
|
2277
2281
|
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2278
2282
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2279
2283
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
@@ -2676,7 +2680,7 @@ var setScale = function setScale() {
|
|
|
2676
2680
|
} else {
|
|
2677
2681
|
n = 1;
|
|
2678
2682
|
}
|
|
2679
|
-
if (zoom === 1) {
|
|
2683
|
+
if (zoom === 1 && window.innerWidth === width) {
|
|
2680
2684
|
document.body.style.removeProperty('transform');
|
|
2681
2685
|
document.body.style.removeProperty('width');
|
|
2682
2686
|
document.body.style.removeProperty('height');
|
package/lib/tree-group.js
CHANGED
|
@@ -2175,6 +2175,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2175
2175
|
next && next();
|
|
2176
2176
|
} else {
|
|
2177
2177
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
2178
|
+
var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
|
|
2178
2179
|
ajax({
|
|
2179
2180
|
method: 'post',
|
|
2180
2181
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
|
@@ -2273,7 +2274,10 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2273
2274
|
}
|
|
2274
2275
|
});
|
|
2275
2276
|
}
|
|
2276
|
-
|
|
2277
|
+
loadingInstance.close();
|
|
2278
|
+
}).catch(function (e) {
|
|
2279
|
+
loadingInstance.close();
|
|
2280
|
+
});
|
|
2277
2281
|
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2278
2282
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2279
2283
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
@@ -2676,7 +2680,7 @@ var setScale = function setScale() {
|
|
|
2676
2680
|
} else {
|
|
2677
2681
|
n = 1;
|
|
2678
2682
|
}
|
|
2679
|
-
if (zoom === 1) {
|
|
2683
|
+
if (zoom === 1 && window.innerWidth === width) {
|
|
2680
2684
|
document.body.style.removeProperty('transform');
|
|
2681
2685
|
document.body.style.removeProperty('width');
|
|
2682
2686
|
document.body.style.removeProperty('height');
|
package/lib/tree.js
CHANGED
|
@@ -2175,6 +2175,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2175
2175
|
next && next();
|
|
2176
2176
|
} else {
|
|
2177
2177
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
2178
|
+
var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
|
|
2178
2179
|
ajax({
|
|
2179
2180
|
method: 'post',
|
|
2180
2181
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
|
@@ -2273,7 +2274,10 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2273
2274
|
}
|
|
2274
2275
|
});
|
|
2275
2276
|
}
|
|
2276
|
-
|
|
2277
|
+
loadingInstance.close();
|
|
2278
|
+
}).catch(function (e) {
|
|
2279
|
+
loadingInstance.close();
|
|
2280
|
+
});
|
|
2277
2281
|
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2278
2282
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2279
2283
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
@@ -2676,7 +2680,7 @@ var setScale = function setScale() {
|
|
|
2676
2680
|
} else {
|
|
2677
2681
|
n = 1;
|
|
2678
2682
|
}
|
|
2679
|
-
if (zoom === 1) {
|
|
2683
|
+
if (zoom === 1 && window.innerWidth === width) {
|
|
2680
2684
|
document.body.style.removeProperty('transform');
|
|
2681
2685
|
document.body.style.removeProperty('width');
|
|
2682
2686
|
document.body.style.removeProperty('height');
|
package/lib/upload.js
CHANGED
|
@@ -2174,6 +2174,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2174
2174
|
next && next();
|
|
2175
2175
|
} else {
|
|
2176
2176
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
2177
|
+
var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
|
|
2177
2178
|
ajax({
|
|
2178
2179
|
method: 'post',
|
|
2179
2180
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
|
@@ -2272,7 +2273,10 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2272
2273
|
}
|
|
2273
2274
|
});
|
|
2274
2275
|
}
|
|
2275
|
-
|
|
2276
|
+
loadingInstance.close();
|
|
2277
|
+
}).catch(function (e) {
|
|
2278
|
+
loadingInstance.close();
|
|
2279
|
+
});
|
|
2276
2280
|
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2277
2281
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2278
2282
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
@@ -2675,7 +2679,7 @@ var setScale = function setScale() {
|
|
|
2675
2679
|
} else {
|
|
2676
2680
|
n = 1;
|
|
2677
2681
|
}
|
|
2678
|
-
if (zoom === 1) {
|
|
2682
|
+
if (zoom === 1 && window.innerWidth === width) {
|
|
2679
2683
|
document.body.style.removeProperty('transform');
|
|
2680
2684
|
document.body.style.removeProperty('width');
|
|
2681
2685
|
document.body.style.removeProperty('height');
|
package/lib/utils/util.js
CHANGED
|
@@ -2092,6 +2092,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2092
2092
|
next && next();
|
|
2093
2093
|
} else {
|
|
2094
2094
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
2095
|
+
var loadingInstance = _eossElement.Loading.service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
|
|
2095
2096
|
ajax({
|
|
2096
2097
|
method: 'post',
|
|
2097
2098
|
url: _api.authCenter,
|
|
@@ -2190,7 +2191,10 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2190
2191
|
}
|
|
2191
2192
|
});
|
|
2192
2193
|
}
|
|
2193
|
-
|
|
2194
|
+
loadingInstance.close();
|
|
2195
|
+
}).catch(function (e) {
|
|
2196
|
+
loadingInstance.close();
|
|
2197
|
+
});
|
|
2194
2198
|
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2195
2199
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2196
2200
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
@@ -2593,7 +2597,7 @@ var setScale = function setScale() {
|
|
|
2593
2597
|
} else {
|
|
2594
2598
|
n = 1;
|
|
2595
2599
|
}
|
|
2596
|
-
if (zoom === 1) {
|
|
2600
|
+
if (zoom === 1 && window.innerWidth === width) {
|
|
2597
2601
|
document.body.style.removeProperty('transform');
|
|
2598
2602
|
document.body.style.removeProperty('width');
|
|
2599
2603
|
document.body.style.removeProperty('height');
|
package/lib/wujie.js
CHANGED
|
@@ -2175,6 +2175,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2175
2175
|
next && next();
|
|
2176
2176
|
} else {
|
|
2177
2177
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
2178
|
+
var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
|
|
2178
2179
|
ajax({
|
|
2179
2180
|
method: 'post',
|
|
2180
2181
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
|
@@ -2273,7 +2274,10 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2273
2274
|
}
|
|
2274
2275
|
});
|
|
2275
2276
|
}
|
|
2276
|
-
|
|
2277
|
+
loadingInstance.close();
|
|
2278
|
+
}).catch(function (e) {
|
|
2279
|
+
loadingInstance.close();
|
|
2280
|
+
});
|
|
2277
2281
|
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2278
2282
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2279
2283
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
@@ -2676,7 +2680,7 @@ var setScale = function setScale() {
|
|
|
2676
2680
|
} else {
|
|
2677
2681
|
n = 1;
|
|
2678
2682
|
}
|
|
2679
|
-
if (zoom === 1) {
|
|
2683
|
+
if (zoom === 1 && window.innerWidth === width) {
|
|
2680
2684
|
document.body.style.removeProperty('transform');
|
|
2681
2685
|
document.body.style.removeProperty('width');
|
|
2682
2686
|
document.body.style.removeProperty('height');
|
package/lib/wxlogin.js
CHANGED
|
@@ -2175,6 +2175,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2175
2175
|
next && next();
|
|
2176
2176
|
} else {
|
|
2177
2177
|
if (!token && Object.prototype.hasOwnProperty.call(to.query, 'serverId') && Object.prototype.hasOwnProperty.call(to.query, 'authType')) {
|
|
2178
|
+
var loadingInstance = eoss_element__WEBPACK_IMPORTED_MODULE_5__["Loading"].service({ text: '页面加载中', spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.65)' });
|
|
2178
2179
|
ajax({
|
|
2179
2180
|
method: 'post',
|
|
2180
2181
|
url: _config_api__WEBPACK_IMPORTED_MODULE_0__[/* authCenter */ "b"],
|
|
@@ -2273,7 +2274,10 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2273
2274
|
}
|
|
2274
2275
|
});
|
|
2275
2276
|
}
|
|
2276
|
-
|
|
2277
|
+
loadingInstance.close();
|
|
2278
|
+
}).catch(function (e) {
|
|
2279
|
+
loadingInstance.close();
|
|
2280
|
+
});
|
|
2277
2281
|
} else if (token || to.path === '/' || to.path === '/404' || to.path === '/error' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2278
2282
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2279
2283
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
@@ -2676,7 +2680,7 @@ var setScale = function setScale() {
|
|
|
2676
2680
|
} else {
|
|
2677
2681
|
n = 1;
|
|
2678
2682
|
}
|
|
2679
|
-
if (zoom === 1) {
|
|
2683
|
+
if (zoom === 1 && window.innerWidth === width) {
|
|
2680
2684
|
document.body.style.removeProperty('transform');
|
|
2681
2685
|
document.body.style.removeProperty('width');
|
|
2682
2686
|
document.body.style.removeProperty('height');
|
package/package.json
CHANGED
package/packages/.DS_Store
CHANGED
|
Binary file
|
|
@@ -454,9 +454,13 @@ export default {
|
|
|
454
454
|
default: true
|
|
455
455
|
},
|
|
456
456
|
index: {
|
|
457
|
-
type: [
|
|
457
|
+
type: [Number, Function],
|
|
458
458
|
default: 1
|
|
459
459
|
},
|
|
460
|
+
accumulated: {
|
|
461
|
+
type: Boolean,
|
|
462
|
+
default: true
|
|
463
|
+
},
|
|
460
464
|
immediate: {
|
|
461
465
|
type: Boolean,
|
|
462
466
|
default: true
|
|
@@ -594,17 +598,19 @@ export default {
|
|
|
594
598
|
}
|
|
595
599
|
if (this.numbers && !types.includes('index')) {
|
|
596
600
|
let index = 1;
|
|
597
|
-
if (this.
|
|
598
|
-
index =
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
601
|
+
if (typeof this.index === 'function') {
|
|
602
|
+
index = this.index;
|
|
603
|
+
} else {
|
|
604
|
+
if (this.orders == 'desc') {
|
|
605
|
+
index = (num) => {
|
|
606
|
+
return this.config.totalCount - num;
|
|
607
|
+
};
|
|
608
|
+
} else if (this.accumulated) {
|
|
609
|
+
index =
|
|
610
|
+
(this.config.pageNum - 1) * this.config.pageSize + this.index;
|
|
611
|
+
} else {
|
|
612
|
+
index = this.index;
|
|
613
|
+
}
|
|
608
614
|
}
|
|
609
615
|
thead.push({
|
|
610
616
|
type: 'index',
|
|
Binary file
|
|
@@ -135,7 +135,7 @@ export default {
|
|
|
135
135
|
hide: {
|
|
136
136
|
type: Object,
|
|
137
137
|
default() {
|
|
138
|
-
return { system: true };
|
|
138
|
+
return { system: true, new: true };
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
141
|
online: {
|
|
@@ -217,16 +217,21 @@ export default {
|
|
|
217
217
|
icon: 'es-icon-zuomian',
|
|
218
218
|
title: '个人工作台'
|
|
219
219
|
},
|
|
220
|
-
{
|
|
221
|
-
type: 'notice',
|
|
222
|
-
icon: 'es-icon-tongzhi',
|
|
223
|
-
title: '通知消息'
|
|
224
|
-
},
|
|
225
220
|
{
|
|
226
221
|
type: 'index',
|
|
227
222
|
icon: 'es-icon-home',
|
|
228
223
|
title: '门户'
|
|
229
224
|
},
|
|
225
|
+
{
|
|
226
|
+
type: 'new',
|
|
227
|
+
icon: 'es-icon-tiyanxinban',
|
|
228
|
+
title: '体验新版'
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
type: 'notice',
|
|
232
|
+
icon: 'es-icon-tongzhi',
|
|
233
|
+
title: '通知消息'
|
|
234
|
+
},
|
|
230
235
|
{
|
|
231
236
|
type: 'refresh',
|
|
232
237
|
icon: 'es-icon-shuaxin',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
["zuomian","monitor","maximize","pointer-up","pointer-left","pointer-down","tri-down","retrograde","rainfall","caveat","print","alarm","table","duigouquan","bumen","mm","accelerate","quanping","password","qing","kaifa","daoru","piaochongicon","instructions","notice","wifi","tishicuo","minganciguanli","switch-off","switch-on","narrow","yidongduan","web","upload","message","go-back","close","shujutongji","folder","edit","enter","dian","wendu","shangwu","shenbao","magnifier","project-add","xiexian","caidan","tupian","yinyu","wenhao","template","daiban","set","zhengwen","cuowu","chenggong","indent","increase","ziliaoku","tuichu","quit","leaf","refresh","statistic","gengduo","lvyou","mail","user","zhishi","weizhi","jinggao","zuzhijigou","xue","fenxiang","jinrong","shanchu","jianhao","jiahao","yinzhang","renyuanqiehuan","gouxuanzhong1","circle","fuxuankuang1","fangkuang","application","wenjianjia","jiaren","xiugai","duanxinguanli","workbench","rizhi","gongwen","qingshi","shiwu","official","baogao","document","wodeyouxiang","ziliaojiaohuan","denglu","podium","fangkuai","xuewei","duoyun","pm","xiajia","huanbao","dunpai","shu","gongzuozheng","more","fenlei","delete","fengsu","bar","yuanqu","duomeiti","youjian","qiye","zuixinzixun","biaoge","omit","diaotou","jiantou-left","jiantou-right","jiantou-up","roles","jiantou-next","chijiuhuacunchu","zhuanhuan","cloudy","form","wuye","tri-up","pointer-right","bianji","tri-right","tri-left","daimaguanli","jiankong","kaifazhong","fujian","bingtu","zhuzhuangtu","lose","rmb","move","xiazai","yiban","laoshi","clear","jinyong","yunxing","weihu","chakan","pifu","ren","gouwuche","loading2","yulan","ziliao","yidong","fenxiang11","kaoqin","change","shidu","portfolio","info","yanjing","laba","camera","xitongxiaoxi","xitongguanli","webduan","wagnz","group","shengqian","jiantou-prev","attention","look","guanzhu","daikuan","tubiao","duigou","star","dayin","xinzeng","reduce","goup","calendar","tree","yingyong","caution","zhuanfa","add","zongtiqixian","daochu","gongwu","ihouse","chilun","weixiu","chengguo","trophy","duiwu","qiehuanjiaose","door","shebei","fangjian","microscope","huaxue","shiyanshianquan","shiyan","qiyexinxi","yewuxinxi","lab","shiyanguanli","yuqing","big-screen","signal-search","database","star-mark","cng","professor","informatization","code","science","price","xunhuan","savings","administration","aid","biao","line","xietong","jingzheng","enterprise","datatable","toubiao","bingdu","keji2","qiyeku5","touzi5","zijinliu","zhishichanquan3","kejifuwu2","zhishichanquan2","zijinanquan","kejifuwu1","geju","yiqingfangkong","kejifuwu","anquanfangkong","shujufuwu","shujuceng","shujugongxiang","flows","setup","shujulian","caiwujianguan","caiwuliushui","mubiaogeju","juxing","fuwuqi","touzijigou","xiezilou","jianzhu","logo","touzhi","zijin","fintech","touzixiangmu","library","touziguanli","zhongda","ziyuan","shujutai","shujudongtai","bank","shujuzhongxin","zhongyaomubiao","touzishijian","caiwuguanli","mingzhong","touzishenpi","jingzhenggeju","property","keji","qiyeku","zhongyaojihui","touzilicai","zhishichanquan","touzi","tzz","menu","xiangmushu","pdf","jiazai","gongsi","rise","jbxx","zwxx","jypx","jcgl","ndkh","grjl","shgx","gou","shijian","fukuan","guoji","shoukuan","down","gongzuotai","gaigedongtai","xitongshezhi","relation","zuzhirenshi","kaohepingjia","caiwujiandu","sanzhongyida","mima","xianshi","zhanghao","bangongshi","checked","checke","help","kuoda","banli","xiaoxi","shouqicaidan","shouqicaidan-right","smile","tongzhi","guanji","shuaxin","guiji","tianjiawenjianjia","yunxiazai","del","touzifangan","zongheguanli","sanzhongyida_mian","gongwenguanli1","heguiguanli","jingyingfenxi","txl","diannao","renliziyuan","caiwuxitong","shiwuguanli","shouye","bangongyongpin","sidebar","zhidulashi","log","fawenguanli","huiyiguanli","zuzhishishi","gongwenqianshou","jinxiupeixun","gongwenbao","jiaohuan","daibanshixiang","richeng","tongxunlu","yongche","yanzheng","daibanxinxi","shuben","fanfu","guangbo","shuzhuangtu","bengqiye","tongguo","dengdai","cross","daichuli","zhenggai","shouli","shujuhecha","guanli","paper-file","wenjian","dakaiwenjian","yewu","jiance","jiheguanli","jinru","arrow-right","lingdao","rencai","prev","next","jianpan","qrcode","bohui","homepage","download","gantanhao","dingding","weixin","pad","ios","android","txt","doc","audioo","video","zip","shuru","duanxin","saoma","youxiang","word","excel","fileword","picture","ppt","ca","usb-key","wenjianjiadakai","yingyonglan","home"]
|
|
1
|
+
["zuomian","monitor","maximize","pointer-up","pointer-left","pointer-down","tri-down","retrograde","rainfall","caveat","print","alarm","table","duigouquan","bumen","mm","accelerate","quanping","password","qing","kaifa","daoru","piaochongicon","instructions","notice","wifi","tishicuo","minganciguanli","switch-off","switch-on","narrow","yidongduan","web","upload","message","go-back","close","shujutongji","folder","edit","enter","dian","wendu","shangwu","shenbao","magnifier","project-add","xiexian","caidan","tupian","yinyu","wenhao","template","daiban","set","zhengwen","cuowu","chenggong","indent","increase","ziliaoku","tuichu","quit","leaf","refresh","statistic","gengduo","lvyou","mail","user","zhishi","weizhi","jinggao","zuzhijigou","xue","fenxiang","jinrong","shanchu","jianhao","jiahao","yinzhang","renyuanqiehuan","gouxuanzhong1","circle","fuxuankuang1","fangkuang","application","wenjianjia","jiaren","xiugai","duanxinguanli","workbench","rizhi","gongwen","qingshi","shiwu","official","baogao","document","wodeyouxiang","ziliaojiaohuan","denglu","podium","fangkuai","xuewei","duoyun","pm","xiajia","huanbao","dunpai","shu","gongzuozheng","more","fenlei","delete","fengsu","bar","yuanqu","duomeiti","youjian","qiye","zuixinzixun","biaoge","omit","diaotou","jiantou-left","jiantou-right","jiantou-up","roles","jiantou-next","chijiuhuacunchu","zhuanhuan","cloudy","form","wuye","tri-up","pointer-right","bianji","tri-right","tri-left","daimaguanli","jiankong","kaifazhong","fujian","bingtu","zhuzhuangtu","lose","rmb","move","xiazai","yiban","laoshi","clear","jinyong","yunxing","weihu","chakan","pifu","ren","gouwuche","loading2","yulan","ziliao","yidong","fenxiang11","kaoqin","change","shidu","portfolio","info","yanjing","laba","camera","xitongxiaoxi","xitongguanli","webduan","wagnz","group","shengqian","jiantou-prev","attention","look","guanzhu","daikuan","tubiao","duigou","star","dayin","xinzeng","reduce","goup","calendar","tree","yingyong","caution","zhuanfa","add","zongtiqixian","daochu","gongwu","ihouse","chilun","weixiu","chengguo","trophy","duiwu","qiehuanjiaose","door","shebei","fangjian","microscope","huaxue","shiyanshianquan","shiyan","qiyexinxi","yewuxinxi","lab","shiyanguanli","yuqing","big-screen","signal-search","database","star-mark","cng","professor","informatization","code","science","price","xunhuan","savings","administration","aid","biao","line","xietong","jingzheng","enterprise","datatable","toubiao","bingdu","keji2","qiyeku5","touzi5","zijinliu","zhishichanquan3","kejifuwu2","zhishichanquan2","zijinanquan","kejifuwu1","geju","yiqingfangkong","kejifuwu","anquanfangkong","shujufuwu","shujuceng","shujugongxiang","flows","setup","shujulian","caiwujianguan","caiwuliushui","mubiaogeju","juxing","fuwuqi","touzijigou","xiezilou","jianzhu","logo","touzhi","zijin","fintech","touzixiangmu","library","touziguanli","zhongda","ziyuan","shujutai","shujudongtai","bank","shujuzhongxin","zhongyaomubiao","touzishijian","caiwuguanli","mingzhong","touzishenpi","jingzhenggeju","property","keji","qiyeku","zhongyaojihui","touzilicai","zhishichanquan","touzi","tzz","menu","xiangmushu","pdf","jiazai","gongsi","rise","jbxx","zwxx","jypx","jcgl","ndkh","grjl","shgx","gou","shijian","fukuan","guoji","shoukuan","down","gongzuotai","gaigedongtai","xitongshezhi","relation","zuzhirenshi","kaohepingjia","caiwujiandu","sanzhongyida","mima","xianshi","zhanghao","bangongshi","checked","checke","help","kuoda","banli","xiaoxi","shouqicaidan","shouqicaidan-right","smile","tongzhi","guanji","shuaxin","guiji","tianjiawenjianjia","yunxiazai","del","touzifangan","zongheguanli","sanzhongyida_mian","gongwenguanli1","heguiguanli","jingyingfenxi","txl","diannao","renliziyuan","caiwuxitong","shiwuguanli","shouye","bangongyongpin","sidebar","zhidulashi","log","fawenguanli","huiyiguanli","zuzhishishi","gongwenqianshou","jinxiupeixun","gongwenbao","jiaohuan","daibanshixiang","richeng","tongxunlu","yongche","yanzheng","daibanxinxi","shuben","fanfu","guangbo","shuzhuangtu","bengqiye","tongguo","dengdai","cross","daichuli","zhenggai","shouli","shujuhecha","guanli","paper-file","wenjian","dakaiwenjian","yewu","jiance","jiheguanli","jinru","arrow-right","lingdao","rencai","prev","next","jianpan","qrcode","bohui","homepage","download","gantanhao","dingding","weixin","pad","ios","android","txt","doc","audioo","video","zip","shuru","duanxin","saoma","youxiang","word","excel","fileword","picture","ppt","ca","usb-key","wenjianjiadakai","yingyonglan","home","tiyanxinban","shiyongjiuban"]
|
package/packages/login/.DS_Store
CHANGED
|
Binary file
|
package/packages/main/.DS_Store
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -400,7 +400,8 @@ export default {
|
|
|
400
400
|
onlineView: {
|
|
401
401
|
type: [String, Boolean],
|
|
402
402
|
default: true
|
|
403
|
-
}
|
|
403
|
+
},
|
|
404
|
+
newVersion: Boolean
|
|
404
405
|
},
|
|
405
406
|
computed: {
|
|
406
407
|
showHeader() {
|
|
@@ -485,7 +486,8 @@ export default {
|
|
|
485
486
|
set: !this.set,
|
|
486
487
|
index: this.doorIndex ? false : true,
|
|
487
488
|
system: true,
|
|
488
|
-
home: this.homePage ? false : true
|
|
489
|
+
home: this.homePage ? false : true,
|
|
490
|
+
new: this.showNew ? false : true
|
|
489
491
|
};
|
|
490
492
|
|
|
491
493
|
if (this.layout === 'subsystem' || this.application) {
|
|
@@ -635,10 +637,13 @@ export default {
|
|
|
635
637
|
dialog: {},
|
|
636
638
|
hideSubMenu: false,
|
|
637
639
|
doorIndex: '',
|
|
638
|
-
topRightToolHide: ''
|
|
640
|
+
topRightToolHide: '',
|
|
641
|
+
showNew: this.newVersion
|
|
639
642
|
};
|
|
640
643
|
},
|
|
641
644
|
created() {
|
|
645
|
+
const layout = localStorage.getItem('layout');
|
|
646
|
+
layout && (this.layout = layout);
|
|
642
647
|
let params = util.getParams() || {};
|
|
643
648
|
if (params.homePage == 0) {
|
|
644
649
|
this.isLoadHomePage = false;
|
|
@@ -892,6 +897,9 @@ export default {
|
|
|
892
897
|
if (results[i].portalPage || results[i].portalpage) {
|
|
893
898
|
this.doorIndex = results[i].portalPage || results[i].portalpage;
|
|
894
899
|
}
|
|
900
|
+
if (results[i].multipleVersion || results[i].newVersion) {
|
|
901
|
+
this.showNew = results[i].newVersion ? results[i].newVersion : true;
|
|
902
|
+
}
|
|
895
903
|
if (results[i].topRightToolHide) {
|
|
896
904
|
this.topRightToolHide = results[i].topRightToolHide;
|
|
897
905
|
}
|
|
@@ -1705,6 +1713,13 @@ export default {
|
|
|
1705
1713
|
case 'set':
|
|
1706
1714
|
this.handleSet();
|
|
1707
1715
|
break;
|
|
1716
|
+
case 'new':
|
|
1717
|
+
if (typeof this.showNew === 'string') {
|
|
1718
|
+
window.location.href = this.showNew;
|
|
1719
|
+
} else {
|
|
1720
|
+
this.$emit('chang-layout', 'simplicity');
|
|
1721
|
+
}
|
|
1722
|
+
break;
|
|
1708
1723
|
case 'goView':
|
|
1709
1724
|
util.win.open(res.path, '_blank');
|
|
1710
1725
|
break;
|
|
@@ -1873,6 +1888,7 @@ export default {
|
|
|
1873
1888
|
return;
|
|
1874
1889
|
}
|
|
1875
1890
|
this.layout = res;
|
|
1891
|
+
localStorage.setItem('layout', res);
|
|
1876
1892
|
switch (res) {
|
|
1877
1893
|
case 'topnav':
|
|
1878
1894
|
this.navs = this.menus;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</div>
|
|
35
35
|
</div>
|
|
36
36
|
<div class="es-setting-item">
|
|
37
|
-
<div class="es-setting-title"
|
|
37
|
+
<div class="es-setting-title">菜单风格</div>
|
|
38
38
|
<div class="es-setting-navs-box">
|
|
39
39
|
<el-tooltip
|
|
40
40
|
class="es-setting-navs-item"
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
<el-tooltip
|
|
93
93
|
class="es-setting-navs-item"
|
|
94
94
|
effect="dark"
|
|
95
|
-
content="
|
|
95
|
+
content="侧边+按钮菜单布局"
|
|
96
96
|
placement="bottom"
|
|
97
97
|
>
|
|
98
98
|
<div
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="es-main-box">
|
|
2
|
+
<div class="es-main-box" v-if="isLogin">
|
|
3
3
|
<simplicity
|
|
4
4
|
ref="main"
|
|
5
|
-
v-if="
|
|
5
|
+
v-if="layout == 'simplicity'"
|
|
6
6
|
:appCode="appCode"
|
|
7
|
+
:old-version="multiple"
|
|
8
|
+
@chang-layout="changLayout"
|
|
7
9
|
v-bind="$attrs"
|
|
8
10
|
v-on="$listeners"
|
|
9
11
|
></simplicity>
|
|
10
12
|
<main-default
|
|
11
13
|
v-else
|
|
14
|
+
:new-version="multiple"
|
|
12
15
|
v-bind="$attrs"
|
|
13
16
|
ref="main"
|
|
17
|
+
@chang-layout="changLayout"
|
|
14
18
|
v-on="$listeners"
|
|
15
19
|
></main-default>
|
|
16
20
|
|
|
@@ -73,7 +77,8 @@ export default {
|
|
|
73
77
|
launchTime: {
|
|
74
78
|
type: Number,
|
|
75
79
|
default: 3000
|
|
76
|
-
}
|
|
80
|
+
},
|
|
81
|
+
multiple: Boolean
|
|
77
82
|
},
|
|
78
83
|
computed: {
|
|
79
84
|
_launchImage() {
|
|
@@ -90,10 +95,16 @@ export default {
|
|
|
90
95
|
appCode: '',
|
|
91
96
|
params: {},
|
|
92
97
|
dialogs: [],
|
|
93
|
-
visibles: []
|
|
98
|
+
visibles: [],
|
|
99
|
+
isLogin: false,
|
|
100
|
+
layout: this.type
|
|
94
101
|
};
|
|
95
102
|
},
|
|
96
103
|
created() {
|
|
104
|
+
const layoutType = localStorage.getItem('layoutType');
|
|
105
|
+
if (layoutType) {
|
|
106
|
+
this.layout = layoutType;
|
|
107
|
+
}
|
|
97
108
|
this.params = util.getParams() || {};
|
|
98
109
|
this.sysCode = this.params.sysCode;
|
|
99
110
|
this.appCode = this.params.appCode;
|
|
@@ -154,6 +165,15 @@ export default {
|
|
|
154
165
|
});
|
|
155
166
|
},
|
|
156
167
|
methods: {
|
|
168
|
+
/**
|
|
169
|
+
* @desc: 切换布局风格
|
|
170
|
+
* @author huangbo
|
|
171
|
+
* @date 2024年9月7日
|
|
172
|
+
**/
|
|
173
|
+
changLayout(res) {
|
|
174
|
+
this.layout = res;
|
|
175
|
+
localStorage.setItem('layoutType', res);
|
|
176
|
+
},
|
|
157
177
|
/**
|
|
158
178
|
* @desc:重新登录
|
|
159
179
|
* @author huangbo
|
|
@@ -255,6 +275,7 @@ export default {
|
|
|
255
275
|
getConfig(query) {
|
|
256
276
|
const token =
|
|
257
277
|
util.getStorage('token') || util.getStorage('Authorization');
|
|
278
|
+
this.isLogin = token ? true : false;
|
|
258
279
|
if (
|
|
259
280
|
!token &&
|
|
260
281
|
Object.prototype.hasOwnProperty.call(query, 'serverId') &&
|
|
@@ -16,31 +16,29 @@
|
|
|
16
16
|
人在线
|
|
17
17
|
</div>
|
|
18
18
|
<template v-for="item in lists">
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
>
|
|
28
|
-
<div
|
|
29
|
-
class="es-simplicity-handler-icon"
|
|
30
|
-
:title="item.title"
|
|
31
|
-
:class="item.icon"
|
|
32
|
-
@click="handleClick(item)"
|
|
33
|
-
></div>
|
|
34
|
-
</el-badge>
|
|
19
|
+
<el-badge
|
|
20
|
+
class="es-simplicity-handler-item"
|
|
21
|
+
v-if="item.type === 'notice'"
|
|
22
|
+
:key="item.type"
|
|
23
|
+
:value="noticeNum"
|
|
24
|
+
:max="99"
|
|
25
|
+
:hidden="noticeNum === 0"
|
|
26
|
+
>
|
|
35
27
|
<div
|
|
36
|
-
|
|
37
|
-
class="es-simplicity-handler-item es-simplicity-handler-icon"
|
|
38
|
-
:key="item.type"
|
|
28
|
+
class="es-simplicity-handler-icon"
|
|
39
29
|
:title="item.title"
|
|
40
30
|
:class="item.icon"
|
|
41
31
|
@click="handleClick(item)"
|
|
42
32
|
></div>
|
|
43
|
-
</
|
|
33
|
+
</el-badge>
|
|
34
|
+
<div
|
|
35
|
+
v-else
|
|
36
|
+
class="es-simplicity-handler-item es-simplicity-handler-icon"
|
|
37
|
+
:key="item.type"
|
|
38
|
+
:title="item.title"
|
|
39
|
+
:class="item.icon"
|
|
40
|
+
@click="handleClick(item)"
|
|
41
|
+
></div>
|
|
44
42
|
</template>
|
|
45
43
|
</div>
|
|
46
44
|
</template>
|
|
@@ -81,6 +79,16 @@ export default {
|
|
|
81
79
|
};
|
|
82
80
|
}
|
|
83
81
|
},
|
|
82
|
+
old: {
|
|
83
|
+
type: Object,
|
|
84
|
+
default() {
|
|
85
|
+
return {
|
|
86
|
+
type: 'old',
|
|
87
|
+
icon: 'es-icon-shiyongjiuban',
|
|
88
|
+
title: '使用旧版'
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
},
|
|
84
92
|
notice: {
|
|
85
93
|
type: Object,
|
|
86
94
|
default() {
|
|
@@ -115,7 +123,9 @@ export default {
|
|
|
115
123
|
hide: {
|
|
116
124
|
type: Object,
|
|
117
125
|
default() {
|
|
118
|
-
return {
|
|
126
|
+
return {
|
|
127
|
+
old: true
|
|
128
|
+
};
|
|
119
129
|
}
|
|
120
130
|
},
|
|
121
131
|
noticeNum: {
|
|
@@ -142,6 +152,7 @@ export default {
|
|
|
142
152
|
this.search,
|
|
143
153
|
this.index,
|
|
144
154
|
this.home,
|
|
155
|
+
this.old,
|
|
145
156
|
this.notice,
|
|
146
157
|
this.quit,
|
|
147
158
|
this.set
|
|
@@ -170,13 +181,6 @@ export default {
|
|
|
170
181
|
this.time = util.formatDate('', 'HH:mm:ss');
|
|
171
182
|
});
|
|
172
183
|
},
|
|
173
|
-
isShow(res) {
|
|
174
|
-
if (Array.isArray(this.hide)) {
|
|
175
|
-
return !this.hide.includes(res);
|
|
176
|
-
} else {
|
|
177
|
-
return !this.hide[res];
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
184
|
handleClick(res) {
|
|
181
185
|
this.$emit('click', res);
|
|
182
186
|
}
|