安全例会优化->实时照片水印添加当前时间
parent
081d0dab1d
commit
adb2ba0ab2
|
@ -11,7 +11,7 @@
|
|||
<view class="cu-bar search bg-white">
|
||||
<view class="search-form radius">
|
||||
<text class="cuIcon-search"></text>
|
||||
<input @input="InputBlur" placeholder="请输入关键字" confirm-type="search"></input>
|
||||
<input @input="InputBlur" placeholder="请输入会议标题关键字" confirm-type="search"></input>
|
||||
|
||||
</view>
|
||||
<view class="action">
|
||||
|
@ -35,13 +35,6 @@
|
|||
<view class="dy-subtitle">
|
||||
<text>会议时间:{{i.MEETING_DATE_START}}</text>
|
||||
</view>
|
||||
<!-- <view class="dy-subtitle">-->
|
||||
<!-- <text>会议状态:{{i.MEETING_STATUS}}</text>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="dy-subtitle">-->
|
||||
<!-- <text>会议内容:</text>-->
|
||||
<!-- <rich-text :nodes="i.MEETING_CONTENT"></rich-text>-->
|
||||
<!-- </view>-->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -61,7 +54,6 @@
|
|||
<script>
|
||||
import {
|
||||
basePath,
|
||||
corpinfoId,
|
||||
loginSession,
|
||||
} from '@/common/tool.js';
|
||||
import tkiTree from "@/components/select-tree/select-tree.vue"
|
||||
|
@ -211,8 +203,7 @@
|
|||
'Content-type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: {
|
||||
CORPINFOID: corpinfoId,
|
||||
KEYWORDS: _this.NameLikes, //关键字模糊查询
|
||||
MEETING_TITLE: _this.NameLikes, //关键字模糊查询
|
||||
},
|
||||
success: (res) => {
|
||||
uni.hideLoading(); //结束加载中动画
|
||||
|
|
|
@ -199,6 +199,10 @@
|
|||
// 绘制水印
|
||||
ctx.fillText(`用户名: ${loginUser.NAME}`, 10, 120); // 根据实际情况调整位置
|
||||
ctx.fillText(`当前位置: ${locationAddress}`, 10, 130); // 根据实际情况调整位置
|
||||
// 获取并格式化当前时间
|
||||
const now = new Date();
|
||||
const formattedTime = `${now.getFullYear()}-${now.getMonth()+1}-${now.getDate()} ${now.getHours()}:${now.getMinutes()}:${now.getSeconds()}`;
|
||||
ctx.fillText(`当前时间: ${formattedTime}`, 10, 140); // 绘制时间水印
|
||||
ctx.draw(false, () => {
|
||||
// 将画布内容保存为图片
|
||||
uni.canvasToTempFilePath({
|
||||
|
|
|
@ -133,7 +133,6 @@
|
|||
showCount :-1,
|
||||
currentPage:1,
|
||||
tabCur :0,
|
||||
|
||||
}
|
||||
},
|
||||
mounted(e){
|
||||
|
@ -167,7 +166,6 @@
|
|||
_this.getPcData();//开始分页查询
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
onReady() {
|
||||
},
|
||||
|
@ -189,7 +187,6 @@
|
|||
}else{
|
||||
_this.getPcData();
|
||||
}
|
||||
|
||||
},
|
||||
getData() {
|
||||
var _this = this;
|
||||
|
@ -243,7 +240,7 @@
|
|||
currentPage : _this.currentPage,
|
||||
KEYWORDS:_this.KEYWORDS,
|
||||
loginUserId :loginUserId,
|
||||
CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
// CORPINFO_ID:loginUser.CORPINFO_ID,
|
||||
USER_ID:loginUser.USER_ID,
|
||||
},
|
||||
success: (res) => {
|
||||
|
|
Loading…
Reference in New Issue