Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d0f74a4d5f
|
|
@ -25,7 +25,7 @@ public class ProClassifyStatisticsVo extends SynthesisNumVo{
|
||||||
@Excel(name = "工程名称", width = 30.0, orderNum = "1")
|
@Excel(name = "工程名称", width = 30.0, orderNum = "1")
|
||||||
private String proName;
|
private String proName;
|
||||||
|
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
|
||||||
@Excel(name = "最后更新时间", width = 20.0, orderNum = "8",format = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
@Excel(name = "最后更新时间", width = 20.0, orderNum = "8",format = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||||
private Date lastUpdateTime;
|
private Date lastUpdateTime;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -171,6 +171,7 @@ public class DownloadService {
|
||||||
try {
|
try {
|
||||||
// 查询图片未生成水印照片的数据
|
// 查询图片未生成水印照片的数据
|
||||||
List<SynthesisQueryVo> list = Optional.ofNullable(synthesisQueryDao.generateWatermark(proId)).orElseGet(ArrayList::new);
|
List<SynthesisQueryVo> list = Optional.ofNullable(synthesisQueryDao.generateWatermark(proId)).orElseGet(ArrayList::new);
|
||||||
|
System.err.println("查询图片未生成水印照片的数据:" + list.size());
|
||||||
List<Future> futureList = new ArrayList<>();
|
List<Future> futureList = new ArrayList<>();
|
||||||
List<SynthesisQueryVo> newList = new ArrayList<>();
|
List<SynthesisQueryVo> newList = new ArrayList<>();
|
||||||
for (SynthesisQueryVo vo : list) {
|
for (SynthesisQueryVo vo : list) {
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,9 @@ public class ImportantMatterServiceImpl implements ImportantMatterService {
|
||||||
String CreateUserName = UserUtil.getLoginUser() != null ? UserUtil.getLoginUser().getUsername(): null;
|
String CreateUserName = UserUtil.getLoginUser() != null ? UserUtil.getLoginUser().getUsername(): null;
|
||||||
data.setUpdateUserId(CreateUserId);
|
data.setUpdateUserId(CreateUserId);
|
||||||
data.setUpdateUserName(CreateUserName);
|
data.setUpdateUserName(CreateUserName);
|
||||||
|
if (data.getTime().isEmpty()){
|
||||||
|
data.setTime(null);
|
||||||
|
}
|
||||||
importantMatterMapper.updateImportantMatter(data);
|
importantMatterMapper.updateImportantMatter(data);
|
||||||
//附件先删除,后新增
|
//附件先删除,后新增
|
||||||
sysFileResourceService.deleteFileResource(data.getId());
|
sysFileResourceService.deleteFileResource(data.getId());
|
||||||
|
|
|
||||||
|
|
@ -137,6 +137,9 @@ public class SafetyMeasuresServiceImpl implements SafetyMeasuresService {
|
||||||
String CreateUserName = UserUtil.getLoginUser() != null ? UserUtil.getLoginUser().getUsername(): null;
|
String CreateUserName = UserUtil.getLoginUser() != null ? UserUtil.getLoginUser().getUsername(): null;
|
||||||
data.setUpdateUserId(CreateUserId);
|
data.setUpdateUserId(CreateUserId);
|
||||||
data.setUpdateUserName(CreateUserName);
|
data.setUpdateUserName(CreateUserName);
|
||||||
|
if (data.getCheckDate().isEmpty()){
|
||||||
|
data.setCheckDate(null);
|
||||||
|
}
|
||||||
//修改
|
//修改
|
||||||
safetyMeasuresMapper.updateSafetyMeasures(data);
|
safetyMeasuresMapper.updateSafetyMeasures(data);
|
||||||
//附件先删除,后新增
|
//附件先删除,后新增
|
||||||
|
|
@ -153,6 +156,12 @@ public class SafetyMeasuresServiceImpl implements SafetyMeasuresService {
|
||||||
//修改综合查询
|
//修改综合查询
|
||||||
ComprehensiveQueryVo comprehensiveQueryVo = new ComprehensiveQueryVo();
|
ComprehensiveQueryVo comprehensiveQueryVo = new ComprehensiveQueryVo();
|
||||||
BeanUtils.copyProperties(data,comprehensiveQueryVo);
|
BeanUtils.copyProperties(data,comprehensiveQueryVo);
|
||||||
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
if (data.getCheckDate() != null && !data.getCheckDate().trim().isEmpty()) {
|
||||||
|
comprehensiveQueryVo.setRectDate(dateFormat.parse(data.getCheckDate()));
|
||||||
|
}
|
||||||
|
comprehensiveQueryVo.setVioPlace(data.getCheckPlace());
|
||||||
|
comprehensiveQueryVo.setVioDesc(data.getCheckDesc());
|
||||||
synthesisQueryService.updateComprehensiveQuery(comprehensiveQueryVo);
|
synthesisQueryService.updateComprehensiveQuery(comprehensiveQueryVo);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(e.toString(), e);
|
log.error(e.toString(), e);
|
||||||
|
|
|
||||||
|
|
@ -49,9 +49,10 @@ public class HighQualityWatermark {
|
||||||
opacity = Math.max(MIN_OPACITY, Math.min(opacity, MAX_OPACITY));
|
opacity = Math.max(MIN_OPACITY, Math.min(opacity, MAX_OPACITY));
|
||||||
// 读取原始图片并获取其类型
|
// 读取原始图片并获取其类型
|
||||||
BufferedImage originalImage = ImageIO.read(new File(sourceImagePath));
|
BufferedImage originalImage = ImageIO.read(new File(sourceImagePath));
|
||||||
int imageType = originalImage.getTransparency() == Transparency.OPAQUE
|
/*int imageType = originalImage.getTransparency() == Transparency.OPAQUE
|
||||||
? BufferedImage.TYPE_INT_RGB
|
? BufferedImage.TYPE_INT_RGB
|
||||||
: BufferedImage.TYPE_INT_ARGB;
|
: BufferedImage.TYPE_INT_ARGB;*/
|
||||||
|
int imageType = BufferedImage.TYPE_INT_RGB;
|
||||||
// 创建与原始图片相同大小的新图像
|
// 创建与原始图片相同大小的新图像
|
||||||
BufferedImage sourceImage = new BufferedImage(
|
BufferedImage sourceImage = new BufferedImage(
|
||||||
originalImage.getWidth(),
|
originalImage.getWidth(),
|
||||||
|
|
@ -347,8 +348,8 @@ public class HighQualityWatermark {
|
||||||
watermarkLines.add(proName.replaceAll("(.{18})", "$1@@"));
|
watermarkLines.add(proName.replaceAll("(.{18})", "$1@@"));
|
||||||
watermarkLines.add("安全违章");
|
watermarkLines.add("安全违章");
|
||||||
watermarkLines.add("违章照片");
|
watermarkLines.add("违章照片");
|
||||||
String localPath = "C:\\Users\\10488\\Desktop\\3.jpg";
|
String localPath = "C:\\Users\\10488\\Desktop\\新建文件夹 (2)\\2.png";
|
||||||
String outPath = "C:\\Users\\10488\\Desktop\\output.jpg";
|
String outPath = "C:\\Users\\10488\\Desktop\\output.png";
|
||||||
// 添加高质量水印
|
// 添加高质量水印
|
||||||
addHighQualityWatermark(localPath, outPath,
|
addHighQualityWatermark(localPath, outPath,
|
||||||
watermarkLines, "bottom-left",
|
watermarkLines, "bottom-left",
|
||||||
|
|
|
||||||
|
|
@ -83,8 +83,10 @@
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<delete id="deleteComprehensiveQuery">
|
<delete id="deleteComprehensiveQuery">
|
||||||
update tb_comprehensive_query set is_active ='0'
|
update tb_comprehensive_query
|
||||||
where id = #{id} and upload_type = #{uploadType}
|
set is_active ='0'
|
||||||
|
where id = #{id}
|
||||||
|
and upload_type = #{uploadType}
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<!--综合查询-照片综合查询-照片数量-->
|
<!--综合查询-照片综合查询-照片数量-->
|
||||||
|
|
@ -96,7 +98,8 @@
|
||||||
COUNT(IF(tcq.upload_type = '4', 1, NULL)) AS coordinatedPhotoNum,
|
COUNT(IF(tcq.upload_type = '4', 1, NULL)) AS coordinatedPhotoNum,
|
||||||
COUNT(IF(tcq.upload_type = '5', 1, NULL)) AS importIssuesAndPublicityNum
|
COUNT(IF(tcq.upload_type = '5', 1, NULL)) AS importIssuesAndPublicityNum
|
||||||
FROM tb_comprehensive_query tcq
|
FROM tb_comprehensive_query tcq
|
||||||
LEFT JOIN sys_file_resource sfr ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND sfr.is_active = '1'
|
LEFT JOIN sys_file_resource sfr ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND
|
||||||
|
sfr.is_active = '1'
|
||||||
WHERE tcq.is_active = '1'
|
WHERE tcq.is_active = '1'
|
||||||
<if test="roleLevel = '0' and proIds != null and proIds.size() > 0">
|
<if test="roleLevel = '0' and proIds != null and proIds.size() > 0">
|
||||||
AND tcq.pro_id IN
|
AND tcq.pro_id IN
|
||||||
|
|
@ -125,7 +128,8 @@
|
||||||
tcq.title,
|
tcq.title,
|
||||||
tcq.pro_name AS proName
|
tcq.pro_name AS proName
|
||||||
FROM tb_comprehensive_query tcq
|
FROM tb_comprehensive_query tcq
|
||||||
LEFT JOIN sys_file_resource sfr ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND sfr.is_active = '1'
|
LEFT JOIN sys_file_resource sfr ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND
|
||||||
|
sfr.is_active = '1'
|
||||||
LEFT JOIN tb_photo_collect tpc ON sfr.id = tpc.file_resource_id AND tpc.collect_user_id = #{userId}
|
LEFT JOIN tb_photo_collect tpc ON sfr.id = tpc.file_resource_id AND tpc.collect_user_id = #{userId}
|
||||||
LEFT JOIN (
|
LEFT JOIN (
|
||||||
SELECT sd.dict_value,sd.dict_name
|
SELECT sd.dict_value,sd.dict_name
|
||||||
|
|
@ -230,7 +234,9 @@
|
||||||
</select>
|
</select>
|
||||||
<!--获取水印照片地址-->
|
<!--获取水印照片地址-->
|
||||||
<select id="getSyData" resultType="java.lang.String">
|
<select id="getSyData" resultType="java.lang.String">
|
||||||
SELECT watermark_file_path FROM sys_file_resource WHERE id = #{id}
|
SELECT watermark_file_path
|
||||||
|
FROM sys_file_resource
|
||||||
|
WHERE id = #{id}
|
||||||
</select>
|
</select>
|
||||||
<!--项目分类统计-->
|
<!--项目分类统计-->
|
||||||
<select id="getProClassifyStatisticsList"
|
<select id="getProClassifyStatisticsList"
|
||||||
|
|
@ -246,7 +252,8 @@
|
||||||
MAX(sfr.create_time) AS lastUpdateTime
|
MAX(sfr.create_time) AS lastUpdateTime
|
||||||
FROM tb_comprehensive_query tcq
|
FROM tb_comprehensive_query tcq
|
||||||
LEFT JOIN tb_project tp ON tcq.pro_id = tp.id
|
LEFT JOIN tb_project tp ON tcq.pro_id = tp.id
|
||||||
LEFT JOIN sys_file_resource sfr ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND sfr.is_active = '1'
|
LEFT JOIN sys_file_resource sfr ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND
|
||||||
|
sfr.is_active = '1'
|
||||||
<where>
|
<where>
|
||||||
<if test="roleLevel = '0' and proIds != null and proIds.size() > 0">
|
<if test="roleLevel = '0' and proIds != null and proIds.size() > 0">
|
||||||
AND tcq.pro_id IN
|
AND tcq.pro_id IN
|
||||||
|
|
@ -277,7 +284,8 @@
|
||||||
tcq.title,
|
tcq.title,
|
||||||
tcq.pro_name AS proName
|
tcq.pro_name AS proName
|
||||||
FROM tb_comprehensive_query tcq
|
FROM tb_comprehensive_query tcq
|
||||||
LEFT JOIN sys_file_resource sfr ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND sfr.is_active = '1'
|
LEFT JOIN sys_file_resource sfr ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND
|
||||||
|
sfr.is_active = '1'
|
||||||
LEFT JOIN tb_photo_collect tpc ON sfr.id = tpc.file_resource_id AND tpc.collect_user_id = #{userId}
|
LEFT JOIN tb_photo_collect tpc ON sfr.id = tpc.file_resource_id AND tpc.collect_user_id = #{userId}
|
||||||
LEFT JOIN (
|
LEFT JOIN (
|
||||||
SELECT sd.dict_value,sd.dict_name
|
SELECT sd.dict_value,sd.dict_name
|
||||||
|
|
@ -441,7 +449,8 @@
|
||||||
WHERE sd2.dict_code = 'file_source_type' AND sd.del_flag = 0
|
WHERE sd2.dict_code = 'file_source_type' AND sd.del_flag = 0
|
||||||
) A ON A.dict_value = sfr.source_type
|
) A ON A.dict_value = sfr.source_type
|
||||||
<where>
|
<where>
|
||||||
AND sfr.source_id = #{params.id} AND sfr.upload_type = #{params.uploadType} AND sfr.source_type = #{type} AND sfr.is_active = '1'
|
AND sfr.source_id = #{params.id} AND sfr.upload_type = #{params.uploadType} AND sfr.source_type = #{type}
|
||||||
|
AND sfr.is_active = '1'
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<!--查询原图/水印照片-->
|
<!--查询原图/水印照片-->
|
||||||
|
|
@ -449,19 +458,25 @@
|
||||||
SELECT sfr.id AS photoId,
|
SELECT sfr.id AS photoId,
|
||||||
IF(#{type} = '1', sfr.original_file_path, sfr.watermark_file_path) AS filePath,
|
IF(#{type} = '1', sfr.original_file_path, sfr.watermark_file_path) AS filePath,
|
||||||
sfr.upload_type AS uploadType,
|
sfr.upload_type AS uploadType,
|
||||||
CASE sfr.upload_type WHEN '1' THEN '安全违章' WHEN '2' THEN '质量检查' WHEN '3' THEN '安全措施落实'
|
CASE sfr.upload_type
|
||||||
WHEN '4' THEN '协调照片' WHEN '5' THEN '重要事项及宣传类' ELSE '' END AS uploadTypeName,
|
WHEN '1' THEN '安全违章'
|
||||||
|
WHEN '2' THEN '质量检查'
|
||||||
|
WHEN '3' THEN '安全措施落实'
|
||||||
|
WHEN '4' THEN '协调照片'
|
||||||
|
WHEN '5' THEN '重要事项及宣传类'
|
||||||
|
ELSE '' END AS uploadTypeName,
|
||||||
A.dict_name AS sourceTypeName,
|
A.dict_name AS sourceTypeName,
|
||||||
tcq.title
|
tcq.title
|
||||||
FROM tb_comprehensive_query tcq
|
FROM tb_comprehensive_query tcq
|
||||||
LEFT JOIN sys_file_resource sfr ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND sfr.is_active = '1'
|
LEFT JOIN sys_file_resource sfr
|
||||||
LEFT JOIN (
|
ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND sfr.is_active = '1'
|
||||||
SELECT sd.dict_value,sd.dict_name
|
LEFT JOIN (SELECT sd.dict_value, sd.dict_name
|
||||||
FROM sys_distinct sd
|
FROM sys_distinct sd
|
||||||
LEFT JOIN sys_distinct sd2 ON sd.p_id = sd2.id
|
LEFT JOIN sys_distinct sd2 ON sd.p_id = sd2.id
|
||||||
WHERE sd2.dict_code = 'file_source_type' AND sd.del_flag = 0
|
WHERE sd2.dict_code = 'file_source_type'
|
||||||
) A ON A.dict_value = sfr.source_type
|
AND sd.del_flag = 0) A ON A.dict_value = sfr.source_type
|
||||||
WHERE tcq.pro_id = #{proId} AND tcq.is_active = '1'
|
WHERE tcq.pro_id = #{proId}
|
||||||
|
AND tcq.is_active = '1'
|
||||||
ORDER BY sfr.create_time DESC
|
ORDER BY sfr.create_time DESC
|
||||||
</select>
|
</select>
|
||||||
<!--查询图片未生成水印照片的数据-->
|
<!--查询图片未生成水印照片的数据-->
|
||||||
|
|
@ -471,22 +486,29 @@
|
||||||
sfr.compress_file_path AS compressFilePath,
|
sfr.compress_file_path AS compressFilePath,
|
||||||
sfr.watermark_file_path AS watermarkFilePath,
|
sfr.watermark_file_path AS watermarkFilePath,
|
||||||
sfr.upload_type AS uploadType,
|
sfr.upload_type AS uploadType,
|
||||||
CASE sfr.upload_type WHEN '1' THEN '安全违章' WHEN '2' THEN '质量检查' WHEN '3' THEN '安全措施落实'
|
CASE sfr.upload_type
|
||||||
WHEN '4' THEN '协调照片' WHEN '5' THEN '重要事项及宣传类' ELSE '' END AS uploadTypeName,
|
WHEN '1' THEN '安全违章'
|
||||||
|
WHEN '2' THEN '质量检查'
|
||||||
|
WHEN '3' THEN '安全措施落实'
|
||||||
|
WHEN '4' THEN '协调照片'
|
||||||
|
WHEN '5' THEN '重要事项及宣传类'
|
||||||
|
ELSE '' END AS uploadTypeName,
|
||||||
sfr.create_time AS uploadTime,
|
sfr.create_time AS uploadTime,
|
||||||
source_type AS sourceType,
|
source_type AS sourceType,
|
||||||
A.dict_name AS sourceTypeName,
|
A.dict_name AS sourceTypeName,
|
||||||
tcq.title,
|
tcq.title,
|
||||||
tcq.pro_name AS proName
|
tcq.pro_name AS proName
|
||||||
FROM tb_comprehensive_query tcq
|
FROM tb_comprehensive_query tcq
|
||||||
LEFT JOIN sys_file_resource sfr ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND sfr.is_active = '1'
|
LEFT JOIN sys_file_resource sfr
|
||||||
LEFT JOIN (
|
ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND sfr.is_active = '1'
|
||||||
SELECT sd.dict_value,sd.dict_name
|
LEFT JOIN (SELECT sd.dict_value, sd.dict_name
|
||||||
FROM sys_distinct sd
|
FROM sys_distinct sd
|
||||||
LEFT JOIN sys_distinct sd2 ON sd.p_id = sd2.id
|
LEFT JOIN sys_distinct sd2 ON sd.p_id = sd2.id
|
||||||
WHERE sd2.dict_code = 'file_source_type' AND sd.del_flag = 0
|
WHERE sd2.dict_code = 'file_source_type'
|
||||||
) A ON A.dict_value = sfr.source_type
|
AND sd.del_flag = 0) A ON A.dict_value = sfr.source_type
|
||||||
WHERE tcq.pro_id = #{proId} AND tcq.is_active = '1' AND sfr.watermark_file_path IS NULL
|
WHERE tcq.pro_id = #{proId}
|
||||||
|
AND tcq.is_active = '1'
|
||||||
|
AND sfr.watermark_file_path IS NULL
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getPhotoImgList" resultType="com.bonus.imgTool.backstage.entity.SynthesisQueryVo">
|
<select id="getPhotoImgList" resultType="com.bonus.imgTool.backstage.entity.SynthesisQueryVo">
|
||||||
|
|
@ -495,8 +517,13 @@
|
||||||
sfr.compress_file_path AS compressFilePath,
|
sfr.compress_file_path AS compressFilePath,
|
||||||
sfr.watermark_file_path AS watermarkFilePath,
|
sfr.watermark_file_path AS watermarkFilePath,
|
||||||
sfr.upload_type AS uploadType,
|
sfr.upload_type AS uploadType,
|
||||||
CASE sfr.upload_type WHEN '1' THEN '安全违章' WHEN '2' THEN '质量检查' WHEN '3' THEN '安全措施落实'
|
CASE sfr.upload_type
|
||||||
WHEN '4' THEN '协调照片' WHEN '5' THEN '重要事项及宣传类' ELSE '' END AS uploadTypeName,
|
WHEN '1' THEN '安全违章'
|
||||||
|
WHEN '2' THEN '质量检查'
|
||||||
|
WHEN '3' THEN '安全措施落实'
|
||||||
|
WHEN '4' THEN '协调照片'
|
||||||
|
WHEN '5' THEN '重要事项及宣传类'
|
||||||
|
ELSE '' END AS uploadTypeName,
|
||||||
sfr.create_time AS uploadTime,
|
sfr.create_time AS uploadTime,
|
||||||
source_type AS sourceType,
|
source_type AS sourceType,
|
||||||
A.dict_name AS sourceTypeName,
|
A.dict_name AS sourceTypeName,
|
||||||
|
|
@ -504,21 +531,25 @@
|
||||||
tcq.title,
|
tcq.title,
|
||||||
tcq.pro_name AS proName
|
tcq.pro_name AS proName
|
||||||
FROM tb_comprehensive_query tcq
|
FROM tb_comprehensive_query tcq
|
||||||
LEFT JOIN sys_file_resource sfr ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND sfr.is_active = '1'
|
LEFT JOIN sys_file_resource sfr
|
||||||
|
ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND sfr.is_active = '1'
|
||||||
LEFT JOIN tb_photo_collect tpc ON sfr.id = tpc.file_resource_id
|
LEFT JOIN tb_photo_collect tpc ON sfr.id = tpc.file_resource_id
|
||||||
LEFT JOIN (
|
LEFT JOIN (SELECT sd.dict_value, sd.dict_name
|
||||||
SELECT sd.dict_value,sd.dict_name
|
|
||||||
FROM sys_distinct sd
|
FROM sys_distinct sd
|
||||||
LEFT JOIN sys_distinct sd2 ON sd.p_id = sd2.id
|
LEFT JOIN sys_distinct sd2 ON sd.p_id = sd2.id
|
||||||
WHERE sd2.dict_code = 'file_source_type' AND sd.del_flag = 0
|
WHERE sd2.dict_code = 'file_source_type'
|
||||||
) A ON A.dict_value = sfr.source_type
|
AND sd.del_flag = 0) A ON A.dict_value = sfr.source_type
|
||||||
WHERE sfr.source_id = #{id} AND sfr.source_type = #{sourceType} and sfr.is_active = '1' AND tcq.is_active = '1'
|
WHERE sfr.source_id = #{id}
|
||||||
|
AND sfr.source_type = #{sourceType}
|
||||||
|
and sfr.is_active = '1'
|
||||||
|
AND tcq.is_active = '1'
|
||||||
ORDER BY sfr.create_time DESC
|
ORDER BY sfr.create_time DESC
|
||||||
</select>
|
</select>
|
||||||
<!--收藏/取消收藏图片-->
|
<!--收藏/取消收藏图片-->
|
||||||
<update id="collectData">
|
<update id="collectData">
|
||||||
<if test="collectType == 1">
|
<if test="collectType == 1">
|
||||||
INSERT INTO tb_photo_collect (file_resource_id, collect_user_id,collect_user_name, create_user,create_user_name)
|
INSERT INTO tb_photo_collect (file_resource_id, collect_user_id,collect_user_name,
|
||||||
|
create_user,create_user_name)
|
||||||
VALUES (
|
VALUES (
|
||||||
#{id},#{userId},#{userName},#{userId},#{userName}
|
#{id},#{userId},#{userName},#{userId},#{userName}
|
||||||
)
|
)
|
||||||
|
|
@ -529,17 +560,19 @@
|
||||||
</update>
|
</update>
|
||||||
<!--生成水印照片-->
|
<!--生成水印照片-->
|
||||||
<update id="updateSyData">
|
<update id="updateSyData">
|
||||||
UPDATE sys_file_resource SET watermark_file_path = #{watermarkFilePath} WHERE id = #{id}
|
UPDATE sys_file_resource
|
||||||
|
SET watermark_file_path = #{watermarkFilePath}
|
||||||
|
WHERE id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateComprehensiveQuery">
|
<update id="updateComprehensiveQuery">
|
||||||
update tb_comprehensive_query
|
update tb_comprehensive_query
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
<if test="proId != null">pro_id = #{proId},</if>
|
<if test="proId != null">pro_id = #{proId},</if>
|
||||||
<if test="proName != null">pro_name = #{proName},</if>
|
<if test="proName != null">pro_name = #{proName},</if>
|
||||||
<if test="majorId != null">major_id = #{majorId},</if>
|
major_id = #{majorId},
|
||||||
<if test="majorName != null">major_name = #{majorName},</if>
|
major_name = #{majorName},
|
||||||
<if test="gxId != null">gx_id = #{gxId},</if>
|
gx_id = #{gxId},
|
||||||
<if test="gxName != null">gx_name = #{gxName},</if>
|
gx_name = #{gxName},
|
||||||
<if test="checkUserName != null">check_user_name = #{checkUserName},</if>
|
<if test="checkUserName != null">check_user_name = #{checkUserName},</if>
|
||||||
<if test="vioDate != null">vio_date = #{vioDate},</if>
|
<if test="vioDate != null">vio_date = #{vioDate},</if>
|
||||||
<if test="vioPlace != null">vio_place = #{vioPlace},</if>
|
<if test="vioPlace != null">vio_place = #{vioPlace},</if>
|
||||||
|
|
@ -571,6 +604,9 @@
|
||||||
</update>
|
</update>
|
||||||
<!--更新下载任务-->
|
<!--更新下载任务-->
|
||||||
<update id="updateTaskDownload">
|
<update id="updateTaskDownload">
|
||||||
UPDATE tb_download_task SET file_path = #{params.filePath},failure_time = #{nowTime} WHERE id = #{params.id}
|
UPDATE tb_download_task
|
||||||
|
SET file_path = #{params.filePath},
|
||||||
|
failure_time = #{nowTime}
|
||||||
|
WHERE id = #{params.id}
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
|
|
@ -47,22 +47,10 @@
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateCoordinatePhoto">
|
<update id="updateCoordinatePhoto">
|
||||||
update tb_coordinate_photo
|
update tb_coordinate_photo set pro_id = #{proId},pro_name = #{proName},gx_id = #{gxId},gx_name = #{gxName},
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
build_place = #{buildPlace},build_before_desc = #{buildBeforeDesc},build_under_desc = #{buildUnderDesc},
|
||||||
<if test="proId != null and proId != ''">pro_id = #{proId},</if>
|
build_after_desc = #{buildAfterDesc},update_user_id = #{updateUserId},update_user_name = #{updateUserName},
|
||||||
<if test="proName != null and proName != ''">pro_name = #{proName},</if>
|
major_name = #{majorName},major_id = #{majorId},update_time = NOW()
|
||||||
<if test="majorId != null and majorId != ''">major_id = #{majorId},</if>
|
|
||||||
<if test="majorName != null and majorName != ''">major_name = #{majorName},</if>
|
|
||||||
<if test="gxId != null and gxId != ''">gx_id = #{gxId},</if>
|
|
||||||
<if test="gxName != null and gxName != ''">gx_name = #{gxName},</if>
|
|
||||||
<if test="buildPlace != null and buildPlace != ''">build_place = #{buildPlace},</if>
|
|
||||||
<if test="buildBeforeDesc != null ">build_before_desc = #{buildBeforeDesc},</if>
|
|
||||||
<if test="buildUnderDesc != null ">build_under_desc = #{buildUnderDesc},</if>
|
|
||||||
<if test="buildAfterDesc != null ">build_after_desc = #{buildAfterDesc},</if>
|
|
||||||
<if test="updateUserId != null and updateUserId != ''">update_user_id = #{updateUserId},</if>
|
|
||||||
<if test="updateUserName != null and updateUserName != ''">update_user_name = #{updateUserName},</if>
|
|
||||||
update_time = NOW()
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,21 +46,10 @@
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="updateImportantMatter">
|
<update id="updateImportantMatter">
|
||||||
update tb_main_matter_publicize_photo
|
update tb_main_matter_publicize_photo set pro_id = #{proId},pro_name = #{proName},major_id = #{majorId},
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
major_name = #{majorName},gx_id = #{gxId},gx_name = #{gxName},time = #{time},
|
||||||
<if test="proId != null and proId != ''">pro_id = #{proId},</if>
|
title = #{title},content = #{content},
|
||||||
<if test="proName != null and proName != ''">pro_name = #{proName},</if>
|
update_user_id = #{updateUserId},update_user_name = #{updateUserName},update_time = NOW()
|
||||||
<if test="majorId != null and majorId != ''">major_id = #{majorId},</if>
|
|
||||||
<if test="majorName != null and majorName != ''">major_name = #{majorName},</if>
|
|
||||||
<if test="gxId != null and gxId != ''">gx_id = #{gxId},</if>
|
|
||||||
<if test="gxName != null and gxName != ''">gx_name = #{gxName},</if>
|
|
||||||
<if test="time != null and time != ''">time = #{time},</if>
|
|
||||||
<if test="title != null and title != ''">title = #{title},</if>
|
|
||||||
<if test="content != null and content != ''">content = #{content},</if>
|
|
||||||
<if test="updateUserId != null and updateUserId != ''">update_user_id = #{updateUserId},</if>
|
|
||||||
<if test="updateUserName != null and updateUserName != ''">update_user_name = #{updateUserName},</if>
|
|
||||||
update_time = NOW()
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,22 +47,9 @@
|
||||||
|
|
||||||
</insert>
|
</insert>
|
||||||
<update id="updateSafetyMeasures">
|
<update id="updateSafetyMeasures">
|
||||||
update tb_safety_measure
|
update tb_safety_measure set pro_id = #{proId},pro_name = #{proName},major_id = #{majorId},major_name = #{majorName},
|
||||||
<trim prefix="SET" suffixOverrides=",">
|
gx_id = #{gxId},gx_name = #{gxName},check_user_name = #{checkUserName},check_date = #{checkDate},check_place = #{checkPlace},
|
||||||
<if test="proId != null and proId != ''">pro_id = #{proId},</if>
|
check_desc = #{checkDesc},update_user_id = #{updateUserId},update_user_name = #{updateUserName},update_time = NOW()
|
||||||
<if test="proName != null and proName != ''">pro_name = #{proName},</if>
|
|
||||||
<if test="majorId != null and majorId != ''">major_id = #{majorId},</if>
|
|
||||||
<if test="majorName != null and majorName != ''">major_name = #{majorName},</if>
|
|
||||||
<if test="gxId != null and gxId != ''">gx_id = #{gxId},</if>
|
|
||||||
<if test="gxName != null and gxName != ''">gx_name = #{gxName},</if>
|
|
||||||
<if test="checkUserName != null and checkUserName != ''">check_user_name = #{checkUserName},</if>
|
|
||||||
<if test="checkDate != null and checkDate != ''">check_date = #{checkDate},</if>
|
|
||||||
<if test="checkPlace != null and checkPlace != ''">check_place = #{checkPlace},</if>
|
|
||||||
<if test="checkDesc != null and checkDesc != ''">check_desc = #{checkDesc},</if>
|
|
||||||
<if test="updateUserId != null and updateUserId != ''">update_user_id = #{updateUserId},</if>
|
|
||||||
<if test="updateUserName != null and updateUserName != ''">update_user_name = #{updateUserName},</if>
|
|
||||||
update_time = NOW()
|
|
||||||
</trim>
|
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<delete id="deleteSafetyMeasures">
|
<delete id="deleteSafetyMeasures">
|
||||||
|
|
|
||||||
|
|
@ -69,18 +69,10 @@
|
||||||
<if test="proName != null">
|
<if test="proName != null">
|
||||||
pro_name = #{proName},
|
pro_name = #{proName},
|
||||||
</if>
|
</if>
|
||||||
<if test="majorId != null">
|
|
||||||
major_id = #{majorId},
|
major_id = #{majorId},
|
||||||
</if>
|
|
||||||
<if test="majorName != null">
|
|
||||||
major_name = #{majorName},
|
major_name = #{majorName},
|
||||||
</if>
|
|
||||||
<if test="gxId != null">
|
|
||||||
gx_id = #{gxId},
|
gx_id = #{gxId},
|
||||||
</if>
|
|
||||||
<if test="gxName != null">
|
|
||||||
gx_name = #{gxName},
|
gx_name = #{gxName},
|
||||||
</if>
|
|
||||||
<if test="checkUserName != null">
|
<if test="checkUserName != null">
|
||||||
check_user_name = #{checkUserName},
|
check_user_name = #{checkUserName},
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
|
|
@ -101,18 +101,10 @@
|
||||||
<if test="proName != null">
|
<if test="proName != null">
|
||||||
pro_name = #{proName},
|
pro_name = #{proName},
|
||||||
</if>
|
</if>
|
||||||
<if test="majorId != null">
|
|
||||||
major_id = #{majorId},
|
major_id = #{majorId},
|
||||||
</if>
|
|
||||||
<if test="majorName != null">
|
|
||||||
major_name = #{majorName},
|
major_name = #{majorName},
|
||||||
</if>
|
|
||||||
<if test="gxId != null">
|
|
||||||
gx_id = #{gxId},
|
gx_id = #{gxId},
|
||||||
</if>
|
|
||||||
<if test="gxName != null">
|
|
||||||
gx_name = #{gxName},
|
gx_name = #{gxName},
|
||||||
</if>
|
|
||||||
<if test="checkUserName != null">
|
<if test="checkUserName != null">
|
||||||
check_user_name = #{checkUserName},
|
check_user_name = #{checkUserName},
|
||||||
</if>
|
</if>
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 266 B |
Binary file not shown.
|
After Width: | Height: | Size: 323 B |
|
|
@ -223,9 +223,13 @@ function setParams(params) {
|
||||||
form.on('select(majorId)', function (data) {
|
form.on('select(majorId)', function (data) {
|
||||||
const selectedId = data.value; // 获取选中项的 value 值
|
const selectedId = data.value; // 获取选中项的 value 值
|
||||||
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
||||||
|
if (selectedId === '' || selectedId == '') {
|
||||||
|
majorId = '';
|
||||||
|
majorName = '';
|
||||||
|
}else {
|
||||||
majorId = selectedId;
|
majorId = selectedId;
|
||||||
majorName = selectedName;
|
majorName = selectedName;
|
||||||
|
}
|
||||||
let gxs = getGxsSelect(data.value);
|
let gxs = getGxsSelect(data.value);
|
||||||
setSelectValueName(gxs, 'gxId', '请选择工序');
|
setSelectValueName(gxs, 'gxId', '请选择工序');
|
||||||
});
|
});
|
||||||
|
|
@ -233,8 +237,13 @@ function setParams(params) {
|
||||||
form.on('select(gxId)', function (data) {
|
form.on('select(gxId)', function (data) {
|
||||||
const selectedId = data.value; // 获取选中项的 value 值
|
const selectedId = data.value; // 获取选中项的 value 值
|
||||||
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
||||||
|
if (selectedId === '' || selectedId == '') {
|
||||||
|
gxId = '';
|
||||||
|
gxName = '';
|
||||||
|
}else{
|
||||||
gxId = selectedId;
|
gxId = selectedId;
|
||||||
gxName = selectedName;
|
gxName = selectedName;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
form.render();//重新渲染页面checkbox控件
|
form.render();//重新渲染页面checkbox控件
|
||||||
|
|
|
||||||
|
|
@ -113,9 +113,13 @@ function setParams(params) {
|
||||||
form.on('select(majorId)', function (data) {
|
form.on('select(majorId)', function (data) {
|
||||||
const selectedId = data.value; // 获取选中项的 value 值
|
const selectedId = data.value; // 获取选中项的 value 值
|
||||||
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
||||||
|
if(selectedId === '' || selectedId == '' ){
|
||||||
|
majorId = '';
|
||||||
|
majorName = '';
|
||||||
|
}else{
|
||||||
majorId = selectedId;
|
majorId = selectedId;
|
||||||
majorName = selectedName;
|
majorName = selectedName;
|
||||||
|
}
|
||||||
let gxs = getGxsSelect(data.value);
|
let gxs = getGxsSelect(data.value);
|
||||||
setSelectValueName(gxs, 'gxId', '请选择工序');
|
setSelectValueName(gxs, 'gxId', '请选择工序');
|
||||||
});
|
});
|
||||||
|
|
@ -123,8 +127,13 @@ function setParams(params) {
|
||||||
form.on('select(gxId)', function (data) {
|
form.on('select(gxId)', function (data) {
|
||||||
const selectedId = data.value; // 获取选中项的 value 值
|
const selectedId = data.value; // 获取选中项的 value 值
|
||||||
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
||||||
|
if(selectedId === ''){
|
||||||
|
gxId = '';
|
||||||
|
gxName = '';
|
||||||
|
}else{
|
||||||
gxId = selectedId;
|
gxId = selectedId;
|
||||||
gxName = selectedName;
|
gxName = selectedName;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
form.render();//重新渲染页面checkbox控件
|
form.render();//重新渲染页面checkbox控件
|
||||||
|
|
|
||||||
|
|
@ -169,9 +169,13 @@ function setParams(params) {
|
||||||
form.on('select(majorId)', function (data) {
|
form.on('select(majorId)', function (data) {
|
||||||
const selectedId = data.value; // 获取选中项的 value 值
|
const selectedId = data.value; // 获取选中项的 value 值
|
||||||
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
||||||
|
if(selectedId === '' || selectedId == '' ){
|
||||||
|
majorId = '';
|
||||||
|
majorName = '';
|
||||||
|
}else{
|
||||||
majorId = selectedId;
|
majorId = selectedId;
|
||||||
majorName = selectedName;
|
majorName = selectedName;
|
||||||
|
}
|
||||||
let gxs = getGxsSelect(data.value);
|
let gxs = getGxsSelect(data.value);
|
||||||
setSelectValueName(gxs, 'gxId', '请选择工序');
|
setSelectValueName(gxs, 'gxId', '请选择工序');
|
||||||
});
|
});
|
||||||
|
|
@ -179,8 +183,13 @@ function setParams(params) {
|
||||||
form.on('select(gxId)', function (data) {
|
form.on('select(gxId)', function (data) {
|
||||||
const selectedId = data.value; // 获取选中项的 value 值
|
const selectedId = data.value; // 获取选中项的 value 值
|
||||||
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
||||||
|
if(selectedId === '' || selectedId == '' ){
|
||||||
|
gxId = '';
|
||||||
|
gxName = '';
|
||||||
|
}else{
|
||||||
gxId = selectedId;
|
gxId = selectedId;
|
||||||
gxName = selectedName;
|
gxName = selectedName;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
form.render();//重新渲染页面checkbox控件
|
form.render();//重新渲染页面checkbox控件
|
||||||
|
|
|
||||||
|
|
@ -113,9 +113,13 @@ function setParams(params) {
|
||||||
form.on('select(majorId)', function (data) {
|
form.on('select(majorId)', function (data) {
|
||||||
const selectedId = data.value; // 获取选中项的 value 值
|
const selectedId = data.value; // 获取选中项的 value 值
|
||||||
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
||||||
|
if(selectedId === '' || selectedId == '' ){
|
||||||
|
majorId = '';
|
||||||
|
majorName = '';
|
||||||
|
}else{
|
||||||
majorId = selectedId;
|
majorId = selectedId;
|
||||||
majorName = selectedName;
|
majorName = selectedName;
|
||||||
|
}
|
||||||
let gxs = getGxsSelect(data.value);
|
let gxs = getGxsSelect(data.value);
|
||||||
setSelectValueName(gxs, 'gxId', '请选择工序');
|
setSelectValueName(gxs, 'gxId', '请选择工序');
|
||||||
});
|
});
|
||||||
|
|
@ -123,8 +127,13 @@ function setParams(params) {
|
||||||
form.on('select(gxId)', function (data) {
|
form.on('select(gxId)', function (data) {
|
||||||
const selectedId = data.value; // 获取选中项的 value 值
|
const selectedId = data.value; // 获取选中项的 value 值
|
||||||
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
||||||
|
if(selectedId === '' || selectedId == '' ){
|
||||||
|
gxId = '';
|
||||||
|
gxName = '';
|
||||||
|
}else{
|
||||||
gxId = selectedId;
|
gxId = selectedId;
|
||||||
gxName = selectedName;
|
gxName = selectedName;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
form.render();//重新渲染页面checkbox控件
|
form.render();//重新渲染页面checkbox控件
|
||||||
|
|
|
||||||
|
|
@ -178,8 +178,13 @@ function setParams(params) {
|
||||||
form.on('select(majorId)', function (data) {
|
form.on('select(majorId)', function (data) {
|
||||||
const selectedId = data.value; // 获取选中项的 value 值
|
const selectedId = data.value; // 获取选中项的 value 值
|
||||||
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
||||||
|
if(selectedId === '' || selectedId == '' ){
|
||||||
|
majorId = '';
|
||||||
|
majorName = '';
|
||||||
|
}else{
|
||||||
majorId = selectedId;
|
majorId = selectedId;
|
||||||
majorName = selectedName;
|
majorName = selectedName;
|
||||||
|
}
|
||||||
|
|
||||||
let gxs = getGxsSelect(data.value);
|
let gxs = getGxsSelect(data.value);
|
||||||
setSelectValueName(gxs, 'gxId', '请选择工序');
|
setSelectValueName(gxs, 'gxId', '请选择工序');
|
||||||
|
|
@ -188,8 +193,13 @@ function setParams(params) {
|
||||||
form.on('select(gxId)', function (data) {
|
form.on('select(gxId)', function (data) {
|
||||||
const selectedId = data.value; // 获取选中项的 value 值
|
const selectedId = data.value; // 获取选中项的 value 值
|
||||||
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
const selectedName = $(data.elem).find("option:selected").text(); // 获取选中项的文本
|
||||||
|
if(selectedId === '' || selectedId == '' ){
|
||||||
|
gxId = '';
|
||||||
|
gxName = '';
|
||||||
|
}else{
|
||||||
gxId = selectedId;
|
gxId = selectedId;
|
||||||
gxName = selectedName;
|
gxName = selectedName;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
form.render();//重新渲染页面checkbox控件
|
form.render();//重新渲染页面checkbox控件
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 1. 生成唯一任务ID
|
// 1. 生成唯一任务ID
|
||||||
currentTaskId = 'task_' + Date.now();
|
currentTaskId = Date.now();
|
||||||
// 2. 显示等待提示
|
// 2. 显示等待提示
|
||||||
const swalInstance = Swal.fire({
|
const swalInstance = Swal.fire({
|
||||||
title: '正在生成压缩包',
|
title: '正在生成压缩包',
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,9 @@ function setParams(obj) {
|
||||||
setSelectValueName(majors,'majorId','请选择专业');
|
setSelectValueName(majors,'majorId','请选择专业');
|
||||||
setSelectValueName(gxs,'gxId','请选择工序');
|
setSelectValueName(gxs,'gxId','请选择工序');
|
||||||
form.val('formInfo', highSearchData);
|
form.val('formInfo', highSearchData);
|
||||||
|
$('input[name="photoType"]').each(function(){
|
||||||
|
$(this).prop('checked', false);
|
||||||
|
})
|
||||||
$.each(highSearchData.photoType,function(index,item){
|
$.each(highSearchData.photoType,function(index,item){
|
||||||
$('input[name="photoType"][value='+item+']').prop('checked', true);
|
$('input[name="photoType"][value='+item+']').prop('checked', true);
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ function viewImg(item) {
|
||||||
layer.photos({
|
layer.photos({
|
||||||
shade: 0.5,
|
shade: 0.5,
|
||||||
footer: false,
|
footer: false,
|
||||||
|
// toolbar: ['prev', 'next', 'download', 'customBtn'], // 添加自定义按钮标识
|
||||||
photos: {
|
photos: {
|
||||||
"title": "图片预览",
|
"title": "图片预览",
|
||||||
"start": 0,
|
"start": 0,
|
||||||
|
|
@ -13,6 +14,26 @@ function viewImg(item) {
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
success: function(layero){
|
||||||
|
// 获取工具栏元素
|
||||||
|
var toolbar = $(layero).find('.layui-layer-photos-toolbar');
|
||||||
|
// 添加自定义按钮
|
||||||
|
var customBtn = $('<div class="layui-layer-photos-btn layui-layer-photos-customBtn" title="原图下载">'+
|
||||||
|
'<img style="margin-top: 15px;cursor: pointer;" src="../../img/synthesisQuery/download_icon2.png"></div>');
|
||||||
|
toolbar.append(customBtn);
|
||||||
|
// 绑定点击事件
|
||||||
|
customBtn.on('click', function(){
|
||||||
|
imgDownLoad(item,1);
|
||||||
|
});
|
||||||
|
|
||||||
|
var customBtn2 = $('<div class="layui-layer-photos-btn layui-layer-photos-customBtn" title="水印下载">'+
|
||||||
|
'<img style="margin-top: 15px;cursor: pointer;" src="../../img/synthesisQuery/water_icon.png"></div>');
|
||||||
|
toolbar.append(customBtn2);
|
||||||
|
// 绑定点击事件
|
||||||
|
customBtn2.on('click', function(){
|
||||||
|
generateWatermark(item)
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue