leisure-core 0.3.6 → 0.3.8
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/index.js +3 -0
- package/le-area/index.js +7 -0
- package/le-area/src/main.vue +50 -0
- package/le-promotions/src/sub.vue +1 -1
- package/package.json +2 -19
package/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
formatMoney,
|
|
5
5
|
formatCurrency,
|
|
6
6
|
} from "leisure-js/common/dformat";
|
|
7
|
+
import LeArea from "./le-area/index.js";
|
|
7
8
|
import LeLogin from "./le-login/index.js";
|
|
8
9
|
import LeHome from "./le-home/index.js";
|
|
9
10
|
import LeButton from "./le-button/index.js";
|
|
@@ -41,6 +42,7 @@ import LeDistribution from "./le-distribution/index.js";
|
|
|
41
42
|
import LeDistributionCategory from "./le-distribution-category/index.js";
|
|
42
43
|
|
|
43
44
|
const components = [
|
|
45
|
+
LeArea,
|
|
44
46
|
LeButton,
|
|
45
47
|
LeButtonQr,
|
|
46
48
|
LeButtonMsg,
|
|
@@ -150,6 +152,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
150
152
|
|
|
151
153
|
export default {
|
|
152
154
|
install,
|
|
155
|
+
LeArea,
|
|
153
156
|
LeButton,
|
|
154
157
|
LeButtonQr,
|
|
155
158
|
LeButtonMsg,
|
package/le-area/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-cascader
|
|
3
|
+
v-model="value"
|
|
4
|
+
clearable
|
|
5
|
+
:props="props"
|
|
6
|
+
@change="handleChange"
|
|
7
|
+
></el-cascader>
|
|
8
|
+
</template>
|
|
9
|
+
<script>
|
|
10
|
+
import { getAreas } from "@/api/system-area.js";
|
|
11
|
+
export default {
|
|
12
|
+
name: "le-area",
|
|
13
|
+
props: {
|
|
14
|
+
level: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "2",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
value: [],
|
|
22
|
+
props: {
|
|
23
|
+
label: "name",
|
|
24
|
+
value: "code",
|
|
25
|
+
lazy: true,
|
|
26
|
+
lazyLoad: this.LoadData,
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
mounted() {},
|
|
31
|
+
methods: {
|
|
32
|
+
LoadData(node, resolve) {
|
|
33
|
+
let nodes = [];
|
|
34
|
+
let { level } = node;
|
|
35
|
+
let param = {};
|
|
36
|
+
param.pcode = level == 0 ? "0" : node.value;
|
|
37
|
+
getAreas(param).then((res) => {
|
|
38
|
+
nodes = res.data.data;
|
|
39
|
+
nodes.forEach((item) => {
|
|
40
|
+
item.leaf = item.type == this.level ? true : false;
|
|
41
|
+
});
|
|
42
|
+
resolve(nodes);
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
handleChange(currentValue) {
|
|
46
|
+
this.$emit("areaChange", currentValue);
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leisure-core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "leisure-core是leisure-ui-core的简称,是京心数据基于vue2.0开发的一套后台系统框架与js库,包含登录,首页框架等",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "北方乐逍遥(zcx7878)",
|
|
@@ -20,8 +20,6 @@
|
|
|
20
20
|
"leisure-js": "^0.2.3",
|
|
21
21
|
"html2canvas": "^1.4.1",
|
|
22
22
|
"js-base64": "^3.7.2",
|
|
23
|
-
"less": "^4.1.3",
|
|
24
|
-
"less-loader": "^7.3.0",
|
|
25
23
|
"moment": "^2.29.3",
|
|
26
24
|
"qrcodejs2": "^0.0.2",
|
|
27
25
|
"vue": "^2.6.14",
|
|
@@ -31,21 +29,6 @@
|
|
|
31
29
|
"xe-utils": "^3.5.7"
|
|
32
30
|
},
|
|
33
31
|
"devDependencies": {
|
|
34
|
-
|
|
35
|
-
"@babel/core": "^7.23.9",
|
|
36
|
-
"@babel/eslint-parser": "^7.12.16",
|
|
37
|
-
"@babel/preset-env": "^7.23.9",
|
|
38
|
-
"@vue/cli-plugin-babel": "~5.0.0",
|
|
39
|
-
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
40
|
-
"@vue/cli-plugin-router": "~5.0.0",
|
|
41
|
-
"@vue/cli-plugin-vuex": "~5.0.0",
|
|
42
|
-
"@vue/cli-service": "~5.0.0",
|
|
43
|
-
"cross-env": "^7.0.3",
|
|
44
|
-
"eslint": "^7.32.0",
|
|
45
|
-
"eslint-plugin-vue": "^8.0.3",
|
|
46
|
-
"sass": "^1.32.7",
|
|
47
|
-
"sass-loader": "^12.0.0",
|
|
48
|
-
"vue-template-compiler": "^2.6.14",
|
|
49
|
-
"webpack-cli": "^5.1.4"
|
|
32
|
+
|
|
50
33
|
}
|
|
51
34
|
}
|