Commit e6a0e16e authored by zhengke's avatar zhengke

修改

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