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