agilebuilder-ui 1.0.621 → 1.0.962
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.js +115880 -110424
- package/lib/super-ui.umd.cjs +103 -95
- package/package.json +6 -3
- package/packages/department-tree/src/department-tree.vue +27 -10
- package/packages/department-tree-inline/src/department-tree-service.js +20 -41
- package/packages/department-tree-mobile/src/department-tree-app.vue +6 -6
- package/packages/department-tree-mobile/src/department-tree-inline-app.vue +15 -15
- package/packages/department-user-tree/src/department-user-tree.vue +17 -2
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +61 -26
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +64 -22
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +0 -6
- package/packages/department-user-tree-inline/src/group-user/group-input.vue +162 -0
- package/packages/department-user-tree-inline/src/group-user/group-list.vue +99 -0
- package/packages/department-user-tree-inline/src/group-user/group-user.vue +42 -0
- package/packages/department-user-tree-inline/src/group-user-multiple-tree.vue +304 -0
- package/packages/department-user-tree-inline/src/group-user-single-tree.vue +155 -0
- package/packages/department-user-tree-inline/src/group-user-tree-service.js +74 -0
- package/packages/department-user-tree-inline/src/search-result.vue +34 -36
- package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +6 -6
- package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +17 -19
- package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +0 -11
- package/packages/dynamic-source-select/src/dynamic-source-select.vue +795 -799
- package/packages/dynamic-source-select/src/events.js +11 -16
- package/packages/fs-upload-list/src/fs-upload-list.vue +183 -122
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-app.vue +246 -0
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +480 -0
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-component.vue +127 -0
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload-input.vue +246 -0
- package/packages/fs-upload-new/src/file-upload-mobile/file-upload.vue +255 -0
- package/packages/fs-upload-new/src/fs-button-upload.vue +10 -13
- package/packages/fs-upload-new/src/fs-drag-upload.vue +4 -8
- package/packages/fs-upload-new/src/fs-preview-new.vue +103 -36
- package/packages/fs-upload-new/src/fs-upload-new.vue +160 -13
- package/packages/index.js +11 -2
- package/packages/organization-input/src/organization-input.vue +493 -539
- package/packages/plugins/export-data-new.js +34 -1
- package/packages/rich-editor/index.vue +29 -0
- package/packages/row-form/index.js +7 -0
- package/packages/row-form/index.vue +211 -0
- package/packages/scan-code-input/src/scan-code-input.vue +136 -104
- package/packages/scan-code-input-browser/index.js +6 -0
- package/packages/{scan-code-input/src/scan-code-input-colse.vue → scan-code-input-browser/src/scan-code-input.vue} +1 -28
- package/packages/secret-info/index.vue +2 -2
- package/packages/super-grid/src/apis.js +158 -10
- package/packages/super-grid/src/components/grid-icon.vue +7 -14
- package/packages/super-grid/src/components/hyperlinks.vue +24 -8
- package/packages/super-grid/src/custom-formatter.js +312 -380
- package/packages/super-grid/src/dynamic-input.vue +346 -43
- package/packages/super-grid/src/formValidatorUtil.js +79 -15
- package/packages/super-grid/src/group-column.vue +5 -0
- package/packages/super-grid/src/normal-column-content.vue +1056 -0
- package/packages/super-grid/src/normal-column.vue +57 -740
- package/packages/super-grid/src/row-detail.vue +50 -0
- package/packages/super-grid/src/row-operation.vue +19 -10
- package/packages/super-grid/src/scan-util.ts +243 -0
- package/packages/super-grid/src/search-button.vue +18 -14
- package/packages/super-grid/src/search-form-advancedQuery.vue +9 -2
- package/packages/super-grid/src/search-form-item.vue +10 -3
- package/packages/super-grid/src/search-form-mobile.vue +250 -0
- package/packages/super-grid/src/search-form.vue +159 -82
- package/packages/super-grid/src/super-grid-service.js +51 -6
- package/packages/super-grid/src/super-grid.vue +657 -761
- package/packages/super-grid/src/utils.js +126 -170
- package/packages/super-nine-grid/src/super-nine-grid.vue +1032 -1141
- package/packages/workflow-button/src/workflow-button.vue +6 -1
- package/packages/workgroup-tree/src/workgroup-tree.vue +31 -0
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +28 -0
- package/packages/workgroup-tree-inline/src/workgroup-tree-service.js +26 -0
- package/packages/workgroup-tree-mobile/index.js +6 -0
- package/packages/workgroup-tree-mobile/src/dept-result.vue +51 -0
- package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +120 -0
- package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +375 -0
- package/packages/workgroup-tree-mobile/src/workgroup-tree-service.ts +62 -0
- package/packages/workgroup-user-tree/src/workgroup-user-tree.vue +15 -0
- package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +27 -0
- package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +11 -0
- package/packages/workgroup-user-tree-mobile/index.js +6 -0
- package/packages/workgroup-user-tree-mobile/src/dept-path.vue +36 -0
- package/packages/workgroup-user-tree-mobile/src/dept-result.vue +58 -0
- package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue +119 -0
- package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue +394 -0
- package/packages/workgroup-user-tree-mobile/src/workgroup-user-tree-service.ts +41 -0
- package/src/api/sso-service.js +44 -15
- package/src/directives/permission/permission.js +4 -3
- package/src/i18n/langs/cn.js +19 -3
- package/src/i18n/langs/en.js +18 -2
- package/src/permission.js +114 -122
- package/src/store/modules/user.js +32 -33
- package/src/styles/index.scss +1 -0
- package/src/styles/table.scss +12 -0
- package/src/styles/theme/dark-blue/button.scss +2 -2
- package/src/styles/theme/dark-blue/index.scss +1 -1
- package/src/styles/theme/dark-blue/sidebar.scss +10 -0
- package/src/styles/theme/dark-blue/table.scss +8 -52
- package/src/styles/theme/green/button.scss +2 -2
- package/src/styles/theme/green/green.scss +1 -1
- package/src/styles/theme/green/index.scss +1 -1
- package/src/styles/theme/green/sidebar.scss +20 -0
- package/src/styles/theme/green/table.scss +7 -51
- package/src/styles/theme/ocean-blue/button.scss +2 -2
- package/src/styles/theme/ocean-blue/index.scss +1 -1
- package/src/styles/theme/ocean-blue/ocean-blue.scss +1 -1
- package/src/styles/theme/ocean-blue/sidebar.scss +10 -0
- package/src/styles/theme/ocean-blue/table.scss +7 -52
- package/src/utils/auth.js +23 -3
- package/src/utils/calculator/calculator-factory.js +4 -4
- package/src/utils/calculator/calculator-util.js +14 -0
- package/src/utils/common-util.js +270 -124
- package/src/utils/i18n-util.js +145 -0
- package/src/utils/jump-page-utils.js +245 -314
- package/src/utils/permission.js +7 -1
- package/src/utils/permissionAuth.js +155 -37
- package/src/utils/request.js +10 -11
- package/src/utils/util.js +154 -205
- package/src/views/layout/EmptyLayout.vue +1 -1
- package/src/views/layout/components/Menubar/Item.vue +27 -4
- package/src/views/layout/components/Menubar/SidebarItem.vue +7 -3
- package/src/views/layout/components/Menubar/index.vue +14 -2
- package/src/views/layout/tab-content-index.vue +1 -1
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
</el-col>
|
|
19
19
|
</el-row>
|
|
20
20
|
</el-card>
|
|
21
|
-
<el-card v-if="tenantName" class="card-content"
|
|
21
|
+
<el-card v-if="tenantName" class="card-content">
|
|
22
22
|
<el-row class="item-row item-row-all">
|
|
23
23
|
<el-col class="item-label dept-path"><deptPath :tenantName="tenantName" :clickDepts="clickDepts" @clickBreadcrumb="clickBreadcrumb"/></el-col>
|
|
24
24
|
</el-row>
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
</template>
|
|
48
48
|
</el-tree>
|
|
49
49
|
</el-card>
|
|
50
|
-
<el-card class="card-footer"
|
|
50
|
+
<el-card class="card-footer">
|
|
51
51
|
<div style="display: flex;">
|
|
52
52
|
<div class="select-result" >
|
|
53
53
|
<!-- 已选择:{useNum}个用户,{deptNum}个部门(含子部门) -->
|
|
@@ -177,30 +177,31 @@ function resizeScrollTargetHeight () {
|
|
|
177
177
|
}
|
|
178
178
|
// 点击复选框时处理
|
|
179
179
|
function handleCheckNode(data, check, isChildrenCheck) {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
180
|
+
if(props.multiple) {
|
|
181
|
+
if(check) {
|
|
182
|
+
// 表示选择节点时
|
|
183
|
+
if(props.multiple) {
|
|
184
|
+
// 表示是复选组织树
|
|
185
|
+
addToSelectDept(data)
|
|
186
|
+
}
|
|
187
|
+
} else {
|
|
188
|
+
// 表示取消选择
|
|
189
|
+
if(props.multiple || (data.nodeType && data.nodeType === 'USER')) {
|
|
190
|
+
removeSelectDept(data)
|
|
191
|
+
}
|
|
191
192
|
}
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
|
|
195
196
|
function handleClickNode(data, node, treenode, events) {
|
|
196
|
-
if(data.nodeType && data.nodeType === 'USER') {
|
|
197
|
+
if(!props.multiple && data.nodeType && data.nodeType === 'USER') {
|
|
197
198
|
selectUsers.value = [data]
|
|
198
199
|
}
|
|
199
200
|
}
|
|
200
201
|
function addToSelectDept(dept) {
|
|
201
202
|
if(dept.nodeType && dept.nodeType === 'USER') {
|
|
202
203
|
// 表示是用户
|
|
203
|
-
const filterValue = selectUsers.value.filter(item=> item.nodeId === dept.nodeId)
|
|
204
|
+
const filterValue = selectUsers.value.filter(item=> item.nodeId === dept.nodeId )
|
|
204
205
|
if(!filterValue || filterValue.length === 0) {
|
|
205
206
|
// 表示集合中没有该记录,需要记录到结果集合中
|
|
206
207
|
selectUsers.value.push(JSON.parse(JSON.stringify(dept)))
|
|
@@ -216,7 +217,6 @@ function addToSelectDept(dept) {
|
|
|
216
217
|
}
|
|
217
218
|
|
|
218
219
|
function removeSelectDept(dept) {
|
|
219
|
-
debugger
|
|
220
220
|
if(dept.nodeType && dept.nodeType === 'USER') {
|
|
221
221
|
const index = selectUsers.value.findIndex(selectItem=> selectItem.nodeId === dept.nodeId)
|
|
222
222
|
// 删除指定元素
|
|
@@ -296,10 +296,8 @@ function removeResultDept(dept) {
|
|
|
296
296
|
}
|
|
297
297
|
})
|
|
298
298
|
orgTreeRef.value.setCheckedKeys(selectNodeIds, true)
|
|
299
|
-
} else {
|
|
300
|
-
// departments结果不存在当前移除的节点时
|
|
301
|
-
removeSelectDept(dept)
|
|
302
299
|
}
|
|
300
|
+
removeSelectDept(dept)
|
|
303
301
|
}
|
|
304
302
|
|
|
305
303
|
function saveDept () {
|
|
@@ -49,17 +49,6 @@ export function loadPointDepartments (departmentInfo) {
|
|
|
49
49
|
defaultCheckedKeys.push(dept.nodeId)
|
|
50
50
|
})
|
|
51
51
|
}
|
|
52
|
-
// 获得所有指定父部门的子部门信息
|
|
53
|
-
export function getChildDepts (parentDept) {
|
|
54
|
-
return new Promise((resolve, reject) => {
|
|
55
|
-
const parentIds = [parentDept.id]
|
|
56
|
-
window['$vueApp'].config.globalProperties.$http.post(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/department-children', parentIds).then(departments => {
|
|
57
|
-
resolve(departments)
|
|
58
|
-
}).catch(error => {
|
|
59
|
-
reject(error)
|
|
60
|
-
})
|
|
61
|
-
})
|
|
62
|
-
}
|
|
63
52
|
// ,
|
|
64
53
|
// isDeptOrUser (item, dept) {
|
|
65
54
|
// return item.id === dept.id && item.nodeType && dept.nodeType && item.nodeType === dept.nodeType
|