Commit 9f01b1e8 authored by 黄奎's avatar 黄奎

生成广告图优化

parent c69f74d0
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<em>{{$t('objFill.guangaolx')}}</em> <em>{{$t('objFill.guangaolx')}}</em>
<el-select class='w150' v-model="msg.AdType" filterable :placeholder="$t('pub.pleaseSel')"> <el-select class='w150' v-model="msg.AdType" filterable :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option> <el-option :label="$t('pub.unlimitedSel')" :value='SelectDefaultValue'></el-option>
<el-option v-for="item in AdTypeList" :label='item.name' :value='item.Id' :key='item.Id'> <el-option v-for="(item,index) in AdTypeList" :label='item.name' :value='item.Id' :key='index'>
</el-option> </el-option>
</el-select> </el-select>
</span> </span>
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div class="content GroupAdvert" v-loading="pdfLoading" :element-loading-text="loadingText"> <div class="content GroupAdvert" v-loading="pdfLoading" :element-loading-text="loadingText">
<ul> <ul>
<!--@click="getPicList(index)"--> <!--@click="getPicList(index)"-->
<li v-for='(item,index) in dataList' :key="item.id+index"> <li v-for='(item,index) in dataList' :key="`ad_`+index">
<div class="img-box"> <div class="img-box">
<img :src="item.AdvertisingPicUrl" /> <img :src="item.AdvertisingPicUrl" />
<span class="free" v-if="item.AdType==1">{{$t('Operation.Op_advertising')}}</span> <span class="free" v-if="item.AdType==1">{{$t('Operation.Op_advertising')}}</span>
...@@ -156,9 +156,10 @@ ...@@ -156,9 +156,10 @@
this.downLoadMsg.Type = type; this.downLoadMsg.Type = type;
this.downLoadMsg.CreateBy = this.getLocalStorage().EmployeeId this.downLoadMsg.CreateBy = this.getLocalStorage().EmployeeId
var that = this; var that = this;
this.checkFile();
this.download_timer = setInterval(function () { this.download_timer = setInterval(function () {
that.checkFile() that.checkFile()
}, 2000); }, 3000);
}, },
//检查文件是否生成 //检查文件是否生成
checkFile() { checkFile() {
......
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