Browse Source

视频详情页修改

zxm
zhangxiaomeng 1 year ago
parent
commit
d471ade04f
  1. 5
      kcui/src/view/Graph.vue
  2. 3
      kcui/src/view/Login.vue
  3. 2
      kcui/src/view/SpInfo.vue
  4. 4
      kcui/src/view/SpInfoXq.vue
  5. 10
      kcui/src/view/TWInfo.vue

5
kcui/src/view/Graph.vue

@ -45,7 +45,7 @@
<div @click="getInfo1" style="width: 3vw;height: 1.5vw;background-color: #001c3a;text-align: center;border-radius:1vw;line-height: 1.5vw;">
查询
</div>
<div style="margin-left: 1vw;">
<div style="margin-left: 1vw;" v-if="userType==1">
<el-button type="primary" plain icon="el-icon-upload2" size="mini" @click="openFileInput" >导入</el-button>
<input
ref="fileInput"
@ -497,8 +497,11 @@ export default {
node: {
...this.config.node,
ondblClick: (event, node) => {
if(this.userType==1){
this.showPopup(node);
}
}
}
};
this.visGraph = new VisGraph(document.getElementById('graph-panel'), configWithEvents);

3
kcui/src/view/Login.vue

@ -179,10 +179,9 @@ export default {
}
doLogin(data).then((res)=>{
if(res.code==200){
if(res.info.userType==1){
localStorage.setItem("type",res.info.userType)
localStorage.setItem("name",res.info.userName)
}
this.$router.push('/Mulu')
}else {
console.log("失败")

2
kcui/src/view/SpInfo.vue

@ -99,7 +99,7 @@
<div class="oneRight" v-for="item in contentList" :key="item">
<div style="width: 8%;">{{ item.id }}</div>
<div style="width: 22%;">{{ item.name }}</div>
<div style="width: 60%;display: flex;flex-direction: row;">
<div style="width: 60%;display: flex;flex-direction: row;justify-content: space-around;">
<Video1 style="height: 100%; object-fit:contain" :src="item.spUrl"
:second="3"/>
</div>

4
kcui/src/view/SpInfoXq.vue

@ -44,10 +44,6 @@
</div>
</div>
</div>
<div style="width: 100%;height: 3%;position: fixed;bottom: 0px;z-index: 100">
<foot></foot>
</div>

10
kcui/src/view/TWInfo.vue

@ -98,10 +98,15 @@
<div class="rightList">
<div class="rightListContent" v-if="this.userType==0">
<div class="oneRight" v-for="item in contentList" :key="item">
<div class="oneRight" v-for="item in contentList" :key="item.id">
<div style="width: 8%;">{{ item.id }}</div>
<div style="width: 22%;">{{ item.name }}</div>
<div style="width: 60%;">图片</div>
<div style="width: 60%;display: flex;flex-direction: row;">
<div v-for="item1 in item.imgList" :key="item1">
<img :src="item1.imgUrl"
style="height: 5vw;object-fit: contain;justify-content: flex-start;margin-left: 1vw;border-radius: 1vw;">
</div>
</div>
<div style="width: 10%;text-decoration: underline;font-style: italic;" @click="goXq(item.id)">
点击查看详情
</div>
@ -274,6 +279,7 @@ export default {
}
getDocList(data).then((res) => {
if (res.code != 500) {
if(res.data.list!=undefined){
this.contentList = res.data.list;
this.total = res.data.total;

Loading…
Cancel
Save