|
|
|
|
@ -290,6 +290,7 @@
|
|
|
|
|
<!-- <rich-text :nodes="currentNotice.content"></rich-text> -->
|
|
|
|
|
<view class="htmls" style="line-height: 50rpx;text-indent: 2em;" v-html="currentNotice.content">
|
|
|
|
|
</view>
|
|
|
|
|
<view @click="downLoad" style="color:#EF9525 ;" v-if="currentNotice.isTemplate">下载模版</view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
|
|
|
|
|
<view style="margin-top: 40rpx;"></view>
|
|
|
|
|
@ -352,10 +353,12 @@
|
|
|
|
|
scrollheight: "",
|
|
|
|
|
notice: [{
|
|
|
|
|
title: "预约须知",
|
|
|
|
|
content: "预约须知的内容"
|
|
|
|
|
content: "预约须知的内容",
|
|
|
|
|
isTemplate:false
|
|
|
|
|
}, {
|
|
|
|
|
title: "批量上传帮助",
|
|
|
|
|
content: "<p>1.批量上传EXCEL的以xlsx结尾</p><p>2.第一行为标题行 姓名 手机号 证件号 行动不便者</p><p>3.文件是从微信聊天记录中选取或者微信文件传输助手</p><img src='@host@/export.png?v=1.1' style='width:100%'/>"
|
|
|
|
|
content: "<p>1.批量上传EXCEL的以xlsx结尾</p><p>2.第一行为标题行 姓名 手机号 证件号 行动不便者</p><p>3.文件是从微信聊天记录中选取或者微信文件传输助手</p><img src='@host@/export.png?v=1.1' style='width:100%'/>",
|
|
|
|
|
isTemplate:true
|
|
|
|
|
}],
|
|
|
|
|
specialtype: false,
|
|
|
|
|
specialid: 0,
|
|
|
|
|
@ -610,6 +613,30 @@
|
|
|
|
|
this.form.total = this.form.details_list.length;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
downLoad() {
|
|
|
|
|
const downloadTask = uni.downloadFile({
|
|
|
|
|
url: 'https://leyitest.ali251.langye.net/Template.xlsx', //仅为示例,并非真实的资源
|
|
|
|
|
success: (res) => {
|
|
|
|
|
var filePath = res.tempFilePath
|
|
|
|
|
if (res.statusCode === 200) {
|
|
|
|
|
uni.openDocument({
|
|
|
|
|
filePath: filePath,
|
|
|
|
|
showMenu: true,
|
|
|
|
|
success: function(res) {
|
|
|
|
|
console.log('打开文档成功')
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
downloadTask.onProgressUpdate((res) => {
|
|
|
|
|
console.log('下载进度' + res.progress);
|
|
|
|
|
console.log('已经下载的数据长度' + res.totalBytesWritten);
|
|
|
|
|
console.log('预期需要下载的数据总长度' + res.totalBytesExpectedToWrite);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
loadConfig() {
|
|
|
|
|
|
|
|
|
|
|