vue2-client 1.15.66 → 1.15.67

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 (132) hide show
  1. package/.history/public/his/editor/editor_20250606134713.html +51 -0
  2. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527173925.vue +509 -0
  3. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174316.vue +524 -0
  4. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174419.vue +524 -0
  5. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174422.vue +524 -0
  6. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172825.vue +207 -0
  7. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172945.vue +211 -0
  8. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172949.vue +212 -0
  9. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611173010.vue +212 -0
  10. package/.history/src/base-client/components/common/XForm/XFormItem_20250508134122.vue +1320 -0
  11. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171604.vue +1332 -0
  12. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171613.vue +1331 -0
  13. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171703.vue +1331 -0
  14. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171720.vue +1331 -0
  15. package/.history/src/base-client/components/common/XForm/XFormItem_20250527174327.vue +1339 -0
  16. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612092804.vue +731 -0
  17. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612112546.vue +748 -0
  18. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612113808.vue +748 -0
  19. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115237.vue +1071 -0
  20. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115346.vue +1078 -0
  21. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115350.vue +1077 -0
  22. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115415.vue +1077 -0
  23. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115429.vue +1077 -0
  24. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611091619.vue +442 -0
  25. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092547.vue +442 -0
  26. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092552.vue +442 -0
  27. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092744.vue +475 -0
  28. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092955.vue +475 -0
  29. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092957.vue +475 -0
  30. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095652.vue +477 -0
  31. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095701.vue +477 -0
  32. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095704.vue +477 -0
  33. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100005.vue +473 -0
  34. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100011.vue +473 -0
  35. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100014.vue +473 -0
  36. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100833.vue +473 -0
  37. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100853.vue +473 -0
  38. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100940.vue +473 -0
  39. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101011.vue +473 -0
  40. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101013.vue +473 -0
  41. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101014.vue +473 -0
  42. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101159.vue +473 -0
  43. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101238.vue +474 -0
  44. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101240.vue +474 -0
  45. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101242.vue +474 -0
  46. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101404.vue +472 -0
  47. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101410.vue +472 -0
  48. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101459.vue +472 -0
  49. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101500.vue +472 -0
  50. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101502.vue +472 -0
  51. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101504.vue +472 -0
  52. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101610.vue +501 -0
  53. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101700.vue +501 -0
  54. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101702.vue +501 -0
  55. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101741.vue +504 -0
  56. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101749.vue +504 -0
  57. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101759.vue +504 -0
  58. package/.history/src/base-client/components/his/XHisEditor/dome_20250611091349.vue +131 -0
  59. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105854.vue +160 -0
  60. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105902.vue +160 -0
  61. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105924.vue +160 -0
  62. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105932.vue +158 -0
  63. package/.history/src/base-client/components/his/XList/XList_20250609135848.vue +173 -0
  64. package/.history/src/base-client/components/his/XList/XList_20250609141026.vue +222 -0
  65. package/.history/src/base-client/components/his/XList/XList_20250609141035.vue +229 -0
  66. package/.history/src/base-client/components/his/XList/XList_20250609141103.vue +229 -0
  67. package/.history/src/base-client/components/his/XList/XList_20250609141105.vue +229 -0
  68. package/.history/src/base-client/components/his/XList/XList_20250609141334.vue +241 -0
  69. package/.history/src/base-client/components/his/XList/XList_20250609141404.vue +241 -0
  70. package/.history/src/base-client/components/his/XList/XList_20250609141406.vue +241 -0
  71. package/.history/src/base-client/components/his/XList/XList_20250609141801.vue +245 -0
  72. package/.history/src/base-client/components/his/XList/XList_20250609142033.vue +245 -0
  73. package/.history/src/base-client/components/his/XList/XList_20250609142038.vue +245 -0
  74. package/.history/src/base-client/components/his/XList/XList_20250609142435.vue +255 -0
  75. package/.history/src/base-client/components/his/XList/XList_20250609142503.vue +255 -0
  76. package/.history/src/base-client/components/his/XList/XList_20250609142504.vue +255 -0
  77. package/.history/src/base-client/components/his/XList/XList_20250609143012.vue +270 -0
  78. package/.history/src/base-client/components/his/XList/XList_20250609143044.vue +270 -0
  79. package/.history/src/base-client/components/his/XList/XList_20250609143046.vue +270 -0
  80. package/.history/src/base-client/components/his/XList/XList_20250609143210.vue +270 -0
  81. package/.history/src/base-client/components/his/XList/XList_20250609144339.vue +294 -0
  82. package/.history/src/base-client/components/his/XList/XList_20250609144410.vue +294 -0
  83. package/.history/src/base-client/components/his/XList/XList_20250609144412.vue +294 -0
  84. package/.history/src/base-client/components/his/XList/XList_20250609144647.vue +303 -0
  85. package/.history/src/base-client/components/his/XList/XList_20250609144716.vue +303 -0
  86. package/.history/src/base-client/components/his/XList/XList_20250609144729.vue +303 -0
  87. package/.history/src/base-client/components/his/XList/XList_20250609151232.vue +288 -0
  88. package/.history/src/base-client/components/his/XList/XList_20250609151247.vue +288 -0
  89. package/.history/src/base-client/components/his/XList/XList_20250609151252.vue +288 -0
  90. package/.history/src/base-client/components/his/XList/XList_20250609161220.vue +317 -0
  91. package/.history/src/base-client/components/his/XList/XList_20250609161258.vue +306 -0
  92. package/.history/src/base-client/components/his/XList/XList_20250609161319.vue +306 -0
  93. package/.history/src/base-client/components/his/XList/XList_20250609161320.vue +306 -0
  94. package/.history/src/base-client/components/his/XList/XList_20250704142024.vue +495 -0
  95. package/.history/src/base-client/components/his/XList/XList_20250704142033.vue +495 -0
  96. package/.history/src/base-client/components/his/XList/XList_20250704142040.vue +494 -0
  97. package/.history/src/base-client/components/his/XList/XList_20250704142211.vue +494 -0
  98. package/.history/src/base-client/components/his/XList/XList_20250704142214.vue +494 -0
  99. package/.history/src/base-client/components/his/XList/XList_20250704143010.vue +495 -0
  100. package/.history/src/base-client/components/his/XList/XList_20250704143203.vue +495 -0
  101. package/.history/src/base-client/components/his/XList/XList_20250707095101.vue +492 -0
  102. package/.history/src/base-client/components/his/XList/XList_20250707100152.vue +492 -0
  103. package/.history/src/base-client/components/his/XList/XList_20250707100200.vue +485 -0
  104. package/.history/src/base-client/components/his/XList/XList_20250707100208.vue +485 -0
  105. package/.history/src/base-client/components/his/XList/XList_20250707100259.vue +488 -0
  106. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250609151519.vue +222 -0
  107. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155514.vue +183 -0
  108. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155556.vue +183 -0
  109. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155600.vue +183 -0
  110. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181609.vue +206 -0
  111. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181629.vue +209 -0
  112. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095553.vue +242 -0
  113. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095610.vue +242 -0
  114. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095612.vue +242 -0
  115. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100041.vue +251 -0
  116. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100047.vue +251 -0
  117. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100054.vue +250 -0
  118. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100105.vue +250 -0
  119. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100107.vue +250 -0
  120. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100114.vue +250 -0
  121. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140844.vue +238 -0
  122. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140910.vue +238 -0
  123. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140912.vue +238 -0
  124. package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +36 -0
  125. package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +10 -0
  126. package/package.json +1 -1
  127. package/src/base-client/components/TreeList/TreeList.vue +91 -0
  128. package/src/base-client/components/TreeList/TreeNode.vue +81 -0
  129. package/src/base-client/components/common/XCardSet/XTiltle.vue +191 -0
  130. package/src/base-client/components/his/XHisEditor/XHisEditor.vue +207 -28
  131. package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
  132. package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
