|
@@ -27,13 +27,23 @@
|
|
<div class="paper-base" id="paper-base">
|
|
<div class="paper-base" id="paper-base">
|
|
<div class="paper-row">
|
|
<div class="paper-row">
|
|
<div class="paper-item">
|
|
<div class="paper-item">
|
|
- <span>教研室:</span>
|
|
|
|
|
|
+ <span>学院:</span>
|
|
|
|
+ <span>{{ basicInfo.collegeName }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="paper-item">
|
|
|
|
+ <span>教研室(或系):</span>
|
|
<span>{{ basicInfo.teachingRoomName }}</span>
|
|
<span>{{ basicInfo.teachingRoomName }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="paper-row">
|
|
<div class="paper-item">
|
|
<div class="paper-item">
|
|
- <span>试卷名称:</span>
|
|
|
|
|
|
+ <span>使用学期:</span>
|
|
<span>{{ basicInfo.paperName || "" }}</span>
|
|
<span>{{ basicInfo.paperName || "" }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="paper-item">
|
|
|
|
+ <span>课程名称:</span>
|
|
|
|
+ <span>{{ basicInfo.courseName }}</span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="paper-row">
|
|
<div class="paper-row">
|
|
<div class="paper-item">
|
|
<div class="paper-item">
|
|
@@ -49,14 +59,18 @@
|
|
|
|
|
|
<table class="paper-table">
|
|
<table class="paper-table">
|
|
<tr>
|
|
<tr>
|
|
|
|
+ <th style="width: 100px;">卷袋编号</th>
|
|
|
|
+ <th>使用校区</th>
|
|
<th>使用班级</th>
|
|
<th>使用班级</th>
|
|
- <th>人数</th>
|
|
|
|
- <th>总印份数</th>
|
|
|
|
|
|
+ <th style="width: 80px;">人数</th>
|
|
|
|
+ <th style="width: 100px;">总印份数</th>
|
|
</tr>
|
|
</tr>
|
|
<tr v-for="item in examRoomInfoList" :key="item.id" :id="item.id">
|
|
<tr v-for="item in examRoomInfoList" :key="item.id" :id="item.id">
|
|
|
|
+ <td style="width: 100px;">{{ item.packageCode }}</td>
|
|
|
|
+ <td>{{ item.campusNames }}</td>
|
|
<td>{{ item.clazzNames }}</td>
|
|
<td>{{ item.clazzNames }}</td>
|
|
- <td style="width: 100px;">{{ item.studentCount }}</td>
|
|
|
|
- <td style="width: 140px;">{{ item.printCount }}</td>
|
|
|
|
|
|
+ <td style="width: 80px;">{{ item.studentCount }}</td>
|
|
|
|
+ <td style="width: 100px;">{{ item.printCount }}</td>
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
|
|
|
|
@@ -65,13 +79,13 @@
|
|
<th>审批部门</th>
|
|
<th>审批部门</th>
|
|
<th>审批人</th>
|
|
<th>审批人</th>
|
|
<th>审批时间</th>
|
|
<th>审批时间</th>
|
|
- <th>审批意见</th>
|
|
|
|
|
|
+ <th style="width: 260px;">审批意见</th>
|
|
</tr>
|
|
</tr>
|
|
<tr v-for="(item, index) in approvalInfoList" :key="index">
|
|
<tr v-for="(item, index) in approvalInfoList" :key="index">
|
|
<td>{{ item.levelName }}</td>
|
|
<td>{{ item.levelName }}</td>
|
|
<td>{{ item.approveName }}</td>
|
|
<td>{{ item.approveName }}</td>
|
|
<td>{{ item.time | timestampFilter }}</td>
|
|
<td>{{ item.time | timestampFilter }}</td>
|
|
- <td>{{ item.remark }}</td>
|
|
|
|
|
|
+ <td style="width: 260px;">{{ item.remark }}</td>
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@@ -128,13 +142,13 @@
|
|
<th>审批部门</th>
|
|
<th>审批部门</th>
|
|
<th>审批人</th>
|
|
<th>审批人</th>
|
|
<th>审批时间</th>
|
|
<th>审批时间</th>
|
|
- <th>审批意见</th>
|
|
|
|
|
|
+ <th style="width: 240px;">审批意见</th>
|
|
</tr>
|
|
</tr>
|
|
<tr v-for="(item, index) in part.data" :key="index">
|
|
<tr v-for="(item, index) in part.data" :key="index">
|
|
<td>{{ item.levelName }}</td>
|
|
<td>{{ item.levelName }}</td>
|
|
<td>{{ item.approveName }}</td>
|
|
<td>{{ item.approveName }}</td>
|
|
<td>{{ item.time | timestampFilter }}</td>
|
|
<td>{{ item.time | timestampFilter }}</td>
|
|
- <td>{{ item.remark }}</td>
|
|
|
|
|
|
+ <td style="width: 240px;">{{ item.remark }}</td>
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
</template>
|
|
</template>
|
|
@@ -165,8 +179,8 @@ export default {
|
|
modalIsShow: false,
|
|
modalIsShow: false,
|
|
loading: false,
|
|
loading: false,
|
|
basicInfo: {},
|
|
basicInfo: {},
|
|
- examRoomInfoList: {},
|
|
|
|
- approvalInfoList: {},
|
|
|
|
|
|
+ examRoomInfoList: [],
|
|
|
|
+ approvalInfoList: [],
|
|
pages: []
|
|
pages: []
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -174,8 +188,8 @@ export default {
|
|
async initData() {
|
|
async initData() {
|
|
this.pages = [];
|
|
this.pages = [];
|
|
this.basicInfo = {};
|
|
this.basicInfo = {};
|
|
- this.examRoomInfoList = {};
|
|
|
|
- this.approvalInfoList = {};
|
|
|
|
|
|
+ this.examRoomInfoList = [];
|
|
|
|
+ this.approvalInfoList = [];
|
|
const paper = await examTaskApproveForm(this.instance.id);
|
|
const paper = await examTaskApproveForm(this.instance.id);
|
|
|
|
|
|
this.basicInfo = paper.basicInfo;
|
|
this.basicInfo = paper.basicInfo;
|
|
@@ -269,7 +283,7 @@ export default {
|
|
},
|
|
},
|
|
getHtmlContent() {
|
|
getHtmlContent() {
|
|
const htmlContent = this.$refs.PaperContainer.innerHTML;
|
|
const htmlContent = this.$refs.PaperContainer.innerHTML;
|
|
- const cssContent = `body,div,h1,p,tr,th,td,span{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:rgba(255,255,255,0)}body{font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:14px;color:#1f2230}.paper-main{width:210mm;margin:0 auto;color:#1f2230}.paper-a4{width:210mm;height:297mm;padding:40px;overflow:hidden;page-break-after:always}.paper-h1{font-size:24px;text-align:center;line-height:1;padding-top:20px;padding-bottom:30px}.paper-base{margin-bottom:30px}.paper-row{margin:0 -5px 10px}.paper-item{display:inline-block;vertical-align:top;width:50%;padding:0 5px}.paper-item>span:first-child{float:left;width:80px;text-align:right}.paper-item>span:last-child{display:block;margin-left:80px}.paper-table{width:100%;border-spacing:0;border-collapse:collapse;margin-bottom:40px;text-align:center}.paper-table th{padding:8px;line-height:20px;letter-spacing:1px;border:1px solid #1f2230}.paper-table td{padding:8px;line-height:20px;border:1px solid #1f2230}`;
|
|
|
|
|
|
+ const cssContent = `body,div,h1,p,tr,th,td,span{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:rgba(255,255,255,0)}body{font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:14px;color:#1f2230}.paper-main{width:210mm;margin:0 auto;color:#1f2230}.paper-a4{width:210mm;height:297mm;padding:40px;overflow:hidden;page-break-after:always}.paper-h1{font-size:24px;text-align:center;line-height:1;padding-top:20px;padding-bottom:30px}.paper-base{margin-bottom:30px}.paper-row{margin:0 -5px 10px}.paper-item{display:inline-block;vertical-align:top;width:50%;padding:0 5px}.paper-item>span:first-child{float:left;width:96px;text-align:right}.paper-item>span:last-child{display:block;margin-left:96px}.paper-table{width:100%;border-spacing:0;border-collapse:collapse;margin-bottom:40px;text-align:center}.paper-table th{padding:8px;line-height:20px;letter-spacing:1px;border:1px solid #1f2230}.paper-table td{padding:8px;line-height:20px;border:1px solid #1f2230}`;
|
|
|
|
|
|
return `
|
|
return `
|
|
<!DOCTYPE html>
|
|
<!DOCTYPE html>
|