vue2-client 1.15.121 → 1.15.123
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/.history/public/his/editor/editor_20250606134713.html +51 -0
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527173925.vue +509 -0
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174316.vue +524 -0
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174419.vue +524 -0
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174422.vue +524 -0
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172825.vue +207 -0
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172945.vue +211 -0
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172949.vue +212 -0
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611173010.vue +212 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250508134122.vue +1320 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171604.vue +1332 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171613.vue +1331 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171703.vue +1331 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171720.vue +1331 -0
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527174327.vue +1339 -0
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612092804.vue +731 -0
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612112546.vue +748 -0
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612113808.vue +748 -0
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115237.vue +1071 -0
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115346.vue +1078 -0
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115350.vue +1077 -0
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115415.vue +1077 -0
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115429.vue +1077 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134005.vue +160 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134010.vue +160 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134019.vue +160 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134037.vue +160 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134112.vue +160 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134114.vue +160 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134828.vue +148 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134838.vue +155 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134846.vue +155 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812134917.vue +155 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812151145.vue +149 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812151810.vue +153 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812151822.vue +153 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812151910.vue +153 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812152858.vue +258 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812152902.vue +258 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812152907.vue +258 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812152919.vue +258 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153141.vue +269 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153149.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153153.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153155.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153157.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153158.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153200.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153210.vue +276 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812153918.vue +275 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812154157.vue +280 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812154212.vue +280 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812154250.vue +280 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812154252.vue +280 -0
- package/.history/src/base-client/components/his/XChart/XChart_20250812154444.vue +280 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611091619.vue +442 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092547.vue +442 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092552.vue +442 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092744.vue +475 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092955.vue +475 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092957.vue +475 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095652.vue +477 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095701.vue +477 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095704.vue +477 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100005.vue +473 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100011.vue +473 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100014.vue +473 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100833.vue +473 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100853.vue +473 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100940.vue +473 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101011.vue +473 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101013.vue +473 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101014.vue +473 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101159.vue +473 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101238.vue +474 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101240.vue +474 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101242.vue +474 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101404.vue +472 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101410.vue +472 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101459.vue +472 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101500.vue +472 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101502.vue +472 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101504.vue +472 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101610.vue +501 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101700.vue +501 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101702.vue +501 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101741.vue +504 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101749.vue +504 -0
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101759.vue +504 -0
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611091349.vue +131 -0
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105854.vue +160 -0
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105902.vue +160 -0
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105924.vue +160 -0
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105932.vue +158 -0
- package/.history/src/base-client/components/his/XList/XList_20250609135848.vue +173 -0
- package/.history/src/base-client/components/his/XList/XList_20250609141026.vue +222 -0
- package/.history/src/base-client/components/his/XList/XList_20250609141035.vue +229 -0
- package/.history/src/base-client/components/his/XList/XList_20250609141103.vue +229 -0
- package/.history/src/base-client/components/his/XList/XList_20250609141105.vue +229 -0
- package/.history/src/base-client/components/his/XList/XList_20250609141334.vue +241 -0
- package/.history/src/base-client/components/his/XList/XList_20250609141404.vue +241 -0
- package/.history/src/base-client/components/his/XList/XList_20250609141406.vue +241 -0
- package/.history/src/base-client/components/his/XList/XList_20250609141801.vue +245 -0
- package/.history/src/base-client/components/his/XList/XList_20250609142033.vue +245 -0
- package/.history/src/base-client/components/his/XList/XList_20250609142038.vue +245 -0
- package/.history/src/base-client/components/his/XList/XList_20250609142435.vue +255 -0
- package/.history/src/base-client/components/his/XList/XList_20250609142503.vue +255 -0
- package/.history/src/base-client/components/his/XList/XList_20250609142504.vue +255 -0
- package/.history/src/base-client/components/his/XList/XList_20250609143012.vue +270 -0
- package/.history/src/base-client/components/his/XList/XList_20250609143044.vue +270 -0
- package/.history/src/base-client/components/his/XList/XList_20250609143046.vue +270 -0
- package/.history/src/base-client/components/his/XList/XList_20250609143210.vue +270 -0
- package/.history/src/base-client/components/his/XList/XList_20250609144339.vue +294 -0
- package/.history/src/base-client/components/his/XList/XList_20250609144410.vue +294 -0
- package/.history/src/base-client/components/his/XList/XList_20250609144412.vue +294 -0
- package/.history/src/base-client/components/his/XList/XList_20250609144647.vue +303 -0
- package/.history/src/base-client/components/his/XList/XList_20250609144716.vue +303 -0
- package/.history/src/base-client/components/his/XList/XList_20250609144729.vue +303 -0
- package/.history/src/base-client/components/his/XList/XList_20250609151232.vue +288 -0
- package/.history/src/base-client/components/his/XList/XList_20250609151247.vue +288 -0
- package/.history/src/base-client/components/his/XList/XList_20250609151252.vue +288 -0
- package/.history/src/base-client/components/his/XList/XList_20250609161220.vue +317 -0
- package/.history/src/base-client/components/his/XList/XList_20250609161258.vue +306 -0
- package/.history/src/base-client/components/his/XList/XList_20250609161319.vue +306 -0
- package/.history/src/base-client/components/his/XList/XList_20250609161320.vue +306 -0
- package/.history/src/base-client/components/his/XList/XList_20250704142024.vue +495 -0
- package/.history/src/base-client/components/his/XList/XList_20250704142033.vue +495 -0
- package/.history/src/base-client/components/his/XList/XList_20250704142040.vue +494 -0
- package/.history/src/base-client/components/his/XList/XList_20250704142211.vue +494 -0
- package/.history/src/base-client/components/his/XList/XList_20250704142214.vue +494 -0
- package/.history/src/base-client/components/his/XList/XList_20250704143010.vue +495 -0
- package/.history/src/base-client/components/his/XList/XList_20250704143203.vue +495 -0
- package/.history/src/base-client/components/his/XList/XList_20250707095101.vue +492 -0
- package/.history/src/base-client/components/his/XList/XList_20250707100152.vue +492 -0
- package/.history/src/base-client/components/his/XList/XList_20250707100200.vue +485 -0
- package/.history/src/base-client/components/his/XList/XList_20250707100208.vue +485 -0
- package/.history/src/base-client/components/his/XList/XList_20250707100259.vue +488 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134604.vue +263 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134615.vue +302 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134621.vue +301 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134634.vue +311 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134644.vue +330 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134653.vue +330 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807134836.vue +330 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135247.vue +330 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135303.vue +354 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135316.vue +363 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135323.vue +363 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135334.vue +366 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135342.vue +364 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135349.vue +364 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135351.vue +346 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135354.vue +346 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135401.vue +346 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135406.vue +346 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807135424.vue +346 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807143043.vue +254 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807155506.vue +329 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807155535.vue +330 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807155543.vue +330 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807155926.vue +304 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807155928.vue +304 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172548.vue +298 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172609.vue +298 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172623.vue +298 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172631.vue +298 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172701.vue +298 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807172704.vue +298 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807175937.vue +290 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807175942.vue +290 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807180210.vue +290 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807180424.vue +290 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807180448.vue +290 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807180915.vue +262 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250807180917.vue +262 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101106.vue +283 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101112.vue +289 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101118.vue +289 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101129.vue +294 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101137.vue +318 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101145.vue +320 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101154.vue +320 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101211.vue +320 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101236.vue +320 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250808101239.vue +320 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114001.vue +342 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114005.vue +342 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114014.vue +345 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114020.vue +345 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114028.vue +345 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114108.vue +345 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114115.vue +345 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114333.vue +346 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114339.vue +350 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114344.vue +355 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114351.vue +355 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114408.vue +355 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250811114410.vue +355 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813154330.vue +389 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813154338.vue +389 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813154402.vue +389 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813154425.vue +389 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813154428.vue +389 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813171922.vue +391 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813171957.vue +391 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813172004.vue +391 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813172012.vue +391 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813172241.vue +391 -0
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250813172242.vue +391 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103845.vue +142 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103852.vue +142 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103857.vue +142 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103859.vue +142 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103907.vue +142 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103910.vue +142 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103911.vue +142 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103913.vue +142 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103916.vue +142 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807103931.vue +142 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145127.vue +85 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145136.vue +81 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145142.vue +81 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145145.vue +81 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145148.vue +81 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145151.vue +81 -0
- package/.history/src/base-client/components/his/XShiftSchedule/dome_20250807145155.vue +81 -0
- package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +213 -0
- package/package.json +1 -1
- package/src/base-client/components/TreeList/TreeList.vue +91 -0
- package/src/base-client/components/TreeList/TreeNode.vue +81 -0
- package/src/base-client/components/common/XCardSet/XTiltle.vue +191 -0
- package/src/base-client/components/common/XReport/print.js +186 -186
- package/src/base-client/components/his/XChart/XChart.vue +282 -282
- package/src/base-client/components/his/XChart/dome.vue +19 -19
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +56 -2
- package/src/base-client/components/his/XHisEditor/dome.vue +145 -0
- package/src/base-client/components/his/XImportExcelButton/XFrontImportExcel.vue +4 -2
- package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
- package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
- package/src/router/async/router.map.js +1 -1
- package/src/utils/map-utils.js +47 -47
@@ -39,7 +39,9 @@
|
|
39
39
|
<!-- >-->
|
40
40
|
<!-- 使用-->
|
41
41
|
<!-- </a-button>-->
|
42
|
-
|
42
|
+
<a-button type="primary" @click="Recording" v-if="canRecord" v-model="recording">
|
43
|
+
{{recording? '停止' : '录音'}}
|
44
|
+
</a-button>
|
43
45
|
<a-button type="primary" @click="openRenameModal" v-if="this.resId !== -1">
|
44
46
|
重命名
|
45
47
|
</a-button>
|
@@ -76,7 +78,7 @@
|
|
76
78
|
<a-modal
|
77
79
|
title="保存"
|
78
80
|
:visible="saveVisible"
|
79
|
-
confirm-loading = false
|
81
|
+
:confirm-loading = "false"
|
80
82
|
@ok="handleSaveConfirm"
|
81
83
|
@cancel="saveVisible = false"
|
82
84
|
>
|
@@ -155,6 +157,9 @@ export default {
|
|
155
157
|
},
|
156
158
|
data () {
|
157
159
|
return {
|
160
|
+
temporaryParameter: {},
|
161
|
+
canRecord: false,
|
162
|
+
recording: false, // 是否正在录音
|
158
163
|
readonly: false,
|
159
164
|
ready: false,
|
160
165
|
loading: false,
|
@@ -328,6 +333,8 @@ export default {
|
|
328
333
|
}
|
329
334
|
},
|
330
335
|
init (params) {
|
336
|
+
this.temporaryParameter = params
|
337
|
+
this.canRecord = params.canRecord == undefined || params.canRecord == null? false : params.canRecord
|
331
338
|
const {
|
332
339
|
fileUrl,
|
333
340
|
resId,
|
@@ -414,6 +421,53 @@ export default {
|
|
414
421
|
changeMode (e) {
|
415
422
|
this.editorRef.execCommand(this.modeType)
|
416
423
|
},
|
424
|
+
// 启动录音功能
|
425
|
+
async Recording () {
|
426
|
+
this.recording = !this.recording
|
427
|
+
if (this.recording) {
|
428
|
+
const recording = await this.$recording.startRecording()
|
429
|
+
this.$message.warn(recording.msg)
|
430
|
+
} else {
|
431
|
+
try {
|
432
|
+
// 1. 获取录音和接口数据
|
433
|
+
const recording = this.$recording.stopRecording()
|
434
|
+
this.$message.warn(recording.msg)
|
435
|
+
const data = await this.$recording.getRecordingData()
|
436
|
+
const result = await this.runLogic('communacation', {record_content: data}, 'af-his')
|
437
|
+
// 验证基础结构
|
438
|
+
if (!result || typeof result.value !== 'string') {
|
439
|
+
throw new Error('接口返回格式错误,缺少有效的value字段')
|
440
|
+
}
|
441
|
+
// 2. 处理外层JSON字符串(关键修复)
|
442
|
+
let outerJsonStr = result.value
|
443
|
+
// 修复1:处理布尔值
|
444
|
+
outerJsonStr = outerJsonStr.replace(/\bTrue\b/g, 'true')
|
445
|
+
// 修复2:移除所有控制字符
|
446
|
+
outerJsonStr = outerJsonStr.replace(/[\x00-\x1F]/g, '')
|
447
|
+
// 修复3:精准转义data字段内的双引号
|
448
|
+
// 匹配 "data": "..." 结构并转义内容中的双引号
|
449
|
+
outerJsonStr = outerJsonStr.replace(/"data":\s*"([^"]*)"/g, (match, content) => {
|
450
|
+
// 转义内容中的双引号为\"
|
451
|
+
const escapedContent = content.replace(/"/g, '\\"')
|
452
|
+
return `"data": "${escapedContent}"`
|
453
|
+
})
|
454
|
+
// 直接在整个字符串里匹配 ```json{...}```
|
455
|
+
const regex = /```json([\s\S]*?)```/
|
456
|
+
const match = outerJsonStr.match(regex)
|
457
|
+
let extractedJsonStr = ''
|
458
|
+
if (match && match[1]) {
|
459
|
+
extractedJsonStr = match[1].trim()
|
460
|
+
}
|
461
|
+
const outerObj = JSON.parse(extractedJsonStr)
|
462
|
+
console.log("outerObj = ", outerObj)
|
463
|
+
this.temporaryParameter.bindObject = {...this.temporaryParameter.bindObject, ...outerObj}
|
464
|
+
this.init(this.temporaryParameter)
|
465
|
+
} catch (e) {
|
466
|
+
console.error('总错误:', e.message)
|
467
|
+
this.$message.error(`解析失败: ${e.message}`)
|
468
|
+
}
|
469
|
+
}
|
470
|
+
},
|
417
471
|
// 打开文档信息修改面板
|
418
472
|
openRenameModal () {
|
419
473
|
this.resDataModalMode = 'modify'
|
@@ -0,0 +1,145 @@
|
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<a-spin :spinning="loading">
|
4
|
+
<XHisEditor
|
5
|
+
ref="editor"
|
6
|
+
:file-url="fileUrl"
|
7
|
+
:res-id="resId"
|
8
|
+
:curr-res-data="currResData"
|
9
|
+
:bind-object="bindObject"
|
10
|
+
:save-data-logic-name="saveDataLogicName"
|
11
|
+
:service-name="serviceName"
|
12
|
+
:logic-extra-params="logicExtraParams"
|
13
|
+
:drop-down-box-params="dropDownBoxParams"
|
14
|
+
@init="handleEditorInit"
|
15
|
+
/>
|
16
|
+
</a-spin>
|
17
|
+
</div>
|
18
|
+
</template>
|
19
|
+
|
20
|
+
<script>
|
21
|
+
import XHisEditor from '@vue2-client/base-client/components/his/XHisEditor/XHisEditor.vue'
|
22
|
+
|
23
|
+
export default {
|
24
|
+
name: 'Test',
|
25
|
+
components: { XHisEditor },
|
26
|
+
data () {
|
27
|
+
return {
|
28
|
+
loading: false,
|
29
|
+
fileUrl: '/resource/af-his/html/bd40c834fcf94303a5db43e56852c6f2.html',
|
30
|
+
resId: '',
|
31
|
+
currResData: {
|
32
|
+
f_file_name: '测试文书'
|
33
|
+
},
|
34
|
+
|
35
|
+
bindObject: {
|
36
|
+
lxrdh: null,
|
37
|
+
yjs: null,
|
38
|
+
hys: null,
|
39
|
+
tw: null,
|
40
|
+
jws: null,
|
41
|
+
zyh: 381,
|
42
|
+
xbs: null,
|
43
|
+
pid: 506,
|
44
|
+
gms: null,
|
45
|
+
bq: '3楼',
|
46
|
+
hx: null,
|
47
|
+
hy: null,
|
48
|
+
mb: null,
|
49
|
+
lxrdz: null,
|
50
|
+
ssy: null,
|
51
|
+
jzys: '心血管内科医生2',
|
52
|
+
tgjc: null,
|
53
|
+
blh: 643,
|
54
|
+
ch: '13床',
|
55
|
+
ks: '心血管内科',
|
56
|
+
jlsj: null,
|
57
|
+
jts: null,
|
58
|
+
grs: null,
|
59
|
+
xb: 1,
|
60
|
+
rysj: '2025-07-01 14:36:00',
|
61
|
+
mz: '',
|
62
|
+
lxrxm: null,
|
63
|
+
hzgx: null,
|
64
|
+
szy: null,
|
65
|
+
xm: '张阿德',
|
66
|
+
csd: null,
|
67
|
+
hzxm: '张阿德',
|
68
|
+
gzdw: '',
|
69
|
+
xzz: null,
|
70
|
+
zs: null,
|
71
|
+
nl: 18,
|
72
|
+
rq: null
|
73
|
+
},
|
74
|
+
saveDataLogicName: 'saveMedicalRecordFile',
|
75
|
+
serviceName: 'af-his',
|
76
|
+
logicExtraParams: {
|
77
|
+
admissionId: 643,
|
78
|
+
templateId: 429
|
79
|
+
},
|
80
|
+
dropDownBoxParams: [],
|
81
|
+
initAttempts: 0,
|
82
|
+
maxInitAttempts: 10
|
83
|
+
}
|
84
|
+
},
|
85
|
+
mounted () {
|
86
|
+
this.$nextTick(() => {
|
87
|
+
this.waitForEditorReady().then(() => {
|
88
|
+
this.initEditor()
|
89
|
+
}).catch(error => {
|
90
|
+
console.error('编辑器初始化失败:', error)
|
91
|
+
this.loading = false
|
92
|
+
})
|
93
|
+
})
|
94
|
+
},
|
95
|
+
beforeDestroy () {
|
96
|
+
window.removeEventListener('unhandledrejection')
|
97
|
+
},
|
98
|
+
methods: {
|
99
|
+
waitForEditorReady () {
|
100
|
+
return new Promise((resolve, reject) => {
|
101
|
+
const checkInterval = setInterval(() => {
|
102
|
+
const editor = this.$refs.editor
|
103
|
+
|
104
|
+
if (editor && editor.editorRef && editor.editorRef.document) {
|
105
|
+
console.log('编辑器已完全初始化')
|
106
|
+
clearInterval(checkInterval)
|
107
|
+
resolve()
|
108
|
+
} else {
|
109
|
+
this.initAttempts++
|
110
|
+
console.log(`等待编辑器初始化...尝试次数: ${this.initAttempts}`)
|
111
|
+
|
112
|
+
if (this.initAttempts >= this.maxInitAttempts) {
|
113
|
+
clearInterval(checkInterval)
|
114
|
+
reject(new Error('编辑器初始化超时'))
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}, 300)
|
118
|
+
})
|
119
|
+
},
|
120
|
+
|
121
|
+
initEditor () {
|
122
|
+
// this.loading = true
|
123
|
+
console.log('开始初始化编辑器...')
|
124
|
+
|
125
|
+
this.$refs.editor.init({
|
126
|
+
canRecord: true,
|
127
|
+
fileUrl: this.fileUrl,
|
128
|
+
resId: this.resId,
|
129
|
+
currResData: this.currResData,
|
130
|
+
bindObject: this.bindObject,
|
131
|
+
saveDataLogicName: this.saveDataLogicName,
|
132
|
+
serviceName: this.serviceName,
|
133
|
+
logicExtraParams: this.logicExtraParams,
|
134
|
+
dropDownBoxParams: this.dropDownBoxParams,
|
135
|
+
modeType: 'form'
|
136
|
+
})
|
137
|
+
},
|
138
|
+
|
139
|
+
handleEditorInit () {
|
140
|
+
this.loading = false
|
141
|
+
console.log('编辑器初始化完成,可以安全操作')
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
</script>
|
@@ -138,7 +138,8 @@ export default {
|
|
138
138
|
/** 读取excle导入模板 */
|
139
139
|
async readTemplateConfig () {
|
140
140
|
try {
|
141
|
-
const
|
141
|
+
const isProd = process.env.NODE_ENV === 'production'
|
142
|
+
const config = await getNativeConfig(this.queryParamsName, 'af-his', !isProd)
|
142
143
|
if (config != null && config != undefined) {
|
143
144
|
this.excelImportTemplate = config.column.filter(item =>
|
144
145
|
item.dataModeArray && item.dataModeArray.includes('excelImportItem')
|
@@ -189,7 +190,8 @@ export default {
|
|
189
190
|
formData.append('queryParamsName', this.queryParamsName)
|
190
191
|
formData.append('userData', JSON.stringify(userData))
|
191
192
|
formData.append('otherParams', JSON.stringify(this.extraData))
|
192
|
-
|
193
|
+
const isProd = process.env.NODE_ENV === 'production'
|
194
|
+
importData(formData, this.serviceName, !isProd).then(res => {
|
193
195
|
this.fileList = []
|
194
196
|
const msg = res.msg || '导入成功'
|
195
197
|
if (res?.successLen && !res?.msg) {
|
@@ -1,207 +1,207 @@
|
|
1
|
-
<template>
|
2
|
-
<div>
|
3
|
-
<div class="text-card">
|
4
|
-
<div
|
5
|
-
v-for="(item, index) in displayItems"
|
6
|
-
:key="index"
|
7
|
-
class="text-item"
|
8
|
-
@click="handleItemClick(index, item.id)"
|
9
|
-
@contextmenu.prevent="handleContextMenu(index, item.id)">
|
10
|
-
<div class="text-content" :class="{ 'is-empty': !item.content }">
|
11
|
-
{{ item.content || '+' }}
|
12
|
-
</div>
|
13
|
-
</div>
|
14
|
-
<!-- 编辑弹出框 -->
|
15
|
-
<div
|
16
|
-
v-if="showEdit"
|
17
|
-
class="edit-overlay"
|
18
|
-
@click.self="handleOverlayClick">
|
19
|
-
<div class="edit-card">
|
20
|
-
<a-textarea
|
21
|
-
v-model="editingContent"
|
22
|
-
:autoSize="{ minRows: 3 }"
|
23
|
-
@keyup.enter="handleSave"
|
24
|
-
ref="textarea"/>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
<!-- 删除确认弹框 -->
|
28
|
-
<a-modal
|
29
|
-
v-model="showDeleteModal"
|
30
|
-
title="确认删除"
|
31
|
-
okText="确认"
|
32
|
-
cancelText="取消"
|
33
|
-
@ok="handleDeleteConfirm">
|
34
|
-
<p>确定要删除这条内容吗?</p>
|
35
|
-
</a-modal>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
</template>
|
39
|
-
|
40
|
-
<script>
|
41
|
-
import { runLogic } from '@vue2-client/services/api/common'
|
42
|
-
|
43
|
-
export default {
|
44
|
-
name: 'XTextCard',
|
45
|
-
props: {
|
46
|
-
// logic配置名,要求返回一个数组[{ id: , content: }]
|
47
|
-
queryParamsName: {
|
48
|
-
type: String,
|
49
|
-
default: 'memorandumLOGIC'
|
50
|
-
},
|
51
|
-
queryParams: {
|
52
|
-
type: Object,
|
53
|
-
default: () => { return {} }
|
54
|
-
},
|
55
|
-
// 请求参数
|
56
|
-
parameter: {
|
57
|
-
type: Object,
|
58
|
-
default: () => { return {} }
|
59
|
-
}
|
60
|
-
},
|
61
|
-
data () {
|
62
|
-
return {
|
63
|
-
localItems: [], // 本地数据
|
64
|
-
showEdit: false, // 是否显示编辑框
|
65
|
-
editingIndex: -1, // 当前编辑的索引
|
66
|
-
editingContent: '', // 编辑框的内容
|
67
|
-
showDeleteModal: false, // 是否显示删除确认框
|
68
|
-
deleteIndex: -1, // 要删除的项目索引
|
69
|
-
ID: 0
|
70
|
-
}
|
71
|
-
},
|
72
|
-
computed: {
|
73
|
-
// 显示的列表,始终保持一个空行
|
74
|
-
displayItems () {
|
75
|
-
const items = [...this.localItems]
|
76
|
-
// 如果最后一项不是空的,添加一个空项
|
77
|
-
if (!items.length || items[items.length - 1].content) {
|
78
|
-
items.push({ content: '' })
|
79
|
-
}
|
80
|
-
return items
|
81
|
-
}
|
82
|
-
},
|
83
|
-
methods: {
|
84
|
-
// 点击项目
|
85
|
-
handleItemClick (index, id) {
|
86
|
-
this.ID = id
|
87
|
-
this.editingIndex = index
|
88
|
-
this.editingContent = this.displayItems[index].content
|
89
|
-
this.showEdit = true
|
90
|
-
this.$nextTick(() => {
|
91
|
-
this.$refs.textarea?.focus()
|
92
|
-
})
|
93
|
-
},
|
94
|
-
// 点击遮罩层保存
|
95
|
-
handleOverlayClick () {
|
96
|
-
this.handleSave()
|
97
|
-
},
|
98
|
-
// 保存内容
|
99
|
-
handleSave () {
|
100
|
-
if (this.editingContent.trim()) {
|
101
|
-
if (this.editingIndex === this.localItems.length) {
|
102
|
-
// 如果是在最后一个空行添加,push新内容
|
103
|
-
this.localItems.push({ content: this.editingContent.trim() })
|
104
|
-
} else {
|
105
|
-
// 否则更新现有内容
|
106
|
-
this.localItems[this.editingIndex].content = this.editingContent.trim()
|
107
|
-
}
|
108
|
-
const addData = { data: this.editingContent.trim(), ID: this.ID }
|
109
|
-
// 触发更新事件
|
110
|
-
this.$emit('add', addData)
|
111
|
-
}
|
112
|
-
this.showEdit = false
|
113
|
-
this.editingIndex = -1
|
114
|
-
this.editingContent = ''
|
115
|
-
},
|
116
|
-
// 初始化数据
|
117
|
-
async initData (data, parameter) {
|
118
|
-
// 从配置中获取数据
|
119
|
-
const resData = await runLogic(data, parameter, 'af-his')
|
120
|
-
this.localItems = resData
|
121
|
-
return resData
|
122
|
-
},
|
123
|
-
// 处理右键菜单
|
124
|
-
handleContextMenu (index, id) {
|
125
|
-
// 如果是最后一个空行,不显示删除框
|
126
|
-
if (index === this.localItems.length) {
|
127
|
-
return
|
128
|
-
}
|
129
|
-
this.ID = id
|
130
|
-
this.deleteIndex = index
|
131
|
-
this.showDeleteModal = true
|
132
|
-
},
|
133
|
-
// 确认删除
|
134
|
-
handleDeleteConfirm () {
|
135
|
-
if (this.deleteIndex > -1) {
|
136
|
-
this.localItems.splice(this.deleteIndex, 1)
|
137
|
-
const deleteData = { data: [...this.localItems][this.deleteIndex], ID: this.ID }
|
138
|
-
this.$emit('deleteData', deleteData)
|
139
|
-
this.deleteIndex = -1
|
140
|
-
}
|
141
|
-
this.showDeleteModal = false
|
142
|
-
}
|
143
|
-
},
|
144
|
-
watch: {
|
145
|
-
queryParamsName: {
|
146
|
-
immediate: true,
|
147
|
-
handler (newVal) {
|
148
|
-
this.initData(newVal, this.parameter)
|
149
|
-
},
|
150
|
-
deep: true
|
151
|
-
}
|
152
|
-
}
|
153
|
-
}
|
154
|
-
</script>
|
155
|
-
|
156
|
-
<style scoped lang="less">
|
157
|
-
.text-card {
|
158
|
-
position: relative;
|
159
|
-
width: 100%;
|
160
|
-
.text-item {
|
161
|
-
padding: 8px 12px;
|
162
|
-
border-bottom: 1px solid #f0f0f0;
|
163
|
-
cursor: pointer;
|
164
|
-
transition: all 0.3s;
|
165
|
-
user-select: none;
|
166
|
-
|
167
|
-
&:hover {
|
168
|
-
background-color: #f5f5f5;
|
169
|
-
}
|
170
|
-
|
171
|
-
.text-content {
|
172
|
-
white-space: nowrap;
|
173
|
-
overflow: hidden;
|
174
|
-
text-overflow: ellipsis;
|
175
|
-
line-height: 1.5;
|
176
|
-
|
177
|
-
&.is-empty {
|
178
|
-
color: #5D5C5C;
|
179
|
-
font-weight: 400;
|
180
|
-
}
|
181
|
-
}
|
182
|
-
}
|
183
|
-
.edit-overlay {
|
184
|
-
position: fixed;
|
185
|
-
top: 0;
|
186
|
-
left: 0;
|
187
|
-
right: 0;
|
188
|
-
bottom: 0;
|
189
|
-
background-color: rgba(0, 0, 0, 0.45);
|
190
|
-
z-index: 1000;
|
191
|
-
display: flex;
|
192
|
-
align-items: center;
|
193
|
-
justify-content: center;
|
194
|
-
.edit-card {
|
195
|
-
background: white;
|
196
|
-
padding: 16px;
|
197
|
-
border-radius: 8px;
|
198
|
-
width: 90%;
|
199
|
-
max-width: 500px;
|
200
|
-
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12);
|
201
|
-
.ant-input {
|
202
|
-
width: 100%;
|
203
|
-
}
|
204
|
-
}
|
205
|
-
}
|
206
|
-
}
|
207
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<div class="text-card">
|
4
|
+
<div
|
5
|
+
v-for="(item, index) in displayItems"
|
6
|
+
:key="index"
|
7
|
+
class="text-item"
|
8
|
+
@click="handleItemClick(index, item.id)"
|
9
|
+
@contextmenu.prevent="handleContextMenu(index, item.id)">
|
10
|
+
<div class="text-content" :class="{ 'is-empty': !item.content }">
|
11
|
+
{{ item.content || '+' }}
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
<!-- 编辑弹出框 -->
|
15
|
+
<div
|
16
|
+
v-if="showEdit"
|
17
|
+
class="edit-overlay"
|
18
|
+
@click.self="handleOverlayClick">
|
19
|
+
<div class="edit-card">
|
20
|
+
<a-textarea
|
21
|
+
v-model="editingContent"
|
22
|
+
:autoSize="{ minRows: 3 }"
|
23
|
+
@keyup.enter="handleSave"
|
24
|
+
ref="textarea"/>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
<!-- 删除确认弹框 -->
|
28
|
+
<a-modal
|
29
|
+
v-model="showDeleteModal"
|
30
|
+
title="确认删除"
|
31
|
+
okText="确认"
|
32
|
+
cancelText="取消"
|
33
|
+
@ok="handleDeleteConfirm">
|
34
|
+
<p>确定要删除这条内容吗?</p>
|
35
|
+
</a-modal>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</template>
|
39
|
+
|
40
|
+
<script>
|
41
|
+
import { runLogic } from '@vue2-client/services/api/common'
|
42
|
+
|
43
|
+
export default {
|
44
|
+
name: 'XTextCard',
|
45
|
+
props: {
|
46
|
+
// logic配置名,要求返回一个数组[{ id: , content: }]
|
47
|
+
queryParamsName: {
|
48
|
+
type: String,
|
49
|
+
default: 'memorandumLOGIC'
|
50
|
+
},
|
51
|
+
queryParams: {
|
52
|
+
type: Object,
|
53
|
+
default: () => { return {} }
|
54
|
+
},
|
55
|
+
// 请求参数
|
56
|
+
parameter: {
|
57
|
+
type: Object,
|
58
|
+
default: () => { return {} }
|
59
|
+
}
|
60
|
+
},
|
61
|
+
data () {
|
62
|
+
return {
|
63
|
+
localItems: [], // 本地数据
|
64
|
+
showEdit: false, // 是否显示编辑框
|
65
|
+
editingIndex: -1, // 当前编辑的索引
|
66
|
+
editingContent: '', // 编辑框的内容
|
67
|
+
showDeleteModal: false, // 是否显示删除确认框
|
68
|
+
deleteIndex: -1, // 要删除的项目索引
|
69
|
+
ID: 0
|
70
|
+
}
|
71
|
+
},
|
72
|
+
computed: {
|
73
|
+
// 显示的列表,始终保持一个空行
|
74
|
+
displayItems () {
|
75
|
+
const items = [...this.localItems]
|
76
|
+
// 如果最后一项不是空的,添加一个空项
|
77
|
+
if (!items.length || items[items.length - 1].content) {
|
78
|
+
items.push({ content: '' })
|
79
|
+
}
|
80
|
+
return items
|
81
|
+
}
|
82
|
+
},
|
83
|
+
methods: {
|
84
|
+
// 点击项目
|
85
|
+
handleItemClick (index, id) {
|
86
|
+
this.ID = id
|
87
|
+
this.editingIndex = index
|
88
|
+
this.editingContent = this.displayItems[index].content
|
89
|
+
this.showEdit = true
|
90
|
+
this.$nextTick(() => {
|
91
|
+
this.$refs.textarea?.focus()
|
92
|
+
})
|
93
|
+
},
|
94
|
+
// 点击遮罩层保存
|
95
|
+
handleOverlayClick () {
|
96
|
+
this.handleSave()
|
97
|
+
},
|
98
|
+
// 保存内容
|
99
|
+
handleSave () {
|
100
|
+
if (this.editingContent.trim()) {
|
101
|
+
if (this.editingIndex === this.localItems.length) {
|
102
|
+
// 如果是在最后一个空行添加,push新内容
|
103
|
+
this.localItems.push({ content: this.editingContent.trim() })
|
104
|
+
} else {
|
105
|
+
// 否则更新现有内容
|
106
|
+
this.localItems[this.editingIndex].content = this.editingContent.trim()
|
107
|
+
}
|
108
|
+
const addData = { data: this.editingContent.trim(), ID: this.ID }
|
109
|
+
// 触发更新事件
|
110
|
+
this.$emit('add', addData)
|
111
|
+
}
|
112
|
+
this.showEdit = false
|
113
|
+
this.editingIndex = -1
|
114
|
+
this.editingContent = ''
|
115
|
+
},
|
116
|
+
// 初始化数据
|
117
|
+
async initData (data, parameter) {
|
118
|
+
// 从配置中获取数据
|
119
|
+
const resData = await runLogic(data, parameter, 'af-his')
|
120
|
+
this.localItems = resData
|
121
|
+
return resData
|
122
|
+
},
|
123
|
+
// 处理右键菜单
|
124
|
+
handleContextMenu (index, id) {
|
125
|
+
// 如果是最后一个空行,不显示删除框
|
126
|
+
if (index === this.localItems.length) {
|
127
|
+
return
|
128
|
+
}
|
129
|
+
this.ID = id
|
130
|
+
this.deleteIndex = index
|
131
|
+
this.showDeleteModal = true
|
132
|
+
},
|
133
|
+
// 确认删除
|
134
|
+
handleDeleteConfirm () {
|
135
|
+
if (this.deleteIndex > -1) {
|
136
|
+
this.localItems.splice(this.deleteIndex, 1)
|
137
|
+
const deleteData = { data: [...this.localItems][this.deleteIndex], ID: this.ID }
|
138
|
+
this.$emit('deleteData', deleteData)
|
139
|
+
this.deleteIndex = -1
|
140
|
+
}
|
141
|
+
this.showDeleteModal = false
|
142
|
+
}
|
143
|
+
},
|
144
|
+
watch: {
|
145
|
+
queryParamsName: {
|
146
|
+
immediate: true,
|
147
|
+
handler (newVal) {
|
148
|
+
this.initData(newVal, this.parameter)
|
149
|
+
},
|
150
|
+
deep: true
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
</script>
|
155
|
+
|
156
|
+
<style scoped lang="less">
|
157
|
+
.text-card {
|
158
|
+
position: relative;
|
159
|
+
width: 100%;
|
160
|
+
.text-item {
|
161
|
+
padding: 8px 12px;
|
162
|
+
border-bottom: 1px solid #f0f0f0;
|
163
|
+
cursor: pointer;
|
164
|
+
transition: all 0.3s;
|
165
|
+
user-select: none;
|
166
|
+
|
167
|
+
&:hover {
|
168
|
+
background-color: #f5f5f5;
|
169
|
+
}
|
170
|
+
|
171
|
+
.text-content {
|
172
|
+
white-space: nowrap;
|
173
|
+
overflow: hidden;
|
174
|
+
text-overflow: ellipsis;
|
175
|
+
line-height: 1.5;
|
176
|
+
|
177
|
+
&.is-empty {
|
178
|
+
color: #5D5C5C;
|
179
|
+
font-weight: 400;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
}
|
183
|
+
.edit-overlay {
|
184
|
+
position: fixed;
|
185
|
+
top: 0;
|
186
|
+
left: 0;
|
187
|
+
right: 0;
|
188
|
+
bottom: 0;
|
189
|
+
background-color: rgba(0, 0, 0, 0.45);
|
190
|
+
z-index: 1000;
|
191
|
+
display: flex;
|
192
|
+
align-items: center;
|
193
|
+
justify-content: center;
|
194
|
+
.edit-card {
|
195
|
+
background: white;
|
196
|
+
padding: 16px;
|
197
|
+
border-radius: 8px;
|
198
|
+
width: 90%;
|
199
|
+
max-width: 500px;
|
200
|
+
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12);
|
201
|
+
.ant-input {
|
202
|
+
width: 100%;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
</style>
|