@@ -14,9 +14,9 @@
14
14
  >
15
15
  <a-select-option v-for="item of resListCp" :key="item.value" :value="item.value">{{ item.label }}</a-select-option>
16
16
  </a-select>
17
- <template v-if="this.modeType !== 'readonly' && this.resId !== -1">
18
- <a-button icon="plus" @click="addRes"/>
19
- </template>
17
+ <!-- <template v-if="this.modeType !== 'readonly' && this.resId !== -1">-->
18
+ <!-- <a-button icon="plus" @click="addRes"/>-->
19
+ <!-- </template>-->
20
20
  </template>
21
21
  <a-radio-group
22
22
  v-show="showModeChoose"
@@ -32,12 +32,62 @@
32
32
  <a-col class="editor-action">
33
33
  <a-space>
34
34
  <template v-if="this.modeType !== 'readonly'">
35
+ <!-- <a-button-->
36
+ <!-- type="primary"-->
37
+ <!-- v-if = "userTemplateVisible"-->
38
+ <!-- @click="useTemplateData"-->
39
+ <!-- >-->
40
+ <!-- 使用-->
41
+ <!-- </a-button>-->
42
+
35
43
  <a-button type="primary" @click="openRenameModal" v-if="this.resId !== -1">
36
44
  重命名
