eoss-ui 0.5.91 → 0.5.93
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/eoss-ui.common.js +58 -49
- package/lib/index.js +1 -1
- package/lib/login.js +7 -4
- package/lib/main.js +11 -11
- package/lib/selector-panel.js +8 -7
- package/lib/selector.js +7 -2
- package/lib/upload.js +7 -7
- package/package.json +1 -1
- package/packages/.DS_Store +0 -0
- package/packages/login/src/main.vue +11 -2
- package/packages/main/src/public/search.vue +6 -4
- package/packages/selector/src/main.vue +4 -0
- package/packages/selector-panel/src/main.vue +19 -5
- package/packages/upload/src/main.vue +2 -2
- package/src/index.js +1 -1
package/lib/login.js
CHANGED
|
@@ -3998,7 +3998,7 @@ var bankCard = { pattern: new RegExp('^([1-9]{1})(\\d{14}|\\d{18})$'), message:
|
|
|
3998
3998
|
// ESM COMPAT FLAG
|
|
3999
3999
|
__webpack_require__.r(__webpack_exports__);
|
|
4000
4000
|
|
|
4001
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=
|
|
4001
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/login/src/main.vue?vue&type=template&id=8ead4a80&
|
|
4002
4002
|
var render = function () {
|
|
4003
4003
|
var _vm = this
|
|
4004
4004
|
var _h = _vm.$createElement
|
|
@@ -4959,7 +4959,7 @@ var staticRenderFns = []
|
|
|
4959
4959
|
render._withStripped = true
|
|
4960
4960
|
|
|
4961
4961
|
|
|
4962
|
-
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=
|
|
4962
|
+
// CONCATENATED MODULE: ./packages/login/src/main.vue?vue&type=template&id=8ead4a80&
|
|
4963
4963
|
|
|
4964
4964
|
// EXTERNAL MODULE: external "babel-runtime/regenerator"
|
|
4965
4965
|
var regenerator_ = __webpack_require__(13);
|
|
@@ -5965,6 +5965,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
5965
5965
|
type: String,
|
|
5966
5966
|
default: '0'
|
|
5967
5967
|
},
|
|
5968
|
+
firstLoginModel: String,
|
|
5968
5969
|
//是否加密传输
|
|
5969
5970
|
isEncrypt: {
|
|
5970
5971
|
type: Boolean,
|
|
@@ -6596,6 +6597,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6596
6597
|
}))();
|
|
6597
6598
|
},
|
|
6598
6599
|
setConfig: function setConfig(res) {
|
|
6600
|
+
var isLogined = localStorage.getItem('isLogined');
|
|
6599
6601
|
this.identifyingId = res.identifyingId || '';
|
|
6600
6602
|
this.getImgCode();
|
|
6601
6603
|
var downloads = {};
|
|
@@ -6629,7 +6631,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6629
6631
|
this.qrimg = res.qrimg || res.qrImg;
|
|
6630
6632
|
}
|
|
6631
6633
|
if (res.loginModel && ceshi !== 'true' && ceshi !== true) {
|
|
6632
|
-
this.loginModel = res.loginModel;
|
|
6634
|
+
this.loginModel = (res.firstLoginModel || this.firstLoginModel) && !isLogined ? res.firstLoginModel || this.firstLoginModel : res.loginModel;
|
|
6633
6635
|
}
|
|
6634
6636
|
if (res.loginBackgroundUrl) {
|
|
6635
6637
|
this.loginBackgroundImg = res.loginBackgroundUrl.split(',');
|
|
@@ -6646,7 +6648,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6646
6648
|
this.actionUrl = res.subsystemExtend.login_url;
|
|
6647
6649
|
}
|
|
6648
6650
|
if (res.subsystemExtend.loginModel && (ceshi == 'true' || ceshi == true)) {
|
|
6649
|
-
this.loginModel = res.subsystemExtend.loginModel;
|
|
6651
|
+
this.loginModel = (res.firstLoginModel || this.firstLoginModel) && !isLogined ? res.firstLoginModel || this.firstLoginModel : res.subsystemExtend.loginModel;
|
|
6650
6652
|
}
|
|
6651
6653
|
if (res.subsystemExtend.applicationName) {
|
|
6652
6654
|
localStorage.setItem('appcode', res.subsystemExtend.applicationName);
|
|
@@ -6988,6 +6990,7 @@ var ceshi = util["a" /* default */].getParams('ceshi');
|
|
|
6988
6990
|
window.location.href = _this11.toUrl;
|
|
6989
6991
|
} else if (results.doorIndex && _this11.doorIndex) {
|
|
6990
6992
|
sessionStorage.setItem('doorIndex', results.doorIndex);
|
|
6993
|
+
localStorage.setItem('isLogined', true);
|
|
6991
6994
|
window.location.href = results.doorIndex;
|
|
6992
6995
|
} else {
|
|
6993
6996
|
if (window.location.href.indexOf('login.html') > -1) {
|
package/lib/main.js
CHANGED
|
@@ -8581,8 +8581,8 @@ var online_component = Object(componentNormalizer["a" /* default */])(
|
|
|
8581
8581
|
)
|
|
8582
8582
|
|
|
8583
8583
|
/* harmony default export */ var online = (online_component.exports);
|
|
8584
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/search.vue?vue&type=template&id=
|
|
8585
|
-
var
|
|
8584
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/search.vue?vue&type=template&id=4c2b6f24&
|
|
8585
|
+
var searchvue_type_template_id_4c2b6f24_render = function () {
|
|
8586
8586
|
var _vm = this
|
|
8587
8587
|
var _h = _vm.$createElement
|
|
8588
8588
|
var _c = _vm._self._c || _h
|
|
@@ -8992,11 +8992,11 @@ var searchvue_type_template_id_fa3bcf48_render = function () {
|
|
|
8992
8992
|
1
|
|
8993
8993
|
)
|
|
8994
8994
|
}
|
|
8995
|
-
var
|
|
8996
|
-
|
|
8995
|
+
var searchvue_type_template_id_4c2b6f24_staticRenderFns = []
|
|
8996
|
+
searchvue_type_template_id_4c2b6f24_render._withStripped = true
|
|
8997
8997
|
|
|
8998
8998
|
|
|
8999
|
-
// CONCATENATED MODULE: ./packages/main/src/public/search.vue?vue&type=template&id=
|
|
8999
|
+
// CONCATENATED MODULE: ./packages/main/src/public/search.vue?vue&type=template&id=4c2b6f24&
|
|
9000
9000
|
|
|
9001
9001
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/public/search.vue?vue&type=script&lang=js&
|
|
9002
9002
|
var searchvue_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; };
|
|
@@ -9234,7 +9234,7 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9234
9234
|
_this.searchAll(res);
|
|
9235
9235
|
});
|
|
9236
9236
|
this.handleSearchd = Object(external_throttle_debounce_["debounce"])(500, function (obj, index) {
|
|
9237
|
-
_this.handleSearch(obj, index);
|
|
9237
|
+
_this.handleSearch(obj, index, false);
|
|
9238
9238
|
});
|
|
9239
9239
|
},
|
|
9240
9240
|
created: function created() {
|
|
@@ -9329,7 +9329,7 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9329
9329
|
this.$set(this.noMore, item.id || String(i), true);
|
|
9330
9330
|
} else if (item.dataRequestUrl) {
|
|
9331
9331
|
this.isLoading = true;
|
|
9332
|
-
this.handleSearch(item, i);
|
|
9332
|
+
this.handleSearch(item, i, true);
|
|
9333
9333
|
} else {
|
|
9334
9334
|
this.types[i].records = [];
|
|
9335
9335
|
this.types[i].totalCount = 0;
|
|
@@ -9367,7 +9367,7 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9367
9367
|
});
|
|
9368
9368
|
return records;
|
|
9369
9369
|
},
|
|
9370
|
-
handleSearch: function handleSearch(obj, index) {
|
|
9370
|
+
handleSearch: function handleSearch(obj, index, reset) {
|
|
9371
9371
|
var _this4 = this;
|
|
9372
9372
|
|
|
9373
9373
|
if (obj.pageNum < obj.pageCount && this.keyWords) {
|
|
@@ -9403,7 +9403,7 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9403
9403
|
obj.totalCount = results.totalCount;
|
|
9404
9404
|
obj.pageCount = results.pageCount;
|
|
9405
9405
|
obj.pageNum = results.pageNum;
|
|
9406
|
-
obj.records = obj.records.concat(results.records);
|
|
9406
|
+
obj.records = reset ? results.records : obj.records.concat(results.records);
|
|
9407
9407
|
_this4.$set(_this4.noMore, obj.id || String(index), results.pageNum >= results.pageCount);
|
|
9408
9408
|
} else {
|
|
9409
9409
|
_this4.types[index].records = [];
|
|
@@ -9453,8 +9453,8 @@ var searchvue_type_script_lang_js_extends = Object.assign || function (target) {
|
|
|
9453
9453
|
|
|
9454
9454
|
var search_component = Object(componentNormalizer["a" /* default */])(
|
|
9455
9455
|
public_searchvue_type_script_lang_js_,
|
|
9456
|
-
|
|
9457
|
-
|
|
9456
|
+
searchvue_type_template_id_4c2b6f24_render,
|
|
9457
|
+
searchvue_type_template_id_4c2b6f24_staticRenderFns,
|
|
9458
9458
|
false,
|
|
9459
9459
|
null,
|
|
9460
9460
|
null,
|
package/lib/selector-panel.js
CHANGED
|
@@ -3947,7 +3947,7 @@ module.exports = require("sortablejs");
|
|
|
3947
3947
|
// ESM COMPAT FLAG
|
|
3948
3948
|
__webpack_require__.r(__webpack_exports__);
|
|
3949
3949
|
|
|
3950
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/main.vue?vue&type=template&id=
|
|
3950
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/main.vue?vue&type=template&id=1990039f&
|
|
3951
3951
|
var render = function () {
|
|
3952
3952
|
var _vm = this
|
|
3953
3953
|
var _h = _vm.$createElement
|
|
@@ -4214,7 +4214,7 @@ var staticRenderFns = []
|
|
|
4214
4214
|
render._withStripped = true
|
|
4215
4215
|
|
|
4216
4216
|
|
|
4217
|
-
// CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=
|
|
4217
|
+
// CONCATENATED MODULE: ./packages/selector-panel/src/main.vue?vue&type=template&id=1990039f&
|
|
4218
4218
|
|
|
4219
4219
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector-panel/src/tree.vue?vue&type=template&id=24ad732a&
|
|
4220
4220
|
var treevue_type_template_id_24ad732a_render = function () {
|
|
@@ -5506,11 +5506,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
5506
5506
|
this.nodeData = this.trees[active].nodeData;
|
|
5507
5507
|
} else {
|
|
5508
5508
|
if (typeof this.selection === 'string') {
|
|
5509
|
+
var params = this.param[this.activeName] ? this.param[this.activeName] : this.param;
|
|
5509
5510
|
util["a" /* default */].ajax({
|
|
5510
5511
|
method: this.method,
|
|
5511
5512
|
url: this.host + this.selection,
|
|
5512
|
-
params:
|
|
5513
|
-
data:
|
|
5513
|
+
params: params,
|
|
5514
|
+
data: params
|
|
5514
5515
|
}).then(function (res) {
|
|
5515
5516
|
if (res.rCode === 0) {
|
|
5516
5517
|
_this3.selections = JSON.parse(JSON.stringify(res.results));
|
|
@@ -5530,7 +5531,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
5530
5531
|
getTreeData: function getTreeData(url, params, id) {
|
|
5531
5532
|
var _this4 = this;
|
|
5532
5533
|
|
|
5533
|
-
var data = util["a" /* default */].extend({}, params, this.param);
|
|
5534
|
+
var data = util["a" /* default */].extend({}, params, this.param[this.activeName] ? this.param[this.activeName] : this.param);
|
|
5534
5535
|
if (id !== undefined) {
|
|
5535
5536
|
data.id = id;
|
|
5536
5537
|
}
|
|
@@ -5559,7 +5560,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
5559
5560
|
if (flag) {
|
|
5560
5561
|
if (data.selection === undefined || data.selection.length === 0) {
|
|
5561
5562
|
this.checkAll = false;
|
|
5562
|
-
var params = util["a" /* default */].extend({}, this.param);
|
|
5563
|
+
var params = util["a" /* default */].extend({}, this.param[this.activeName] ? this.param[this.activeName] : this.param);
|
|
5563
5564
|
params.type = this.activeName;
|
|
5564
5565
|
params.mid = data.id;
|
|
5565
5566
|
if (this.activeName === 'enterprise') {
|
|
@@ -5600,7 +5601,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
5600
5601
|
data.state = '';
|
|
5601
5602
|
}
|
|
5602
5603
|
if (data.state !== '' && (!data.children || data.children.length === 0)) {
|
|
5603
|
-
var _params = util["a" /* default */].extend({}, this.newTabs[this.activeName].param, this.param);
|
|
5604
|
+
var _params = util["a" /* default */].extend({}, this.newTabs[this.activeName].param, this.param[this.activeName] ? this.param[this.activeName] : this.param);
|
|
5604
5605
|
_params.id = data.id;
|
|
5605
5606
|
util["a" /* default */].ajax({
|
|
5606
5607
|
method: this.method,
|
package/lib/selector.js
CHANGED
|
@@ -3771,7 +3771,7 @@ module.exports = require("axios");
|
|
|
3771
3771
|
// ESM COMPAT FLAG
|
|
3772
3772
|
__webpack_require__.r(__webpack_exports__);
|
|
3773
3773
|
|
|
3774
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=
|
|
3774
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/selector/src/main.vue?vue&type=template&id=495533b9&
|
|
3775
3775
|
var render = function () {
|
|
3776
3776
|
var _vm = this
|
|
3777
3777
|
var _h = _vm.$createElement
|
|
@@ -4294,6 +4294,7 @@ var render = function () {
|
|
|
4294
4294
|
isShowLevel3: _vm.isShowLevel3,
|
|
4295
4295
|
},
|
|
4296
4296
|
on: {
|
|
4297
|
+
tabschage: _vm.tabschage,
|
|
4297
4298
|
"!click": function ($event) {
|
|
4298
4299
|
return _vm.stopd($event)
|
|
4299
4300
|
},
|
|
@@ -4327,7 +4328,7 @@ var staticRenderFns = []
|
|
|
4327
4328
|
render._withStripped = true
|
|
4328
4329
|
|
|
4329
4330
|
|
|
4330
|
-
// CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=
|
|
4331
|
+
// CONCATENATED MODULE: ./packages/selector/src/main.vue?vue&type=template&id=495533b9&
|
|
4331
4332
|
|
|
4332
4333
|
// EXTERNAL MODULE: ./src/utils/util.js
|
|
4333
4334
|
var util = __webpack_require__(0);
|
|
@@ -4552,6 +4553,7 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
|
|
|
4552
4553
|
//
|
|
4553
4554
|
//
|
|
4554
4555
|
//
|
|
4556
|
+
//
|
|
4555
4557
|
|
|
4556
4558
|
|
|
4557
4559
|
|
|
@@ -4877,6 +4879,9 @@ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
|
|
|
4877
4879
|
handleBlur: function handleBlur() {
|
|
4878
4880
|
this.focus = false;
|
|
4879
4881
|
},
|
|
4882
|
+
tabschage: function tabschage(trees, active) {
|
|
4883
|
+
this.$emit('tabs-change', trees, active);
|
|
4884
|
+
},
|
|
4880
4885
|
handleClose: function handleClose(res) {
|
|
4881
4886
|
if (!this.multiple && this.selected[0] === this.words) {
|
|
4882
4887
|
this.selected = [];
|
package/lib/upload.js
CHANGED
|
@@ -3976,8 +3976,8 @@ module.exports = require("js-base64");
|
|
|
3976
3976
|
// ESM COMPAT FLAG
|
|
3977
3977
|
__webpack_require__.r(__webpack_exports__);
|
|
3978
3978
|
|
|
3979
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=
|
|
3980
|
-
var
|
|
3979
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=12134e47&
|
|
3980
|
+
var mainvue_type_template_id_12134e47_render = function () {
|
|
3981
3981
|
var _vm = this
|
|
3982
3982
|
var _h = _vm.$createElement
|
|
3983
3983
|
var _c = _vm._self._c || _h
|
|
@@ -4358,10 +4358,10 @@ var mainvue_type_template_id_60e8548b_render = function () {
|
|
|
4358
4358
|
: _vm._e()
|
|
4359
4359
|
}
|
|
4360
4360
|
var staticRenderFns = []
|
|
4361
|
-
|
|
4361
|
+
mainvue_type_template_id_12134e47_render._withStripped = true
|
|
4362
4362
|
|
|
4363
4363
|
|
|
4364
|
-
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=
|
|
4364
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=12134e47&
|
|
4365
4365
|
|
|
4366
4366
|
// EXTERNAL MODULE: ./src/config/api.js
|
|
4367
4367
|
var api = __webpack_require__(1);
|
|
@@ -5173,7 +5173,7 @@ var _props;
|
|
|
5173
5173
|
suffix = suffix.toLowerCase();
|
|
5174
5174
|
if (this.dochubConfig.previewDocumentUrl) {
|
|
5175
5175
|
if (suffix.includes('jpge') || suffix.includes('jpg') || suffix.includes('gif') || suffix.includes('png')) {
|
|
5176
|
-
this.imgUrl = res.url && util["a" /* default */].startWith(url, ['http', '/', true]) ? res.url : this.host + (url ? url : this.
|
|
5176
|
+
this.imgUrl = res.url && util["a" /* default */].startWith(url, ['http', '/', true]) ? res.url : this.host + (url ? url : this.dochubConfig.downloadDocumentUrl + '?documentId=' + file.adjunctId);
|
|
5177
5177
|
this.title = file.originalName;
|
|
5178
5178
|
this.showImg = true;
|
|
5179
5179
|
this.$nextTick(function () {
|
|
@@ -5181,7 +5181,7 @@ var _props;
|
|
|
5181
5181
|
});
|
|
5182
5182
|
} else if (suffix.includes('mp4')) {
|
|
5183
5183
|
this.source = {
|
|
5184
|
-
src: this.host + (url ? url : this.
|
|
5184
|
+
src: this.host + (url ? url : this.dochubConfig.downloadDocumentUrl + '?documentId=' + file.adjunctId)
|
|
5185
5185
|
};
|
|
5186
5186
|
this.title = file.originalName;
|
|
5187
5187
|
this.showVideo = true;
|
|
@@ -5506,7 +5506,7 @@ var componentNormalizer = __webpack_require__(3);
|
|
|
5506
5506
|
|
|
5507
5507
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
5508
5508
|
src_mainvue_type_script_lang_js_,
|
|
5509
|
-
|
|
5509
|
+
mainvue_type_template_id_12134e47_render,
|
|
5510
5510
|
staticRenderFns,
|
|
5511
5511
|
false,
|
|
5512
5512
|
null,
|
package/package.json
CHANGED
package/packages/.DS_Store
CHANGED
|
Binary file
|
|
@@ -425,6 +425,7 @@ export default {
|
|
|
425
425
|
type: String,
|
|
426
426
|
default: '0'
|
|
427
427
|
},
|
|
428
|
+
firstLoginModel: String,
|
|
428
429
|
//是否加密传输
|
|
429
430
|
isEncrypt: {
|
|
430
431
|
type: Boolean,
|
|
@@ -1074,6 +1075,7 @@ export default {
|
|
|
1074
1075
|
});
|
|
1075
1076
|
},
|
|
1076
1077
|
setConfig(res) {
|
|
1078
|
+
const isLogined = localStorage.getItem('isLogined');
|
|
1077
1079
|
this.identifyingId = res.identifyingId || '';
|
|
1078
1080
|
this.getImgCode();
|
|
1079
1081
|
let downloads = {};
|
|
@@ -1107,7 +1109,10 @@ export default {
|
|
|
1107
1109
|
this.qrimg = res.qrimg || res.qrImg;
|
|
1108
1110
|
}
|
|
1109
1111
|
if (res.loginModel && ceshi !== 'true' && ceshi !== true) {
|
|
1110
|
-
this.loginModel =
|
|
1112
|
+
this.loginModel =
|
|
1113
|
+
(res.firstLoginModel || this.firstLoginModel) && !isLogined
|
|
1114
|
+
? res.firstLoginModel || this.firstLoginModel
|
|
1115
|
+
: res.loginModel;
|
|
1111
1116
|
}
|
|
1112
1117
|
if (res.loginBackgroundUrl) {
|
|
1113
1118
|
this.loginBackgroundImg = res.loginBackgroundUrl.split(',');
|
|
@@ -1128,7 +1133,10 @@ export default {
|
|
|
1128
1133
|
res.subsystemExtend.loginModel &&
|
|
1129
1134
|
(ceshi == 'true' || ceshi == true)
|
|
1130
1135
|
) {
|
|
1131
|
-
this.loginModel =
|
|
1136
|
+
this.loginModel =
|
|
1137
|
+
(res.firstLoginModel || this.firstLoginModel) && !isLogined
|
|
1138
|
+
? res.firstLoginModel || this.firstLoginModel
|
|
1139
|
+
: res.subsystemExtend.loginModel;
|
|
1132
1140
|
}
|
|
1133
1141
|
if (res.subsystemExtend.applicationName) {
|
|
1134
1142
|
localStorage.setItem('appcode', res.subsystemExtend.applicationName);
|
|
@@ -1506,6 +1514,7 @@ export default {
|
|
|
1506
1514
|
window.location.href = this.toUrl;
|
|
1507
1515
|
} else if (results.doorIndex && this.doorIndex) {
|
|
1508
1516
|
sessionStorage.setItem('doorIndex', results.doorIndex);
|
|
1517
|
+
localStorage.setItem('isLogined', true);
|
|
1509
1518
|
window.location.href = results.doorIndex;
|
|
1510
1519
|
} else {
|
|
1511
1520
|
if (window.location.href.indexOf('login.html') > -1) {
|
|
@@ -235,7 +235,7 @@ export default {
|
|
|
235
235
|
this.searchAll(res);
|
|
236
236
|
});
|
|
237
237
|
this.handleSearchd = debounce(500, (obj, index) => {
|
|
238
|
-
this.handleSearch(obj, index);
|
|
238
|
+
this.handleSearch(obj, index, false);
|
|
239
239
|
});
|
|
240
240
|
},
|
|
241
241
|
created() {
|
|
@@ -335,7 +335,7 @@ export default {
|
|
|
335
335
|
this.$set(this.noMore, item.id || String(i), true);
|
|
336
336
|
} else if (item.dataRequestUrl) {
|
|
337
337
|
this.isLoading = true;
|
|
338
|
-
this.handleSearch(item, i);
|
|
338
|
+
this.handleSearch(item, i, true);
|
|
339
339
|
} else {
|
|
340
340
|
this.types[i].records = [];
|
|
341
341
|
this.types[i].totalCount = 0;
|
|
@@ -371,7 +371,7 @@ export default {
|
|
|
371
371
|
});
|
|
372
372
|
return records;
|
|
373
373
|
},
|
|
374
|
-
handleSearch(obj, index) {
|
|
374
|
+
handleSearch(obj, index, reset) {
|
|
375
375
|
if (obj.pageNum < obj.pageCount && this.keyWords) {
|
|
376
376
|
this.$set(this.loadings, obj.id || String(index), true);
|
|
377
377
|
if (this.active == '0') {
|
|
@@ -406,7 +406,9 @@ export default {
|
|
|
406
406
|
obj.totalCount = results.totalCount;
|
|
407
407
|
obj.pageCount = results.pageCount;
|
|
408
408
|
obj.pageNum = results.pageNum;
|
|
409
|
-
obj.records =
|
|
409
|
+
obj.records = reset
|
|
410
|
+
? results.records
|
|
411
|
+
: obj.records.concat(results.records);
|
|
410
412
|
this.$set(
|
|
411
413
|
this.noMore,
|
|
412
414
|
obj.id || String(index),
|
|
@@ -203,6 +203,7 @@
|
|
|
203
203
|
:type="types"
|
|
204
204
|
:mix="mix"
|
|
205
205
|
:isShowLevel3="isShowLevel3"
|
|
206
|
+
@tabschage="tabschage"
|
|
206
207
|
@click.capture="stopd"
|
|
207
208
|
@confirm="handleConfirm"
|
|
208
209
|
@cancel="handleCancel"
|
|
@@ -536,6 +537,9 @@ export default {
|
|
|
536
537
|
handleBlur() {
|
|
537
538
|
this.focus = false;
|
|
538
539
|
},
|
|
540
|
+
tabschage(trees, active) {
|
|
541
|
+
this.$emit('tabs-change', trees, active);
|
|
542
|
+
},
|
|
539
543
|
handleClose(res) {
|
|
540
544
|
if (!this.multiple && this.selected[0] === this.words) {
|
|
541
545
|
this.selected = [];
|
|
@@ -652,12 +652,15 @@ export default {
|
|
|
652
652
|
this.nodeData = this.trees[active].nodeData;
|
|
653
653
|
} else {
|
|
654
654
|
if (typeof this.selection === 'string') {
|
|
655
|
+
let params = this.param[this.activeName]
|
|
656
|
+
? this.param[this.activeName]
|
|
657
|
+
: this.param;
|
|
655
658
|
util
|
|
656
659
|
.ajax({
|
|
657
660
|
method: this.method,
|
|
658
661
|
url: this.host + this.selection,
|
|
659
|
-
params:
|
|
660
|
-
data:
|
|
662
|
+
params: params,
|
|
663
|
+
data: params
|
|
661
664
|
})
|
|
662
665
|
.then((res) => {
|
|
663
666
|
if (res.rCode === 0) {
|
|
@@ -677,7 +680,11 @@ export default {
|
|
|
677
680
|
}
|
|
678
681
|
},
|
|
679
682
|
getTreeData(url, params, id) {
|
|
680
|
-
let data = util.extend(
|
|
683
|
+
let data = util.extend(
|
|
684
|
+
{},
|
|
685
|
+
params,
|
|
686
|
+
this.param[this.activeName] ? this.param[this.activeName] : this.param
|
|
687
|
+
);
|
|
681
688
|
if (id !== undefined) {
|
|
682
689
|
data.id = id;
|
|
683
690
|
}
|
|
@@ -715,7 +722,12 @@ export default {
|
|
|
715
722
|
if (flag) {
|
|
716
723
|
if (data.selection === undefined || data.selection.length === 0) {
|
|
717
724
|
this.checkAll = false;
|
|
718
|
-
let params = util.extend(
|
|
725
|
+
let params = util.extend(
|
|
726
|
+
{},
|
|
727
|
+
this.param[this.activeName]
|
|
728
|
+
? this.param[this.activeName]
|
|
729
|
+
: this.param
|
|
730
|
+
);
|
|
719
731
|
params.type = this.activeName;
|
|
720
732
|
params.mid = data.id;
|
|
721
733
|
if (this.activeName === 'enterprise') {
|
|
@@ -772,7 +784,9 @@ export default {
|
|
|
772
784
|
let params = util.extend(
|
|
773
785
|
{},
|
|
774
786
|
this.newTabs[this.activeName].param,
|
|
775
|
-
this.param
|
|
787
|
+
this.param[this.activeName]
|
|
788
|
+
? this.param[this.activeName]
|
|
789
|
+
: this.param
|
|
776
790
|
);
|
|
777
791
|
params.id = data.id;
|
|
778
792
|
util
|
|
@@ -875,7 +875,7 @@ export default {
|
|
|
875
875
|
: this.host +
|
|
876
876
|
(url
|
|
877
877
|
? url
|
|
878
|
-
: `${this.
|
|
878
|
+
: `${this.dochubConfig.downloadDocumentUrl}?documentId=${file.adjunctId}`);
|
|
879
879
|
this.title = file.originalName;
|
|
880
880
|
this.showImg = true;
|
|
881
881
|
this.$nextTick(() => {
|
|
@@ -887,7 +887,7 @@ export default {
|
|
|
887
887
|
this.host +
|
|
888
888
|
(url
|
|
889
889
|
? url
|
|
890
|
-
: `${this.
|
|
890
|
+
: `${this.dochubConfig.downloadDocumentUrl}?documentId=${file.adjunctId}`)
|
|
891
891
|
};
|
|
892
892
|
this.title = file.originalName;
|
|
893
893
|
this.showVideo = true;
|