|
@@ -310,79 +310,85 @@ const handlePrint = () => {
|
|
|
printable: "print-part",
|
|
|
type: "html",
|
|
|
style: `
|
|
|
-#print-part {
|
|
|
- print-color-adjust: exact
|
|
|
-}
|
|
|
-.flex_center {
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
-}
|
|
|
-.flex {
|
|
|
- display: flex;
|
|
|
-}
|
|
|
-
|
|
|
-.flex-col {
|
|
|
- flex-direction: column;
|
|
|
-}
|
|
|
-
|
|
|
-.flex-row {
|
|
|
- flex-direction: row;
|
|
|
-}
|
|
|
-
|
|
|
-.py-3 {
|
|
|
- padding-top: 0.75rem;
|
|
|
- padding-bottom: 0.75rem;
|
|
|
-}
|
|
|
-
|
|
|
-.py-2 {
|
|
|
- padding-top: 0.5rem;
|
|
|
- padding-bottom: 0.5rem;
|
|
|
-}
|
|
|
-
|
|
|
-.py-8 {
|
|
|
- padding-top: 2rem;
|
|
|
- padding-bottom: 2rem;
|
|
|
-}
|
|
|
-
|
|
|
-.px-3 {
|
|
|
- padding-left: 0.75rem;
|
|
|
- padding-right: 0.75rem;
|
|
|
-}
|
|
|
-
|
|
|
-.px-6 {
|
|
|
- padding-left: 2rem;
|
|
|
- padding-right: 2rem;
|
|
|
-}
|
|
|
-
|
|
|
-.text-2xl {
|
|
|
- font-size: 1.5rem;
|
|
|
- line-height: 2rem;
|
|
|
-}
|
|
|
-
|
|
|
-.pre::before {
|
|
|
- background-color: rgba(96, 165, 250, 1);
|
|
|
- display: inline-block;
|
|
|
- height: 100%;
|
|
|
- margin-right: 6px;
|
|
|
- color: #60A5FA;
|
|
|
- content: "|";
|
|
|
- width: 4px;
|
|
|
-}
|
|
|
-
|
|
|
-.table-item {
|
|
|
- width: 400px;margin: auto;border: 1px solid #aaa;padding: 20px;font-size: 20px;line-height: 30px;margin-bottom: 30px;
|
|
|
-}
|
|
|
-.justify-between {
|
|
|
- justify-content: space-between;
|
|
|
-}
|
|
|
-.font30 {
|
|
|
- font-size: 30px;
|
|
|
-}
|
|
|
-.font12 {
|
|
|
- font-size: 12px;
|
|
|
-}
|
|
|
-`,
|
|
|
+ #print-part {
|
|
|
+ print-color-adjust: exact
|
|
|
+ }
|
|
|
+ #print-part div {
|
|
|
+ box-sizing: border-box;
|
|
|
+ }
|
|
|
+ .flex_center {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+ .flex {
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+
|
|
|
+ .flex-col {
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+
|
|
|
+ .flex-row {
|
|
|
+ flex-direction: row;
|
|
|
+ }
|
|
|
+
|
|
|
+ .py-3 {
|
|
|
+ padding-top: 0.75rem;
|
|
|
+ padding-bottom: 0.75rem;
|
|
|
+ }
|
|
|
+
|
|
|
+ .py-2 {
|
|
|
+ padding-top: 0.5rem;
|
|
|
+ padding-bottom: 0.5rem;
|
|
|
+ }
|
|
|
+
|
|
|
+ .py-8 {
|
|
|
+ padding-top: 2rem;
|
|
|
+ padding-bottom: 2rem;
|
|
|
+ }
|
|
|
+
|
|
|
+ .px-3 {
|
|
|
+ padding-left: 0.75rem;
|
|
|
+ padding-right: 0.75rem;
|
|
|
+ }
|
|
|
+
|
|
|
+ .px-6 {
|
|
|
+ padding-left: 2rem;
|
|
|
+ padding-right: 2rem;
|
|
|
+ }
|
|
|
+
|
|
|
+ .text-2xl {
|
|
|
+ font-size: 1.5rem;
|
|
|
+ line-height: 2rem;
|
|
|
+ }
|
|
|
+
|
|
|
+ .pre::before {
|
|
|
+ background-color: rgba(96, 165, 250, 1);
|
|
|
+ display: inline-block;
|
|
|
+ height: 100%;
|
|
|
+ margin-right: 6px;
|
|
|
+ color: #60A5FA;
|
|
|
+ content: "|";
|
|
|
+ width: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .table-item {
|
|
|
+ display: inline-block;
|
|
|
+ vertical-align: top;
|
|
|
+ margin: 0 20px;
|
|
|
+ width: calc(50% - 40px);border: 1px solid #aaa;padding: 20px;font-size: 20px;line-height: 30px;margin-bottom: 30px;
|
|
|
+ }
|
|
|
+ .justify-between {
|
|
|
+ justify-content: space-between;
|
|
|
+ }
|
|
|
+ .font30 {
|
|
|
+ font-size: 30px;
|
|
|
+ }
|
|
|
+ .font12 {
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+ `,
|
|
|
});
|
|
|
};
|
|
|
</script>
|
|
@@ -518,7 +524,7 @@ const handlePrint = () => {
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
- <el-dialog v-model="zkdDialog" append-to-body destroy-on-close>
|
|
|
+ <el-dialog width="800px" v-model="zkdDialog" append-to-body destroy-on-close>
|
|
|
<div v-if="ksxx.xkk_kslx_option_k==1" id="print-part" style="height: 500px;color: #000;overflow: auto;">
|
|
|
<div v-for="(item, index) in tableData" :key="index" class="table-item">
|
|
|
<div class="flex justify-between">
|
|
@@ -564,7 +570,10 @@ const handlePrint = () => {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.table-item {
|
|
|
- width: 400px;margin: auto;border: 1px solid #aaa;padding: 20px;font-size: 20px;line-height: 30px;margin-bottom: 30px;
|
|
|
+ display: inline-block;
|
|
|
+ vertical-align: top;
|
|
|
+ margin: 0 20px;
|
|
|
+ width: calc(50% - 40px);border: 1px solid #aaa;padding: 20px;font-size: 20px;line-height: 30px;margin-bottom: 30px;
|
|
|
}
|
|
|
.font30 {
|
|
|
font-size: 30px;
|