vue2-client 1.4.42 → 1.4.44
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/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
> 所有关于本项目的变化都在该文档里。
|
|
3
3
|
|
|
4
|
-
**1.4.37 - 1.4.
|
|
4
|
+
**1.4.37 - 1.4.44 -2022-11-01 @苗艳强**
|
|
5
5
|
- 功能修改:
|
|
6
6
|
- 新增文件列表展示组件
|
|
7
7
|
- 新增图片列表展示组件
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
- 日期选择器可设置时分秒
|
|
14
14
|
- 修复表单校验错误不能提交的问题
|
|
15
15
|
- 新增修改请求加入操作人信息
|
|
16
|
+
- 修复指定id后无法编辑的问题
|
|
16
17
|
|
|
17
18
|
**1.4.36 -2022-10-18 @江超**
|
|
18
19
|
- 功能修改:
|
package/package.json
CHANGED
|
@@ -121,6 +121,8 @@ export default {
|
|
|
121
121
|
selectedRowKeys: [],
|
|
122
122
|
// 表格选择Row集合
|
|
123
123
|
selectedRows: [],
|
|
124
|
+
// 选中用于修改的id
|
|
125
|
+
selectId: undefined,
|
|
124
126
|
// 表单项集合
|
|
125
127
|
formItems: [],
|
|
126
128
|
// 表单
|
|
@@ -310,7 +312,7 @@ export default {
|
|
|
310
312
|
// 将更新需要的主键值加入到表单中
|
|
311
313
|
const key = this.tableColumns[0].dataIndex
|
|
312
314
|
const realKey = this.getRealKey(key)
|
|
313
|
-
requestParameters.form[realKey] = this.
|
|
315
|
+
requestParameters.form[realKey] = this.selectId
|
|
314
316
|
}
|
|
315
317
|
for (const key of Object.keys(res.form)) {
|
|
316
318
|
const realKey = this.getRealKey(key)
|
|
@@ -370,6 +372,7 @@ export default {
|
|
|
370
372
|
if (selectId === undefined) {
|
|
371
373
|
selectId = this.selectedRowKeys[0]
|
|
372
374
|
}
|
|
375
|
+
this.selectId = selectId
|
|
373
376
|
requestParameters.conditionParams[this.tableColumns[0].dataIndex] = selectId
|
|
374
377
|
requestParameters.f_businessid = selectId
|
|
375
378
|
if (this.isTableTemp) {
|
package/src/utils/routerUtil.js
CHANGED
|
@@ -68,14 +68,14 @@ function parseRoutes (routesConfig, routerMap) {
|
|
|
68
68
|
// 当没有设置路由对象名或者设置的是blank路由对象时, 给空界面, path为名称
|
|
69
69
|
if (!item.router || item.router === 'blank') {
|
|
70
70
|
router = routerMap['blank']
|
|
71
|
-
item.path = item.name
|
|
71
|
+
item.path = encodeURI(item.name)
|
|
72
72
|
} else {
|
|
73
73
|
router = routerMap[item.router]
|
|
74
74
|
}
|
|
75
75
|
// 查看是否是单页面
|
|
76
76
|
if (item.meta && item.meta.singlePage) {
|
|
77
77
|
router = routerMap['singlePage']
|
|
78
|
-
item.path = item.name
|
|
78
|
+
item.path = encodeURI(item.name)
|
|
79
79
|
}
|
|
80
80
|
// 当没在动态路由对象中找到时, 不添加到路由
|
|
81
81
|
if (!router) return
|