component-l-e 1.0.6 → 1.0.7
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/component-l-e.common.js
CHANGED
|
@@ -41402,7 +41402,7 @@ if (typeof window !== 'undefined') {
|
|
|
41402
41402
|
// Indicate to webpack that this file can be concatenated
|
|
41403
41403
|
/* harmony default export */ var setPublicPath = (null);
|
|
41404
41404
|
|
|
41405
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/deliveryPlatformProject/src/LEProjectIndex.vue?vue&type=template&id=
|
|
41405
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/deliveryPlatformProject/src/LEProjectIndex.vue?vue&type=template&id=4e595392&scoped=true
|
|
41406
41406
|
var render = function render() {
|
|
41407
41407
|
var _vm = this,
|
|
41408
41408
|
_c = _vm._self._c;
|
|
@@ -41521,7 +41521,7 @@ var render = function render() {
|
|
|
41521
41521
|
fn: function (scope) {
|
|
41522
41522
|
return [_vm.hasSlot('operation') ? _vm._t("operation", null, null, scope) : _c('div', {
|
|
41523
41523
|
staticClass: "operation-btns"
|
|
41524
|
-
}, [_c('el-button', {
|
|
41524
|
+
}, [_vm.getPermit(scope.record, 'change') ? _c('el-button', {
|
|
41525
41525
|
attrs: {
|
|
41526
41526
|
"type": "warning",
|
|
41527
41527
|
"size": "mini"
|
|
@@ -41531,7 +41531,7 @@ var render = function render() {
|
|
|
41531
41531
|
return _vm.handleChange(scope.record);
|
|
41532
41532
|
}
|
|
41533
41533
|
}
|
|
41534
|
-
}, [_vm._v("更改用户")]), _c('el-button', {
|
|
41534
|
+
}, [_vm._v("更改用户")]) : _vm._e(), _vm.getPermit(scope.record, 'share') ? _c('el-button', {
|
|
41535
41535
|
staticClass: "ml-10",
|
|
41536
41536
|
attrs: {
|
|
41537
41537
|
"size": "mini",
|
|
@@ -41542,7 +41542,7 @@ var render = function render() {
|
|
|
41542
41542
|
return _vm.openShareDialog(scope.record);
|
|
41543
41543
|
}
|
|
41544
41544
|
}
|
|
41545
|
-
}, [_vm._v("分享")]), _c('el-button', {
|
|
41545
|
+
}, [_vm._v("分享")]) : _vm._e(), _vm.getPermit(scope.record, 'delete') ? _c('el-button', {
|
|
41546
41546
|
staticClass: "ml-10",
|
|
41547
41547
|
attrs: {
|
|
41548
41548
|
"type": "danger",
|
|
@@ -41553,7 +41553,7 @@ var render = function render() {
|
|
|
41553
41553
|
return _vm.handleDeleteProject(scope.record);
|
|
41554
41554
|
}
|
|
41555
41555
|
}
|
|
41556
|
-
}, [_vm._v("删除
|
|
41556
|
+
}, [_vm._v("删除")]) : _vm._e(), _vm._t("extraOperation", null, null, scope)], 2)];
|
|
41557
41557
|
}
|
|
41558
41558
|
}, {
|
|
41559
41559
|
key: "filterRawDataStatus",
|
|
@@ -41709,14 +41709,48 @@ var axios = __webpack_require__(788);
|
|
|
41709
41709
|
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
41710
41710
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/element-ui.common.js
|
|
41711
41711
|
var element_ui_common = __webpack_require__(9143);
|
|
41712
|
+
;// ./packages/deliveryPlatformProject/src/utils/localStorage.js
|
|
41713
|
+
const dataManager = "delivery";
|
|
41714
|
+
const keyPrefix = dataManager + "_";
|
|
41715
|
+
const saveDataToLocalStorage = (key, value) => {
|
|
41716
|
+
if (!key || !value) {
|
|
41717
|
+
return;
|
|
41718
|
+
}
|
|
41719
|
+
localStorage.setItem(AddFix(key), value);
|
|
41720
|
+
};
|
|
41721
|
+
const getDataInLocalStorage = key => {
|
|
41722
|
+
if (!key) {
|
|
41723
|
+
return '';
|
|
41724
|
+
}
|
|
41725
|
+
var value = localStorage.getItem(AddFix(key));
|
|
41726
|
+
if (!value) {
|
|
41727
|
+
return '';
|
|
41728
|
+
}
|
|
41729
|
+
return value;
|
|
41730
|
+
};
|
|
41731
|
+
const removeDataInLocalStorage = key => {
|
|
41732
|
+
localStorage.removeItem(AddFix(key));
|
|
41733
|
+
};
|
|
41734
|
+
const AddFix = value => {
|
|
41735
|
+
value = keyPrefix + value;
|
|
41736
|
+
return value;
|
|
41737
|
+
};
|
|
41738
|
+
;// ./packages/deliveryPlatformProject/src/utils/tools.js
|
|
41739
|
+
|
|
41740
|
+
function isVersion(sysUiVersion) {
|
|
41741
|
+
const localVersion = getDataInLocalStorage('version');
|
|
41742
|
+
if (!localVersion || localVersion && localVersion !== sysUiVersion) {
|
|
41743
|
+
saveDataToLocalStorage('version', sysUiVersion);
|
|
41744
|
+
window.location.reload();
|
|
41745
|
+
}
|
|
41746
|
+
}
|
|
41712
41747
|
;// ./packages/axios/index.js
|
|
41713
41748
|
/**axios封装
|
|
41714
41749
|
* 请求拦截、相应拦截、错误统一处理
|
|
41715
41750
|
*/
|
|
41716
41751
|
|
|
41717
41752
|
|
|
41718
|
-
|
|
41719
|
-
// import {isVersion} from "../utils";
|
|
41753
|
+
|
|
41720
41754
|
|
|
41721
41755
|
let tokenExpiredStatus = false;
|
|
41722
41756
|
const common = {
|
|
@@ -41741,10 +41775,10 @@ const responseHandler = response => {
|
|
|
41741
41775
|
} = {
|
|
41742
41776
|
...response.data
|
|
41743
41777
|
};
|
|
41744
|
-
|
|
41745
|
-
|
|
41746
|
-
|
|
41747
|
-
|
|
41778
|
+
let version = response.headers['delivery-client-version'];
|
|
41779
|
+
if (version) {
|
|
41780
|
+
isVersion(version);
|
|
41781
|
+
}
|
|
41748
41782
|
if (response.status === 200) {
|
|
41749
41783
|
if (code === 200) {
|
|
41750
41784
|
if (response.config.url.includes("/login")) {
|
|
@@ -41754,11 +41788,11 @@ const responseHandler = response => {
|
|
|
41754
41788
|
}
|
|
41755
41789
|
} else {
|
|
41756
41790
|
if (code === 401) {
|
|
41757
|
-
|
|
41758
|
-
|
|
41759
|
-
|
|
41760
|
-
|
|
41761
|
-
|
|
41791
|
+
removeDataInLocalStorage('token');
|
|
41792
|
+
if (!tokenExpiredStatus) {
|
|
41793
|
+
tokenExpiredStatus = true;
|
|
41794
|
+
tokenExpPrompt();
|
|
41795
|
+
}
|
|
41762
41796
|
return {
|
|
41763
41797
|
code: ''
|
|
41764
41798
|
};
|
|
@@ -41792,7 +41826,7 @@ const responseHandlerError = error => {
|
|
|
41792
41826
|
}
|
|
41793
41827
|
};
|
|
41794
41828
|
const handleRequest = request => {
|
|
41795
|
-
request.headers.Authorization = '
|
|
41829
|
+
request.headers.Authorization = getDataInLocalStorage('token');
|
|
41796
41830
|
return request;
|
|
41797
41831
|
};
|
|
41798
41832
|
const handleRequestError = error => {
|
|
@@ -43766,6 +43800,15 @@ var loading_load_namespaceObject = __webpack_require__.p + "img/loading-load.93a
|
|
|
43766
43800
|
default: () => {
|
|
43767
43801
|
return {};
|
|
43768
43802
|
}
|
|
43803
|
+
},
|
|
43804
|
+
// 操作按钮权限配置 { change: true, share: true, delete: true } 或函数 (record) => ({ change: true })
|
|
43805
|
+
operationPermit: {
|
|
43806
|
+
type: [Object, Function],
|
|
43807
|
+
default: () => ({
|
|
43808
|
+
change: false,
|
|
43809
|
+
share: false,
|
|
43810
|
+
delete: false
|
|
43811
|
+
})
|
|
43769
43812
|
}
|
|
43770
43813
|
},
|
|
43771
43814
|
components: {
|
|
@@ -43819,6 +43862,11 @@ var loading_load_namespaceObject = __webpack_require__.p + "img/loading-load.93a
|
|
|
43819
43862
|
hasSlot(name) {
|
|
43820
43863
|
return !!this.$scopedSlots[name];
|
|
43821
43864
|
},
|
|
43865
|
+
// 获取按钮权限
|
|
43866
|
+
getPermit(record, key) {
|
|
43867
|
+
const permit = typeof this.operationPermit === 'function' ? this.operationPermit(record) : this.operationPermit;
|
|
43868
|
+
return permit[key] !== false;
|
|
43869
|
+
},
|
|
43822
43870
|
// 格式化客户名称
|
|
43823
43871
|
formatCustomerName(text) {
|
|
43824
43872
|
return text ? Array.from(new Set(text.map(item => item.realName))).join(';') : '';
|
|
@@ -43982,10 +44030,10 @@ var loading_load_namespaceObject = __webpack_require__.p + "img/loading-load.93a
|
|
|
43982
44030
|
});
|
|
43983
44031
|
;// ./packages/deliveryPlatformProject/src/LEProjectIndex.vue?vue&type=script&lang=js
|
|
43984
44032
|
/* harmony default export */ var src_LEProjectIndexvue_type_script_lang_js = (LEProjectIndexvue_type_script_lang_js);
|
|
43985
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/deliveryPlatformProject/src/LEProjectIndex.vue?vue&type=style&index=0&id=
|
|
44033
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/deliveryPlatformProject/src/LEProjectIndex.vue?vue&type=style&index=0&id=4e595392&prod&scoped=true&lang=css
|
|
43986
44034
|
// extracted by mini-css-extract-plugin
|
|
43987
44035
|
|
|
43988
|
-
;// ./packages/deliveryPlatformProject/src/LEProjectIndex.vue?vue&type=style&index=0&id=
|
|
44036
|
+
;// ./packages/deliveryPlatformProject/src/LEProjectIndex.vue?vue&type=style&index=0&id=4e595392&prod&scoped=true&lang=css
|
|
43989
44037
|
|
|
43990
44038
|
;// ./packages/deliveryPlatformProject/src/LEProjectIndex.vue
|
|
43991
44039
|
|
|
@@ -44002,7 +44050,7 @@ var LEProjectIndex_component = normalizeComponent(
|
|
|
44002
44050
|
staticRenderFns,
|
|
44003
44051
|
false,
|
|
44004
44052
|
null,
|
|
44005
|
-
"
|
|
44053
|
+
"4e595392",
|
|
44006
44054
|
null
|
|
44007
44055
|
|
|
44008
44056
|
)
|