Commit 9eecd254 authored by 黄媛媛's avatar 黄媛媛

update

parent fc516214
......@@ -14,7 +14,7 @@
<el-button @click="Search" slot="append" icon="el-icon-search"></el-button>
</el-input>
<el-button style="margin-left:20px" size="small" type="danger" @click="addList" round>新增</el-button>
<el-button style="margin-left:20px" size="small" type="primary" @click="goUrlHome" round>返回</el-button>
<!-- <el-button style="margin-left:20px" size="small" type="primary" @click="goUrlHome" round>返回</el-button> -->
</div>
<div v-loading="loading" class="Content">
<ul class="videoUl">
......
......@@ -1126,7 +1126,7 @@
</div>
<div style="text-align:center">
<p style="font-size:26px;color:#111111;margin:40px 0">第{{tsNumber}}期投诉案例分享已经发布</p>
<a @click="CloseTs" target="_blank" href="http://we.oytour.com:8110/?/question/23" style="font-size:18px;color:#E95252;cursor:pointer;text-decoration:underline">点击查看</a>
<a @click="CloseTs" target="_blank" href="http://we.oytour.com:8110/?/question/24" style="font-size:18px;color:#E95252;cursor:pointer;text-decoration:underline">点击查看</a>
</div>
</div>
</div>
......@@ -1183,7 +1183,7 @@ export default {
articleId:0,
createEmpId:0,
tsState:false,
tsNumber:14,
tsNumber:15,
saleRnkShow: false,
dialogTitleNot: '',
outerVisibleNot: false,
......
......@@ -34,6 +34,61 @@
.cityManagement .query-box li {
margin: 20px 30px 20px 0;
}
.cityManagement ._addUpload_box>div:hover{
background-color: #f5f5f5;
}
.cityManagement .el-upload-dragger{
font-size: 28px;
color: #8c939d;
width: 126px;
height: 80px;
line-height: 41px;
text-align: center;
}
.cityManagement ._show_img_box{
position: fixed;
background: rgba(0,0,0,.6);
left: 0;
top:0;
width: 100%;
height: 100%;
z-index: 9999;
text-align: center;
}
.cityManagement ._addUpload_box{
display: block;
}
.cityManagement ._addUpload_box img{
width: 100%;
height:100%;
}
.cityManagement ._addUpload_box>div{
float: left;
width:138px;
height:92px;
border:1px dashed rgba(210,210,210,1);
border-radius:2px;
cursor: pointer;
margin-bottom: 10px;
padding: 5px;
margin-right: 10px;
position: relative;
}
.cityManagement ._addUpload_box .icon-guanbi1 {
font-size: 12px;
color: white;
display: inline-block;
margin-left: 15px;
position: absolute;
right: -6px;
top: -9px;
background-color: #f56c6c;
border-radius: 50%;
height: 20px;
width: 20px;
text-align: center;
line-height: 20px;
}
</style>
<template>
<div class="flexOne cityManagement">
......@@ -193,6 +248,27 @@
<el-input v-model="addMsg.ThreeCode" class="w150" maxlength="3"></el-input>
</el-form-item>
</li>
<li>
<el-form-item label="图片">
<div class="_addUpload_box clearfix" >
<div v-if="addMsg.Images && addMsg.Images!=''">
<div style="width:100%;height:100%;overflow: hidden;">
<img :src="addMsg.Images"/>
</div>
<span class="iconfont icon-guanbi1" @click="deleteUploadFile()"></span>
</div>
<div v-else class="_pic_upload">
<el-upload
drag
:http-request="uploadFileBtn"
:multiple="false" :show-file-list="false" action="">
<i class="el-icon-plus avatar-uploader-icon"></i>
<div class="el-upload__text">{{$t("active.ld_djscwj")}}</div>
</el-upload>
</div>
</div>
</el-form-item>
</li>
<li>
<div class="cityBtnList">
<input type="button" class="hollowFixedBtn" @click="cancelPanel" value="取消" />
......@@ -313,6 +389,41 @@ export default {
};
},
methods: {
deleteUploadFile(){ // 删除上传文件
this.addMsg.Images='';
},
//上传图片
uploadFileBtn(file) { //上传
if(file.file.size > 1024 * 1024 * 10) {
this.$message.warning(this.$t('tips.wjdxbncgsz'))
return
}
// 1 文档 2 数据 3 图片
let typeArr=[
{stringArr:'GIF|JPG|JPEG|PNG|BMP',type:3},
]
let ft=file.file.name.substring(file.file.name.lastIndexOf('.')+1,file.file.name.length).toUpperCase();
let fileTypeNumber = 2;
let typeOk = false;
typeArr.forEach(x=>{
if(x.stringArr.indexOf(ft)!='-1')
{
fileTypeNumber=x.type
typeOk = true;
}
})
if (!typeOk) return this.$message.error(this.$t('tips.qsctpian'));
let newArr = [];
newArr.push(file.file)
let path = "/Upload/plat/"
this.$message.info(this.$t('tips.shangchuanzhong'))
this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
this.addMsg.Images = this.domainManager().ViittoFileUrl + x.data.FilePath
this.$message.success(this.$t('tips.scchenggong'));
// this.$forceUpdate();
});
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.initData();
......@@ -444,6 +555,7 @@ export default {
this.addMsg.CountryID = res.data.data.CountryID;
this.addMsg.ProvinceID = res.data.data.ProvinceID;
this.addMsg.CityID = res.data.data.CityID;
this.addMsg.Images = res.data.data.Images;
if (this.addMsg.Area == 0) {
this.addMsg.Area = this.addMsg.Area.toString();
} else {
......
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