htui-yllkbz 1.3.112 → 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.3.112",
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: 2022-08-22 14:28:25
7
+ * @LastEditTime: 2023-03-30 16:04:53
8
8
  -->
9
9
  <template>
10
10
  <el-pagination
@@ -69,9 +69,9 @@ export default class HtPagination extends Vue {
69
69
 
70
70
  /** 生命周期 */
71
71
  created() {
72
- if (this.pageInfo) {
73
- this.setpageInfo(this.pageInfo);
74
- }
72
+ // if (this.pageInfo) {
73
+ // this.setpageInfo(this.pageInfo);
74
+ // }
75
75
  }
76
76
  /** 方法 */
77
77
  /** 翻页 */
@@ -88,15 +88,18 @@ export default class HtPagination extends Vue {
88
88
  this.handleCurrentChange(1);
89
89
  }
90
90
  /** 监听 */
91
- @Watch('pageInfo')
92
- setpageInfo(val: PageInfoType) {
93
- const pageInfo: PageInfoType = val;
94
- this.state.pageInfo = {
95
- currentPage: Number(pageInfo.currentPage),
96
- maxResultCount: Number(pageInfo.pageSize),
97
- skipCount: Number(pageInfo.skipCount),
98
- totalCount: Number(pageInfo.totalCount),
99
- };
91
+ @Watch('pageInfo', { immediate: true })
92
+ setpageInfo(val?: PageInfoType) {
93
+ if (val) {
94
+ //console.log('val');
95
+ const pageInfo: PageInfoType = val;
96
+ this.state.pageInfo = {
97
+ currentPage: Number(pageInfo.currentPage) || 1,
98
+ maxResultCount: Number(pageInfo.pageSize),
99
+ skipCount: pageInfo.skipCount ? Number(pageInfo.skipCount) : 0,
100
+ totalCount: pageInfo.totalCount ? Number(pageInfo.totalCount) : 0,
101
+ };
102
+ }
100
103
  }
101
104
  /** 计算属性 */
102
105
  }
@@ -4,7 +4,7 @@
4
4
  * @Author: hutao
5
5
  * @Date: 2021-10-21 10:08:41
6
6
  * @LastEditors: hutao
7
- * @LastEditTime: 2023-02-01 16:30:54
7
+ * @LastEditTime: 2023-03-30 15:04:34
8
8
  */
9
9
 
10
10
  // 导入组件
@@ -33,13 +33,14 @@ import HtMore from './HtMore'
33
33
  import HtSelectUnit from './HtSelectUnit'
34
34
  import HtSelectPosition from './HtSelectPosition'
35
35
  import HtSelectCategory from './HtSelectCategory'
36
+ import HtMenu from './HtMenu'
36
37
 
37
38
 
38
39
 
39
40
 
40
41
 
41
42
  // 存储组件列表
42
- const components = [HtSelectCategory, HtSelectUnit, HtSelectPosition, HtMore, HtSelectTimeSlot, HtSelectCron, HtBaseData, HtDrawer, HtShowBaseType, HtSelectTable, HtPagination, HtTable, HtExport, HtUpload, HtMd, HtCountDown, HtUploadFiles, HtSelectBaseData, HtSelectOrg, HtSelectUser, HtShowBaseData, HtOrgInfo]
43
+ const components = [HtMenu, HtSelectCategory, HtSelectUnit, HtSelectPosition, HtMore, HtSelectTimeSlot, HtSelectCron, HtBaseData, HtDrawer, HtShowBaseType, HtSelectTable, HtPagination, HtTable, HtExport, HtUpload, HtMd, HtCountDown, HtUploadFiles, HtSelectBaseData, HtSelectOrg, HtSelectUser, HtShowBaseData, HtOrgInfo]
43
44
  // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
44
45
  const install = function (Vue: any) {
45
46
  // 判断是否安装
@@ -56,7 +57,7 @@ export default {
56
57
  install,
57
58
  // 以下是具体的组件列表
58
59
  HtSelectTable, HtSelectPosition, HtPagination, HtShowBaseType, HtTable, HtExport, HtUpload, HtMd, HtCountDown, HtUploadFiles, HtMore,
59
- HtSelectUnit, HtSelectCategory,
60
+ HtSelectUnit, HtSelectCategory, HtMenu,
60
61
  HtSelectBaseData, HtSelectOrg, HtSelectUser, HtShowBaseData, HtOrgInfo, HtBaseData, HtDrawer, HtSelectCron, HtSelectTimeSlot
61
62
  }
62
63
 
@@ -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-21 11:09:37
7
+ * @LastEditTime: 2023-03-30 15:17:48
8
8
  */
9
9
  /** 初始的默认条数 */
10
10
  export const defalutPageSize = 10
@@ -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