@indfnd/common 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/CHANGELOG.md +7 -0
- package/dist/ind-common.es.js +62 -62
- package/dist/ind-common.umd.cjs +19 -19
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.7](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.6...v1.0.7) (2024-06-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 明细页面加说明 ([52adffe](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/52adffe0d080b35249e07bb7b277542cf3363e18))
|
|
11
|
+
|
|
5
12
|
### [1.0.6](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.5...v1.0.6) (2024-06-17)
|
|
6
13
|
|
|
7
14
|
### [1.0.5](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.4...v1.0.5) (2024-06-17)
|
package/dist/ind-common.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Button as Button$1, ButtonGroup as ButtonGroup$1, Input, Drawer as Draw
|
|
|
2
2
|
import { isNil, formatDate as formatDate$1, useConfig, getQuarterNum, formatQuarter, str2Date, isDate, isArray, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios, isFunction, isString, uuid, exportJsonToExcel as exportJsonToExcel$1, importJsonFromExcel, on, off, deleteMenuHistoryApi, deleteMenuCollectApi, getMenuHistoryApi, getMenuCollectApi, getPermissionCache, listItemTreeApi, getPriceInfo, MIME_TYPE, base64ToBlob, putOssFileApi, isEqual, getCaptchaURL, getLocalStorage, guid, setLocalStorage, removeLocalStorage, clearSessionStorage, cryptor, getToken, putOssFileUrl, getOssFileUrl, responseInterceptors, config as config$1, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, getSessionStorage, setSessionStorage, getAppListApi, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, getIndexDescCache, listIndexDescApi, setIndexDescCache } from "@indfnd/utils";
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
const name$1 = "@indfnd/common";
|
|
5
|
-
const version = "1.0.
|
|
5
|
+
const version = "1.0.6";
|
|
6
6
|
const author = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -57509,39 +57509,46 @@ var render$A = function() {
|
|
|
57509
57509
|
var _vm = this;
|
|
57510
57510
|
var _h = _vm.$createElement;
|
|
57511
57511
|
var _c = _vm._self._c || _h;
|
|
57512
|
-
return _c("div", {
|
|
57513
|
-
_vm.
|
|
57514
|
-
} } }
|
|
57512
|
+
return _c("div", { staticClass: "ind-menu-desc" }, [_c("Icon", { attrs: { "type": "ios-help-circle-outline", "color": "#488aff", "size": "20" }, on: { "click": function($event) {
|
|
57513
|
+
_vm.show = true;
|
|
57514
|
+
} } }), _c("IndModal", { attrs: { "lazyRender": false, "title": _vm.title, "mask-closable": true, "width": _vm.width, "transfer": "" }, on: { "on-cancel": function($event) {
|
|
57515
|
+
_vm.show = false;
|
|
57516
|
+
}, "on-ok": function($event) {
|
|
57517
|
+
_vm.show = false;
|
|
57518
|
+
} }, model: { value: _vm.show, callback: function($$v) {
|
|
57519
|
+
_vm.show = $$v;
|
|
57520
|
+
}, expression: "show" } }, [_vm.menuInfo.menuDesc ? [_c("div", { staticClass: "ind-menu-help-panel" }, [_c("div", { staticClass: "ind-flex" }, [_c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u529F\u80FD\u8BF4\u660E\uFF1A")]), _c("div", { staticClass: "ind-menu-title-content" }, [_vm._v(" " + _vm._s(_vm.menuInfo.menuDesc) + " ")])]), _c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u6307\u6807\u5B9A\u4E49\uFF1A")]), _vm._l(_vm.menuInfo.indexList, function(item2, idx) {
|
|
57521
|
+
return _c("div", { key: "index" + idx, staticClass: "ind-menu-line-item" }, [_c("div", { staticClass: "ind-intent-1 ind-flex-no-shrink" }, [_vm._v(_vm._s(item2.indexName))]), _c("div", { staticClass: "ind-menu-desc-content" }, [_vm._v(" " + _vm._s(item2.indexRule) + " ")])]);
|
|
57522
|
+
})], 2)] : [_c("div", { staticClass: "ind-empty" }, [_vm._v("\u6682\u65E0")])]], 2)], 1);
|
|
57515
57523
|
};
|
|
57516
57524
|
var staticRenderFns$A = [];
|
|
57517
57525
|
const __vue2_script$B = {
|
|
57518
|
-
name: "IndDetailView",
|
|
57519
|
-
components: { Button },
|
|
57520
57526
|
props: {
|
|
57521
|
-
|
|
57522
|
-
|
|
57523
|
-
|
|
57524
|
-
customTitle: String,
|
|
57525
|
-
hasPadding: Boolean
|
|
57527
|
+
title: { type: String, default: "\u9875\u9762\u5E2E\u52A9" },
|
|
57528
|
+
width: { type: Number, default: 1060 },
|
|
57529
|
+
height: { type: Number, default: 650 }
|
|
57526
57530
|
},
|
|
57527
|
-
|
|
57528
|
-
|
|
57529
|
-
|
|
57530
|
-
|
|
57531
|
+
data() {
|
|
57532
|
+
return {
|
|
57533
|
+
show: false,
|
|
57534
|
+
menuInfo: {
|
|
57535
|
+
menuDesc: "",
|
|
57536
|
+
indexList: []
|
|
57537
|
+
}
|
|
57538
|
+
};
|
|
57539
|
+
},
|
|
57540
|
+
created() {
|
|
57541
|
+
this.initData();
|
|
57531
57542
|
},
|
|
57532
57543
|
methods: {
|
|
57533
|
-
|
|
57534
|
-
|
|
57535
|
-
|
|
57536
|
-
|
|
57537
|
-
|
|
57538
|
-
|
|
57539
|
-
"
|
|
57540
|
-
|
|
57541
|
-
_.find(this.$store.state.app.tagNavList, {
|
|
57542
|
-
name: this.$route.name
|
|
57543
|
-
})
|
|
57544
|
-
);
|
|
57544
|
+
initData() {
|
|
57545
|
+
let permissions = getPermissionCache();
|
|
57546
|
+
let curPermission = _.find(permissions, { permissionId: this.$route.meta.permissionId }) || {};
|
|
57547
|
+
try {
|
|
57548
|
+
this.menuInfo = JSON.parse(curPermission.extendProps) || {};
|
|
57549
|
+
} catch (e) {
|
|
57550
|
+
console.log("\u672A\u53D6\u5230\u6570\u636E");
|
|
57551
|
+
}
|
|
57545
57552
|
}
|
|
57546
57553
|
}
|
|
57547
57554
|
};
|
|
@@ -57561,53 +57568,46 @@ function __vue2_injectStyles$B(context) {
|
|
|
57561
57568
|
this[o] = __cssModules$B[o];
|
|
57562
57569
|
}
|
|
57563
57570
|
}
|
|
57564
|
-
var
|
|
57571
|
+
var MenuDesc = /* @__PURE__ */ function() {
|
|
57565
57572
|
return __component__$B.exports;
|
|
57566
57573
|
}();
|
|
57567
57574
|
var render$z = function() {
|
|
57568
57575
|
var _vm = this;
|
|
57569
57576
|
var _h = _vm.$createElement;
|
|
57570
57577
|
var _c = _vm._self._c || _h;
|
|
57571
|
-
return _c("div", { staticClass: "ind-
|
|
57572
|
-
_vm.
|
|
57573
|
-
} } }), _c("
|
|
57574
|
-
_vm.show = false;
|
|
57575
|
-
}, "on-ok": function($event) {
|
|
57576
|
-
_vm.show = false;
|
|
57577
|
-
} }, model: { value: _vm.show, callback: function($$v) {
|
|
57578
|
-
_vm.show = $$v;
|
|
57579
|
-
}, expression: "show" } }, [_vm.menuInfo.menuDesc ? [_c("div", { staticClass: "ind-menu-help-panel" }, [_c("div", { staticClass: "ind-flex" }, [_c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u529F\u80FD\u8BF4\u660E\uFF1A")]), _c("div", { staticClass: "ind-menu-title-content" }, [_vm._v(" " + _vm._s(_vm.menuInfo.menuDesc) + " ")])]), _c("div", { staticClass: "ind-menu-title" }, [_vm._v("\u6307\u6807\u5B9A\u4E49\uFF1A")]), _vm._l(_vm.menuInfo.indexList, function(item2, idx) {
|
|
57580
|
-
return _c("div", { key: "index" + idx, staticClass: "ind-menu-line-item" }, [_c("div", { staticClass: "ind-intent-1 ind-flex-no-shrink" }, [_vm._v(_vm._s(item2.indexName))]), _c("div", { staticClass: "ind-menu-desc-content" }, [_vm._v(" " + _vm._s(item2.indexRule) + " ")])]);
|
|
57581
|
-
})], 2)] : [_c("div", { staticClass: "ind-empty" }, [_vm._v("\u6682\u65E0")])]], 2)], 1);
|
|
57578
|
+
return _c("div", { ref: "detailView", staticClass: "ind-detail-view ind-flex-column", class: { "has-padding": _vm.hasPadding } }, [_vm.isShowHeader ? _c("div", { staticClass: "ind-flex-no-shrink header" }, [_vm.isShowBackBtn ? _c("Button", { staticClass: "back-btn", attrs: { "bizType": "back" }, on: { "click": function($event) {
|
|
57579
|
+
_vm.useGoBack ? _vm.goBack() : _vm.$backToMenu();
|
|
57580
|
+
} } }, [_vm._v("\u8FD4\u56DE")]) : _vm._e(), _c("span", { staticClass: "title" }, [_vm._v(_vm._s(_vm.customTitle || _vm.title))]), _c("MenuDesc"), _c("div", { staticClass: "header-buttons" }, [_vm._t("headerButton")], 2)], 1) : _vm._e(), _c("IndBackTopPanel", { staticClass: "ind-flex-column ind-flex-grow content" }, [_c("div", { staticClass: "content-row" }, [_vm._t("default")], 2)]), _c("div", { staticClass: "ind-flex-no-shrink function-wrapper" }, [_vm._t("footer")], 2)], 1);
|
|
57582
57581
|
};
|
|
57583
57582
|
var staticRenderFns$z = [];
|
|
57584
57583
|
const __vue2_script$A = {
|
|
57584
|
+
name: "IndDetailView",
|
|
57585
|
+
components: { Button, MenuDesc },
|
|
57585
57586
|
props: {
|
|
57586
|
-
|
|
57587
|
-
|
|
57588
|
-
|
|
57589
|
-
|
|
57590
|
-
|
|
57591
|
-
return {
|
|
57592
|
-
show: false,
|
|
57593
|
-
menuInfo: {
|
|
57594
|
-
menuDesc: "",
|
|
57595
|
-
indexList: []
|
|
57596
|
-
}
|
|
57597
|
-
};
|
|
57587
|
+
isShowHeader: { type: Boolean, default: true },
|
|
57588
|
+
isShowBackBtn: { type: Boolean, default: true },
|
|
57589
|
+
useGoBack: Boolean,
|
|
57590
|
+
customTitle: String,
|
|
57591
|
+
hasPadding: Boolean
|
|
57598
57592
|
},
|
|
57599
|
-
|
|
57600
|
-
|
|
57593
|
+
computed: {
|
|
57594
|
+
title() {
|
|
57595
|
+
return this.$route.meta.title;
|
|
57596
|
+
}
|
|
57601
57597
|
},
|
|
57602
57598
|
methods: {
|
|
57603
|
-
|
|
57604
|
-
|
|
57605
|
-
|
|
57606
|
-
|
|
57607
|
-
|
|
57608
|
-
|
|
57609
|
-
|
|
57610
|
-
|
|
57599
|
+
back() {
|
|
57600
|
+
history.go(-1);
|
|
57601
|
+
},
|
|
57602
|
+
goBack() {
|
|
57603
|
+
history.go(-1);
|
|
57604
|
+
this.$store.commit(
|
|
57605
|
+
"closeTag",
|
|
57606
|
+
this.$router,
|
|
57607
|
+
_.find(this.$store.state.app.tagNavList, {
|
|
57608
|
+
name: this.$route.name
|
|
57609
|
+
})
|
|
57610
|
+
);
|
|
57611
57611
|
}
|
|
57612
57612
|
}
|
|
57613
57613
|
};
|
|
@@ -57627,7 +57627,7 @@ function __vue2_injectStyles$A(context) {
|
|
|
57627
57627
|
this[o] = __cssModules$A[o];
|
|
57628
57628
|
}
|
|
57629
57629
|
}
|
|
57630
|
-
var
|
|
57630
|
+
var detailView = /* @__PURE__ */ function() {
|
|
57631
57631
|
return __component__$A.exports;
|
|
57632
57632
|
}();
|
|
57633
57633
|
var render$y = function() {
|