htui-yllkbz 1.3.25 → 1.3.26

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "htui-yllkbz",
3
- "version": "1.3.25",
3
+ "version": "1.3.26",
4
4
  "port": "8082",
5
5
  "typings": "types/index.d.ts",
6
6
  "main": "lib/htui.common.js",
package/src/App.vue CHANGED
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-11-15 14:41:40
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2022-05-10 10:39:13
7
+ * @LastEditTime: 2022-05-11 17:52:26
8
8
  -->
9
9
  <template>
10
10
  <div id="app">
@@ -17,6 +17,8 @@
17
17
  :multiple="false"
18
18
  v-model="state.value"
19
19
  @change="change"></HtSelectBaseData>
20
+ <HtSelectOrg :clearable="true"
21
+ @change="testuser"></HtSelectOrg>
20
22
  <router-view></router-view>
21
23
  </div>
22
24
  </template>
@@ -24,10 +26,12 @@
24
26
  <script lang="ts">
25
27
  import { Component, Vue } from "vue-property-decorator";
26
28
  import HtSelectBaseData from "@/packages/HtSelectBaseData";
29
+ import HtSelectOrg from "@/packages/HtSelectUser";
27
30
  import { mgr } from "@/plugins/oidc-client";
28
31
  @Component({
29
32
  components: {
30
33
  HtSelectBaseData,
34
+ HtSelectOrg,
31
35
  },
32
36
  })
33
37
  export default class App extends Vue {
@@ -54,6 +58,9 @@ export default class App extends Vue {
54
58
  change() {
55
59
  // console.log("eeee", e);
56
60
  }
61
+ testuser() {
62
+ //console.log("eee", e);
63
+ }
57
64
  test(e: any) {
58
65
  //mgr.removeUser();
59
66
  // mgr.events.
@@ -652,7 +652,8 @@ export default class CommonDatas extends Vue {
652
652
  }
653
653
  /** 设置下拉数据(级联选择) */
654
654
  setSelctData(key: string, e?: string) {
655
- const value = e ? e : this.state.selectVal[key];
655
+ const value = e || this.state.selectVal[key];
656
+
656
657
  const ref: any | undefined = (this.$refs[key] as any)[0] || this.$refs[key];
657
658
 
658
659
  let checkList = [];
@@ -681,6 +682,9 @@ export default class CommonDatas extends Vue {
681
682
  }
682
683
  );
683
684
  }
685
+ if (!e && !this.state.selectVal[key]) {
686
+ this.state.selectValData[key] = [];
687
+ }
684
688
  this.$emit("change", this.state.selectValData);
685
689
  }
686
690
  /** 基础数据递归处理 */