eoss-ui 0.5.62 → 0.5.64
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 +11 -5
- package/lib/button.js +4 -2
- package/lib/checkbox-group.js +4 -2
- package/lib/data-table-form.js +4 -2
- package/lib/data-table.js +4 -2
- package/lib/date-picker.js +4 -2
- package/lib/dialog.js +4 -2
- package/lib/eoss-ui.common.js +543 -412
- package/lib/flow-group.js +4 -2
- package/lib/flow-list.js +4 -2
- package/lib/flow.js +156 -126
- package/lib/form.js +9 -4
- package/lib/handle-user.js +4 -2
- package/lib/handler.js +7 -5
- package/lib/icon.js +4 -2
- package/lib/index.js +1 -1
- package/lib/input-number.js +4 -2
- package/lib/input.js +4 -2
- package/lib/label.js +2 -2
- package/lib/login.js +127 -61
- package/lib/main.js +193 -159
- package/lib/menu.js +2 -2
- package/lib/nav.js +4 -2
- package/lib/page.js +4 -2
- package/lib/player.js +4 -2
- package/lib/qr-code.js +13 -13
- package/lib/radio-group.js +4 -2
- package/lib/retrial-auth.js +4 -2
- package/lib/select-ganged.js +4 -2
- package/lib/select.js +4 -2
- package/lib/selector-panel.js +4 -2
- package/lib/selector.js +4 -2
- package/lib/sizer.js +4 -2
- package/lib/steps.js +4 -2
- package/lib/switch.js +4 -2
- package/lib/table-form.js +4 -2
- package/lib/tabs.js +4 -2
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/qr-code.css +1 -1
- package/lib/tips.js +4 -2
- package/lib/tree-group.js +4 -2
- package/lib/tree.js +4 -2
- package/lib/upload.js +4 -2
- package/lib/utils/util.js +4 -2
- package/lib/wujie.js +4 -2
- package/lib/wxlogin.js +4 -2
- package/package.json +1 -1
- package/packages/button-group/src/main.vue +7 -1
- package/packages/flow/src/main.vue +1 -1
- package/packages/flow/src/processForm.vue +32 -4
- package/packages/form/src/main.vue +3 -0
- package/packages/handler/src/main.vue +1 -1
- package/packages/label/src/main.vue +2 -2
- package/packages/login/src/main.vue +53 -33
- package/packages/main/src/main.vue +21 -15
- package/packages/main/src/userinfo.vue +165 -150
- package/packages/menu/src/main.vue +2 -2
- package/packages/qr-code/src/main.vue +10 -5
- package/packages/theme-chalk/lib/form.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/login.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/lib/qr-code.css +1 -1
- package/packages/theme-chalk/src/form.scss +5 -3
- package/packages/theme-chalk/src/login.scss +6 -0
- package/packages/theme-chalk/src/menu.scss +1 -1
- package/packages/theme-chalk/src/qr-code.scss +1 -1
- package/src/index.js +1 -1
- package/src/utils/util.js +4 -1
- package/CHANGELOG.md +0 -929
package/lib/main.js
CHANGED
|
@@ -2200,7 +2200,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2200
2200
|
});
|
|
2201
2201
|
}
|
|
2202
2202
|
}).catch(function (e) {});
|
|
2203
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2203
|
+
} 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') {
|
|
2204
2204
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2205
2205
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2206
2206
|
} else {
|
|
@@ -2890,7 +2890,9 @@ var toFunction = function toFunction(str) {
|
|
|
2890
2890
|
* @param {string} [$color] - 颜色值
|
|
2891
2891
|
**/
|
|
2892
2892
|
var updateTheme = function updateTheme(color, send) {
|
|
2893
|
-
|
|
2893
|
+
if (!color) {
|
|
2894
|
+
return false;
|
|
2895
|
+
}
|
|
2894
2896
|
|
|
2895
2897
|
if (send === undefined) {
|
|
2896
2898
|
send = true;
|
|
@@ -3826,7 +3828,7 @@ module.exports = require("runtime-import");
|
|
|
3826
3828
|
// ESM COMPAT FLAG
|
|
3827
3829
|
__webpack_require__.r(__webpack_exports__);
|
|
3828
3830
|
|
|
3829
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=
|
|
3831
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=5b54252b&
|
|
3830
3832
|
var render = function () {
|
|
3831
3833
|
var _vm = this
|
|
3832
3834
|
var _h = _vm.$createElement
|
|
@@ -4228,6 +4230,7 @@ var render = function () {
|
|
|
4228
4230
|
"userinfo",
|
|
4229
4231
|
_vm._b(
|
|
4230
4232
|
{
|
|
4233
|
+
attrs: { contents: _vm.userInfoContents },
|
|
4231
4234
|
on: {
|
|
4232
4235
|
change: _vm.handleUserModel,
|
|
4233
4236
|
reGetConfig: _vm.reGetConfig,
|
|
@@ -4257,10 +4260,10 @@ var staticRenderFns = []
|
|
|
4257
4260
|
render._withStripped = true
|
|
4258
4261
|
|
|
4259
4262
|
|
|
4260
|
-
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=
|
|
4263
|
+
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=5b54252b&
|
|
4261
4264
|
|
|
4262
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=
|
|
4263
|
-
var
|
|
4265
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=template&id=75d533de&
|
|
4266
|
+
var userinfovue_type_template_id_75d533de_render = function () {
|
|
4264
4267
|
var _vm = this
|
|
4265
4268
|
var _h = _vm.$createElement
|
|
4266
4269
|
var _c = _vm._self._c || _h
|
|
@@ -4276,11 +4279,11 @@ var userinfovue_type_template_id_fc09aaf8_render = function () {
|
|
|
4276
4279
|
2
|
|
4277
4280
|
)
|
|
4278
4281
|
}
|
|
4279
|
-
var
|
|
4280
|
-
|
|
4282
|
+
var userinfovue_type_template_id_75d533de_staticRenderFns = []
|
|
4283
|
+
userinfovue_type_template_id_75d533de_render._withStripped = true
|
|
4281
4284
|
|
|
4282
4285
|
|
|
4283
|
-
// CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=
|
|
4286
|
+
// CONCATENATED MODULE: ./packages/main/src/userinfo.vue?vue&type=template&id=75d533de&
|
|
4284
4287
|
|
|
4285
4288
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4286
4289
|
var api = __webpack_require__(1);
|
|
@@ -4292,6 +4295,8 @@ var store = __webpack_require__(11);
|
|
|
4292
4295
|
var util = __webpack_require__(0);
|
|
4293
4296
|
|
|
4294
4297
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/userinfo.vue?vue&type=script&lang=js&
|
|
4298
|
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
4299
|
+
|
|
4295
4300
|
//
|
|
4296
4301
|
//
|
|
4297
4302
|
//
|
|
@@ -4320,6 +4325,102 @@ var util = __webpack_require__(0);
|
|
|
4320
4325
|
secret: {
|
|
4321
4326
|
type: Boolean,
|
|
4322
4327
|
default: true
|
|
4328
|
+
},
|
|
4329
|
+
contents: {
|
|
4330
|
+
type: Array,
|
|
4331
|
+
default: function _default() {
|
|
4332
|
+
return [{
|
|
4333
|
+
title: '用户信息',
|
|
4334
|
+
contents: [{
|
|
4335
|
+
type: 'upload',
|
|
4336
|
+
name: 'userHeadUrl',
|
|
4337
|
+
label: '头像',
|
|
4338
|
+
portrait: true,
|
|
4339
|
+
code: 'USER_IMG',
|
|
4340
|
+
col: 12,
|
|
4341
|
+
weixinQrcode: true,
|
|
4342
|
+
class: 'es-flex-none'
|
|
4343
|
+
}, {
|
|
4344
|
+
type: 'select',
|
|
4345
|
+
name: 'job',
|
|
4346
|
+
label: '切换职务',
|
|
4347
|
+
valueType: 'object',
|
|
4348
|
+
class: 'es-user-info-job',
|
|
4349
|
+
row: true,
|
|
4350
|
+
col: 12
|
|
4351
|
+
}, {
|
|
4352
|
+
name: 'orgName',
|
|
4353
|
+
label: '所属机构',
|
|
4354
|
+
type: 'text',
|
|
4355
|
+
disabled: true,
|
|
4356
|
+
col: 6
|
|
4357
|
+
}, {
|
|
4358
|
+
name: 'depName',
|
|
4359
|
+
label: '所属部门',
|
|
4360
|
+
type: 'text',
|
|
4361
|
+
disabled: true,
|
|
4362
|
+
col: 6
|
|
4363
|
+
}, {
|
|
4364
|
+
name: 'idCard',
|
|
4365
|
+
label: '身份证号',
|
|
4366
|
+
type: 'text',
|
|
4367
|
+
disabled: true,
|
|
4368
|
+
col: 6
|
|
4369
|
+
}, {
|
|
4370
|
+
name: 'outCode',
|
|
4371
|
+
label: '工号',
|
|
4372
|
+
type: 'text',
|
|
4373
|
+
disabled: true,
|
|
4374
|
+
col: 6
|
|
4375
|
+
}, {
|
|
4376
|
+
name: 'phone',
|
|
4377
|
+
placeholder: '联系电话',
|
|
4378
|
+
label: '联系电话',
|
|
4379
|
+
type: 'text',
|
|
4380
|
+
col: 6
|
|
4381
|
+
}, {
|
|
4382
|
+
name: 'email',
|
|
4383
|
+
placeholder: '电子邮箱',
|
|
4384
|
+
label: '电子邮箱',
|
|
4385
|
+
type: 'text',
|
|
4386
|
+
rules: {
|
|
4387
|
+
type: 'email',
|
|
4388
|
+
message: '请输入正确的邮箱地址',
|
|
4389
|
+
trigger: 'blur'
|
|
4390
|
+
},
|
|
4391
|
+
col: 6
|
|
4392
|
+
}, {
|
|
4393
|
+
name: 'officetel',
|
|
4394
|
+
placeholder: '座机号',
|
|
4395
|
+
label: '座机号',
|
|
4396
|
+
type: 'text',
|
|
4397
|
+
rules: {
|
|
4398
|
+
type: 'telephone'
|
|
4399
|
+
//message: '请输入正确的邮箱地址',
|
|
4400
|
+
//trigger: 'blur'
|
|
4401
|
+
},
|
|
4402
|
+
col: 6
|
|
4403
|
+
}, {
|
|
4404
|
+
name: 'oldpassword',
|
|
4405
|
+
placeholder: '旧密码',
|
|
4406
|
+
label: '旧密码',
|
|
4407
|
+
type: 'text',
|
|
4408
|
+
col: 6
|
|
4409
|
+
}, {
|
|
4410
|
+
name: 'password',
|
|
4411
|
+
placeholder: '新密码',
|
|
4412
|
+
label: '新密码',
|
|
4413
|
+
type: 'text',
|
|
4414
|
+
col: 6
|
|
4415
|
+
}, {
|
|
4416
|
+
name: 'repassword',
|
|
4417
|
+
placeholder: '确认新密码',
|
|
4418
|
+
label: '确认新密码',
|
|
4419
|
+
type: 'text',
|
|
4420
|
+
col: 6
|
|
4421
|
+
}]
|
|
4422
|
+
}];
|
|
4423
|
+
}
|
|
4323
4424
|
}
|
|
4324
4425
|
},
|
|
4325
4426
|
data: function data() {
|
|
@@ -4348,123 +4449,52 @@ var util = __webpack_require__(0);
|
|
|
4348
4449
|
|
|
4349
4450
|
computed: {
|
|
4350
4451
|
forms: function forms() {
|
|
4351
|
-
var page =
|
|
4352
|
-
|
|
4353
|
-
contents
|
|
4354
|
-
|
|
4355
|
-
name
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
name: 'depName',
|
|
4398
|
-
label: '所属部门',
|
|
4399
|
-
type: 'text',
|
|
4400
|
-
disabled: true,
|
|
4401
|
-
col: 6
|
|
4402
|
-
}, {
|
|
4403
|
-
name: 'idCard',
|
|
4404
|
-
label: '身份证号',
|
|
4405
|
-
type: 'text',
|
|
4406
|
-
disabled: true,
|
|
4407
|
-
row: true,
|
|
4408
|
-
col: 12
|
|
4409
|
-
}, {
|
|
4410
|
-
name: 'phone',
|
|
4411
|
-
placeholder: '联系电话',
|
|
4412
|
-
label: '联系电话',
|
|
4413
|
-
type: 'text',
|
|
4414
|
-
col: 6
|
|
4415
|
-
}, {
|
|
4416
|
-
name: 'email',
|
|
4417
|
-
placeholder: '电子邮箱',
|
|
4418
|
-
label: '电子邮箱',
|
|
4419
|
-
type: 'text',
|
|
4420
|
-
rules: {
|
|
4421
|
-
type: 'email',
|
|
4422
|
-
message: '请输入正确的邮箱地址',
|
|
4423
|
-
trigger: 'blur'
|
|
4424
|
-
},
|
|
4425
|
-
col: 6
|
|
4426
|
-
}, {
|
|
4427
|
-
name: 'officetel',
|
|
4428
|
-
placeholder: '座机号',
|
|
4429
|
-
label: '座机号',
|
|
4430
|
-
type: 'text',
|
|
4431
|
-
rules: {
|
|
4432
|
-
type: 'telephone'
|
|
4433
|
-
//message: '请输入正确的邮箱地址',
|
|
4434
|
-
//trigger: 'blur'
|
|
4435
|
-
},
|
|
4436
|
-
col: 6
|
|
4437
|
-
}, {
|
|
4438
|
-
name: 'oldpassword',
|
|
4439
|
-
placeholder: '旧密码',
|
|
4440
|
-
label: '旧密码',
|
|
4441
|
-
rules: this.values.password ? { required: true, message: '请输入旧密码' } : {},
|
|
4442
|
-
type: 'text',
|
|
4443
|
-
col: 6
|
|
4444
|
-
}, {
|
|
4445
|
-
name: 'password',
|
|
4446
|
-
placeholder: '新密码',
|
|
4447
|
-
label: '新密码',
|
|
4448
|
-
type: 'text',
|
|
4449
|
-
rules: [this.checkPassword ? {
|
|
4450
|
-
pattern: this.checkPassword,
|
|
4451
|
-
message: this.checkPasswordMsg ? this.checkPasswordMsg : '密码格式不合法',
|
|
4452
|
-
trigger: 'blur'
|
|
4453
|
-
} : {}],
|
|
4454
|
-
col: 6
|
|
4455
|
-
}, {
|
|
4456
|
-
name: 'repassword',
|
|
4457
|
-
placeholder: '确认新密码',
|
|
4458
|
-
label: '确认新密码',
|
|
4459
|
-
type: 'text',
|
|
4460
|
-
rules: [this.checkPassword ? {
|
|
4461
|
-
pattern: this.checkPassword,
|
|
4462
|
-
message: this.checkPasswordMsg ? this.checkPasswordMsg : '密码格式不合法',
|
|
4463
|
-
trigger: 'blur'
|
|
4464
|
-
} : {}, { validator: this.repassword, trigger: 'blur' }],
|
|
4465
|
-
col: 6
|
|
4466
|
-
}]
|
|
4467
|
-
}];
|
|
4452
|
+
var page = JSON.parse(JSON.stringify(this.contents));
|
|
4453
|
+
for (var i = 0; i < page.length; i++) {
|
|
4454
|
+
for (var x = 0; x < page[i].contents.length; x++) {
|
|
4455
|
+
var item = page[i].contents[x];
|
|
4456
|
+
if (item.name == 'userHeadUrl') {
|
|
4457
|
+
page[i].contents[x].ownId = store["a" /* default */].get('userModel').personId;
|
|
4458
|
+
page[i].contents[x].onSuccess = this.handleUploadSuccess;
|
|
4459
|
+
if (item.weixinQrcode && this.qrcode) {
|
|
4460
|
+
page[i].contents[x].inline = {
|
|
4461
|
+
range: false,
|
|
4462
|
+
class: 'weixinQrcode',
|
|
4463
|
+
type: 'image',
|
|
4464
|
+
url: this.qrcode,
|
|
4465
|
+
event: this.getQrcode
|
|
4466
|
+
};
|
|
4467
|
+
}
|
|
4468
|
+
}
|
|
4469
|
+
if (item.name == 'job') {
|
|
4470
|
+
page[i].contents[x].data = store["a" /* default */].get('userModel').identityList;
|
|
4471
|
+
}
|
|
4472
|
+
if (item.name == 'oldpassword') {
|
|
4473
|
+
page[i].contents[x].rules = {
|
|
4474
|
+
required: true,
|
|
4475
|
+
message: '请输入旧密码'
|
|
4476
|
+
};
|
|
4477
|
+
}
|
|
4478
|
+
if (item.name == 'password' && this.checkPassword) {
|
|
4479
|
+
page[i].contents[x].rules = {
|
|
4480
|
+
pattern: this.checkPassword,
|
|
4481
|
+
message: this.checkPasswordMsg ? this.checkPasswordMsg : '密码格式不合法',
|
|
4482
|
+
trigger: 'blur'
|
|
4483
|
+
};
|
|
4484
|
+
}
|
|
4485
|
+
if (item.name == 'repassword') {
|
|
4486
|
+
var rules = [{ validator: this.repassword, trigger: 'blur' }];
|
|
4487
|
+
if (this.checkPassword) {
|
|
4488
|
+
rules.push({
|
|
4489
|
+
pattern: this.checkPassword,
|
|
4490
|
+
message: this.checkPasswordMsg ? this.checkPasswordMsg : '密码格式不合法',
|
|
4491
|
+
trigger: 'blur'
|
|
4492
|
+
});
|
|
4493
|
+
}
|
|
4494
|
+
page[i].contents[x].rules = rules;
|
|
4495
|
+
}
|
|
4496
|
+
}
|
|
4497
|
+
}
|
|
4468
4498
|
if (this.showNotify) {
|
|
4469
4499
|
page.push({
|
|
4470
4500
|
title: '接收消息类型',
|
|
@@ -4522,12 +4552,13 @@ var util = __webpack_require__(0);
|
|
|
4522
4552
|
_this2.checkPasswordMsg = results.checkPasswordMsg;
|
|
4523
4553
|
}
|
|
4524
4554
|
_this2.results = results.simpleUserInfo;
|
|
4525
|
-
_this2.values
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4555
|
+
_this2.values = _extends({}, _this2.values, results.simpleUserInfo);
|
|
4556
|
+
// this.values.orgName = results.simpleUserInfo.orgName;
|
|
4557
|
+
// this.values.depName = results.simpleUserInfo.depName;
|
|
4558
|
+
// this.values.idCard = results.simpleUserInfo.idCard;
|
|
4559
|
+
// this.values.phone = results.simpleUserInfo.phone;
|
|
4560
|
+
// this.values.email = results.simpleUserInfo.email;
|
|
4561
|
+
// this.values.officeTel = results.simpleUserInfo.officeTel;
|
|
4531
4562
|
if (results.userScanBindImgUrl) {
|
|
4532
4563
|
_this2.userScanBindImgUrl = results.userScanBindImgUrl;
|
|
4533
4564
|
_this2.qrcode = util["a" /* default */].getStorage('host') + results.userScanBindImgUrl;
|
|
@@ -4712,8 +4743,8 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
4712
4743
|
|
|
4713
4744
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
4714
4745
|
src_userinfovue_type_script_lang_js_,
|
|
4715
|
-
|
|
4716
|
-
|
|
4746
|
+
userinfovue_type_template_id_75d533de_render,
|
|
4747
|
+
userinfovue_type_template_id_75d533de_staticRenderFns,
|
|
4717
4748
|
false,
|
|
4718
4749
|
null,
|
|
4719
4750
|
null,
|
|
@@ -6066,7 +6097,7 @@ var async_component_component = Object(componentNormalizer["a" /* default */])(
|
|
|
6066
6097
|
|
|
6067
6098
|
/* harmony default export */ var async_component = (async_component_component.exports);
|
|
6068
6099
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=script&lang=js&
|
|
6069
|
-
var
|
|
6100
|
+
var mainvue_type_script_lang_js_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
6070
6101
|
|
|
6071
6102
|
//
|
|
6072
6103
|
//
|
|
@@ -6317,6 +6348,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
6317
6348
|
//
|
|
6318
6349
|
//
|
|
6319
6350
|
//
|
|
6351
|
+
//
|
|
6320
6352
|
|
|
6321
6353
|
|
|
6322
6354
|
|
|
@@ -6352,10 +6384,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
6352
6384
|
//菜单展开关闭
|
|
6353
6385
|
icons: Object,
|
|
6354
6386
|
//logo
|
|
6355
|
-
logo:
|
|
6356
|
-
type: String,
|
|
6357
|
-
default: 'errorlogo'
|
|
6358
|
-
},
|
|
6387
|
+
logo: String,
|
|
6359
6388
|
//菜单显示类型
|
|
6360
6389
|
scene: {
|
|
6361
6390
|
type: String,
|
|
@@ -6545,21 +6574,21 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
6545
6574
|
}
|
|
6546
6575
|
if (this.layout === 'subsystem' || this.application) {
|
|
6547
6576
|
if (this.hides && Object.keys(this.hides).length) {
|
|
6548
|
-
return
|
|
6577
|
+
return mainvue_type_script_lang_js_extends({}, this.hides, { set: !this.set, system: false });
|
|
6549
6578
|
} else if (topRightToolHide && Object.keys(topRightToolHide).length) {
|
|
6550
|
-
return
|
|
6579
|
+
return mainvue_type_script_lang_js_extends({}, topRightToolHide, { set: !this.set, system: false });
|
|
6551
6580
|
} else {
|
|
6552
6581
|
return { set: !this.set, system: false };
|
|
6553
6582
|
}
|
|
6554
6583
|
} else if (this.layout === 'topside') {
|
|
6555
6584
|
if (this.hides && Object.keys(this.hides).length) {
|
|
6556
|
-
return
|
|
6585
|
+
return mainvue_type_script_lang_js_extends({}, this.hides, {
|
|
6557
6586
|
set: !this.set,
|
|
6558
6587
|
system: true,
|
|
6559
6588
|
user: true
|
|
6560
6589
|
});
|
|
6561
6590
|
} else if (topRightToolHide && Object.keys(topRightToolHide).length) {
|
|
6562
|
-
return
|
|
6591
|
+
return mainvue_type_script_lang_js_extends({}, topRightToolHide, {
|
|
6563
6592
|
set: !this.set,
|
|
6564
6593
|
system: true,
|
|
6565
6594
|
user: true
|
|
@@ -6569,13 +6598,13 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
6569
6598
|
}
|
|
6570
6599
|
} else {
|
|
6571
6600
|
if (this.hides && Object.keys(this.hides).length) {
|
|
6572
|
-
return
|
|
6601
|
+
return mainvue_type_script_lang_js_extends({}, this.hides, {
|
|
6573
6602
|
set: !this.set,
|
|
6574
6603
|
system: true,
|
|
6575
6604
|
user: true
|
|
6576
6605
|
});
|
|
6577
6606
|
} else if (topRightToolHide && Object.keys(topRightToolHide).length) {
|
|
6578
|
-
return
|
|
6607
|
+
return mainvue_type_script_lang_js_extends({}, topRightToolHide, {
|
|
6579
6608
|
set: !this.set,
|
|
6580
6609
|
system: true,
|
|
6581
6610
|
user: true
|
|
@@ -6694,6 +6723,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
6694
6723
|
color: util["a" /* default */].getStorage('theme') ? util["a" /* default */].getStorage('theme') : this.theme,
|
|
6695
6724
|
//显示用户信息
|
|
6696
6725
|
showUserInfo: false,
|
|
6726
|
+
userInfoContents: undefined,
|
|
6697
6727
|
//是否展示侧边导航
|
|
6698
6728
|
showMenu: true,
|
|
6699
6729
|
props: {},
|
|
@@ -6979,6 +7009,9 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
6979
7009
|
this.color = color;
|
|
6980
7010
|
}
|
|
6981
7011
|
}
|
|
7012
|
+
if (i === 'subsystemExtend' && results[i].userInfoContents) {
|
|
7013
|
+
this.userInfoContents = results[i].userInfoContents;
|
|
7014
|
+
}
|
|
6982
7015
|
if (i === 'subsystemExtend' && results[i].webPageWatermark) {
|
|
6983
7016
|
try {
|
|
6984
7017
|
util["a" /* default */].win.top.webPageWatermark = results[i].webPageWatermark;
|
|
@@ -7051,7 +7084,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
7051
7084
|
jumpMenu: function jumpMenu(res, flag, param) {
|
|
7052
7085
|
var option = { url: res, flag: flag, param: param };
|
|
7053
7086
|
if (util["a" /* default */].isObject(res)) {
|
|
7054
|
-
option =
|
|
7087
|
+
option = mainvue_type_script_lang_js_extends({}, option, res);
|
|
7055
7088
|
}
|
|
7056
7089
|
var ids = void 0;
|
|
7057
7090
|
if (typeof option.url === 'string') {
|
|
@@ -7120,7 +7153,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
7120
7153
|
var _this5 = this;
|
|
7121
7154
|
|
|
7122
7155
|
var param = this.menuCode ? { menuCode: this.menuCode } : {};
|
|
7123
|
-
var params =
|
|
7156
|
+
var params = mainvue_type_script_lang_js_extends({}, this.param, param);
|
|
7124
7157
|
util["a" /* default */].ajax({ url: this.action, params: params }).then(function (res) {
|
|
7125
7158
|
if (res.rCode === 0) {
|
|
7126
7159
|
if (res.results && res.results.length) {
|
|
@@ -7638,13 +7671,13 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
7638
7671
|
case 'user':
|
|
7639
7672
|
this.showUserInfo = true;
|
|
7640
7673
|
break;
|
|
7641
|
-
case 'online':
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7674
|
+
// case 'online':
|
|
7675
|
+
// this.dialog = {
|
|
7676
|
+
// title: '查看在线人员',
|
|
7677
|
+
// show: true,
|
|
7678
|
+
// url: '/main/sysuseronline/list.dhtml'
|
|
7679
|
+
// };
|
|
7680
|
+
// break;
|
|
7648
7681
|
case 'notice':
|
|
7649
7682
|
this.showMsg = !this.showMsg;
|
|
7650
7683
|
break;
|
|
@@ -7694,7 +7727,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
7694
7727
|
util["a" /* default */].win.open(page);
|
|
7695
7728
|
} else if (type == 2) {
|
|
7696
7729
|
location.href = page;
|
|
7697
|
-
} else if (type == 3) {
|
|
7730
|
+
} else if (type == 3 || this.loadWujie === false || this.downgrade && isIE) {
|
|
7698
7731
|
this.method = 'iframe';
|
|
7699
7732
|
this.refresh = false;
|
|
7700
7733
|
this.page = util["a" /* default */].handlerUrl(page, param);
|
|
@@ -7724,7 +7757,7 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
7724
7757
|
if (path) {
|
|
7725
7758
|
var params = util["a" /* default */].getParams({ url: page });
|
|
7726
7759
|
if (param) {
|
|
7727
|
-
params =
|
|
7760
|
+
params = mainvue_type_script_lang_js_extends({}, params, param);
|
|
7728
7761
|
}
|
|
7729
7762
|
if (res) {
|
|
7730
7763
|
this.routerKey = res.id;
|
|
@@ -7949,9 +7982,10 @@ var appCode = util["a" /* default */].getParams('appCode') || util["a" /* defaul
|
|
|
7949
7982
|
clearTimeout(this.sysMsgOut);
|
|
7950
7983
|
}
|
|
7951
7984
|
},
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7985
|
+
|
|
7986
|
+
// handleDialog(obj) {
|
|
7987
|
+
// this.dialog = obj;
|
|
7988
|
+
// },
|
|
7955
7989
|
handleUserModel: function handleUserModel(name, val) {
|
|
7956
7990
|
this.$set(this.userModel, name, val);
|
|
7957
7991
|
},
|
package/lib/menu.js
CHANGED
|
@@ -411,7 +411,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
411
411
|
popper = this.popperClass !== undefined ? this.popperClass : ' es-menu-popper-' + this.mode;
|
|
412
412
|
}
|
|
413
413
|
var title = [h('i', {
|
|
414
|
-
class: [item.icons ? this.unicode(item.icons) ? item.icons : 'es-
|
|
414
|
+
class: [item.icons ? this.unicode(item.icons) ? item.icons : 'es-icon iconfont' : 'es-icon-application', 'es-menu-item-icon'],
|
|
415
415
|
domProps: item.icons === '' || this.unicode(item.icons) ? {} : { innerHTML: item.icons }
|
|
416
416
|
}), h('div', {
|
|
417
417
|
class: ['es-menu-title-text es-menu-title-' + this.mode]
|
|
@@ -502,7 +502,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
502
502
|
doms = doms.concat(_this5.getSub(item, h, 'es-sub-menu'));
|
|
503
503
|
} else {
|
|
504
504
|
var title = [h('i', {
|
|
505
|
-
class: [item.icons ? _this5.unicode(item.icons) ? item.icons : 'es-
|
|
505
|
+
class: [item.icons ? _this5.unicode(item.icons) ? item.icons : 'es-icon iconfont' : 'es-icon-application', 'es-menu-item-icon'],
|
|
506
506
|
domProps: item.icons === '' || _this5.unicode(item.icons) ? {} : { innerHTML: item.icons }
|
|
507
507
|
}), h('div', {
|
|
508
508
|
class: ['es-menu-title-text es-menu-title-' + _this5.mode]
|
package/lib/nav.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} 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') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|
package/lib/page.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} 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') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|
package/lib/player.js
CHANGED
|
@@ -2201,7 +2201,7 @@ var isLogined = function isLogined(_ref8) {
|
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
2203
|
}).catch(function (e) {});
|
|
2204
|
-
} else if (token || to.path === '/' || to.path === '/404' || typeof exclude === 'boolean' && exclude || exclude.indexOf(to.path) > -1 || exclude.indexOf(to.name) > -1 || to.path === '/login' || token && to.path === '/main') {
|
|
2204
|
+
} 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') {
|
|
2205
2205
|
if (redirect && (to.path === '/main' || to.path === '/login')) {
|
|
2206
2206
|
window.location.replace(urlJoinParams({ url: '.' + to.path + '.html', param: to.query }));
|
|
2207
2207
|
} else {
|
|
@@ -2891,7 +2891,9 @@ var toFunction = function toFunction(str) {
|
|
|
2891
2891
|
* @param {string} [$color] - 颜色值
|
|
2892
2892
|
**/
|
|
2893
2893
|
var updateTheme = function updateTheme(color, send) {
|
|
2894
|
-
|
|
2894
|
+
if (!color) {
|
|
2895
|
+
return false;
|
|
2896
|
+
}
|
|
2895
2897
|
|
|
2896
2898
|
if (send === undefined) {
|
|
2897
2899
|
send = true;
|