agilebuilder-ui 1.1.36-sit4 → 1.1.36-tmp1

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.
Files changed (66) hide show
  1. package/lib/{401-d4decb58.js → 401-c55bdcf2.js} +1 -1
  2. package/lib/{404-74cc4843.js → 404-c1dbd5e1.js} +1 -1
  3. package/lib/{iframe-page-c7973b9d.js → iframe-page-917912ae.js} +1 -1
  4. package/lib/{index-c739d5d5.js → index-6ec53ef7.js} +8463 -8490
  5. package/lib/super-ui.css +1 -1
  6. package/lib/super-ui.js +1 -1
  7. package/lib/super-ui.umd.cjs +99 -99
  8. package/lib/{tab-content-iframe-index-18ef0e35.js → tab-content-iframe-index-46a76242.js} +1 -1
  9. package/lib/{tab-content-index-72db2984.js → tab-content-index-132379e6.js} +1 -1
  10. package/lib/{tache-subprocess-history-4d3623ca.js → tache-subprocess-history-384455d6.js} +1 -1
  11. package/package.json +1 -1
  12. package/packages/department-tree/src/department-tree.vue +123 -130
  13. package/packages/department-tree-inline/src/department-multi-tree-inline.vue +466 -435
  14. package/packages/department-tree-inline/src/department-single-tree-inline.vue +342 -335
  15. package/packages/department-tree-inline/src/department-tree-inline.vue +11 -18
  16. package/packages/department-tree-inline/src/department-tree-service.js +11 -10
  17. package/packages/department-tree-mobile/src/department-tree-app.vue +75 -103
  18. package/packages/department-tree-mobile/src/department-tree-inline-app.vue +225 -256
  19. package/packages/department-tree-mobile/src/department-tree-service.ts +75 -98
  20. package/packages/department-user-tree/src/department-user-multiple-tree.vue +115 -112
  21. package/packages/department-user-tree/src/department-user-single-tree.vue +88 -85
  22. package/packages/department-user-tree/src/department-user-tree.vue +119 -127
  23. package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +1 -6
  24. package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +0 -5
  25. package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +11 -18
  26. package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +51 -26
  27. package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +45 -25
  28. package/packages/department-user-tree-inline/src/group-user/group-list.vue +90 -97
  29. package/packages/department-user-tree-inline/src/group-user/group-user.vue +32 -28
  30. package/packages/department-user-tree-mobile/src/department-user-tree-app.vue +75 -103
  31. package/packages/department-user-tree-mobile/src/department-user-tree-inline-app.vue +224 -282
  32. package/packages/department-user-tree-mobile/src/department-user-tree-service.ts +51 -58
  33. package/packages/fs-preview/src/fs-preview.vue +2 -20
  34. package/packages/fs-upload-list/src/fs-upload-list.vue +7 -30
  35. package/packages/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue +1 -1
  36. package/packages/fs-upload-new/src/fs-preview-new.vue +15 -27
  37. package/packages/index.js +4 -4
  38. package/packages/organization-input/src/organization-input.vue +12 -34
  39. package/packages/super-grid/src/apis.js +4 -21
  40. package/packages/super-grid/src/dynamic-input.vue +12 -1
  41. package/packages/super-grid/src/normal-column-content.vue +1 -2
  42. package/packages/super-grid/src/row-operation.vue +13 -23
  43. package/packages/super-grid/src/super-grid.vue +42 -51
  44. package/packages/super-grid/src/utils.js +8 -13
  45. package/packages/super-icon/src/index.vue +1 -4
  46. package/packages/workgroup-tree/src/workgroup-tree.vue +110 -117
  47. package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +1 -6
  48. package/packages/workgroup-tree-mobile/src/workgroup-tree-app.vue +75 -103
  49. package/packages/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue +208 -229
  50. package/src/api/sso-service.js +5 -6
  51. package/src/directives/permission/index.js +4 -4
  52. package/src/index.js +3 -38
  53. package/src/store/modules/table.js +1 -0
  54. package/src/styles/theme/dark-blue/sidebar.scss +0 -9
  55. package/src/styles/theme/gray/sidebar.scss +8 -9
  56. package/src/styles/theme/green/sidebar.scss +0 -10
  57. package/src/styles/theme/ocean-blue/sidebar.scss +0 -9
  58. package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +0 -9
  59. package/src/utils/insert_css.js +1 -1
  60. package/src/views/dsc-component/Sidebar/SidebarItem.vue +2 -2
  61. package/src/views/dsc-component/Sidebar/index.vue +18 -36
  62. package/src/views/layout/components/Menubar/Item.vue +9 -0
  63. package/src/views/layout/components/Menubar/SidebarItem.vue +2 -2
  64. package/src/views/layout/components/Sidebar/Item.vue +1 -4
  65. package/src/views/layout/components/Sidebar/SidebarItem.vue +2 -2
  66. package/vite.config.js +1 -1
