Commit e6a0e16e authored by zhengke's avatar zhengke

修改

parent 160839a4
......@@ -106,9 +106,11 @@
<div class="notice_dix" style="margin-top:20px;">
<div>
<div class="noticeFile" v-if="dataList[0].fileList.length>0">
<span v-for="item in dataList[0].fileList" style="cursor:pointer;" @click="downFiles(item)">
<i class="iconfont icon-Download"
style="margin-right:5px;"></i>{{item.FileName}}</span>
<span v-for="item in dataList[0].fileList" style="cursor:pointer;">
<a :href="item.FileUrl" style="color:#2961FE;text-decoration:none;" target="_blank">
<i class="iconfont icon-Download"
style="margin-right:5px;"></i>{{item.FileName}}</a>
</span>
</div>
</div>
<div style="margin-top:5px;">
......@@ -126,7 +128,7 @@
@click="goDetail()" />
</div>
<q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="closeSaveForm" />
<q-btn label="关闭" flat color="grey-10" style="font-weight:400 !important" @click="closeSaveForm" />
</q-card-actions>
</q-card>
</q-dialog>
......@@ -177,13 +179,6 @@
   });
   window.open(routeUrl.href, '_blank');
},
//下载文件
downFiles(item){
const link = document.createElement('a')
link.setAttribute("download", item.FileName) //下载的文件名
link.href = item.FileUrl //文件url
link.click()
},
//往后翻页
goAfter(){
this.$emit('fathergoAfter');
......
......@@ -241,7 +241,7 @@
//通知请求参数
noticeMsg:{
pageIndex:1,
pageSize:1
pageSize:5
},
Count:0,
noticeList:[]
......@@ -281,7 +281,6 @@
getNotify() {
GetMyNoticePageList(this.noticeMsg).then(res => {
if (res.Code == 1) {
console.log(res, 'notice数据');
this.noticeList = res.Data.PageData;
this.Count = res.Data.Count;
}
......@@ -289,7 +288,7 @@
},
//加载更多一次加载一条
getMoreNotify(){
this.noticeMsg.pageSize++;
this.noticeMsg.pageSize+=5;
this.getNotify();
},
//跳转详情
......
......@@ -152,7 +152,7 @@
m = m < 10 ? ('0' + m) : m;
var d = date.getDate();
d = d < 10 ? ('0' + d) : d;
var notifyData = y+'-'+m+'-'+d;
var notifyData = y+'-'+m+'-'+d+' '+ date.getHours() + ':' +date.getMinutes() + ':' + date.getSeconds();
localStorage.setItem("notifyTime", notifyData);
}
})
......
......@@ -89,6 +89,14 @@
<div class="notiveViewInner" v-html="dataList.Content">
</div>
<div style="margin-top:20px;">
<div class="noticeFile" v-if="dataList.fileList.length>0">
<span v-for="item in dataList.fileList" style="cursor:pointer;">
<a :href="item.FileUrl" style="color:#2961FE;text-decoration:none;" target="_blank">
<i class="iconfont icon-Download" style="margin-right:5px;"></i>{{item.FileName}}</a>
</span>
</div>
</div>
</div>
</div>
</template>
......@@ -134,7 +142,7 @@
SetOperation() {
SetNoticeOperation(this.noticeMsg).then(res => {
if (res.Code == 1) {
}
})
}
......
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