|
@@ -173,11 +173,24 @@ table{
|
|
|
<div>
|
|
|
<textarea v-model="paperData.remark"></textarea>
|
|
|
</div>
|
|
|
+ <div>
|
|
|
+ <el-button type="primary" @click="showRemark = true">预览</el-button>
|
|
|
+ </div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="updatePaper">确 定</el-button>
|
|
|
<el-button type="primary" @click="visibleChange = false">取消</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="考试说明"
|
|
|
+ :visible.sync="showRemark"
|
|
|
+ width="900px">
|
|
|
+ <div style="width:800px;border: 3px solid #3895ce;text-align: left;padding: 50px 30px;" v-html="paperData.remark">
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="showRemark = false">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -207,6 +220,7 @@ export default {
|
|
|
visibleAdd:false,
|
|
|
visibleDelete:false,
|
|
|
visibleChange:false,
|
|
|
+ showRemark:false
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -226,9 +240,18 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
updatePaper(){
|
|
|
- updatePaper(this.paperData).then((result) => {
|
|
|
+ let data = {
|
|
|
+ grade:this.paperData.grade,
|
|
|
+ name:this.paperData.name,
|
|
|
+ pid:this.paperData.id,
|
|
|
+ remark:this.paperData.remark,
|
|
|
+ sectionDurations:this.paperData.sectionDurations,
|
|
|
+ sectionNums:this.paperData.sectionNums,
|
|
|
+ sectionRests:this.paperData.sectionRests
|
|
|
+ }
|
|
|
+ updatePaper(data).then((result) => {
|
|
|
alert(result.message);
|
|
|
- this.visibleChange = false
|
|
|
+ this.visibleChange = false;
|
|
|
this.searchDoc();
|
|
|
})
|
|
|
},
|