cnhis-design-vue 3.3.3-beta.42 → 3.3.3-beta.45
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/README.md +87 -87
- package/es/components/button-print/index.d.ts +7 -2
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +7 -2
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +10 -3
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +100 -11
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +4 -1
- package/es/components/button-print/src/utils/print.d.ts +1 -1
- package/es/components/button-print/src/utils/print.js +7 -3
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/field-set/src/components/table-row.vue2.js +2 -0
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +19 -6
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.js +32 -17
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +52 -23
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -753,6 +753,7 @@ class Print {
|
|
753
753
|
templateId,
|
754
754
|
number,
|
755
755
|
formatId: originFormatId,
|
756
|
+
formatItem,
|
756
757
|
params = "",
|
757
758
|
paramsArr,
|
758
759
|
authorizationKey,
|
@@ -785,6 +786,8 @@ class Print {
|
|
785
786
|
if (!this._handleResultTest(testResult, errorCallbackFn))
|
786
787
|
return false;
|
787
788
|
try {
|
789
|
+
const hideButtonsValue = hideButtons ? hideButtons : (formatItem == null ? void 0 : formatItem.previewCanExport) === void 0 || (formatItem == null ? void 0 : formatItem.previewCanExport) ? void 0 : "Export";
|
790
|
+
const btnprintValue = btnprint != "1" ? btnprint : (formatItem == null ? void 0 : formatItem.previewCanPrint) === false ? "0" : "1";
|
788
791
|
const result = await this._handleEventDirect({
|
789
792
|
templateId,
|
790
793
|
number,
|
@@ -793,8 +796,8 @@ class Print {
|
|
793
796
|
paramsArr,
|
794
797
|
cmdid: this.isRemote ? PRINT_CMD_ID : PREVIEW_CMD_ID,
|
795
798
|
signature,
|
796
|
-
btnprint,
|
797
|
-
hideButtons,
|
799
|
+
btnprint: btnprintValue,
|
800
|
+
hideButtons: hideButtonsValue,
|
798
801
|
messageTimeout
|
799
802
|
});
|
800
803
|
const handledResult = this._handleResult(result, errorCallbackFn);
|
@@ -983,6 +986,7 @@ class Print {
|
|
983
986
|
}];
|
984
987
|
params = "";
|
985
988
|
}
|
989
|
+
const printdlgshowValue = printdlgshow != "0" ? printdlgshow : (formatItem == null ? void 0 : formatItem.showPrintDialog) ? "1" : "0";
|
986
990
|
const result = await this._handleEventDirect({
|
987
991
|
templateId,
|
988
992
|
number,
|
@@ -992,7 +996,7 @@ class Print {
|
|
992
996
|
cmdid: PRINT_CMD_ID,
|
993
997
|
print,
|
994
998
|
signature,
|
995
|
-
printdlgshow,
|
999
|
+
printdlgshow: printdlgshowValue,
|
996
1000
|
nobillnode,
|
997
1001
|
copies,
|
998
1002
|
svrUpdateIp,
|
@@ -1 +1 @@
|
|
1
|
-
.dropdown-button{border-color:#d5d5d5!important;color:#212121;padding-right:0}.dropdown-button .n-button__content{height:100%}.dropdown-button .n-button__content .n-icon{align-items:center;display:flex;height:100%;justify-content:center;padding-right:10px;width:30px}.c-dropdown .n-dropdown-menu-wrapper span.active{color:#5585f5}.login-form-button{border-radius:24px;color:#fff;font-size:16px;height:50px;width:100%}.login-form-button-print{padding-top:15px}.login-form-button-print .n-input{border-radius:6px;color:#757575;font-size:14px;height:50px;line-height:50px}.c-button-print-modal .n-form-item-feedback-wrapper{display:none}.c-button-preview-modal{max-width:none!important}.c-button-preview-modal .n-dialog__content{height:98%}.newprint-button-component .icon-select{padding:0 8px!important}.newprint-button-poperOver{border-radius:3px;overflow-y:auto}.newprint-button-poperOver .bold{font-weight:700}.newprint-button-poperOver .isDisabled{color:#999;cursor:default}.newprint-button-poperOver .print-li{overflow:hidden}.newprint-button-poperOver .print-li .n-divider{margin-bottom:6px;margin-top:6px}.newprint-button-poperOver .print-li .print-lite{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:32px;justify-content:space-between;margin:3px 0}.newprint-button-poperOver .print-li .print-lite .label{padding:0 8px;white-space:nowrap}.newprint-button-poperOver .print-li .print-lite .n-icon{align-items:center;border-radius:0 3px 3px 0;display:flex;height:100%;justify-content:center;width:30px}.newprint-button-poperOver .print-li .print-lite .n-checkbox{white-space:nowrap}.newprint-button-poperOver .print-li.active{color:#2563f4}.newprint-button-poperOver .print-li.active .print-lite{background:rgba(37,99,244,.1)}.newprint-button-poperOver .print-li.active .
|
1
|
+
.dropdown-button{border-color:#d5d5d5!important;color:#212121;padding-right:0}.dropdown-button .n-button__content{height:100%}.dropdown-button .n-button__content .n-icon{align-items:center;display:flex;height:100%;justify-content:center;padding-right:10px;width:30px}.c-dropdown .n-dropdown-menu-wrapper span.active{color:#5585f5}.login-form-button{border-radius:24px;color:#fff;font-size:16px;height:50px;width:100%}.login-form-button-print{padding-top:15px}.login-form-button-print .n-input{border-radius:6px;color:#757575;font-size:14px;height:50px;line-height:50px}.c-button-print-modal .n-form-item-feedback-wrapper{display:none}.c-button-preview-modal{max-width:none!important}.c-button-preview-modal .n-dialog__content{height:98%}.newprint-button-component .icon-select{padding:0 8px!important}.newprint-button-poperOver{border-radius:3px;overflow-y:auto}.newprint-button-poperOver .bold{font-weight:700}.newprint-button-poperOver .isDisabled{color:#999;cursor:default}.newprint-button-poperOver .print-li{overflow:hidden}.newprint-button-poperOver .print-li .n-divider{margin-bottom:6px;margin-top:6px}.newprint-button-poperOver .print-li .print-lite{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:32px;justify-content:space-between;margin:3px 0;white-space:nowrap}.newprint-button-poperOver .print-li .print-lite .label{padding:0 8px;white-space:nowrap}.newprint-button-poperOver .print-li .print-lite .n-icon{align-items:center;border-radius:0 3px 3px 0;display:flex;height:100%;justify-content:center;width:30px}.newprint-button-poperOver .print-li .print-lite .n-checkbox{white-space:nowrap}.newprint-button-poperOver .print-li.active{color:#2563f4}.newprint-button-poperOver .print-li.active .print-lite{background:rgba(37,99,244,.1)}.newprint-button-poperOver .print-li.active .print-li-icon{background:rgba(37,99,244,.15)}.newprint-button-poperOver .print-li .print-preview-item:hover{color:#2563f4}.newprint-button-outer{align-items:center;display:flex;overflow-x:auto}.newprint-button-outer .outButtonGroup .isPrintDisabled .n-button__border{border-right-width:0!important}.newprint-button-outer .outButtonGroup .n-button.n-button--disabled+.n-button.n-button--default-type:not(.n-button--disabled) .n-button__border{border-left-width:1px!important}.newprint-button-outer .outerLastButton .n-button__border{border-bottom-right-radius:0;border-right:none;border-top-right-radius:0}.newprint-button-outer .outerLastButton:hover .n-button__state-border{border-bottom-right-radius:0;border-top-right-radius:0}.newprint-button-outer .printAllLeftCls .n-button__border,.newprint-button-outer .printAllLeftCls:hover .n-button__state-border{border-bottom-left-radius:0;border-top-left-radius:0}.newprint-button-outer__shortcut{color:#76797f}
|
@@ -224,13 +224,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
224
224
|
} else {
|
225
225
|
chatMessageType = MESSAGE_TYPE.IMAGE;
|
226
226
|
const match = innerHTML.match(/src\s*=\s*"([^"]*)"/);
|
227
|
-
if (match) {
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
227
|
+
if (match == null ? void 0 : match.length) {
|
228
|
+
if (match[1].startsWith("data:")) {
|
229
|
+
const file = await base64ToFile(match[1]);
|
230
|
+
if (file) {
|
231
|
+
const data = await doUpdateFile(file);
|
232
|
+
if (data) {
|
233
|
+
msg = isObject(data) ? JSON.stringify(data) : data;
|
234
|
+
}
|
233
235
|
}
|
236
|
+
} else {
|
237
|
+
const filenameMatch = innerHTML.match(/data-filename\s*=\s*"([^"]*)"/);
|
238
|
+
const fileName = filenameMatch ? filenameMatch[1] : "";
|
239
|
+
const filesizeMatch = innerHTML.match(/data-filesize\s*=\s*"([^"]*)"/);
|
240
|
+
const fileSize = filesizeMatch ? filesizeMatch[1] : "";
|
241
|
+
const fileUrl = match[1];
|
242
|
+
msg = JSON.stringify({
|
243
|
+
fileUrl,
|
244
|
+
fileName,
|
245
|
+
fileSize
|
246
|
+
});
|
234
247
|
}
|
235
248
|
}
|
236
249
|
}
|
@@ -603,7 +603,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
603
603
|
}, {
|
604
604
|
default: withCtx(() => [!unref(isAudioOrVideoMessage)(item.content) ? (openBlock(), createElementBlock(Fragment, {
|
605
605
|
key: 0
|
606
|
-
}, [createCommentVNode(' <n-button\n quaternary\n size="tiny"\n @click="(event: MouseEvent) => handleSelectLabel(event, item.id)"\n >\n <template #icon>\n <n-icon size="17" :component="HappyOutline" />\n </template>\n </n-button> '), createVNode(unref(NButton), {
|
606
|
+
}, [createCommentVNode(' <n-button\r\n quaternary\r\n size="tiny"\r\n @click="(event: MouseEvent) => handleSelectLabel(event, item.id)"\r\n >\r\n <template #icon>\r\n <n-icon size="17" :component="HappyOutline" />\r\n </template>\r\n </n-button> '), createVNode(unref(NButton), {
|
607
607
|
quaternary: "",
|
608
608
|
size: "tiny",
|
609
609
|
onClick: () => setReferenceMsg(item)
|
@@ -168,6 +168,7 @@ var ContextMenu = /* @__PURE__ */ defineComponent({
|
|
168
168
|
emit("update:show", false);
|
169
169
|
});
|
170
170
|
async function clickMenu(key) {
|
171
|
+
var _a;
|
171
172
|
emit("update:show", false);
|
172
173
|
const {
|
173
174
|
content = {},
|
@@ -184,27 +185,41 @@ var ContextMenu = /* @__PURE__ */ defineComponent({
|
|
184
185
|
if (!content.msg)
|
185
186
|
return console.log("\u590D\u5236\u5185\u5BB9\u4E3A\u7A7A\uFF01");
|
186
187
|
const isSupported = navigator && "clipboard" in navigator;
|
187
|
-
if (!isSupported)
|
188
|
-
|
188
|
+
if (!isSupported) {
|
189
|
+
$message.error("\u5F53\u524D\u6D4F\u89C8\u5668\u7248\u672C\u6216\u8005http\u534F\u8BAE\u4E0D\u652F\u6301\u590D\u5236\uFF01");
|
190
|
+
return console.log("\u5F53\u524D\u6D4F\u89C8\u5668\u7248\u672C\u6216\u8005http\u534F\u8BAE\u4E0D\u652F\u6301\u590D\u5236\uFF01");
|
191
|
+
}
|
189
192
|
try {
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
193
|
+
let data;
|
194
|
+
switch (chatMessageType) {
|
195
|
+
case MESSAGE_TYPE.TEXT:
|
196
|
+
await navigator.clipboard.writeText(content.msg);
|
197
|
+
break;
|
198
|
+
case MESSAGE_TYPE.EMOJI: {
|
199
|
+
const url = emojis.findEmoji(content.msg);
|
200
|
+
data = `<img data-msg=${content.msg} data-type=${chatMessageType} class="emoji--min" src=${url} />`;
|
201
|
+
break;
|
202
|
+
}
|
203
|
+
case MESSAGE_TYPE.IMAGE: {
|
204
|
+
const url = formatJsonstr(content.msg, "fileUrl");
|
205
|
+
const fileName = formatJsonstr(content.msg, "fileName");
|
206
|
+
const fileSize = (_a = formatJsonstr(content.msg, "fileSize")) == null ? void 0 : _a.replace(/\s+/g, "");
|
207
|
+
data = `<img data-filename=${fileName} data-filesize=${fileSize} data-type=${chatMessageType} class="chat-image-copy" src=${url} />`;
|
208
|
+
break;
|
209
|
+
}
|
210
|
+
case MESSAGE_TYPE.BLEND:
|
198
211
|
data = __content;
|
199
|
-
|
212
|
+
break;
|
213
|
+
default:
|
200
214
|
data = content.msg;
|
201
|
-
|
202
|
-
await navigator.clipboard.write([new window.ClipboardItem({
|
203
|
-
"text/html": new Blob([data], {
|
204
|
-
type: "text/html"
|
205
|
-
})
|
206
|
-
})]);
|
215
|
+
break;
|
207
216
|
}
|
217
|
+
await navigator.clipboard.write([new window.ClipboardItem({
|
218
|
+
"text/html": new Blob([data], {
|
219
|
+
type: "text/html"
|
220
|
+
})
|
221
|
+
})]);
|
222
|
+
$message.success("\u590D\u5236\u6210\u529F");
|
208
223
|
} catch (error) {
|
209
224
|
console.log("\u590D\u5236\u5931\u8D25\uFF01");
|
210
225
|
}
|
@@ -225,7 +225,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
225
225
|
round: "",
|
226
226
|
size: 100,
|
227
227
|
onClickCapture: _cache[0] || (_cache[0] = ($event) => showLargeAvatar.value = true)
|
228
|
-
}, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\n <n-upload-trigger #="{ handleClick }" abstract>\n <n-button\n circle\n secondary\n class="edit-avatar"\n v-show="userDetail.id === state.userInfo.id"\n @click="handleClick"\n >\n <template #icon>\n <n-icon size="16" color="#666666" :component="Camera" />\n </template>\n </n-button>\n </n-upload-trigger>\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
|
228
|
+
}, null, 8, ["src"]), createCommentVNode(' <n-upload abstract accept="image/*" @change="onChange">\r\n <n-upload-trigger #="{ handleClick }" abstract>\r\n <n-button\r\n circle\r\n secondary\r\n class="edit-avatar"\r\n v-show="userDetail.id === state.userInfo.id"\r\n @click="handleClick"\r\n >\r\n <template #icon>\r\n <n-icon size="16" color="#666666" :component="Camera" />\r\n </template>\r\n </n-button>\r\n </n-upload-trigger>\r\n </n-upload> '), createElementVNode("div", _hoisted_4, [createElementVNode("h4", null, [createElementVNode("label", _hoisted_5, toDisplayString(userDetail.name), 1), withDirectives(createElementVNode("label", {
|
229
229
|
class: normalizeClass(["iho-chatRole", unref(isDoctorRole)(userDetail.roleInfo) ? "isDoctor" : ""])
|
230
230
|
}, toDisplayString(unref(getRoleName)(userDetail.roleInfo)), 3), [[vShow, unref(getRoleName)(userDetail.roleInfo)]])]), createElementVNode("p", null, toDisplayString(userDetail.orgName), 1)]), createVNode(unref(NButton), {
|
231
231
|
strong: "",
|