vue2-client 1.5.15 → 1.5.17
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.5.14 - 1.5.
|
|
4
|
+
**1.5.14 - 1.5.17 -2022-12-08 @苗艳强**
|
|
5
5
|
- 修复徽标显示问题
|
|
6
6
|
- 修复fixedQueryForm问题
|
|
7
7
|
- 修复修改时树形选择框不能回填问题
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
- 修复翻页后修改删除按钮仍然可用的问题
|
|
10
10
|
- 修复表单不显示问题
|
|
11
11
|
- afterQuery事件增加查询条件参数
|
|
12
|
+
- 修复跳转登录页面问题
|
|
13
|
+
- 修改查询配置
|
|
14
|
+
- 修复清空查询缓存回调问题
|
|
12
15
|
|
|
13
16
|
**1.5.11 - 1.5.13 -2022-12-05 @江超**
|
|
14
17
|
- 优化了查询配置生成界面的样式
|
package/package.json
CHANGED
|
@@ -54,25 +54,25 @@
|
|
|
54
54
|
</a-card>
|
|
55
55
|
</a-col>
|
|
56
56
|
<a-col :span="9">
|
|
57
|
-
<a-card v-if="dataMode.queryForm || dataMode.addOrEditForm || dataMode.table" :bodyStyle="bodyStyle" title="核心配置">
|
|
58
|
-
<template v-if="dataMode.queryForm || dataMode.addOrEditForm">
|
|
57
|
+
<a-card v-if="dataMode.queryForm || dataMode.addOrEditForm || dataMode.table || dataMode.sqlQueryCondition" :bodyStyle="bodyStyle" title="核心配置">
|
|
58
|
+
<template v-if="dataMode.queryForm || dataMode.addOrEditForm || dataMode.sqlQueryCondition">
|
|
59
59
|
<a-divider style="font-size: 14px;margin-top: 0">表单配置</a-divider>
|
|
60
60
|
<a-form-model-item label="表单类型" prop="formType">
|
|
61
61
|
<a-select v-model="item.formType" placeholder="请选择表单类型" @change="changeFormType(item)">
|
|
62
62
|
<a-select-option v-for="formTypeItem in formType" :key="formTypeItem.key">{{ formTypeItem.label }}</a-select-option>
|
|
63
63
|
</a-select>
|
|
64
64
|
</a-form-model-item>
|
|
65
|
+
<a-form-model-item v-if="dataMode.sqlQueryCondition && item.formType !=='file' && item.formType !=='image' " label="表单查询方式" prop="queryType">
|
|
66
|
+
<a-select
|
|
67
|
+
v-model="item.queryType"
|
|
68
|
+
:disabled="formQueryTypeDisabled"
|
|
69
|
+
:getPopupContainer=" triggerNode => { return triggerNode.parentNode } "
|
|
70
|
+
placeholder="表单查询方式">
|
|
71
|
+
<a-select-option v-for="queryTypeItem in queryTypeV" :key="queryTypeItem.key">{{ queryTypeItem.label }}</a-select-option>
|
|
72
|
+
</a-select>
|
|
73
|
+
</a-form-model-item>
|
|
65
74
|
<template v-if="item.formType">
|
|
66
|
-
<a-form-model-item v-if="dataMode.
|
|
67
|
-
<a-select
|
|
68
|
-
v-model="item.queryType"
|
|
69
|
-
:disabled="formQueryTypeDisabled"
|
|
70
|
-
:getPopupContainer=" triggerNode => { return triggerNode.parentNode } "
|
|
71
|
-
placeholder="表单查询方式">
|
|
72
|
-
<a-select-option v-for="queryTypeItem in queryTypeV" :key="queryTypeItem.key">{{ queryTypeItem.label }}</a-select-option>
|
|
73
|
-
</a-select>
|
|
74
|
-
</a-form-model-item>
|
|
75
|
-
<a-form-model-item v-if="dataMode.addOrEditForm" label="表单校验" prop="rule">
|
|
75
|
+
<a-form-model-item v-if="dataMode.addOrEditForm || dataMode.queryForm" label="表单校验" prop="rule">
|
|
76
76
|
<a-row :gutter="16">
|
|
77
77
|
<a-col v-if="(item.formType === 'input' || item.formType === 'textarea' ) && item.formType !=='file' && item.formType !=='image' " :span="12" >
|
|
78
78
|
<a-select v-model="item.rule.type" :getPopupContainer=" triggerNode => { return triggerNode.parentNode } " placeholder="校验类型">
|
|
@@ -628,7 +628,7 @@ export default {
|
|
|
628
628
|
},
|
|
629
629
|
itemHandle () {
|
|
630
630
|
// 查询表单项或者新增/修改表单项
|
|
631
|
-
if (this.dataMode.queryForm || this.dataMode.addOrEditForm) {
|
|
631
|
+
if (this.dataMode.queryForm || this.dataMode.addOrEditForm || this.dataMode.sqlQueryCondition) {
|
|
632
632
|
if (!this.dataMode.sqlQueryItem || !this.dataMode.addOrEditForm) {
|
|
633
633
|
this.delKey(this.item, 'addOrEdit', 'silencePurpose', 'silenceSource')
|
|
634
634
|
}
|
|
@@ -4,12 +4,12 @@ module.exports = {
|
|
|
4
4
|
{
|
|
5
5
|
label: '渲染查询表单项',
|
|
6
6
|
value: 'queryForm',
|
|
7
|
-
noMatch: ['file', 'image', 'textarea', 'personSetting'
|
|
7
|
+
noMatch: ['file', 'image', 'textarea', 'personSetting']
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
label: '渲染表格列',
|
|
11
11
|
value: 'table',
|
|
12
|
-
noMatch: ['file', 'image', 'personSetting'
|
|
12
|
+
noMatch: ['file', 'image', 'personSetting']
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
label: '渲染新增/修改表单项',
|
|
@@ -19,12 +19,12 @@ module.exports = {
|
|
|
19
19
|
{
|
|
20
20
|
label: 'SQL生成查询项',
|
|
21
21
|
value: 'sqlQueryItem',
|
|
22
|
-
noMatch: ['file', 'personSetting'
|
|
22
|
+
noMatch: ['file', 'personSetting']
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
label: 'SQL生成查询表达式',
|
|
26
26
|
value: 'sqlQueryCondition',
|
|
27
|
-
noMatch: ['file', 'image', 'textarea', 'personSetting'
|
|
27
|
+
noMatch: ['file', 'image', 'textarea', 'personSetting']
|
|
28
28
|
}
|
|
29
29
|
],
|
|
30
30
|
// 表单类型
|
|
@@ -231,7 +231,7 @@ module.exports = {
|
|
|
231
231
|
{
|
|
232
232
|
label: '不包含[not in]',
|
|
233
233
|
key: 'NOT_IN',
|
|
234
|
-
match: [
|
|
234
|
+
match: []
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
label: '之间[between]',
|
package/src/router/guards.js
CHANGED
|
@@ -34,7 +34,7 @@ const loginGuard = (to, from, next, options) => {
|
|
|
34
34
|
next({ path: '/login' })
|
|
35
35
|
} else {
|
|
36
36
|
const roles = store.getters['account/roles']
|
|
37
|
-
if (roles.length === 0 && to
|
|
37
|
+
if (roles.length === 0 && !loginIgnore.includes(to)) {
|
|
38
38
|
message.warning('登录已失效,请重新登录')
|
|
39
39
|
logout().finally(res => {
|
|
40
40
|
next({ path: '/login' })
|