提交 6bd50f00 authored 作者: lihuihui's avatar lihuihui

修改bug

上级 c8601d97
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</div> </div>
</div> </div>
<div class="right-content"> <div class="right-content">
<div class="time">{{ time }}</div> <div class="time" v-html="time"></div>
</div> </div>
<!-- <div class="title"> <!-- <div class="title">
<router-link to="/">{{ title }}</router-link> <router-link to="/">{{ title }}</router-link>
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
const h = date.getHours() const h = date.getHours()
const m = date.getMinutes() const m = date.getMinutes()
const s = date.getSeconds() const s = date.getSeconds()
return `${year}.${this.toDo(mon)}.${this.toDo(da)} ${this.toDo(h)}${this.toDo(m)}${this.toDo(s)}` return `&nbsp;&nbsp;${year}.${this.toDo(mon)}.${this.toDo(da)}&nbsp;${this.toDo(h)}:${this.toDo(m)}:${this.toDo(s)}`
}, },
toDo(n) { toDo(n) {
const num = parseInt(n) const num = parseInt(n)
......
...@@ -36,7 +36,7 @@ export default { ...@@ -36,7 +36,7 @@ export default {
height: 400, height: 400,
uiColor: '#eeeeee', uiColor: '#eeeeee',
filebrowserImageUploadUrl: '/api/ck/form/ckeditor-upload', filebrowserImageUploadUrl: '/api/ck/form/ckeditor-upload',
fileTools_requestHeaders: { tenant: 'sofia' }, fileTools_requestHeaders: { tenant: 'x1' },
// resize_enabled: typeof this.props.resizable === 'boolean' ? this.props.resizable : true, // resize_enabled: typeof this.props.resizable === 'boolean' ? this.props.resizable : true,
toolbar: [ toolbar: [
// { name: 'document', items: ['Source', '-', 'Save', 'NewPage', 'Preview'] }, // { name: 'document', items: ['Source', '-', 'Save', 'NewPage', 'Preview'] },
......
...@@ -100,7 +100,7 @@ export default { ...@@ -100,7 +100,7 @@ export default {
this.countDomHeight() this.countDomHeight()
}) })
console.log(this.caseItemList) console.log(this.caseItemList)
// window.sessionStorage.homeTabIndex = n window.sessionStorage.homeTabIndex = n
}, },
getClassifyList() { getClassifyList() {
api api
...@@ -108,7 +108,9 @@ export default { ...@@ -108,7 +108,9 @@ export default {
.then(response => { .then(response => {
this.caseData = response.data this.caseData = response.data
this.caseItemList = response.data[0].children this.caseItemList = response.data[0].children
this.tabCase(parseInt(0)) // this.tabCase(parseInt(0))
const index = parseInt(window.sessionStorage.homeTabIndex)
index ? this.tabCase(index) : this.tabCase()
}) })
.finally(() => { .finally(() => {
}) })
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</div> </div>
<div class="next-btnnext-btn"> <div class="next-btnnext-btn">
<!-- <div class="border"> --> <!-- <div class="border"> -->
<div class="new-le-btn" @click="$router.push({ path: '/explain' })"></div> <div class="new-le-btn" @click="$router.push({ path: '/index' })"></div>
<div class="left-btn" @click="confirm"></div> <div class="left-btn" @click="confirm"></div>
<div class="right-btn" @click="tabCaseBtn"></div> <div class="right-btn" @click="tabCaseBtn"></div>
<!-- </div> --> <!-- </div> -->
...@@ -336,7 +336,9 @@ export default { ...@@ -336,7 +336,9 @@ export default {
.name{ .name{
font-size: 14px; font-size: 14px;
color: #58C0DA; color: #58C0DA;
white-space: nowrap; // white-space: nowrap;
width: 200px;
// min-width: 110px;
margin: 0 16px 0 10px; margin: 0 16px 0 10px;
} }
::v-deep{ ::v-deep{
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<p>{{ item.rank }}</p> <p>{{ item.rank }}</p>
<p>{{ item.school }}</p> <p>{{ item.school }}</p>
<p>{{ item.username }}</p> <p>{{ item.username }}</p>
<p>{{ getNowTime(item.date_index) }}</p> <p>{{ item.updated_at }}</p>
<p v-if="selectValue == 11 || selectValue == 21 || selectValue == 31">{{ item.times }}</p> <p v-if="selectValue == 11 || selectValue == 21 || selectValue == 31">{{ item.times }}</p>
<p v-else>{{ item.score }}</p> <p v-else>{{ item.score }}</p>
</li> </li>
......
...@@ -408,7 +408,7 @@ export default { ...@@ -408,7 +408,7 @@ export default {
text-align: center; text-align: center;
} }
.time{ .time{
width: 81px; width: 100px;
text-align: center; text-align: center;
} }
.score{ .score{
...@@ -434,13 +434,20 @@ export default { ...@@ -434,13 +434,20 @@ export default {
.school-name{ .school-name{
width: 240px; width: 240px;
text-align: center; text-align: center;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
} }
.name{ .name{
width: 130px; width: 130px;
text-align: center; text-align: center;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
} }
.time{ .time{
width: 81px; width: 100px;
white-space:nowrap;
text-align: center; text-align: center;
} }
.score{ .score{
......
...@@ -6,6 +6,9 @@ import { Message } from 'element-ui' ...@@ -6,6 +6,9 @@ import { Message } from 'element-ui'
const httpRequest = axios.create({ const httpRequest = axios.create({
// baseURL: process.env.VUE_APP_BASE_API, // baseURL: process.env.VUE_APP_BASE_API,
timeout: 60000, timeout: 60000,
headers: {
tenant: 'x1'
},
withCredentials: true withCredentials: true
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论