vue2-client 1.20.5 → 1.20.7

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.
@@ -0,0 +1,7 @@
1
+ 2026-02-27 09:24:44 - afgit.config - INFO - 开始拉取最新配置
2
+ 2026-02-27 09:24:44 - afgit.config - INFO - 创建本地目录: ./config_files
3
+ 2026-02-27 09:24:44 - afgit.config - INFO - 开始下载配置文件到: ./config_files
4
+ 2026-02-27 09:24:44 - afgit.config - DEBUG - 开始认证,URL: http://192.168.50.67:31467/api/af-auth/login, 用户名: 1
5
+ 2026-02-27 09:24:44 - afgit.config - ERROR - 解析认证响应失败: {"code":400,"data":null,"error":true,"msg":"用户不存在/密码错误","success":false}, 用户名: 1, 密码: Class123!@!
6
+ 2026-02-27 09:24:44 - afgit.config - ERROR - 认证失败,下载终止
7
+ 2026-02-27 09:24:44 - afgit.config - ERROR - 拉取配置失败
@@ -0,0 +1,3 @@
1
+ 2026-02-27 09:24:44 - afgit.config - ERROR - 解析认证响应失败: {"code":400,"data":null,"error":true,"msg":"用户不存在/密码错误","success":false}, 用户名: 1, 密码: Class123!@!
2
+ 2026-02-27 09:24:44 - afgit.config - ERROR - 认证失败,下载终止
3
+ 2026-02-27 09:24:44 - afgit.config - ERROR - 拉取配置失败
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.20.5",
3
+ "version": "1.20.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -111,7 +111,13 @@ const wrapperClassObject = computed(() => {
111
111
 
112
112
  const wrapperStyleObject = computed(() => {
113
113
  const rowHeight = attrs['row-height'] || attrs.rowHeight || ROW_HEIGHT_DEFAULT
114
- return { '--row-height': rowHeight }
114
+ const tableMinHeight = attrs['table-min-height'] || attrs.tableMinHeight || null
115
+ // 表格高度偏移量(分页器+边距等固定部分),配置600显示550,偏移50
116
+ const tableMinHeightOffset = 50
117
+ return {
118
+ '--row-height': rowHeight,
119
+ '--table-min-height': tableMinHeight ? `calc(${tableMinHeight} - ${tableMinHeightOffset}px)` : undefined
120
+ }
115
121
  })
116
122
 
117
123
  const xFormTableRef = ref()
@@ -481,18 +487,13 @@ defineExpose({
481
487
  }
482
488
  }
483
489
 
484
- // 修复数据量少时下拉框被挡住的问题:为表格内容区域设置最小高度
485
- // 当表格有数据时,确保表格内容区域有足够高度,避免下拉框被挡住
486
- // 注意:只在表格有数据时应用,避免空表格时显示问题
490
+ // 自定义表格固定高度(通过 table-min-height 属性设置)
491
+ // 只在表格有数据时应用
487
492
  :deep(.table-wrapper) {
488
493
  .ant-table:not(.ant-table-empty) {
489
494
  .ant-table-content {
490
- // 设置最小高度,确保即使数据少时也有足够空间显示下拉框
491
- // 这个高度应该足够显示下拉框选项(通常下拉框高度约200-300px)
492
- min-height: 300px;
493
495
  .ant-table-body {
494
- // 确保表格体也有最小高度,保证滚动容器有足够空间
495
- min-height: 250px;
496
+ height: calc(var(--table-min-height, 300px) - 50px);
496
497
  }
497
498
  }
498
499
  }
@@ -531,6 +531,7 @@ export default {
531
531
  btnPlace = 'end',
532
532
  simpleInline = null,
533
533
  paramLogicName,
534
+ paramLogicServiceName,
534
535
  paramLogicNameParam
535
536
  } = params
536
537
  this.loaded = false
@@ -575,7 +576,8 @@ export default {
575
576
  // 设置普通表单项的相关参数
576
577
  const formData = Object.assign({}, fixedAddForm)
577
578
  if (paramLogicName) {
578
- runLogic(paramLogicName, paramLogicNameParam, this.serviceName).then(res => {
579
+ // console.warn('2paramLogicServiceName', paramLogicServiceName)
580
+ runLogic(paramLogicName, paramLogicNameParam, (typeof paramLogicServiceName === 'string' && paramLogicServiceName.trim()) || this.serviceName).then(res => {
579
581
  Object.assign(formData, res)
580
582
  })
581
583
  }
@@ -6,7 +6,7 @@ export default {
6
6
  components: { WorkflowDetail },
7
7
  mounted () {
8
8
  this.$refs.workFlow.init({
9
- workflowId: 4640
9
+ workflowId: 6255
10
10
  })
11
11
  },
12
12
  methods: {
@@ -1194,7 +1194,13 @@ export default {
1194
1194
  const currentStepDefine = this.stepsDefine.find(item => item.id === stepId)
1195
1195
  const isKeyHandle = currentStepDefine?.properties?.form?.isKeyHandle || false
1196
1196
  if (!!currentStepDefine.properties.form?.paramLogicName) {
1197
- const data = await postByServiceName(`/logic/${currentStepDefine.properties.form.paramLogicName}`, { workflowId: this.workflowId, stepId: stepId, data: formCompletedDataPreview })
1197
+ // 确保 serviceName 是一个非空字符串
1198
+ const serviceName =
1199
+ (typeof currentStepDefine.properties.form?.paramLogicServiceName === 'string' &&
1200
+ currentStepDefine.properties.form.paramLogicServiceName.trim()) || process.env.VUE_APP_SYSTEM_NAME
1201
+ // console.warn('serviceName', serviceName)
1202
+ const data = await postByServiceName(`/logic/${currentStepDefine.properties.form.paramLogicName}`, { workflowId: this.workflowId, stepId: stepId, data: formCompletedDataPreview }, serviceName)
1203
+ // const data = await postByServiceName(`/logic/${currentStepDefine.properties.form.paramLogicName}`, { workflowId: this.workflowId, stepId: stepId, data: formCompletedDataPreview })
1198
1204
  formCompletedDataPreview = this.mergeFormData(formCompletedDataPreview, data)
1199
1205
  }
1200
1206
  // 使用字段定义中内容,将回显数据的列名,替换为定义的中文名
@@ -55,8 +55,8 @@ routerResource.example = {
55
55
  // component: () => import('@vue2-client/pages/LayoutTest/index.vue')
56
56
  // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue')
57
57
  // component: () => import('@vue2-client/base-client/components/his/HChart/demo.vue'),
58
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
59
- component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
58
+ component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
59
+ // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
60
60
  // component: () => import('@vue2-client/base-client/components/common/AfMap/demo.vue')
61
61
  // component: () => import('@vue2-client/base-client/components/common/ImagePreviewModal/demo.vue'),
62
62
  // component: () => import('@vue2-client/base-client/components/common/XImagePreview/demo.vue'),