|
|
@@ -63,10 +63,7 @@
|
|
|
stripe
|
|
|
border
|
|
|
size="small"
|
|
|
- max-height="calc(100vh - 230px)"
|
|
|
show-overflow-tooltip
|
|
|
- show-summary
|
|
|
- :summary-method="getSummaries"
|
|
|
@selection-change="handleSelectionChange"
|
|
|
@header-dragend="handleResize"
|
|
|
>
|
|
|
@@ -360,10 +357,12 @@ export default {
|
|
|
this.queryData
|
|
|
);
|
|
|
} else if (operateType === 3) {
|
|
|
- if (this.multipleSelection.length === 0)
|
|
|
+ if (this.multipleSelection.length === 0) {
|
|
|
return this.$message.warning("请先选择行数据!");
|
|
|
- if (this.multipleSelection.length > 1)
|
|
|
+ }
|
|
|
+ if (this.multipleSelection.length > 1) {
|
|
|
return this.$message.warning("只能选择单条数据修改!");
|
|
|
+ }
|
|
|
this.$refs.parameterDetailRef.open(
|
|
|
"update",
|
|
|
btn,
|
|
|
@@ -388,8 +387,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
handlePrintByJimu(params) {
|
|
|
- if (this.multipleSelection.length === 0)
|
|
|
+ if (this.multipleSelection.length === 0) {
|
|
|
return this.$message.warning("请先选择数据!");
|
|
|
+ }
|
|
|
const baseUrl = process.env.VITE_BASE_URL;
|
|
|
const token = getAccessToken();
|
|
|
const tenantId = getTenantId();
|
|
|
@@ -410,8 +410,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
async handlePrintByOtherSoft(params) {
|
|
|
- if (this.multipleSelection.length === 0)
|
|
|
+ if (this.multipleSelection.length === 0) {
|
|
|
return this.$message.warning("请先选择数据!");
|
|
|
+ }
|
|
|
const { interfaceUrl, paramList, restMethod, templet } = params;
|
|
|
if (!templet) return this.$message.warning("未配置打印模板!");
|
|
|
const fieldValues = this.paramsToConver(paramList);
|
|
|
@@ -428,8 +429,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
async handleDynamic(params) {
|
|
|
- if (this.multipleSelection.length === 0)
|
|
|
+ if (this.multipleSelection.length === 0) {
|
|
|
return this.$message.warning("请先选择数据!");
|
|
|
+ }
|
|
|
const {
|
|
|
interfaceUrl,
|
|
|
restMethod = "get",
|
|
|
@@ -547,7 +549,7 @@ export default {
|
|
|
typeof valA === "string" ? parseFloat(valA.replace(/,/g, "")) : valA;
|
|
|
valB =
|
|
|
typeof valB === "string" ? parseFloat(valB.replace(/,/g, "")) : valB;
|
|
|
- if (isNaN(valA))
|
|
|
+ if (isNaN(valA)) {
|
|
|
return direction === "asc"
|
|
|
? valA > valB
|
|
|
? 1
|
|
|
@@ -555,7 +557,8 @@ export default {
|
|
|
: valA < valB
|
|
|
? 1
|
|
|
: -1;
|
|
|
- if (isNaN(valB))
|
|
|
+ }
|
|
|
+ if (isNaN(valB)) {
|
|
|
return direction === "asc"
|
|
|
? valA > valB
|
|
|
? 1
|
|
|
@@ -563,6 +566,7 @@ export default {
|
|
|
: valA < valB
|
|
|
? 1
|
|
|
: -1;
|
|
|
+ }
|
|
|
return direction === "asc" ? valA - valB : valB - valA;
|
|
|
});
|
|
|
},
|
|
|
@@ -789,6 +793,8 @@ export default {
|
|
|
/* ---------- ContentWrap 原样式 ---------- */
|
|
|
.el-content-wrap {
|
|
|
/* 自定义 */
|
|
|
+ height: 100vh;
|
|
|
+ overflow-y: auto;
|
|
|
}
|
|
|
.text-16px {
|
|
|
font-size: 16px;
|