Commit 4aeb4338 authored by 黄奎's avatar 黄奎
parents be2bef07 f9d1e6fa
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
v-loading="loading" v-loading="loading"
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
prop="ID" prop="roomid"
label="房间ID" label="房间ID"
width="80"> width="80">
</el-table-column> </el-table-column>
...@@ -59,7 +59,23 @@ ...@@ -59,7 +59,23 @@
<div class="el-tag" v-if="scope.row.live_status==106">异常</div> <div class="el-tag" v-if="scope.row.live_status==106">异常</div>
<div class="el-tag" v-if="scope.row.live_status==107">已过期</div> <div class="el-tag" v-if="scope.row.live_status==107">已过期</div>
</template> </template>
</el-table-column>
<el-table-column label="海报">
<template slot-scope="scope">
<el-image :src="scope.row.ExtensionImg" class="goods-image" :preview-src-list="[scope.row.ExtensionImg]" style="width:150px;height:150px"></el-image>
</template>
</el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="图片上传" placement="top">
<img @click="imgupload(scope.row)" class="app-order-icon"
src="../../assets/img/userman/imgsc.png" alt="">
</el-tooltip>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination style="text-align:right" <el-pagination style="text-align:right"
background background
...@@ -69,12 +85,20 @@ ...@@ -69,12 +85,20 @@
:total="count"> :total="count">
</el-pagination> </el-pagination>
</div> </div>
<!-- 选择文件 -->
<el-dialog title="选择文件" :visible.sync="changeState" width="1240px">
<ChooseImg @SelectId="SelectId" ref="mychild"></ChooseImg>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import ChooseImg from "@/components/global/ChooseImg.vue";
export default { export default {
name: "liveManage", name: "liveManage",
components: {
ChooseImg
},
data(){ data(){
return{ return{
msg:{ msg:{
...@@ -85,6 +109,12 @@ ...@@ -85,6 +109,12 @@
tableData: [], tableData: [],
loading:false, loading:false,
btnload:false, btnload:false,
changeState:false,
imgMsg:{
ID:0,
roomid:0,
ExtensionImg:'',
}
} }
}, },
created(){ created(){
...@@ -120,6 +150,30 @@ ...@@ -120,6 +150,30 @@
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getIntegraStatisticslList(); this.getIntegraStatisticslList();
}, },
imgupload(row){
console.log(row)
this.imgMsg.ID = row.HouseImgID;
this.imgMsg.roomid = row.roomid;
this.changeState = true;
},
SelectId(msg){
let img = this.getIconLink(msg.url)
this.changeState = false;
this.imgMsg.ExtensionImg = img;
this.addOrUpdateHouseImg()
},
addOrUpdateHouseImg(){
this.btnload=true;
this.apipost("/api/Publish/AddOrUpdateHouseImg", this.imgMsg, res => {
this.btnload=false;
if(res.data.resultCode==1){
this.getDateList()
}else {
this.Info(res.data.message);
}
})
},
} }
} }
</script> </script>
......
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