t20-common-lib 0.12.3 → 0.12.5
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/package.json
CHANGED
|
@@ -126,17 +126,17 @@
|
|
|
126
126
|
</template>
|
|
127
127
|
|
|
128
128
|
<script>
|
|
129
|
-
import Tree from "
|
|
130
|
-
import ElSelect from "
|
|
131
|
-
import Filters from "
|
|
132
|
-
import forEachs from "
|
|
133
|
-
import request from "
|
|
134
|
-
import { getToken } from "
|
|
135
|
-
import { getCommonConfig } from "
|
|
136
|
-
import treeSelectImg from "
|
|
137
|
-
import treeUnSelectImg from "
|
|
138
|
-
import listSelectImg from "
|
|
139
|
-
import listUnSelectImg from "
|
|
129
|
+
import Tree from "../../../src/common/selectTree/Tree/index.vue";
|
|
130
|
+
import ElSelect from "../../../src/common/selectTree/Extends/ElSelect.vue";
|
|
131
|
+
import Filters from "../../../src/common/selectTree/Filters/index.vue"
|
|
132
|
+
import forEachs from "../../../src/common/selectTree/forEachs";
|
|
133
|
+
import request from "../../../src/utils/request";
|
|
134
|
+
import { getToken } from "../../../src/utils/auth";
|
|
135
|
+
import { getCommonConfig } from "../../../src/api/common";
|
|
136
|
+
import treeSelectImg from "../../../src/common/selectTree/imgs/tree-select.png";
|
|
137
|
+
import treeUnSelectImg from "../../../src/common/selectTree/imgs/tree-unselect.png";
|
|
138
|
+
import listSelectImg from "../../../src/common/selectTree/imgs/list-select.png";
|
|
139
|
+
import listUnSelectImg from "../../../src/common/selectTree/imgs/list-unselect.png";
|
|
140
140
|
export default {
|
|
141
141
|
name: "SelectTreeUnit",
|
|
142
142
|
components: { ElSelect, Tree, Filters },
|
|
@@ -107,15 +107,15 @@
|
|
|
107
107
|
|
|
108
108
|
<script>
|
|
109
109
|
import emitter from "element-ui/src/mixins/emitter";
|
|
110
|
-
import Tree from "
|
|
111
|
-
import ElSelect from "
|
|
112
|
-
import Filters from "
|
|
113
|
-
import request from "
|
|
114
|
-
import { getCommonConfig } from "
|
|
115
|
-
import treeSelectImg from "
|
|
116
|
-
import treeUnSelectImg from "
|
|
117
|
-
import listSelectImg from "
|
|
118
|
-
import listUnSelectImg from "
|
|
110
|
+
import Tree from "../../../src/common/selectTree/Tree/index.vue";
|
|
111
|
+
import ElSelect from "../../../src/common/selectTree/Extends/ElSelect.vue";
|
|
112
|
+
import Filters from "../../../src/common/selectTree/Filters/index.vue"
|
|
113
|
+
import request from "../../../src/utils/request";
|
|
114
|
+
import { getCommonConfig } from "../../../src/api/common";
|
|
115
|
+
import treeSelectImg from "../../../src/common/selectTree/imgs/tree-select.png";
|
|
116
|
+
import treeUnSelectImg from "../../../src/common/selectTree/imgs/tree-unselect.png";
|
|
117
|
+
import listSelectImg from "../../../src/common/selectTree/imgs/list-select.png";
|
|
118
|
+
import listUnSelectImg from "../../../src/common/selectTree/imgs/list-unselect.png";
|
|
119
119
|
export default {
|
|
120
120
|
name: "SelectTreeUnitForm",
|
|
121
121
|
components: { Tree, ElSelect, Filters },
|
|
@@ -1070,6 +1070,9 @@ export default {
|
|
|
1070
1070
|
this.$emit("input", this.multiple ? data : data[0]);
|
|
1071
1071
|
this.$emit("dataChange", this.selectData);
|
|
1072
1072
|
}
|
|
1073
|
+
if (type === "all") {
|
|
1074
|
+
this.checkD = true;
|
|
1075
|
+
}
|
|
1073
1076
|
this.$nextTick(() => {
|
|
1074
1077
|
this.$refs.tree.setCheckedNodes(this.selectData);
|
|
1075
1078
|
});
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
</template>
|
|
26
26
|
|
|
27
27
|
<script>
|
|
28
|
-
import request from "
|
|
29
|
-
import getJsonc from "
|
|
28
|
+
import request from "../../../utils/request"
|
|
29
|
+
import getJsonc from "../../../utils/getJsonc"
|
|
30
30
|
import { cloneDefaultFilterItems } from "./defaultFilterItems"
|
|
31
31
|
|
|
32
32
|
export default {
|