|
|
@@ -54,7 +54,7 @@
|
|
|
</el-tooltip>
|
|
|
|
|
|
<!-- <el-button-group class="table-main__tool-button ml-12 mr-12" -->
|
|
|
- <el-dropdown trigger="contextmenu" ref="printerListTpDropdownRef" v-if="getToolButton('print')">
|
|
|
+ <!-- <el-dropdown trigger="contextmenu" ref="printerListTpDropdownRef" v-if="getToolButton('print')">
|
|
|
<el-button :icon="Printer" circle @click="checkPrintTemplateList('')"> </el-button>
|
|
|
<template #dropdown>
|
|
|
<el-dropdown-menu>
|
|
|
@@ -89,11 +89,11 @@
|
|
|
</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</template>
|
|
|
- </el-dropdown>
|
|
|
+ </el-dropdown> -->
|
|
|
<!-- <el-button class="pl-10 pr-10" :icon="Setting" @click="openPrint('')"> </el-button> -->
|
|
|
<!-- </el-button-group> -->
|
|
|
|
|
|
- <el-button-group class="table-main__tool-button mr-12" v-if="getToolButton('printMx')">
|
|
|
+ <!-- <el-button-group class="table-main__tool-button mr-12" v-if="getToolButton('printMx')">
|
|
|
<el-tooltip
|
|
|
v-if="Boolean(hiprinterStateMx)"
|
|
|
effect="dark"
|
|
|
@@ -113,7 +113,7 @@
|
|
|
</el-button>
|
|
|
</el-tooltip>
|
|
|
<el-button :icon="Setting" class="pl-10 pr-10" @click="openPrint('_mx')"> </el-button>
|
|
|
- </el-button-group>
|
|
|
+ </el-button-group> -->
|
|
|
|
|
|
<el-button class="refresh-btn" :icon="Refresh" circle @click="refresh" v-if="toolButton.indexOf('refresh') > -1" />
|
|
|
|
|
|
@@ -314,7 +314,7 @@
|
|
|
@reset="resetSetting"
|
|
|
@save-default="saveDefaultLayout"
|
|
|
/>
|
|
|
- <PrintEditor ref="printEditorRef" v-if="toolButton.length && toolButton.indexOf('print') > -1" @closed="toClosedPrintEditor" />
|
|
|
+ <!-- <PrintEditor ref="printEditorRef" v-if="toolButton.length && toolButton.indexOf('print') > -1" @closed="toClosedPrintEditor" />
|
|
|
<PrintTemplateSelector
|
|
|
ref="printTemplateRef"
|
|
|
v-if="toolButton.length && toolButton.indexOf('print') > -1"
|
|
|
@@ -323,7 +323,7 @@
|
|
|
@preview="toPreviewPrintTemplate"
|
|
|
@confirm="toPrintPrintTemplate"
|
|
|
@closed="toGetPrinterState"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
|
|
|
<!-- <LjDialog
|
|
|
ref="locationDialogRef"
|
|
|
@@ -567,6 +567,7 @@ const _defineProps = ref({
|
|
|
border: true,
|
|
|
showOverflow: "tooltip",
|
|
|
showHeaderOverflow: false,
|
|
|
+ headerRowClassName: "lj-table-header-row",
|
|
|
height: "auto",
|
|
|
minHeight: "100px",
|
|
|
rowConfig: {
|
|
|
@@ -1370,22 +1371,22 @@ const getSelectRecords = () => {
|
|
|
return selectRecords.value;
|
|
|
};
|
|
|
|
|
|
-const {
|
|
|
- printEditorRef,
|
|
|
- printTemplateRef,
|
|
|
- printerListTpDropdownRef,
|
|
|
- activePrint,
|
|
|
- hiprinterStateList,
|
|
|
- hiprinterStateMx,
|
|
|
- printerTpList,
|
|
|
- toGetPrinterState,
|
|
|
- openPrint,
|
|
|
- openPrintPriveiew,
|
|
|
- toPreviewPrintTemplate,
|
|
|
- toPrintPrintTemplate,
|
|
|
- toEditPrintTemplate,
|
|
|
- checkPrintTemplateList
|
|
|
-} = usePrint(t, props.dwname, getSelectRecords, funcBeforePrintCheck, props.printDataCallback);
|
|
|
+// const {
|
|
|
+// printEditorRef,
|
|
|
+// printTemplateRef,
|
|
|
+// printerListTpDropdownRef,
|
|
|
+// activePrint,
|
|
|
+// hiprinterStateList,
|
|
|
+// hiprinterStateMx,
|
|
|
+// printerTpList,
|
|
|
+// toGetPrinterState,
|
|
|
+// openPrint,
|
|
|
+// openPrintPriveiew,
|
|
|
+// toPreviewPrintTemplate,
|
|
|
+// toPrintPrintTemplate,
|
|
|
+// toEditPrintTemplate,
|
|
|
+// checkPrintTemplateList
|
|
|
+// } = usePrint(t, props.dwname, getSelectRecords, funcBeforePrintCheck, props.printDataCallback);
|
|
|
// 清空选中数据列表
|
|
|
// const clearSelection = () => tableRef.value!.clearSelection();
|
|
|
|
|
|
@@ -2114,6 +2115,7 @@ const loadColumns = (columns: any) => {
|
|
|
*/
|
|
|
const afterGetData = () => {
|
|
|
emit("afterMounted", tableData.value);
|
|
|
+ tableRef.value.recalculate(true);
|
|
|
if (props.autoSelectFirstAfterRefresh && tableData.value.length) {
|
|
|
nextTick(() => {
|
|
|
tableRef.value?.setCurrentRow(tableData.value[0]);
|
|
|
@@ -2150,7 +2152,7 @@ onMounted(async () => {
|
|
|
/**
|
|
|
* @description 获取打印机选项状态
|
|
|
*/
|
|
|
- toGetPrinterState();
|
|
|
+ // toGetPrinterState();
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
@@ -2588,9 +2590,9 @@ const importDataEvent = () => {
|
|
|
* 关闭后,是否刷新打印模板列表页
|
|
|
* @param saved 是否有保存过
|
|
|
*/
|
|
|
-const toClosedPrintEditor = (saved: boolean) => {
|
|
|
- saved && printTemplateRef.value?.getData();
|
|
|
-};
|
|
|
+// const toClosedPrintEditor = (saved: boolean) => {
|
|
|
+// saved && printTemplateRef.value?.getData();
|
|
|
+// };
|
|
|
|
|
|
const locationRef = ref();
|
|
|
const locationBtnRef = ref();
|
|
|
@@ -2955,4 +2957,57 @@ defineExpose({
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.lj-main-body {
|
|
|
+ .tableheader-tabs {
|
|
|
+ .el-tabs__header {
|
|
|
+ margin-bottom: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &.small {
|
|
|
+ --vxe-ui-layout-padding-half: 2px;
|
|
|
+ --vxe-ui-upload-image-wh-mini: 24px;
|
|
|
+
|
|
|
+ .tableheader-tabs {
|
|
|
+ --el-tabs-header-height: 33px;
|
|
|
+ }
|
|
|
+ .table-box .table-search,
|
|
|
+ .table-main .table-search {
|
|
|
+ margin-bottom: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .vxe-upload--image-item-remove-btn {
|
|
|
+ width: 14px;
|
|
|
+ height: 14px;
|
|
|
+
|
|
|
+ [class*="vxe-icon-"] {
|
|
|
+ font-size: 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+.vxe-header--column .vxe-cell--edit-icon {
|
|
|
+ padding: 0;
|
|
|
+}
|
|
|
+.lj-table-header-row .vxe-header--column .vxe-cell {
|
|
|
+ height: 24px;
|
|
|
+ display: inline-flex;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .vxe-cell--title {
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ line-clamp: 2;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: normal;
|
|
|
+ word-break: break-word;
|
|
|
+ }
|
|
|
+}
|
|
|
+.vxe-table--body {
|
|
|
+ .vxe-body--row {
|
|
|
+ height: var(--vxe-ui-table-row-height-mini);
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|