文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit fa7c7d33 by 李景熙

Merge remote-tracking branch 'origin/develop' into develop

parents 704e4247 8366dc41
......@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>daplatform</title>
<title>众包标注平台</title>
</head>
<body>
<div id="app"></div>
......
......@@ -3,8 +3,7 @@ let isTest = true
var baseURL
if (!isTest) {
baseURL = 'http://47.92.1.107/api'
}
else {
} else {
baseURL = 'http://localhost:9100/api'
}
......
......@@ -49,4 +49,11 @@
}
}
}
}
@mixin optionButton {
.el-table {
.el-button {
width: 6em;
}
}
}
\ No newline at end of file
......@@ -89,30 +89,6 @@ export default {
text-align: left;
padding: 30px 20px 30px 20px;
}
ul{
padding:0 20px 0 20px;
max-height: 400px;
overflow-y: auto;
&::-webkit-scrollbar{
width: 5px;
}
&::-webkit-scrollbar-thumb{
background-color: #E4E7ED;
border-radius: 3px;
}
li{
list-style: none;
margin-bottom: 10px;
overflow: hidden;
span{
float: left;
line-height: 28px;
}
.el-button{
float: right;
margin-left: 10px;
}
}
}
@include optionButton;
}
</style>
......@@ -80,5 +80,6 @@ export default {
text-align: left;
padding: 30px 20px 30px 20px;
}
@include optionButton;
}
</style>
<template>
<div class="login-container">
<div class="login-panel" :style="{height: panelHeight}">
<div class="logo">DAPlatform</div>
<div class="logo">众包标注平台</div>
<el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect"
active-text-color="#409EFF">
<el-menu-item index="1">登录</el-menu-item>
......
......@@ -22,8 +22,15 @@
</template>
<script>
const indexs = new Set(['/taskhall', '/ongoing', '/releasetask', '/completed',
'/check', '/publishtask', '/userhome', '/'])
const indices = {
taskhall: '/taskhall',
ongoingtask: '/ongoing',
releasetask: '/releasetask',
completed: '/completed',
check: '/check',
publishtask: '/publishtask',
userhome: '/userhome'
}
export default {
name: 'nav-header',
......@@ -42,9 +49,7 @@ export default {
watch: {
// 对路由变化作出响应...
'$route' (to, from) {
var index = to.fullPath.indexOf('/', 1)
var toPath = to.fullPath.substring(0, index === -1 ? to.fullPath.length : index + 1)
if (indexs.has(toPath)) { this.$store.commit('setActiveIndex', toPath) }
if (indices.hasOwnProperty(to.name)) { this.$store.commit('setActiveIndex', indices[to.name]) }
}
},
methods: {
......
......@@ -157,5 +157,6 @@ export default {
text-align: left;
padding: 30px 20px 30px 20px;
}
@include optionButton;
}
</style>
......@@ -40,11 +40,11 @@ export default {
params: { task: encodeURIComponent(JSON.stringify(task)) }
})
},
deleteRow (id,index) {
// alert(index)
// console.log(this.tasks)
//
// console.log(tasks)
deleteRow (id, index) {
// alert(index)
// console.log(this.tasks)
//
// console.log(tasks)
this.axios({
method: 'post',
url: 'task/giveUpTask',
......@@ -58,7 +58,7 @@ export default {
type: 'info',
message: '任务删除成功'
})
this.tasks.splice(index,1)
this.tasks.splice(index, 1)
} else {
this.$message({
type: 'info',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment