|
|
|
@ -1,5 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div style="width: 100%;height: 100%;background-color: #00173a"> |
|
|
|
<div style="width: 100%;height: 100%;"> |
|
|
|
<img style="width: 100%;height: 100%;position: absolute;z-index:-1;" src="../assets/img/twbg.jpg"> |
|
|
|
<headInfo></headInfo> |
|
|
|
<!-- 这是内容界面 --> |
|
|
|
<div class="content"> |
|
|
|
@ -12,7 +13,7 @@ |
|
|
|
</div> |
|
|
|
<div class="leftBox2"> |
|
|
|
<div class="muluBox"> |
|
|
|
<img src="../assets/img/leftBox.png" style="width: 100%;object-fit: contain;z-index: 1;position: absolute;"> |
|
|
|
<img src="../assets/img/leftBox1.png" style="width: 100%;object-fit: contain;z-index: 1;position: absolute;"> |
|
|
|
<div class="muluList"> |
|
|
|
<div v-for="item in mulu" :key="item"> |
|
|
|
<div class="oneMulu" v-if="page!=item" @click="goInfo(item.info)"> |
|
|
|
@ -44,7 +45,8 @@ |
|
|
|
</div> |
|
|
|
<div |
|
|
|
style="width: 94%;height:3vw;position: absolute;z-index: 1;top: 4.9vw;left: 3%;background-color: #0c3068;box-shadow: 0px -9px 10px 0px rgb(75,230,255);"></div> |
|
|
|
<div style="width: 94.4%;height: 2.9vw;position: absolute;z-index: 2;margin-left: 2.6%;top: 5vw;" v-if="this.userType==1"> |
|
|
|
<div style="width: 94.4%;height: 2.9vw;position: absolute;z-index: 2;margin-left: 2.6%;top: 5vw;" |
|
|
|
v-if="this.userType==1"> |
|
|
|
<div |
|
|
|
style="width: 100%;height: 100%;display: flex;flex-direction: row;line-height: 2.9vw;text-align: center;color: #ffffff;"> |
|
|
|
<div style="width: 10%;">序号</div> |
|
|
|
@ -54,7 +56,8 @@ |
|
|
|
<div style="width: 10%;">操作</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="width: 94.4%;height: 2.9vw;position: absolute;z-index: 2;margin-left: 2.6%;top: 5vw;" v-if="this.userType==0"> |
|
|
|
<div style="width: 94.4%;height: 2.9vw;position: absolute;z-index: 2;margin-left: 2.6%;top: 5vw;" |
|
|
|
v-if="this.userType==0"> |
|
|
|
<div |
|
|
|
style="width: 100%;height: 100%;display: flex;flex-direction: row;line-height: 2.9vw;text-align: center;color: #ffffff;"> |
|
|
|
<div style="width: 10%;">序号</div> |
|
|
|
@ -71,7 +74,7 @@ |
|
|
|
<div style="width: 8%;">{{ item.id }}</div> |
|
|
|
<div style="width: 22%;">{{ item.name }}</div> |
|
|
|
<div style="width: 60%;">图片</div> |
|
|
|
<div style="width: 10%;text-decoration: underline;font-style: italic;">点击查看详情</div> |
|
|
|
<div style="width: 10%;text-decoration: underline;font-style: italic;" @click="goXq(item.id)">点击查看详情</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="rightListContent" v-if="this.userType==1"> |
|
|
|
@ -79,8 +82,9 @@ |
|
|
|
<div style="width: 8%;">{{ item.id }}</div> |
|
|
|
<div style="width: 22%;">{{ item.name }}</div> |
|
|
|
<div style="width: 60%;">图片</div> |
|
|
|
<div style="width: 10%;text-decoration: underline;font-style: italic;">点击查看详情</div> |
|
|
|
<div style="width: 9%;text-decoration: underline;font-style: italic;display: flex;justify-content: space-around;margin-left: 1%;"> |
|
|
|
<div style="width: 10%;text-decoration: underline;font-style: italic;" @click="goXq(item.id)">点击查看详情</div> |
|
|
|
<div |
|
|
|
style="width: 9%;text-decoration: underline;font-style: italic;display: flex;justify-content: space-around;margin-left: 1%;"> |
|
|
|
<div @click="editTw(item.id)">修改</div> |
|
|
|
<div @click="deleteTw(item.id)">删除</div> |
|
|
|
</div> |
|
|
|
@ -188,8 +192,14 @@ export default { |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
goXq(id) { |
|
|
|
var data = { |
|
|
|
id: id |
|
|
|
} |
|
|
|
getTwInfo(data).then((res) => { |
|
|
|
this.$router.push({path: '/TwInfoXq', query: {id: id, level: res.data.level, type: "tw"}}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//管理员操作 |
|
|
|
@ -198,11 +208,13 @@ export default { |
|
|
|
}, |
|
|
|
editTw(id) { |
|
|
|
//展示出一个修改的弹窗 |
|
|
|
var docId = id; |
|
|
|
getTwInfo(docId).then((res)=>{ |
|
|
|
console.log(res); |
|
|
|
var data = { |
|
|
|
id: id |
|
|
|
} |
|
|
|
getTwInfo(data).then((res) => { |
|
|
|
console.log(res.data) |
|
|
|
}) |
|
|
|
console.log("这是修改操作") |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
@ -227,7 +239,7 @@ export default { |
|
|
|
.leftBox1 { |
|
|
|
width: 100%; |
|
|
|
height: 10%; |
|
|
|
margin-top: 12%; |
|
|
|
margin-top: 10%; |
|
|
|
color: #7cdeff; |
|
|
|
} |
|
|
|
|
|
|
|
@ -238,7 +250,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
.muluBox { |
|
|
|
margin: 3% 14%; |
|
|
|
margin: 0% 14%; |
|
|
|
height: 92%; |
|
|
|
width: 72%; |
|
|
|
position: relative; |
|
|
|
|