htui-yllkbz 1.4.0 → 1.4.1

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.4.0",
3
+ "version": "1.4.1",
4
4
  "port": "8082",
5
5
  "typings": "types/index.d.ts",
6
6
  "main": "lib/htui.common.js",
@@ -4,12 +4,12 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2023-03-20 18:46:48
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2023-03-21 19:27:10
7
+ * @LastEditTime: 2023-03-30 16:04:29
8
8
  -->
9
9
  <template>
10
10
  <el-menu
11
11
  class="ht-menu-list"
12
- :default-active="state.defaultIndex"
12
+ :active="state.defaultIndex"
13
13
  router
14
14
  :collapse="state.collapsed"
15
15
  :collapse-transition="false"
@@ -53,11 +53,15 @@ export default class Index extends Vue {
53
53
  };
54
54
  /** 生命周期 */
55
55
  created() {
56
- this.state.defaultIndex = window.location.pathname;
56
+ // console.log('', this.$route, this.$router);
57
57
  }
58
58
  /** 方法 */
59
59
  /** 监听 */
60
60
  /** 计算属性 */
61
+ @Watch('$route.path', { immediate: true })
62
+ getRoutes() {
63
+ this.state.defaultIndex = window.location.pathname;
64
+ }
61
65
  @Watch('collapse', { immediate: true })
62
66
  getCollapse(val: boolean) {
63
67
  this.state.collapsed = val;
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2023-03-20 18:47:12
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2023-03-21 19:25:06
7
+ * @LastEditTime: 2023-03-30 15:59:19
8
8
  -->
9
9
  <template>
10
10
  <el-submenu class="ht-menu-list" :index="data.name" v-if="dataLeng">
@@ -24,7 +24,7 @@
24
24
  <el-menu-item
25
25
  v-else-if="!dataLeng && setRoute(data).isSelf"
26
26
  :route="setRoute(data).url"
27
- :index="data.name"
27
+ :index="!!setRoute(data).url ? data.name : setRoute(data).url"
28
28
  >
29
29
  <i :class="data.icon"></i>
30
30
  <span slot="title">{{ data.displayName }}</span>
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-12-08 11:30:56
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2023-03-24 10:46:35
7
+ * @LastEditTime: 2023-03-30 16:04:53
8
8
  -->
9
9
  <template>
10
10
  <el-pagination
@@ -91,12 +91,12 @@ export default class HtPagination extends Vue {
91
91
  @Watch('pageInfo', { immediate: true })
92
92
  setpageInfo(val?: PageInfoType) {
93
93
  if (val) {
94
- console.log('val');
94
+ //console.log('val');
95
95
  const pageInfo: PageInfoType = val;
96
96
  this.state.pageInfo = {
97
97
  currentPage: Number(pageInfo.currentPage) || 1,
98
98
  maxResultCount: Number(pageInfo.pageSize),
99
- skipCount: pageInfo.skipCount ? Number(pageInfo.skipCount) : undefined,
99
+ skipCount: pageInfo.skipCount ? Number(pageInfo.skipCount) : 0,
100
100
  totalCount: pageInfo.totalCount ? Number(pageInfo.totalCount) : 0,
101
101
  };
102
102
  }
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-10-25 17:05:17
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2023-03-24 10:46:46
7
+ * @LastEditTime: 2023-03-30 15:17:48
8
8
  */
9
9
  /** 初始的默认条数 */
10
10
  export const defalutPageSize = 10
@@ -120,7 +120,7 @@ export interface PageType {
120
120
 
121
121
  currentPage: number;
122
122
  maxResultCount: number;
123
- skipCount?: number;
123
+ skipCount: number;
124
124
  totalCount: number;
125
125
 
126
126
  }
@@ -11,7 +11,7 @@
11
11
  <HtMenu
12
12
  :data="state.menusList"
13
13
  :collapse="state.collapsed"
14
- baseUrl="/plan-maintenance"
14
+ baseUrl="/asset-management"
15
15
  ></HtMenu>
16
16
  <!--导航菜单-->
17
17
  <el-menu