This commit is contained in:
daihh
2022-08-03 18:46:44 +08:00
parent 2453b17d26
commit b7cec1023a

View File

@@ -170,7 +170,7 @@
</div> </div>
</div> </div>
<div class="paper-box"> <div class="paper-box">
<div v-for="(item, idx) in paper.data" :key="idx"> <div v-if="paper.data.length>0" v-for="(item,idx) in paper.data" :key="idx">
<div v-if="item.type < 900"> <div v-if="item.type < 900">
<div style="display: flex;justify-content: space-between;background-color: #dcf1ff;padding: 5px;"> <div style="display: flex;justify-content: space-between;background-color: #dcf1ff;padding: 5px;">
<div> <div>
@@ -182,10 +182,8 @@
<!-- <span style="padding-left: 5px;">知识点[{{item.analysis}}]</span> --> <!-- <span style="padding-left: 5px;">知识点[{{item.analysis}}]</span> -->
</div> </div>
<div> <div>
<el-input style="width: 120px;" size="mini" v-model="item.defaultScore" placeholder="分数" @blur="paperCalculation()"> <el-input @input="changeInput($event)" v-model="item.defaultScore" style="width: 120px;" size="mini" placeholder="分数" @blur="paperCalculation()">
<template slot="append"> <template slot="append"></template>
</template>
</el-input> </el-input>
<el-button icon="el-icon-delete" @click="checkDelete(idx)" size="mini"></el-button> <el-button icon="el-icon-delete" @click="checkDelete(idx)" size="mini"></el-button>
</div> </div>
@@ -370,7 +368,7 @@ export default {
testName: '', testName: '',
remark: '', remark: '',
difficulty: '', difficulty: '',
data: [] data: []
}, },
showCompilerDialog: false, showCompilerDialog: false,
checkQuest: [], checkQuest: [],
@@ -413,6 +411,9 @@ export default {
// } // }
}, },
methods: { methods: {
changeInput(e){
this.$forceUpdate();
},
currentChange(val) { currentChange(val) {
this.qlib.pageIndex = val; this.qlib.pageIndex = val;
this.questionList(); this.questionList();
@@ -725,6 +726,11 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.el-input{
.el-input__inner{
padding: 0px 5px;
}
}
.test-input { .test-input {
width: 60px; width: 60px;
margin: 0 5px; margin: 0 5px;