@@ -1,71 +1,64 @@
1
- export function getTenant() {
1
+ export function getTenant () {
2
2
  const parentId = 0
3
- return window['$vueApp'].config.globalProperties.$http.get(
4
- window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/departments/' + parentId
5
- )
3
+ return window['$vueApp'].config.globalProperties.$http.get(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/departments/' + parentId)
6
4
  }
7
5
 
8
6
  // 获得公司节点的孩子节点
9
- export function getTenantChildren(departmentInfo, tenantNodeId, limitFilterColumn) {
10
- if (departmentInfo && departmentInfo.length > 0) {
11
- // 加载指定部门时,展开公司节点
12
- return loadPointDepartments(departmentInfo, limitFilterColumn)
13
- } else {
14
- // 加载整个组织结构树时,展开公司节点
15
- return loadDepartment(tenantNodeId, null)
16
- }
7
+ export function getTenantChildren (departmentInfo, tenantNodeId) {
8
+ if (departmentInfo && departmentInfo.length > 0) {
9
+ // 加载指定部门时,展开公司节点
10
+ return loadPointDepartments(departmentInfo)
11
+ } else {
12
+ // 加载整个组织结构树时,展开公司节点
13
+ return loadDepartment(tenantNodeId, null)
14
+ }
15
+
17
16
  }
18
17
 
19
- // 加载指定部门节点
20
- export function loadPointDepartments(departmentInfo, limitFilterColumn) {
21
- return new Promise((resolve, reject) => {
22
- let url = window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/point-department-users'
23
- if (limitFilterColumn) {
24
- url += '/' + limitFilterColumn
25
- }
26
- window['$vueApp'].config.globalProperties.$http.post(url, departmentInfo).then((children) => {
18
+
19
+ // 加载指定部门节点
20
+ export function loadPointDepartments (departmentInfo) {
21
+ return new Promise((resolve,reject)=>{
22
+ window['$vueApp'].config.globalProperties.$http.post(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/point-department-users', departmentInfo).then(children => {
27
23
  resolve(children)
28
24
  })
29
25
  })
30
26
  }
31
27
 
32
- // 加载当前节点的子节点
33
- export function loadDepartment(parentId, branchId) {
34
- let param = {
35
- parentId: parentId,
36
- needVirtualUser: false,
37
- branchId: null
38
- }
39
- if (branchId) {
40
- param.branchId = branchId
41
- }
42
- return new Promise((resolve, reject) => {
43
- window['$vueApp'].config.globalProperties.$http
44
- .post(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/department-users', param)
45
- .then((children) => {
28
+
29
+ // 加载当前节点的子节点
30
+ export function loadDepartment (parentId, branchId) {
31
+ let param = {
32
+ parentId: parentId,
33
+ needVirtualUser: false,
34
+ branchId: null
35
+ }
36
+ if (branchId) {
37
+ param.branchId = branchId
38
+ }
39
+ return new Promise((resolve,reject)=>{
40
+ window['$vueApp'].config.globalProperties.$http.post(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/department-users', param)
41
+ .then(children => {
46
42
  resolve(children)
47
43
  })
48
- })
49
- }
50
- export function checkedDeptDefault(selectDepts, defaultCheckedKeys) {
51
- defaultCheckedKeys = []
52
- selectDepts.forEach((dept) => {
53
- defaultCheckedKeys.push(dept.nodeId)
54
- })
55
- }
56
- // ,
57
- // isDeptOrUser (item, dept) {
58
- // return item.id === dept.id && item.nodeType && dept.nodeType && item.nodeType === dept.nodeType
59
- // },
60
- export function getUserInDepartments(departmentIds) {
61
- return window['$vueApp'].config.globalProperties.$http.post(
62
- window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/user-only-in-departments',
63
- departmentIds
64
- )
65
- }
66
- // getTenantNoDeptUsers () {
67
- // return this.$http.get(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/tenant-no-dept-users')
68
- // },
69
- // getBranchNoDeptUsers (branchId) {
70
- // return this.$http.get(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/branch-no-dept-users/' + branchId)
71
- // }
44
+ })
45
+ }
46
+ export function checkedDeptDefault (selectDepts, defaultCheckedKeys) {
47
+ defaultCheckedKeys = []
48
+ selectDepts.forEach(dept => {
49
+ defaultCheckedKeys.push(dept.nodeId)
50
+ })
51
+ }
52
+ // ,
53
+ // isDeptOrUser (item, dept) {
54
+ // return item.id === dept.id && item.nodeType && dept.nodeType && item.nodeType === dept.nodeType
55
+ // },
56
+ export function getUserInDepartments (departmentIds) {
57
+ return window['$vueApp'].config.globalProperties.$http.post(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/user-only-in-departments', departmentIds)
58
+ }
59
+ // getTenantNoDeptUsers () {
60
+ // return this.$http.get(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/tenant-no-dept-users')
61
+ // },
62
+ // getBranchNoDeptUsers (branchId) {
63
+ // return this.$http.get(window['$vueApp'].config.globalProperties.baseAPI + '/component/organization-trees/branch-no-dept-users/' + branchId)
64
+ // }
@@ -37,16 +37,7 @@
37
37
  </span>
38
38
  </template>
39
39
  <el-table :show-header="false" :data="fileList" max-height="60vh">
40
- <el-table-column prop="showName" show-overflow-tooltip>
41
- <template v-slot="scope">
42
- <div style="display: flex; align-items: center">
43
- <super-icon :iconValue="getFileIconByName(scope.row.showName)" />
44
- <span style="margin-left: 10px; cursor: pointer" @click="previewSingle(scope.row)">
45
- {{ scope.row.showName }}
46
- </span>
47
- </div>
48
- </template>
49
- </el-table-column>
40
+ <el-table-column prop="showName" show-overflow-tooltip />
50
41
  <el-table-column width="80" align="center">
51
42
  <template v-slot="scope">
52
43
  <div style="margin: -10px 0">
@@ -78,7 +69,6 @@ import { isPlateSys, getSystemFrontendUrl } from '../../../src/utils/common-util
78
69
  import { isImage, getEntityFieldValue } from '../../../src/utils/util'
79
70
  import { packageFile } from '../../super-grid/src/utils'
80
71
  import { getToken } from '../../../src/utils/auth'
81
- import { getFileIconByName } from '../../../src/utils/file-util'
82
72
  import { Base64 } from 'js-base64'
83
73
  export default {
84
74
  components: {
@@ -294,18 +284,10 @@ export default {
294
284
  },
295
285
  formatFileName(fileName) {
296
286
  return fileName.replace('#', '~~').replace('?', '~$').replace('&', '$')
297
- },
298
- getFileIconByName(fileName) {
299
- return getFileIconByName(fileName)
300
287
  }
301
288
  },
302
289
  emits: ['close']
303
290
  }
304
291
  </script>
305
292
 
306
- <style lang="scss" scoped>
307
- .amb-color-iconfont {
308
- width: 30px;
309
- height: 30px;
310
- }
311
- </style>
293
+ <style lang="scss" scoped></style>
@@ -82,35 +82,22 @@
82
82
  </span>
83
83
  </template>
84
84
  <el-table :data="showFileList" :show-header="false">
85
- <el-table-column prop="showName" width="300" show-overflow-tooltip>
86
- <template v-slot="scope">
87
- <div style="display: flex; align-items: center">
88
- <super-icon :iconValue="getFileIconByName(scope.row.showName)" />
89
- <span style="margin-left: 10px; cursor: pointer" @click="previewSingle(scope.row)">
90
- {{ scope.row.showName }}
91
- </span>
92
- </div>
93
- </template>
94
- </el-table-column>
85
+ <el-table-column prop="showName" width="300" />
95
86
  <el-table-column align="right">
96
87
  <template v-slot="scope">
97
88
  <el-tooltip :content="$t('imatrixUIPublicModel.preview')" class="item" effect="dark" placement="top">
98
- <el-button type="text" @click="previewSingle(scope.row)">
99
- <el-icon style="cursor: pointer">
100
- <el-icon-view />
101
- </el-icon>
102
- </el-button>
89
+ <el-icon style="cursor: pointer" @click="previewSingle(scope.row)">
90
+ <el-icon-view />
91
+ </el-icon>
103
92
  </el-tooltip>
104
93
  </template>
105
94
  </el-table-column>
106
95
  <el-table-column v-if="!disabled">
107
96
  <template v-slot="scope">
108
97
  <el-tooltip :content="$t('imatrixUIPublicModel.delete')" class="item" effect="dark" placement="top">
109
- <el-button type="text" @click="deleteRow(scope.$index)">
110
- <el-icon style="cursor: pointer">
111
- <el-icon-delete />
112
- </el-icon>
113
- </el-button>
98
+ <el-icon style="cursor: pointer" @click="deleteRow(scope.$index)">
99
+ <el-icon-delete />
100
+ </el-icon>
114
101
  </el-tooltip>
115
102
  </template>
116
103
  </el-table-column>
@@ -157,7 +144,6 @@ import FsPreview from '../../fs-preview/src/fs-preview.vue'
157
144
  import { packageFile } from '../../super-grid/src/utils'
158
145
  import FileUploadInputMobile from '../../fs-upload-new/src/file-upload-mobile/file-upload-input.vue'
159
146
  import { Base64 } from 'js-base64'
160
- import { getFileIconByName } from '../../../src/utils/file-util'
161
147
  export default {
162
148
  name: 'FsUploadList',
163
149
  props: {
@@ -432,17 +418,8 @@ export default {
432
418
  },
433
419
  uploadFileDone(data) {
434
420
  this.$refs.fileUploadRef.uploadFileDone(data)
435
- },
436
- getFileIconByName(fileName) {
437
- return getFileIconByName(fileName)
438
421
  }
439
422
  },
440
423
  emits: ['close', 'upload-success', 'delete-success', 'delete', 'update:value', 'close', 'update:value']
441
424
  }
442
425
  </script>
443
- <style lang="scss" scoped>
444
- .amb-color-iconfont {
445
- width: 30px;
446
- height: 30px;
447
- }
448
- </style>
@@ -362,7 +362,7 @@ function validateCanUploadFile(file, limitFileSize) {
362
362
  ElMessage({
363
363
  showClose: true,
364
364
  type: 'warning',
365
- message: t('imatrixUIMessage.exceedFileSize', { fileName: file.name, fileSize: limitFileSize })
365
+ message: t('fileUpload.exceedFileSize', { fileName: file.name, fileSize: limitFileSize })
366
366
  })
367
367
  // 返回false停止上传
368
368
  isCanUpload = false
@@ -2,26 +2,21 @@
2
2
  <div>
3
3
  <div v-if="!isMobile">
4
4
  <div v-for="(file, index) in fileList" :key="index" style="width: 100%">
5
- <el-tag color="white" size="large">
6
- <template #default>
7
- <div style="display: flex; align-items: center">
8
- <!-- 'amb-color-icon-XLS' -->
9
- <super-icon :iconValue="getFileIconByName(file.showName)" />
10
- <el-tooltip content="预览" placement="top">
11
- <span style="cursor: pointer" @click="preview(file.showName, file.serverPath)">
12
- <span style="margin-left: 6.5px">{{ file.showName }}</span>
13
- </span>
14
- </el-tooltip>
15
- <el-tooltip v-if="!disabled" content="下载" placement="top">
16
- <el-icon style="margin-left: 10px" @click="handleDownload(file)">
17
- <Download />
18
- </el-icon>
19
- </el-tooltip>
20
- <el-tooltip v-if="!disabled" content="移除" placement="top">
21
- <el-icon @click="handleOnRemove(file)"><Close /></el-icon>
22
- </el-tooltip>
23
- </div>
24
- </template>
5
+ <el-tag>
6
+ <el-tooltip content="预览" placement="top">
7
+ <span style="cursor: pointer" @click="preview(file.showName, file.serverPath)">
8
+ <el-icon><Paperclip /></el-icon>
9
+ <span style="margin-left: 6.5px">{{ file.showName }}</span>
10
+ </span>
11
+ </el-tooltip>
12
+ <el-tooltip v-if="!disabled" content="下载" placement="top">
13
+ <el-icon @click="handleDownload(file)">
14
+ <Download />
15
+ </el-icon>
16
+ </el-tooltip>
17
+ <el-tooltip v-if="!disabled" content="移除" placement="top">
18
+ <el-icon @click="handleOnRemove(file)"><Close /></el-icon>
19
+ </el-tooltip>
25
20
  </el-tag>
26
21
  </div>
27
22
  </div>
@@ -58,7 +53,6 @@ import { getSystemFrontendUrl, isPlateSys, isMobileBrowser, getReplaceUrlDomain
58
53
  import { getToken } from '../../../src/utils/auth'
59
54
  import { isImage } from '../../../src/utils/util'
60
55
  import { Base64 } from 'js-base64'
61
- import { getFileIconByName } from '../../../src/utils/file-util'
62
56
  const props = defineProps({
63
57
  systemCode: {
64
58
  type: String,
@@ -270,9 +264,3 @@ const isPreview = (fileName: string) => {
270
264
  return false
271
265
  }
272
266
  </script>
273
- <style lang="scss" scoped>
274
- .amb-color-iconfont {
275
- width: 30px;
276
- height: 30px;
277
- }
278
- </style>
package/packages/index.js CHANGED
@@ -110,10 +110,10 @@ const install = function (Vue) {
110
110
  if(Vue.config.globalProperties) Vue.config.globalProperties.$agilebuilderUIStore = store;
111
111
  }
112
112
 
113
- // 判断是否是直接引入vue的js文件,即全局引用可自动安装所有组件
114
- if (typeof window !== 'undefined' && window.Vue) {
115
- install(window.Vue)
116
- }
113
+ // // 判断是否是直接引入vue的js文件,即全局引用可自动安装所有组件
114
+ // if (typeof window !== 'undefined' && window.Vue) {
115
+ // install(window.Vue)
116
+ // }
117
117
  export {
118
118
  Breadcrumb,
119
119
  DepartmentTree,
@@ -39,7 +39,6 @@
39
39
  :search-field="searchField"
40
40
  :select-user-info="selectOrganizationInfo"
41
41
  :separator="separator"
42
- :limit-filter-column="limitFilterColumn"
43
42
  @close="closeOrganizationTree"
44
43
  />
45
44
  <!-- 部门树 -->
@@ -48,10 +47,8 @@
48
47
  :check-strictly="typeof checkStrictly === 'undefined' ? false : checkStrictly"
49
48
  :multiple="typeof multiple === 'undefined' ? false : multiple"
50
49
  :search-field="searchField"
51
- :department-info="departmentInfo"
52
50
  :select-department-info="selectOrganizationInfo"
53
51
  :separator="separator"
54
- :limit-filter-column="limitFilterColumn"
55
52
  width="30%"
56
53
  @close="closeOrganizationTree"
57
54
  />
@@ -63,7 +60,6 @@
63
60
  :search-field="searchField"
64
61
  :select-workgroup-info="selectOrganizationInfo"
65
62
  :separator="separator"
66
- :limit-filter-column="limitFilterColumn"
67
63
  width="30%"
68
64
  @close="closeOrganizationTree"
69
65
  />
@@ -75,7 +71,6 @@
75
71
  :search-field="searchField"
76
72
  :select-user-info="selectOrganizationInfo"
77
73
  :separator="separator"
78
- :limit-filter-column="limitFilterColumn"
79
74
  width="30%"
80
75
  @close="closeOrganizationTree"
81
76
  />
@@ -107,14 +102,11 @@
107
102
  import { Delete as ElIconDelete, Search as ElIconSearch } from '@element-plus/icons-vue'
108
103
  // import Vue from 'vue'
109
104
  import { getPropNameWhenJoinTable, setEntityFieldValue } from '../../../src/utils/util'
110
- import DepartmentUserTree from '../../department-user-tree/src/department-user-tree.vue'
111
- import DepartmentTree from '../../department-tree/src/department-tree.vue'
105
+
112
106
  export default {
113
107
  components: {
114
108
  ElIconSearch,
115
- ElIconDelete,
116
- DepartmentUserTree,
117
- DepartmentTree
109
+ ElIconDelete
118
110
  },
119
111
  name: 'OrganizationInput',
120
112
  model: {
@@ -192,11 +184,6 @@ export default {
192
184
  pageModels: {
193
185
  type: Object,
194
186
  default: null
195
- },
196
- // 根据变量限制部门时,根据部门表的哪个字段进行过滤,默认是code
197
- limitFilterColumn: {
198
- type: String,
199
- default: 'code'
200
187
  }
201
188
  },
202
189
  data() {
@@ -382,24 +369,20 @@ export default {
382
369
  }
383
370
  }
384
371
  return mainDeptIds.join(this.separator)
385
- } else if (orgDataType === 'mainDeptCode' || orgDataType === 'mainDeptName') {
386
- // 正职部门code或名称
387
- // 这里的orgDataType是mainDeptCode或mainDeptName
388
- // 需要根据orgDataType来判断返回的值
389
- // 如果是mainDeptCode,则返回mainDepartmentCode,如果是mainDeptName,则返回mainDepartmentName
390
- const mainDeptColumn = []
391
- const key = orgDataType === 'mainDeptCode' ? 'mainDepartmentCode' : 'mainDepartmentName'
372
+ } else if (orgDataType === 'mainDeptCode') {
373
+ // 正职部门code
374
+ const mainDeptCodes = []
392
375
  if (isUserTree) {
393
376
  const users = selectNodeInfo.users
394
377
  if (users) {
395
378
  users.forEach((user) => {
396
- if (user[key]) {
397
- mainDeptColumn.push(user[key])
379
+ if (user.mainDepartmentCode) {
380
+ mainDeptCodes.push(user.mainDepartmentCode)
398
381
  }
399
382
  })
400
383
  }
401
384
  }
402
- return mainDeptColumn.join(this.separator)
385
+ return mainDeptCodes.join(this.separator)
403
386
  } else if (orgDataType === 'subCompanyName') {
404
387
  // 分支名称
405
388
  const branchNames = []
@@ -462,21 +445,16 @@ export default {
462
445
  }
463
446
  }
464
447
  return mainDeptId
465
- } else if (orgDataType === 'mainDeptCode' || orgDataType === 'mainDeptName') {
466
- // 正职部门code或名称
467
- // 这里的orgDataType是mainDeptCode或mainDeptName
468
- // 需要根据orgDataType来判断返回的值
469
- // 如果是mainDeptCode,则返回mainDepartmentCode,如果是mainDeptName,则返回mainDepartmentName
470
- const key = orgDataType === 'mainDeptCode' ? 'mainDepartmentCode' : 'mainDepartmentName'
448
+ } else if (orgDataType === 'mainDeptCode') {
471
449
  // 正职部门code
472
- let mainDeptColumn = null
450
+ let mainDeptCode = null
473
451
  if (isUserTree) {
474
452
  const user = selectNodeInfo.user
475
453
  if (user) {
476
- mainDeptColumn = user[key]
454
+ mainDeptCode = user.mainDepartmentCode
477
455
  }
478
456
  }
479
- return mainDeptColumn
457
+ return mainDeptCode
480
458
  } else if (orgDataType === 'subCompanyName') {
481
459
  // 分支名称
482
460
  let branchName = null
@@ -134,12 +134,7 @@ const apis = {
134
134
  }
135
135
  },
136
136
  // 新建行
137
- createRow(listCode, row, options, event) {
138
- // addRowIndex 表示新建行插入到第几行后面,默认是-1表示添加到最后面
139
- let addRowIndex = -1
140
- if (event && event.rowIndex > -1) {
141
- addRowIndex = event.rowIndex + 1
142
- }
137
+ createRow(listCode, row, options) {
143
138
  return new Promise((resolve, reject) => {
144
139
  if (!listCode) {
145
140
  listCode = store.get('_list_code')
@@ -262,18 +257,10 @@ const apis = {
262
257
  if (gridParams.isSubTableShowPage !== undefined && gridParams.isSubTableShowPage === true) {
263
258
  // 子表集合添加该新建的行。会触发watch subTableData的监控
264
259
  gridParams.isChangePage = true
265
- if (addRowIndex >= 0) {
266
- gridParams.subTableData.splice(addRowIndex, 0, row)
267
- } else {
268
- gridParams.subTableData.splice(gridParams.subTableData.length, 0, row)
269
- }
260
+ gridParams.subTableData.splice(gridParams.subTableData.length, 0, row)
270
261
  } else {
271
262
  // 子表不分页
272
- if (addRowIndex >= 0) {
273
- gridData.splice(addRowIndex, 0, row)
274
- } else {
275
- gridData.splice(gridData.length, 0, row)
276
- }
263
+ gridData.splice(gridData.length, 0, row)
277
264
  if (gridParams.lineEdit.editingCell) {
278
265
  gridParams.lineEdit.editingCell.row = gridData.length
279
266
  }
@@ -297,11 +284,7 @@ const apis = {
297
284
  // console.log('创建行所属的list2', gridData)
298
285
  // console.log('创建行所属的打印gridParams.gridData', gridParams.gridData)
299
286
  const orgRow = Object.assign({}, row)
300
- if (addRowIndex >= 0) {
301
- gridParams.orgGridData.splice(addRowIndex, 0, orgRow)
302
- } else {
303
- gridParams.orgGridData.splice(0, 0, orgRow)
304
- }
287
+ gridParams.orgGridData.splice(0, 0, orgRow)
305
288
  if (!gridParams.lineEdit.editingCell) {
306
289
  gridParams.lineEdit.editingCell = {}
307
290
  gridParams.lineEdit.validateErrorField = ''
@@ -531,7 +531,7 @@ import dynamicSourceSelect from '../../dynamic-source-select/src/dynamic-source-
531
531
  import { getEntityFieldValue, setEntityFieldValue } from '../../../src/utils/util'
532
532
  import { getToken } from '../../../src/utils/auth'
533
533
  import apis from './apis'
534
- import ViewImageDialog from './view-image-dialog.vue'
534
+ import ViewImageDialog from './view-image-dialog'
535
535
  import { $emit } from '../../utils/gogocodeTransfer'
536
536
  import eventBus from './eventBus'
537
537
  import { isMobileBrowser, getAuthSource } from '../../../src/utils/common-util'
@@ -664,6 +664,7 @@ export default {
664
664
  // 表示手机浏览器访问的
665
665
  userAgent = 'browser'
666
666
  }
667
+ console.log('superGrid----window.location.protocol---', window.location.protocol)
667
668
  const isDingTalk = getAuthSource() === 'dingtalk' ? true : false
668
669
  const isApk = isMobile && userAgent && userAgent === 'app' ? true : false
669
670
  const isShowScanIcon =
@@ -676,6 +677,14 @@ export default {
676
677
  const colConfigure = gridParams.colConfigureMap ? gridParams.colConfigureMap[this.column.prop] : null
677
678
  const runtimeInfo = colConfigure && colConfigure.runtime ? colConfigure.runtime : {}
678
679
  const designProperty = runtimeInfo.props ? runtimeInfo.props : {}
680
+ console.log(
681
+ 'super-grid-dynamicInput--designProperty=',
682
+ designProperty,
683
+ 'colConfigure=',
684
+ colConfigure,
685
+ 'gridParams.colConfigureMap=',
686
+ gridParams.colConfigureMap
687
+ )
679
688
  return {
680
689
  deptManTree: false, // 是否是部门人员树
681
690
  isMultiTree: false, // 是否是多选树
@@ -1124,6 +1133,7 @@ export default {
1124
1133
  this.blurEvent()
1125
1134
  isInputVal = true
1126
1135
  if (this.innerValue && this.isInputControl() && this.column.dataType === 'TEXT') {
1136
+ console.log('trim value', this.innerValue)
1127
1137
  this.innerValue = this.innerValue.trim()
1128
1138
  }
1129
1139
  }
@@ -1967,6 +1977,7 @@ export default {
1967
1977
  this.blurEvent()
1968
1978
  },
1969
1979
  packageCustomRules(columnRule) {
1980
+ console.log('packageCustomRules---columnRule=', columnRule)
1970
1981
  if (!columnRule) {
1971
1982
  return
1972
1983
  }
@@ -106,10 +106,8 @@
106
106
  :is-show="operation.isShow"
107
107
  :label="operation.props.label ? operation.props.label : row[column.prop]"
108
108
  :on-click="operation.onClick"
109
- :operation="operation"
110
109
  :operation-index="operationIndex"
111
110
  :operation-setting="operation.props"
112
- :event-name="operation.eventName"
113
111
  :row-index="rowIndex"
114
112
  :list-code="listCode"
115
113
  :parent-form-data="parentFormData"
@@ -1186,6 +1184,7 @@ export default {
1186
1184
  return 'primary'
1187
1185
  },
1188
1186
  changeDisabled(state) {
1187
+ debugger
1189
1188
  this.disabled = state
1190
1189
  },
1191
1190
  refreshList() {