t20-common-lib 0.12.12 → 0.12.14
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
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
<script>
|
|
129
129
|
import Tree from "./selectTree/Tree/index.vue";
|
|
130
130
|
import ElSelect from "./selectTree/Extends/ElSelect.vue";
|
|
131
|
-
import Filters from "
|
|
131
|
+
import Filters from "./Filters/index.vue"
|
|
132
132
|
import request from "@/utils/request";
|
|
133
133
|
import { getCommonConfig } from "../../../src/api/common";
|
|
134
134
|
import treeSelectImg from "./selectTree/imgs/tree-select.png";
|
|
@@ -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);
|