37
45
  </a-button>
38
- <a-button type="primary" @click="() => this.resId !== -1 ? save() : openAddResModal()">
39
- 保存
40
- </a-button>
46
+ <!-- 组合按钮容器 -->
47
+ <div class="combined-save-btn">
48
+ <!-- 保存按钮 (左侧) -->
49
+ <a-button
50
+ type="primary"
51
+ class="save-btn-main"
52
+ @click="showSaveModal('normal')"
53
+ >
54
+ 保存
55
+ </a-button>
56
+
57
+ <!-- 下拉部分 (右侧) -->
58
+ <!-- 下拉触发部分 -->
59
+ <template v-if="modeType !== 'design'">
60
+ <a-dropdown
61
+ :trigger="['click']"
62
+ placement="bottomRight">
63
+ <a-button
64
+ type="primary"
65
+ class="save-btn-dropdown">
66
+ <a-icon type="down" />
67
+ </a-button>
68
+ <a-menu slot="overlay">
69
+ <a-menu-item @click="showSaveModal('template')">
70
+ 保存并作为模板
71
+ </a-menu-item>
72
+ </a-menu>
73
+ </a-dropdown>
74
+ </template>
75
+ </div>
76
+ <a-modal
77
+ title="保存"
78
+ :visible="saveVisible"
79
+ :confirm-loading="confirmLoading"
80
+ @ok="handleSaveConfirm"
81
+ @cancel="saveVisible = false"
82
+ >
83
+ <a-form-item label="文件名" :label-col="{ span: 4 }" :wrapper-col="{ span: 20 }">
84
+ <a-input
85
+ v-model="fileName"
86
+ placeholder="请输入文件名"
87
+ @pressEnter="handleSaveConfirm"
88
+ />
89
+ </a-form-item>
90
+ </a-modal>
41
91
  </template>
42
92
  <a-button type="primary" @click="print">
43
93
  打印
