imatrix-ui 2.8.21-dw → 2.8.21
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/lib/super-ui.css +1 -1
- package/lib/super-ui.umd.min.js +5 -35
- package/package.json +4 -2
- package/packages/breadcrumb/index.js +6 -0
- package/packages/breadcrumb/src/breadcrumb.vue +71 -0
- package/packages/department-tree/index.js +6 -0
- package/packages/department-tree/src/department-tree.vue +108 -0
- package/packages/department-tree-inline/index.js +6 -0
- package/packages/department-tree-inline/src/department-multi-tree-inline.vue +402 -0
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +284 -0
- package/packages/department-tree-inline/src/department-tree-inline.vue +86 -0
- package/packages/department-tree-inline/src/department-tree-service.js +245 -0
- package/packages/department-tree-inline/src/search-result.vue +176 -0
- package/packages/department-user-tree/index.js +6 -0
- package/packages/department-user-tree/src/department-user-multiple-tree.vue +116 -0
- package/packages/department-user-tree/src/department-user-single-tree.vue +76 -0
- package/packages/department-user-tree/src/department-user-tree.vue +101 -0
- package/packages/department-user-tree-inline/index.js +6 -0
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +626 -0
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +269 -0
- package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +79 -0
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +230 -0
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +122 -0
- package/packages/department-user-tree-inline/src/search-result.vue +197 -0
- package/packages/directives/prevent-reclick.js +19 -0
- package/packages/dynamic-source-select/index.js +6 -0
- package/packages/dynamic-source-select/src/dynamic-source-select-service.js +70 -0
- package/packages/dynamic-source-select/src/dynamic-source-select.vue +440 -0
- package/packages/dynamic-source-select/src/events.js +55 -0
- package/packages/fs-preview/index.js +6 -0
- package/packages/fs-preview/src/fs-preview.vue +226 -0
- package/packages/fs-upload/index.js +6 -0
- package/packages/fs-upload/src/fs-upload-multi.vue +420 -0
- package/packages/fs-upload/src/fs-upload-single.vue +312 -0
- package/packages/fs-upload/src/fs-upload.vue +189 -0
- package/packages/fs-upload/src/see-big-picture.vue +55 -0
- package/packages/fs-upload-list/index.js +6 -0
- package/packages/fs-upload-list/src/fs-upload-list.vue +287 -0
- package/packages/hamburger/index.js +6 -0
- package/packages/hamburger/src/hamburger.vue +38 -0
- package/packages/index.js +121 -0
- package/packages/multipart-upload/index.js +6 -0
- package/packages/multipart-upload/src/index.vue +73 -0
- package/packages/multipart-upload/src/multipart-upload-form.vue +297 -0
- package/packages/multipart-upload/src/multipart-upload-list.vue +378 -0
- package/packages/organization-input/index.js +6 -0
- package/packages/organization-input/src/organization-input.vue +542 -0
- package/packages/plugins/export-data-new.js +453 -0
- package/packages/plugins/export-data.js +361 -0
- package/packages/plugins/index.js +15 -0
- package/packages/plugins/public-method.js +43 -0
- package/packages/remove-department/index.js +6 -0
- package/packages/remove-department/src/remove-department.vue +172 -0
- package/packages/remove-department/src/remove-dept-service.js +20 -0
- package/packages/remove-user/index.js +6 -0
- package/packages/remove-user/src/remove-user-service.js +20 -0
- package/packages/remove-user/src/remove-user.vue +195 -0
- package/packages/remove-workgroup/index.js +6 -0
- package/packages/remove-workgroup/src/remove-workgroup-service.js +20 -0
- package/packages/remove-workgroup/src/remove-workgroup.vue +159 -0
- package/packages/rich-editor/index.js +7 -0
- package/packages/rich-editor/index.vue +278 -0
- package/packages/rich-editor/langs/zh-Hans.js +1 -0
- package/packages/rich-editor/viewer.vue +103 -0
- package/packages/scan-code-input/index.js +6 -0
- package/packages/scan-code-input/src/events.js +33 -0
- package/packages/scan-code-input/src/scan-code-input-colse.vue +131 -0
- package/packages/scan-code-input/src/scan-code-input.vue +116 -0
- package/packages/secret-info/index.js +7 -0
- package/packages/secret-info/index.vue +90 -0
- package/packages/super-grid/index.js +7 -0
- package/packages/super-grid/src/apis.js +763 -0
- package/packages/super-grid/src/columns-config.vue +335 -0
- package/packages/super-grid/src/custom-formatter.js +250 -0
- package/packages/super-grid/src/dynamic-input.vue +1279 -0
- package/packages/super-grid/src/eventBus.js +2 -0
- package/packages/super-grid/src/events.js +55 -0
- package/packages/super-grid/src/formValidatorUtil.js +226 -0
- package/packages/super-grid/src/formatter.js +181 -0
- package/packages/super-grid/src/group-column.vue +100 -0
- package/packages/super-grid/src/header-context-menu.vue +87 -0
- package/packages/super-grid/src/index-column.vue +51 -0
- package/packages/super-grid/src/normal-column.vue +769 -0
- package/packages/super-grid/src/public-methods.js +31 -0
- package/packages/super-grid/src/row-operation.vue +161 -0
- package/packages/super-grid/src/search-button.vue +66 -0
- package/packages/super-grid/src/search-condition-input.vue +61 -0
- package/packages/super-grid/src/search-condition-list.vue +59 -0
- package/packages/super-grid/src/search-form-advancedQuery.vue +653 -0
- package/packages/super-grid/src/search-form-dialog.vue +79 -0
- package/packages/super-grid/src/search-form-item.vue +386 -0
- package/packages/super-grid/src/search-form-number.vue +38 -0
- package/packages/super-grid/src/search-form-open.vue +162 -0
- package/packages/super-grid/src/search-form-ordinarySearch.vue +188 -0
- package/packages/super-grid/src/search-form.vue +634 -0
- package/packages/super-grid/src/search-methods.js +387 -0
- package/packages/super-grid/src/selection-column.vue +43 -0
- package/packages/super-grid/src/store.js +3 -0
- package/packages/super-grid/src/super-grid-service.js +561 -0
- package/packages/super-grid/src/super-grid.vue +2793 -0
- package/packages/super-grid/src/utils.js +763 -0
- package/packages/super-grid/src/view-image-dialog.vue +130 -0
- package/packages/super-nine-grid/index.js +7 -0
- package/packages/super-nine-grid/src/apis.js +103 -0
- package/packages/super-nine-grid/src/custom-formatter.js +66 -0
- package/packages/super-nine-grid/src/formatter.js +132 -0
- package/packages/super-nine-grid/src/search-form-number.vue +38 -0
- package/packages/super-nine-grid/src/search-form.vue +430 -0
- package/packages/super-nine-grid/src/search-methods.js +134 -0
- package/packages/super-nine-grid/src/store.js +3 -0
- package/packages/super-nine-grid/src/super-grid-service.js +91 -0
- package/packages/super-nine-grid/src/super-nine-grid.vue +872 -0
- package/packages/super-nine-grid/src/utils.js +261 -0
- package/packages/svg-icon/index.js +6 -0
- package/packages/svg-icon/src/svg-icon.vue +43 -0
- package/packages/utils/utils.js +152 -0
- package/packages/utils/value-set.js +86 -0
- package/packages/valid-code/index.js +7 -0
- package/packages/valid-code/src/valid-code.vue +95 -0
- package/packages/workflow-button/index.js +6 -0
- package/packages/workflow-button/src/workflow-button.vue +325 -0
- package/packages/workflow-history-list/index.js +6 -0
- package/packages/workflow-history-list/src/api.js +7 -0
- package/packages/workflow-history-list/src/workflow-history-list.vue +185 -0
- package/packages/workgroup-tree/index.js +6 -0
- package/packages/workgroup-tree/src/workgroup-tree.vue +76 -0
- package/packages/workgroup-tree-inline/index.js +6 -0
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +317 -0
- package/packages/workgroup-tree-inline/src/workgroup-tree-service.js +43 -0
- package/packages/workgroup-user-tree/index.js +6 -0
- package/packages/workgroup-user-tree/src/workgroup-user-tree.vue +100 -0
- package/packages/workgroup-user-tree-inline/index.js +6 -0
- package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +163 -0
- package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +436 -0
- package/packages/year-range-picker/index.js +6 -0
- package/packages/year-range-picker/src/year-range-picker.vue +51 -0
- package/src/i18n/i18n.js +1 -1
- package/src/i18n/langs/cn.js +4 -2
- package/src/i18n/langs/en.js +4 -2
- package/src/index.js +93 -0
- package/src/permission.js +7 -3
- package/src/plugins.js +3 -3
- package/src/router/index.js +24 -0
- package/src/store/getters.js +2 -1
- package/src/store/modules/app.js +10 -1
- package/src/styles/display-layout.scss +34 -0
- package/src/styles/index.scss +32 -4
- package/src/styles/theme/dark-blue/button.scss +9 -0
- package/src/styles/theme/dark-blue/card.scss +64 -0
- package/src/styles/theme/dark-blue/checkbox.scss +10 -0
- package/src/styles/theme/dark-blue/dark-blue-var.scss +8 -0
- package/src/styles/theme/dark-blue/dialog.scss +21 -0
- package/src/styles/theme/dark-blue/element-variables.scss +7 -0
- package/src/styles/theme/dark-blue/font.scss +71 -0
- package/src/styles/theme/dark-blue/form.scss +51 -0
- package/src/styles/theme/dark-blue/index.scss +247 -0
- package/src/styles/theme/dark-blue/input.scss +15 -0
- package/src/styles/theme/dark-blue/pagination.scss +14 -0
- package/src/styles/theme/dark-blue/scrollbar-style.scss +32 -0
- package/src/styles/theme/dark-blue/sidebar.scss +296 -0
- package/src/styles/theme/dark-blue/tab.scss +83 -0
- package/src/styles/theme/dark-blue/table.scss +60 -0
- package/src/styles/theme/dark-blue/tree.scss +31 -0
- package/src/styles/theme/dark-blue/var.scss +1028 -0
- package/src/styles/theme/gray/form-style.scss +2 -2
- package/src/styles/theme/gray/input-style.scss +8 -0
- package/src/utils/auth-api.js +115 -0
- package/src/utils/auth.js +34 -42
- package/src/utils/calculator/calculator-factory.js +2 -2
- package/src/utils/common-util.js +34 -0
- package/src/utils/jump-page-utils.js +29 -5
- package/src/utils/menu.js +19 -0
- package/src/utils/permission.js +4 -0
- package/src/utils/request.js +18 -2
- package/src/utils/util.js +7 -3
- package/src/views/dsc-component/Sidebar/Item.vue +4 -4
- package/src/views/dsc-component/Sidebar/Link.vue +11 -2
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +36 -20
- package/src/views/dsc-component/Sidebar/index.vue +24 -12
- package/src/views/dsc-component/tabs/tab-content.vue +16 -1
- package/src/views/login/index.vue +1 -1
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-form v-if="searchableColumns.length > 0" ref="searchForm" :model="searchForm" :rules="rules" label-position="right" class="grid-search-form" size="small">
|
|
4
|
+
<search-form-open
|
|
5
|
+
ref="searchFormContent"
|
|
6
|
+
:searchable-columns="searchableColumns"
|
|
7
|
+
:search-form="searchForm"
|
|
8
|
+
:code="code"
|
|
9
|
+
:is-sql="isSql"
|
|
10
|
+
:table-name="tableName"
|
|
11
|
+
:is-join-table="isJoinTable"
|
|
12
|
+
:span-num="spanNum"
|
|
13
|
+
:field-num="fieldNum"
|
|
14
|
+
:row-num="rowNum"
|
|
15
|
+
:is-open="isOpen"
|
|
16
|
+
@submit-form="$emit('submit-form')"
|
|
17
|
+
@reset-form="$emit('reset-form')"
|
|
18
|
+
@save-condition="$emit('save-condition')"
|
|
19
|
+
@open-fold="openFold"
|
|
20
|
+
/>
|
|
21
|
+
</el-form>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
<style scoped>
|
|
25
|
+
.grid-search-form{
|
|
26
|
+
overflow: auto;
|
|
27
|
+
}
|
|
28
|
+
.grid-search-form >>> .el-form-item{
|
|
29
|
+
margin-bottom: 0px;
|
|
30
|
+
}
|
|
31
|
+
.grid-search-form >>> .el-form-item__label{
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
text-overflow: ellipsis;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
word-break: keep-all;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.grid-search-form >>> .search-btn{
|
|
39
|
+
margin-bottom: 5px;
|
|
40
|
+
text-align: center;
|
|
41
|
+
}
|
|
42
|
+
.grid-search-form >>> .el-select,.grid-search-form >>> .customComponent{
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
.grid-search-form >>> .el-row{
|
|
46
|
+
padding-right: 24px;
|
|
47
|
+
}
|
|
48
|
+
.grid-search-form >>> .el-col{
|
|
49
|
+
padding-left: 24px;
|
|
50
|
+
padding-bottom: 16px;
|
|
51
|
+
}
|
|
52
|
+
</style>
|
|
53
|
+
<script>
|
|
54
|
+
import searchMethods from './search-methods'
|
|
55
|
+
import store from './store'
|
|
56
|
+
import { addDynamicProp, addDynamicPropDateSection } from './utils'
|
|
57
|
+
import SearchFormOpen from './search-form-open.vue'
|
|
58
|
+
export default {
|
|
59
|
+
name: 'SearchForm',
|
|
60
|
+
components: {
|
|
61
|
+
SearchFormOpen
|
|
62
|
+
},
|
|
63
|
+
props: {
|
|
64
|
+
searchableColumns: {
|
|
65
|
+
type: Array,
|
|
66
|
+
default: null
|
|
67
|
+
},
|
|
68
|
+
searchForm: {
|
|
69
|
+
type: Object,
|
|
70
|
+
default: null
|
|
71
|
+
},
|
|
72
|
+
fieldNum: {
|
|
73
|
+
type: Number,
|
|
74
|
+
default: null
|
|
75
|
+
},
|
|
76
|
+
rules: {
|
|
77
|
+
type: Object,
|
|
78
|
+
default: null
|
|
79
|
+
},
|
|
80
|
+
labelWidth: {
|
|
81
|
+
type: String,
|
|
82
|
+
default: null
|
|
83
|
+
},
|
|
84
|
+
query: {
|
|
85
|
+
type: Object,
|
|
86
|
+
default: null
|
|
87
|
+
},
|
|
88
|
+
rowNum: {
|
|
89
|
+
type: Number,
|
|
90
|
+
default: null
|
|
91
|
+
},
|
|
92
|
+
code: {
|
|
93
|
+
type: String,
|
|
94
|
+
default: null
|
|
95
|
+
},
|
|
96
|
+
isSql: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: false
|
|
99
|
+
},
|
|
100
|
+
spanNum: {
|
|
101
|
+
type: Number,
|
|
102
|
+
default: 8
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
},
|
|
106
|
+
data() {
|
|
107
|
+
const gridParams = store.get(this.code)
|
|
108
|
+
let tableName
|
|
109
|
+
if (gridParams && gridParams.basicInfo && gridParams.basicInfo.tableName) {
|
|
110
|
+
tableName = gridParams.basicInfo.tableName
|
|
111
|
+
}
|
|
112
|
+
let isHasJoinTable
|
|
113
|
+
if (gridParams && gridParams.basicInfo && gridParams.basicInfo.hasJoinTable) {
|
|
114
|
+
isHasJoinTable = gridParams.basicInfo.hasJoinTable
|
|
115
|
+
}
|
|
116
|
+
const customComponentNames = new Set()
|
|
117
|
+
return {
|
|
118
|
+
customComponentNames: customComponentNames,
|
|
119
|
+
dateOne: null,
|
|
120
|
+
dataTwo: null,
|
|
121
|
+
tableName,
|
|
122
|
+
isJoinTable: isHasJoinTable, // 是否是关联表
|
|
123
|
+
isOpen: false
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
computed: {
|
|
127
|
+
|
|
128
|
+
},
|
|
129
|
+
watch: {
|
|
130
|
+
},
|
|
131
|
+
created() {
|
|
132
|
+
},
|
|
133
|
+
methods: {
|
|
134
|
+
...searchMethods,
|
|
135
|
+
validateForm() {
|
|
136
|
+
return new Promise((resolve, reject) => {
|
|
137
|
+
this.$refs.searchForm.validate((valid) => {
|
|
138
|
+
resolve(valid)
|
|
139
|
+
})
|
|
140
|
+
})
|
|
141
|
+
},
|
|
142
|
+
resetForm() {
|
|
143
|
+
// console.log('customComponentNames=', this.customComponentNames)
|
|
144
|
+
if (this.customComponentNames && this.customComponentNames.length > 0) {
|
|
145
|
+
for (const componentName of this.customComponentNames) { // 遍历
|
|
146
|
+
this.$refs[componentName][0].resetField()
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
this.$refs.searchForm.resetFields()
|
|
150
|
+
// 当是保持页数默认赋值的查询字段resetFields()不会被清空,需要下面的方法遍历设未null
|
|
151
|
+
this.searchableColumns.forEach(column => {
|
|
152
|
+
// 表示没有默认初始查询字段
|
|
153
|
+
if (column.prop && column.prop.indexOf('.') > 0) {
|
|
154
|
+
if (column.componentType === 'dateSection') {
|
|
155
|
+
addDynamicPropDateSection(this.searchForm, column.prop)
|
|
156
|
+
} else {
|
|
157
|
+
// 动态给searchForm添加属性,包括多级嵌套属性,属性的初始值都为 null
|
|
158
|
+
addDynamicProp(this.searchForm, column.prop)
|
|
159
|
+
}
|
|
160
|
+
} else {
|
|
161
|
+
if (column.componentType === 'dateSection') {
|
|
162
|
+
this.searchForm[column.prop] = [new Date(), new Date()]
|
|
163
|
+
} else if (column.componentType === 'yearRange') {
|
|
164
|
+
this.$set(this.searchForm[column.prop], 0, '')
|
|
165
|
+
this.$set(this.searchForm[column.prop], 1, '')
|
|
166
|
+
} else {
|
|
167
|
+
this.searchForm[column.prop] = null
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
})
|
|
171
|
+
// 取消当前选中的条件列表的信息
|
|
172
|
+
// this.$refs.searchConditionList.editConditionId = null
|
|
173
|
+
// this.$emit('reset')
|
|
174
|
+
},
|
|
175
|
+
openFold(isOpen) {
|
|
176
|
+
this.isOpen = isOpen
|
|
177
|
+
this.$emit('open-fold', isOpen)
|
|
178
|
+
},
|
|
179
|
+
// 查询完毕
|
|
180
|
+
searchComplete() {
|
|
181
|
+
if (this.$refs.searchFormContent) {
|
|
182
|
+
this.$refs.searchFormContent.searchComplete()
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
</script>
|