|
@@ -127,46 +127,55 @@ const handlePrint = async (
|
|
printable: "print-part",
|
|
printable: "print-part",
|
|
type: "html",
|
|
type: "html",
|
|
style: `
|
|
style: `
|
|
-#print-part {
|
|
|
|
- print-color-adjust: exact
|
|
|
|
-}
|
|
|
|
-.flex_center {
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: center;
|
|
|
|
- align-items: center;
|
|
|
|
-}
|
|
|
|
-.flex {
|
|
|
|
- display: flex;
|
|
|
|
-}
|
|
|
|
-.flex-1 {
|
|
|
|
- flex: 1;
|
|
|
|
-}
|
|
|
|
-.space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
|
|
|
- --tw-space-x-reverse: 0;
|
|
|
|
- margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
|
|
- margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
|
|
|
|
-}
|
|
|
|
-.h-100px {
|
|
|
|
- height: 100px;
|
|
|
|
-}
|
|
|
|
-.h-150px {
|
|
|
|
- height: 150px;
|
|
|
|
-}
|
|
|
|
-.ysyl {
|
|
|
|
- border: 1px solid #aaa;
|
|
|
|
- width: 100%;
|
|
|
|
-}
|
|
|
|
-.line {
|
|
|
|
- border: 1px solid #ccc;
|
|
|
|
- border-top: none;
|
|
|
|
-}
|
|
|
|
-.padding10 {
|
|
|
|
- padding: 10px;
|
|
|
|
-}
|
|
|
|
-.tip {
|
|
|
|
- color: #ccc;
|
|
|
|
-}
|
|
|
|
-`,
|
|
|
|
|
|
+ #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-1 {
|
|
|
|
+ flex: 1;
|
|
|
|
+ }
|
|
|
|
+ .w-full {
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
|
|
+ .h-100px {
|
|
|
|
+ height: 100px;
|
|
|
|
+ }
|
|
|
|
+ .h-150px {
|
|
|
|
+ height: 150px;
|
|
|
|
+ }
|
|
|
|
+ .ml-30px {
|
|
|
|
+ margin-left: 30px;
|
|
|
|
+ }
|
|
|
|
+ .ysyl {
|
|
|
|
+ border: 1px solid #aaa;
|
|
|
|
+ width: 100%;
|
|
|
|
+ margin: auto;
|
|
|
|
+ }
|
|
|
|
+ .line {
|
|
|
|
+ border: 1px solid #ccc;
|
|
|
|
+ border-top: none;
|
|
|
|
+ }
|
|
|
|
+ .padding10 {
|
|
|
|
+ padding: 10px;
|
|
|
|
+ }
|
|
|
|
+ .tip {
|
|
|
|
+ color: #ccc;
|
|
|
|
+ }
|
|
|
|
+ .nowrap {
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ padding-right: 20px;
|
|
|
|
+ }
|
|
|
|
+ `,
|
|
});
|
|
});
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -219,7 +228,7 @@ const handlePrint = async (
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
- <el-dialog title="考场情况登记表" v-model="dialogVisible_audit" append-to-body destroy-on-close>
|
|
|
|
|
|
+ <el-dialog width="700px" title="考场情况登记表" v-model="dialogVisible_audit" append-to-body destroy-on-close>
|
|
<el-form :model="dialogForm_Data" ref="dialogForm_Ref_audit" :rules="dialogForm_Rules_audit" label-width="80px">
|
|
<el-form :model="dialogForm_Data" ref="dialogForm_Ref_audit" :rules="dialogForm_Rules_audit" label-width="80px">
|
|
<el-form-item label="考试科目" prop="kskm">
|
|
<el-form-item label="考试科目" prop="kskm">
|
|
<el-select value-key="kskm" v-model="dialogForm_Data.kskm" @change="handleKskmChange" class="w-full">
|
|
<el-select value-key="kskm" v-model="dialogForm_Data.kskm" @change="handleKskmChange" class="w-full">
|
|
@@ -237,10 +246,10 @@ const handlePrint = async (
|
|
<div class="flex-1 padding10">{{ dialogForm_Data.dydx }}</div>
|
|
<div class="flex-1 padding10">{{ dialogForm_Data.dydx }}</div>
|
|
<div class="flex-1 padding10">{{ detail_Data.xkk_name }}考场情况登记表</div>
|
|
<div class="flex-1 padding10">{{ detail_Data.xkk_name }}考场情况登记表</div>
|
|
</div>
|
|
</div>
|
|
- <div class="flex padding10 space-x-4">
|
|
|
|
- <div>{{ dialogForm_Data.kskm }}</div>
|
|
|
|
- <div>{{ dialogForm_Data.kssj }}</div>
|
|
|
|
- <div>{{ dialogForm_Data.jkls }}</div>
|
|
|
|
|
|
+ <div class="flex padding10">
|
|
|
|
+ <div class="nowrap">{{ dialogForm_Data.kskm }}</div>
|
|
|
|
+ <div class="nowrap">{{ dialogForm_Data.kssj }}</div>
|
|
|
|
+ <div class="nowrap ml-30px">{{ dialogForm_Data.jkls }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="line"></div>
|
|
<div class="line"></div>
|
|
<div class="flex">
|
|
<div class="flex">
|
|
@@ -282,4 +291,8 @@ const handlePrint = async (
|
|
.tip {
|
|
.tip {
|
|
color: #ccc;
|
|
color: #ccc;
|
|
}
|
|
}
|
|
|
|
+.nowrap {
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ padding-right: 30px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|