|
|
|
@ -5,13 +5,15 @@ |
|
|
|
|
<div class="per_title" v-preventReClick @click="$router.back()"> |
|
|
|
|
<i class="el-icon-arrow-left"></i> |
|
|
|
|
<span class="per_back">返回</span> |
|
|
|
|
<span class="per_school">日志更新</span> |
|
|
|
|
<span class="per_school">职站日志管理</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
<div class="page"> |
|
|
|
|
<div class="inner"> |
|
|
|
|
<div class="tool"> |
|
|
|
|
<div class="filters"> |
|
|
|
|
<h6>日志更新</h6> |
|
|
|
|
<div class="filter"> |
|
|
|
|
<label>版本查询</label> |
|
|
|
|
<el-select v-model="versionName" size="small" placeholder="请选择版本" filterable @change="verChange"> |
|
|
|
@ -29,11 +31,11 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<el-timeline class="timeline"> |
|
|
|
|
<el-timeline-item placement="top" v-for="(item, i) in listData" :key="i"> |
|
|
|
|
<p :class="['sign', {draft: item.draft}]" :id="'ver' + i">{{ item.draft ? '未发布' : item.updateTime }}</p> |
|
|
|
|
<el-timeline-item placement="top" v-for="(item, i) in listData" :key="i" :class="{draft: item.draft}"> |
|
|
|
|
<p class="sign" :id="'ver' + i">{{ item.draft ? '未发布' : item.updateTime }}</p> |
|
|
|
|
<div class="ver"> |
|
|
|
|
<div> |
|
|
|
|
{{ platformName + item.versionName }} |
|
|
|
|
{{ platformName + item.versionName + (item.draft ? '(草稿)' : '') }} |
|
|
|
|
<span class="action"> |
|
|
|
|
<i class="el-icon-edit-outline" @click="edit(item)" v-auth="'/system:日志更新:管理:编辑日志'"></i> |
|
|
|
|
<i class="el-icon-delete" @click="del(item)" v-auth="'/system:日志更新:管理:删除日志'"></i> |
|
|
|
@ -53,6 +55,7 @@ |
|
|
|
|
</el-timeline> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
@ -109,7 +112,15 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 新增日志 |
|
|
|
|
add() { |
|
|
|
|
if (this.listData.find(e => e.draft)) { |
|
|
|
|
this.$confirm("当前有未发布的版本,是否要新增版本?", "提示", { |
|
|
|
|
type: "warning" |
|
|
|
|
}).then(() => { |
|
|
|
|
this.$router.push(`/addLog?platformId=${this.platformId}`) |
|
|
|
|
}).catch(() => {}) |
|
|
|
|
} else { |
|
|
|
|
this.$router.push(`/addLog?platformId=${this.platformId}`) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 编辑 |
|
|
|
|
edit(item) { |
|
|
|
@ -144,7 +155,12 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.page { |
|
|
|
|
padding: 24px 200px; |
|
|
|
|
min-height: calc(100vh - 300px); |
|
|
|
|
padding: 24px 0; |
|
|
|
|
.inner { |
|
|
|
|
width: 1100px; |
|
|
|
|
margin: 0 auto; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.tool { |
|
|
|
|
padding-bottom: 20px; |
|
|
|
@ -154,18 +170,21 @@ export default { |
|
|
|
|
display: inline-flex; |
|
|
|
|
align-items: center; |
|
|
|
|
h6 { |
|
|
|
|
margin-right: 100px; |
|
|
|
|
font-size: 18px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.timeline { |
|
|
|
|
margin-left: 20%; |
|
|
|
|
.sign { |
|
|
|
|
margin: -11px 0 0 -10%; |
|
|
|
|
margin: -11px 0 0 -16%; |
|
|
|
|
font-size: 14px; |
|
|
|
|
color: #9076FF; |
|
|
|
|
} |
|
|
|
|
.draft { |
|
|
|
|
color: #ccc; |
|
|
|
|
.ver, .sign { |
|
|
|
|
color: #b1b1b1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.ver { |
|
|
|
|
display: flex; |
|
|
|
@ -179,8 +198,9 @@ export default { |
|
|
|
|
.action { |
|
|
|
|
margin-left: 15px; |
|
|
|
|
i { |
|
|
|
|
margin-left: 5px; |
|
|
|
|
margin-left: 8px; |
|
|
|
|
font-size: 14px; |
|
|
|
|
color: #9076FF; |
|
|
|
|
cursor: pointer; |
|
|
|
|
&:hover { |
|
|
|
|
opacity: .9; |
|
|
|
|