@@ -110,6 +160,9 @@ export default {
110
160
  loading: false,
111
161
  resDataModalMode: 'modify',
112
162
  resDataModalVisible: false,
163
+ saveVisible: false,
164
+ // 使用按钮显隐控制
165
+ // userTemplateVisible: false,
113
166
  objectOfAttrs: {
114
167
  width: '100%',
115
168
  height: '650vh',
@@ -119,6 +172,15 @@ export default {
119
172
  modeType: 'form',
120
173
  // 是否显示模式切换功能
121
174
  showModeChoose: true,
175
+ // 是否作为模板 1 是,0 否
176
+ isTemplate: 0,
177
+ // 模板id
178
+ templateId: undefined,
179
+ admissionId: undefined,
180
+ // 保存类型
181
+ saveType: 'normal',
182
+ confirmLoading: false,
183
+ fileName: '',
122
184
  // 数据模式列表
123
185
  modeList: [
124
186
  {
@@ -144,6 +206,8 @@ export default {
144
206
  fileUrl: undefined,
145
207
  // 文档绑定数据
146
208
  bindObject: undefined,
209
+ // 合并模板数据后文档数据
210
+ assignBindObject: undefined,
147
211
  // 数据模式 template:模板编辑;data:数据编辑
148
212
  dataMode: undefined,
149
213
  // 保存数据调用的Logic名称
@@ -235,6 +299,27 @@ export default {
235
299
  }
236
300
  }
237
301
  },
302
+ showSaveModal (type) {
303
+ this.saveType = type // 记录当前保存类型
304
+ this.saveVisible = true;
305
+ },
306
+ handleSaveConfirm () {
307
+ if (!this.fileName.trim()) {
308
+ this.$message.error('文件名不能为空');
309
+ return;
310
+ }
311
+ this.confirmLoading = true;
312
+ // 根据保存类型执行不同的操作
313
+ if (this.saveType === 'normal') {
314
+ if (this.resId !== -1 || this.resId !== undefined) {
315
+ this.save();
316
+ } else {
317
+ this.openAddResModal();
318
+ }
319
+ } else if (this.saveType === 'template') {
320
+ this.saveAsTemplate();
321
+ }
322
+ },
238
323
  /* eslint-disable */
239
324
  // 初始化文档
240
325
  onload (e) {
@@ -264,6 +349,12 @@ export default {
264
349
  } else {
265
350
  this.dataMode = 'template'
266
351
  }
352
+ if (logicExtraParams?.admissionId !== undefined && logicExtraParams?.templateId !== undefined) {
353
+ this.admissionId = logicExtraParams.admissionId
354
+ this.templateId = logicExtraParams.templateId
355
+ } else {
356
+ console.warn('病例id:admissionId不存在或模板id:templateId不存在')
357
+ }
267
358
  this.saveDataLogicName = saveDataLogicName
268
359
  this.logicExtraParams = logicExtraParams
269
360
  this.serviceName = serviceName
@@ -275,7 +366,6 @@ export default {
275
366
  this.loadFile(fileUrl, bindObject, currResData).then(async () => {
276
367
  // 文件加载完成后再初始化自动完成
277
368
  await this.initDiagnosisAutocomplete(dropDownBoxParams)
278
- console.log("bindObject",bindObject)
279
369
  })
280
370
  this.loadResList()
281
371
  },
@@ -310,9 +400,14 @@ export default {
310
400
  })
311
401
  })
312
402
  },
403
+ // 保存并作为模板
404
+ saveAsTemplate () {
405
+ this.isTemplate = 1
406
+ this.save()
407
+ },
313
408
  // 加载文档列表
314
409
  loadResList () {
315
- runLogic('getMedicalList', this.logicExtraParams, this.serviceName).then(res => {
410
+ runLogic('getTemplateListLogic', this.logicExtraParams, this.serviceName).then(res => {
316
411
  this.resList = res
317
412
  this.toggleResId = this.resId
318
413
  })
@@ -364,40 +459,75 @@ export default {
364
459
  reload (params) {
365
460
  runLogic('getFileInformation', params, this.serviceName).then(res => {
366
461
  this.resDataModalVisible = false
367
- this.init({
368
- modeType: this.modeType,
369
- fileUrl: res.url,
370
- resId: res.id,
371
- currResData: res.currResData,
372
- bindObject: res.bindObject,
373
- saveDataLogicName: this.saveDataLogicName,
374
- serviceName: this.serviceName,
375
- logicExtraParams: this.logicExtraParams,
376
- dropDownBoxParams: this.dropDownBoxParams
377
- })
378
- console.log('bindObject33',res.bindObject)
462
+ this.assignBindObject = this.assignTemplates(this.bindObject, res.bindObject)
463
+ this.useTemplateData()
464
+ // this.init({
465
+ // modeType: this.modeType,
466
+ // fileUrl: res.url,
467
+ // resId: res.id,
468
+ // currResData: res.currResData,
469
+ // bindObject: res.bindObject,
470
+ // saveDataLogicName: this.saveDataLogicName,
471
+ // serviceName: this.serviceName,
472
+ // logicExtraParams: this.logicExtraParams,
473
+ // dropDownBoxParams: this.dropDownBoxParams
474
+ // })
475
+ })
476
+ },
477
+ // 合并模板数据
478
+ assignTemplates (newBindObject, templateData) {
479
+ // 检查templates数组是否存在
480
+ if (!templateData.templates || !Array.isArray(templateData.templates)) {
481
+ console.warn('templateData.templates不存在或不是数组')
482
+ return
483
+ }
484
+ // 遍历templates数组中的每个属性名
485
+ templateData.templates.forEach(propName => {
486
+ // 检查templateData是否有该属性
487
+ if (propName in templateData) {
488
+ // 无论newBindObject是否有该属性,都进行赋值/添加
489
+ newBindObject[propName] = templateData[propName]
490
+ } else {
491
+ console.warn(`templateData中不存在属性: ${propName}`)
492
+ }
379
493
  })
494
+ return newBindObject
495
+ },
496
+ useTemplateData () {
497
+ // 确认是否有合并后的模板数据
498
+ if (!this.assignBindObject) {
499
+ this.$message.warning('没有可用的模板数据');
500
+ return;
501
+ }
502
+ this.editorRef.setBindObject(this.assignBindObject)
503
+ console.log('resId', this.resId)
380
504
  },
381
505
  // 切换文档
382
506
  changeRes (value) {
383
- if (this.resId === -1) {
507
+ console.log('value', value)
508
+ let params = {
509
+ resId: value
510
+ }
511
+ if (value === -1) {
512
+ params = {
513
+ ...params,
514
+ admissionId: this.admissionId,
515
+ f_template_id: this.templateId
516
+ }
384
517
  const that = this
385
518
  this.$confirm({
386
519
  title: '确认切换文档吗?',
387
520
  content: '您有尚未保存的文档,切换文档将丢失所有的修改',
388
521
  onOk () {
389
- that.reload({
390
- resId: value
391
- })
522
+ that.reload(params)
523
+ // that.userTemplateVisible = true
392
524
  },
393
525
  onCancel () {
394
526
  that.toggleResId = that.resId
395
527
  },
396
528
  })
397
529
  } else {
398
- this.reload({
399
- resId: value
400
- })
530
+ this.reload(params)
401
531
  }
402
532
  },
403
533
  // 保存文档
@@ -415,15 +545,19 @@ export default {
415
545
  dataMode: this.dataMode,
416
546
  resId: this.resId,
417
547
  modifyResModel: this.modifyResModel,
418
- logicExtraParams: this.logicExtraParams
548
+ logicExtraParams: this.logicExtraParams,
549
+ is_template: this.isTemplate,
550
+ f_file_name: this.fileName
419
551
  }
420
552
  // 保存HTML文档和结构化数据到后端服务
421
553
  runLogic(this.saveDataLogicName, data, this.serviceName).then(res => {
422
554
  this.$message.success('保存成功')
555
+ console.log('保存成功', )
423
556
  this.changeRes(res.currResData.id)
424
557
  this.$emit('saveafter', data.dataObject)
425
558
  }).finally(() => {
426
559
  this.resDataModalVisible = false
560
+ this.saveVisible = false
427
561
  })
428
562
  } else {
429
563
  this.$message.error('请检查未填写的项目')
@@ -456,4 +590,49 @@ export default {
456
590
  :deep(.ant-divider-horizontal) {
457
591
  margin: 4px 0;
458
592
  }
593
+ /* 组合按钮容器 */
594
+ .combined-save-btn {
595
+ display: inline-flex;
596
+ position: relative;
597
+ height: 32px; /* 标准按钮高度 */
598
+ }
599
+
600
+ /* 主保存按钮(保持原有样式,只调整右边框) */
601
+ .save-btn-main {
602
+ border-top-right-radius: 0;
603
+ border-bottom-right-radius: 0;
604
+ border-right: none;
605
+ padding-right: 24px; /* 为下拉图标留空间 */
606
+ height: 100%;
607
+ }
608
+
609
+ /* 下拉触发区域 */
610
+ .dropdown-trigger {
611
+ position: absolute;
612
+ right: 0;
613
+ top: 0;
614
+ height: 100%;
615
+ width: 24px;
616
+ display: flex;
617
+ align-items: center;
618
+ justify-content: center;
619
+ background: #1890ff; /* 与主按钮颜色一致 */
620
+ border-top-right-radius: 4px;
621
+ border-bottom-right-radius: 4px;
622
+ cursor: pointer;
623
+ border-left: 1px solid rgba(255,255,255,0.3);
624
+ }
625
+
626
+ /* 下拉图标 */
627
+ .dropdown-trigger .anticon {
628
+ font-size: 12px;
629
+ color: #fff;
630
+ }
631
+
632
+ /* 悬停效果 */
633
+ .combined-save-btn:hover .save-btn-main,
634
+ .combined-save-btn:hover .dropdown-trigger {
635
+ background: #40a9ff;
636
+ border-color: #40a9ff;
637
+ }
459
638
  </style>