mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 23:36:44 +08:00
修改分辨率的问题
This commit is contained in:
@@ -6,13 +6,13 @@
|
|||||||
<span>{{isShowTip}}</span>
|
<span>{{isShowTip}}</span>
|
||||||
<span class="his-info pointer" @click="isShowList = true">历史记录</span>
|
<span class="his-info pointer" @click="isShowList = true">历史记录</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="edit-content">
|
<div :class="editContent">
|
||||||
<div class="note-tit">
|
<div class="note-tit">
|
||||||
<div @click="toCoursePage()" v-if="editdata.playTime != ''" :style="{cursor:editdata.type==1? 'pointer':''}"><img :src="`${webBaseUrl}/images/coteplay.png`" alt="">{{getHMS(editdata.playTime)}}</div>
|
<div @click="toCoursePage()" v-if="editdata.playTime != ''" :style="{cursor:editdata.type==1? 'pointer':''}"><img :src="`${webBaseUrl}/images/coteplay.png`" alt="">{{getHMS(editdata.playTime)}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="note-text" v-if="editdata.contentType != 3">
|
<div class="note-text" v-if="editdata.contentType != 3">
|
||||||
<!-- <input style="vertical-align:top;outline:none;" type="textarea" :rows="4" v-model="editdata.content"> -->
|
<!-- <input style="vertical-align:top;outline:none;" type="textarea" :rows="4" v-model="editdata.content"> -->
|
||||||
<textarea v-model="editdata.content" name="" id="" cols="" rows="16" style="vertical-align:top;outline:none;width:100%;border:none;padding-left:20px; background-color: #F5F5F5;font-size: 14px;font-weight: 400;color: #333333;" maxlength="200"
|
<textarea v-model="editdata.content" name="" id="" cols="" :rows="rowNum" style="vertical-align:top;outline:none;width:100%;border:none;padding-left:20px; background-color: #F5F5F5;font-size: 14px;font-weight: 400;color: #333333;" maxlength="200"
|
||||||
show-word-limit></textarea>
|
show-word-limit></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="note-text" v-else>
|
<div class="note-text" v-else>
|
||||||
@@ -64,6 +64,7 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
getHMS,
|
getHMS,
|
||||||
|
editContent: 'edit-content',
|
||||||
imgContent:[],
|
imgContent:[],
|
||||||
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
|
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
|
||||||
isShowList:false,
|
isShowList:false,
|
||||||
@@ -79,6 +80,7 @@ export default {
|
|||||||
histdata:[],
|
histdata:[],
|
||||||
id:'',
|
id:'',
|
||||||
timer:null,
|
timer:null,
|
||||||
|
rowNum:16
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
@@ -87,6 +89,13 @@ export default {
|
|||||||
this.timer = setInterval(()=>{
|
this.timer = setInterval(()=>{
|
||||||
this.savedata(1);
|
this.savedata(1);
|
||||||
},30000);
|
},30000);
|
||||||
|
|
||||||
|
let screenWidth = window.screen.availWidth;
|
||||||
|
if (screenWidth <= 1440) {
|
||||||
|
this.editContent = 'edit-content-low';
|
||||||
|
this.rowNum = 11;
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
toCoursePage(){
|
toCoursePage(){
|
||||||
@@ -305,6 +314,12 @@ export default {
|
|||||||
min-height: 380px;
|
min-height: 380px;
|
||||||
background-color: #F5F5F5;
|
background-color: #F5F5F5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.edit-content-low{
|
||||||
|
min-height: 200px;
|
||||||
|
background-color: #F5F5F5;
|
||||||
|
}
|
||||||
|
|
||||||
.note-text{
|
.note-text{
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|||||||
Reference in New Issue
Block a user