t20-common-lib 0.12.12 → 0.12.13
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,15 +126,15 @@
|
|
|
126
126
|
</template>
|
|
127
127
|
|
|
128
128
|
<script>
|
|
129
|
-
import Tree from "
|
|
130
|
-
import ElSelect from "
|
|
129
|
+
import Tree from "../../../src/common/selectTree/Tree/index.vue";
|
|
130
|
+
import ElSelect from "../../../src/common/selectTree/Extends/ElSelect.vue";
|
|
131
131
|
import Filters from "../../../src/common/Filters/index.vue"
|
|
132
132
|
import request from "@/utils/request";
|
|
133
133
|
import { getCommonConfig } from "../../../src/api/common";
|
|
134
|
-
import treeSelectImg from "
|
|
135
|
-
import treeUnSelectImg from "
|
|
136
|
-
import listSelectImg from "
|
|
137
|
-
import listUnSelectImg from "
|
|
134
|
+
import treeSelectImg from "../../../src/common/selectTree/imgs/tree-select.png";
|
|
135
|
+
import treeUnSelectImg from "../../../src/common/selectTree/imgs/tree-unselect.png";
|
|
136
|
+
import listSelectImg from "../../../src/common/selectTree/imgs/list-select.png";
|
|
137
|
+
import listUnSelectImg from "../../../src/common/selectTree/imgs/list-unselect.png";
|
|
138
138
|
|
|
139
139
|
/** 兼容接口返回体在 res 顶层或 res.data */
|
|
140
140
|
function unwrapRequestData(res) {
|
|
@@ -697,12 +697,14 @@ export default {
|
|
|
697
697
|
new Promise((resolve) => {
|
|
698
698
|
this.getTreeData("1", { resolve, expandFlag: true });
|
|
699
699
|
}).then((data) => {
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
700
|
+
let flatTemp = [];
|
|
701
|
+
this.flatData(this.data, flatTemp);
|
|
702
|
+
//去除没有权限的单位
|
|
703
|
+
flatTemp = flatTemp.filter((s) => {
|
|
704
|
+
return !s.disabled;
|
|
705
|
+
});
|
|
704
706
|
this.checkD = true;
|
|
705
|
-
this.selectData = JSON.parse(JSON.stringify(
|
|
707
|
+
this.selectData = JSON.parse(JSON.stringify(flatTemp));
|
|
706
708
|
this.valueShow = this.$t("common_a_0003");
|
|
707
709
|
this.$nextTick(() => {
|
|
708
710
|
console.log(11111, this.selectData);
|
|
@@ -653,12 +653,14 @@ export default {
|
|
|
653
653
|
new Promise((resolve) => {
|
|
654
654
|
this.getTreeData("1", { resolve, expandFlag: true });
|
|
655
655
|
}).then((data) => {
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
656
|
+
let flatTemp = [];
|
|
657
|
+
this.flatData(this.data, flatTemp);
|
|
658
|
+
//去除没有权限的单位
|
|
659
|
+
flatTemp = flatTemp.filter((s) => {
|
|
660
|
+
return !s.disabled;
|
|
661
|
+
});
|
|
660
662
|
this.checkD = true;
|
|
661
|
-
this.selectData = JSON.parse(JSON.stringify(
|
|
663
|
+
this.selectData = JSON.parse(JSON.stringify(flatTemp));
|
|
662
664
|
this.valueShow = this.$t("common_a_0003");
|
|
663
665
|
this.$nextTick(() => {
|
|
664
666
|
console.log(11111, this.selectData);
|