仪器管理-增加蓝牙连接、断开、失败的图片、标题、文案

master
382696293@qq.com 2 years ago
parent 0a7b5409f0
commit 83c6497b1b

@ -145,16 +145,51 @@ public class WxInstrument extends BaseEntity {
*/
private String shoppingPath;
/**
*
*/
private String bluetoothConnectingTitle;
/**
*
*/
private String bluetoothConnecting;
/**
*
*/
private String bluetoothConnectingContent;
/**
*
*/
private String bluetoothClosedTitle;
/**
*
*/
private String bluetoothClosed;
/**
*
*/
private String bluetoothClosedContent;
/**
*
*/
private String bluetoothConnectFailTitle;
/**
*
*/
private String bluetoothConnectFail;
/**
*
*/
private String bluetoothConnectFailContent;
/**
* iot
*/
@ -436,6 +471,63 @@ public class WxInstrument extends BaseEntity {
this.bindingCredit = bindingCredit;
}
public String getBluetoothConnectingTitle() {
return bluetoothConnectingTitle;
}
public void setBluetoothConnectingTitle(String bluetoothConnectingTitle) {
this.bluetoothConnectingTitle = bluetoothConnectingTitle;
}
public String getBluetoothClosedTitle() {
return bluetoothClosedTitle;
}
public void setBluetoothClosedTitle(String bluetoothClosedTitle) {
this.bluetoothClosedTitle = bluetoothClosedTitle;
}
public String getBluetoothConnectFailTitle() {
return bluetoothConnectFailTitle;
}
public void setBluetoothConnectFailTitle(String bluetoothConnectFailTitle) {
this.bluetoothConnectFailTitle = bluetoothConnectFailTitle;
}
public String getBluetoothConnectFail() {
return bluetoothConnectFail;
}
public void setBluetoothConnectFail(String bluetoothConnectFail) {
this.bluetoothConnectFail = bluetoothConnectFail;
}
public String getBluetoothConnectingContent() {
return bluetoothConnectingContent;
}
public void setBluetoothConnectingContent(String bluetoothConnectingContent) {
this.bluetoothConnectingContent = bluetoothConnectingContent;
}
public String getBluetoothClosedContent() {
return bluetoothClosedContent;
}
public void setBluetoothClosedContent(String bluetoothClosedContent) {
this.bluetoothClosedContent = bluetoothClosedContent;
}
public String getBluetoothConnectFailContent() {
return bluetoothConnectFailContent;
}
public void setBluetoothConnectFailContent(String bluetoothConnectFailContent) {
this.bluetoothConnectFailContent = bluetoothConnectFailContent;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)

@ -32,6 +32,11 @@ public class WxInstrumentMode extends BaseEntity {
@Excel(name = "模式id")
private Long modeId;
/**
* new01
*/
private Integer isNew;
/**
*
*/
@ -83,6 +88,14 @@ public class WxInstrumentMode extends BaseEntity {
this.modeSort = modeSort;
}
public Integer getIsNew() {
return isNew;
}
public void setIsNew(Integer isNew) {
this.isNew = isNew;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)

@ -141,16 +141,52 @@ public class WxInstrumentSaveReq {
*/
private String shoppingPath;
/**
*
*/
private String bluetoothConnectingTitle;
/**
*
*/
private String bluetoothConnecting;
/**
*
*/
private String bluetoothConnectingContent;
/**
*
*/
private String bluetoothClosedTitle;
/**
*
*/
private String bluetoothClosed;
/**
*
*/
private String bluetoothClosedContent;
/**
*
*/
private String bluetoothConnectFailTitle;
/**
*
*/
private String bluetoothConnectFail;
/**
*
*/
private String bluetoothConnectFailContent;
/**
* iot
*/
@ -436,4 +472,60 @@ public class WxInstrumentSaveReq {
public void setModeIdsValue(List<Integer> modeIdsValue) {
this.modeIdsValue = modeIdsValue;
}
public String getBluetoothConnectingTitle() {
return bluetoothConnectingTitle;
}
public void setBluetoothConnectingTitle(String bluetoothConnectingTitle) {
this.bluetoothConnectingTitle = bluetoothConnectingTitle;
}
public String getBluetoothConnectingContent() {
return bluetoothConnectingContent;
}
public void setBluetoothConnectingContent(String bluetoothConnectingContent) {
this.bluetoothConnectingContent = bluetoothConnectingContent;
}
public String getBluetoothClosedTitle() {
return bluetoothClosedTitle;
}
public void setBluetoothClosedTitle(String bluetoothClosedTitle) {
this.bluetoothClosedTitle = bluetoothClosedTitle;
}
public String getBluetoothClosedContent() {
return bluetoothClosedContent;
}
public void setBluetoothClosedContent(String bluetoothClosedContent) {
this.bluetoothClosedContent = bluetoothClosedContent;
}
public String getBluetoothConnectFailTitle() {
return bluetoothConnectFailTitle;
}
public void setBluetoothConnectFailTitle(String bluetoothConnectFailTitle) {
this.bluetoothConnectFailTitle = bluetoothConnectFailTitle;
}
public String getBluetoothConnectFail() {
return bluetoothConnectFail;
}
public void setBluetoothConnectFail(String bluetoothConnectFail) {
this.bluetoothConnectFail = bluetoothConnectFail;
}
public String getBluetoothConnectFailContent() {
return bluetoothConnectFailContent;
}
public void setBluetoothConnectFailContent(String bluetoothConnectFailContent) {
this.bluetoothConnectFailContent = bluetoothConnectFailContent;
}
}

@ -30,8 +30,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="isPurchase" column="is_purchase" />
<result property="shoppingAppid" column="shopping_appid" />
<result property="shoppingPath" column="shopping_path" />
<result property="bluetoothConnectingTitle" column="bluetooth_connecting_title" />
<result property="bluetoothConnectingContent" column="bluetooth_connecting_content" />
<result property="bluetoothConnecting" column="bluetooth_connecting" />
<result property="bluetoothClosedTitle" column="bluetooth_closed_title" />
<result property="bluetoothClosedContent" column="bluetooth_closed_content" />
<result property="bluetoothClosed" column="bluetooth_closed" />
<result property="bluetoothConnectFailTitle" column="bluetooth_connect_fail_title" />
<result property="bluetoothConnectFailContent" column="bluetooth_connect_fail_content" />
<result property="bluetoothConnectFail" column="bluetooth_connect_fail" />
<result property="iotVersionUpgrade" column="iot_version_upgrade" />
<result property="sortNo" column="sort_no" />
<result property="status" column="status" />
@ -45,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectWxInstrumentVo">
select id, name, type, model, banner, logo, serial, guarantee, daily_clock_credit, is_extra_clock, binding_credit, extra_clock_credit, start_time, end_time, mini_tag_ids, mini_tag_names, wecom_tag_ids, wecom_tag_names, nursing_time, iot_version, iot_upgrade_data, is_scan_code, is_purchase, shopping_appid, shopping_path, bluetooth_connecting, bluetooth_closed, iot_version_upgrade, sort_no, status, manual_code_binding, scan_code_binding, create_by, create_time, update_by, update_time, remark from wx_instrument
select id, name, type, model, banner, logo, serial, guarantee, daily_clock_credit, is_extra_clock, binding_credit, extra_clock_credit, start_time, end_time, mini_tag_ids, mini_tag_names, wecom_tag_ids, wecom_tag_names, nursing_time, iot_version, iot_upgrade_data, is_scan_code, is_purchase, shopping_appid, shopping_path, bluetooth_connecting_title, bluetooth_connecting_content,bluetooth_connecting, bluetooth_closed_title, bluetooth_closed_content, bluetooth_closed, bluetooth_connect_fail_title, bluetooth_connect_fail_content, bluetooth_connect_fail, iot_version_upgrade, sort_no, status, manual_code_binding, scan_code_binding, create_by, create_time, update_by, update_time, remark from wx_instrument
</sql>
<select id="selectWxInstrumentList" parameterType="WxInstrument" resultMap="WxInstrumentResult">
@ -75,8 +82,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isPurchase != null "> and is_purchase = #{isPurchase}</if>
<if test="shoppingAppid != null and shoppingAppid != ''"> and shopping_appid = #{shoppingAppid}</if>
<if test="shoppingPath != null and shoppingPath != ''"> and shopping_path = #{shoppingPath}</if>
<if test="bluetoothConnectingTitle != null and bluetoothConnectingTitle != ''"> and bluetooth_connecting_title = #{bluetoothConnectingTitle}</if>
<if test="bluetoothConnectingContent != null and bluetoothConnectingContent != ''"> and bluetooth_connecting_content = #{bluetoothConnectingContent}</if>
<if test="bluetoothConnecting != null and bluetoothConnecting != ''"> and bluetooth_connecting = #{bluetoothConnecting}</if>
<if test="bluetoothClosedTitle != null and bluetoothClosedTitle != ''"> and bluetooth_closed_content = #{bluetoothClosedContent}</if>
<if test="bluetoothClosedTitle != null and bluetoothClosedTitle != ''"> and bluetooth_closed_title = #{bluetoothClosedTitle}</if>
<if test="bluetoothClosed != null and bluetoothClosed != ''"> and bluetooth_closed = #{bluetoothClosed}</if>
<if test="bluetoothConnectFailTitle != null and bluetoothConnectFailTitle != ''"> and bluetooth_connect_fail_title = #{bluetoothConnectFailTitle}</if>
<if test="bluetoothConnectFailTitle != null and bluetoothConnectFailTitle != ''"> and bluetooth_connect_fail_content = #{bluetoothConnectFailContent}</if>
<if test="bluetoothConnectFail != null and bluetoothConnectFail != ''"> and bluetooth_connect_fail = #{bluetoothConnectFail}</if>
<if test="iotVersionUpgrade != null and iotVersionUpgrade != ''"> and iot_version_upgrade = #{iotVersionUpgrade}</if>
<if test="sortNo != null "> and sort_no = #{sortNo}</if>
<if test="status != null "> and status = #{status}</if>
@ -131,8 +145,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isPurchase != null">is_purchase,</if>
<if test="shoppingAppid != null">shopping_appid,</if>
<if test="shoppingPath != null">shopping_path,</if>
<if test="bluetoothConnectingTitle != null">bluetooth_connecting_title,</if>
<if test="bluetoothConnectingContent != null">bluetooth_connecting_Content,</if>
<if test="bluetoothConnecting != null">bluetooth_connecting,</if>
<if test="bluetoothClosedTitle != null">bluetooth_closed_title,</if>
<if test="bluetoothClosedContent != null">bluetooth_closed_content,</if>
<if test="bluetoothClosed != null">bluetooth_closed,</if>
<if test="bluetoothConnectFailTitle != null">bluetooth_connect_fail_title,</if>
<if test="bluetoothConnectFailContent != null">bluetooth_connect_fail_content,</if>
<if test="bluetoothConnectFail != null">bluetooth_connect_fail,</if>
<if test="iotVersionUpgrade != null">iot_version_upgrade,</if>
<if test="sortNo != null">sort_no,</if>
<if test="status != null">status,</if>
@ -169,8 +190,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isPurchase != null">#{isPurchase},</if>
<if test="shoppingAppid != null">#{shoppingAppid},</if>
<if test="shoppingPath != null">#{shoppingPath},</if>
<if test="bluetoothConnectingTitle != null">#{bluetoothConnectingTitle},</if>
<if test="bluetoothConnectingContent != null">#{bluetoothConnectingContent},</if>
<if test="bluetoothConnecting != null">#{bluetoothConnecting},</if>
<if test="bluetoothClosedTitle != null">#{bluetoothClosedTitle},</if>
<if test="bluetoothClosedContent != null">#{bluetoothClosedContent},</if>
<if test="bluetoothClosed != null">#{bluetoothClosed},</if>
<if test="bluetoothConnectFailTitle != null">#{bluetoothConnectFailTitle},</if>
<if test="bluetoothConnectFailContent != null">#{bluetoothConnectFailContent},</if>
<if test="bluetoothConnectFail != null">#{bluetoothConnectFail},</if>
<if test="iotVersionUpgrade != null">#{iotVersionUpgrade},</if>
<if test="sortNo != null">#{sortNo},</if>
<if test="status != null">#{status},</if>
@ -211,8 +239,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isPurchase != null">is_purchase = #{isPurchase},</if>
<if test="shoppingAppid != null">shopping_appid = #{shoppingAppid},</if>
<if test="shoppingPath != null">shopping_path = #{shoppingPath},</if>
<if test="bluetoothConnectingTitle != null">bluetooth_connecting_title = #{bluetoothConnectingTitle},</if>
<if test="bluetoothConnectingContent != null">bluetooth_connecting_content = #{bluetoothConnectingContent},</if>
<if test="bluetoothConnecting != null">bluetooth_connecting = #{bluetoothConnecting},</if>
<if test="bluetoothClosedTitle != null">bluetooth_closed_title = #{bluetoothClosedTitle},</if>
<if test="bluetoothClosedContent != null">bluetooth_closed_content = #{bluetoothClosedContent},</if>
<if test="bluetoothClosed != null">bluetooth_closed = #{bluetoothClosed},</if>
<if test="bluetoothConnectFailTitle != null">bluetooth_connect_fail_title = #{bluetoothConnectFailTitle},</if>
<if test="bluetoothConnectFailContent != null">bluetooth_connect_fail_content = #{bluetoothConnectFailContent},</if>
<if test="bluetoothConnectFail != null">bluetooth_connect_fail = #{bluetoothConnectFail},</if>
<if test="iotVersionUpgrade != null">iot_version_upgrade = #{iotVersionUpgrade},</if>
<if test="sortNo != null">sort_no = #{sortNo},</if>
<if test="status != null">status = #{status},</if>

@ -9,13 +9,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="instrumentId" column="instrument_id" />
<result property="modeId" column="mode_id" />
<result property="modeSort" column="mode_sort" />
<result property="isNew" column="is_new" />
<result property="status" column="status" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectWxInstrumentModeVo">
select id, instrument_id, mode_id, mode_sort, status, create_by, create_time from wx_instrument_mode
select id, instrument_id, mode_id, mode_sort, is_new, status, create_by, create_time from wx_instrument_mode
</sql>
<select id="selectWxInstrumentModeList" parameterType="WxInstrumentMode" resultMap="WxInstrumentModeResult">
@ -23,6 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<if test="instrumentId != null "> and instrument_id = #{instrumentId}</if>
<if test="modeId != null "> and mode_id = #{modeId}</if>
<if test="isNew != null "> and is_new = #{isNew}</if>
<if test="status != null "> and status = #{status}</if>
</where>
order by mode_sort
@ -39,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="instrumentId != null">instrument_id,</if>
<if test="modeId != null">mode_id,</if>
<if test="modeSort != null">mode_sort,</if>
<if test="isNew != null">is_new,</if>
<if test="status != null">status,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
@ -47,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="instrumentId != null">#{instrumentId},</if>
<if test="modeId != null">#{modeId},</if>
<if test="modeSort != null">#{modeSort},</if>
<if test="isNew != null">#{isNew},</if>
<if test="status != null">#{status},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
@ -59,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="instrumentId != null">instrument_id = #{instrumentId},</if>
<if test="modeId != null">mode_id = #{modeId},</if>
<if test="modeSort != null">mode_sort = #{modeSort},</if>
<if test="isNew != null">isNew = #{isNew},</if>
<if test="status != null">status = #{status},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>

@ -716,7 +716,35 @@
<div slot="tip" class="el-upload__tip">只能上传一个文件</div>
</el-upload>
</el-form-item>
<el-form-item label="蓝牙关闭图片" prop="bluetoothClosed">
<el-form-item label="蓝牙连接中标题" prop="bluetoothConnectingTitle">
<el-input v-model="form.bluetoothConnectingTitle" placeholder="请输入蓝牙连接中标题"/>
</el-form-item>
<el-form-item label="蓝牙连接中文案" prop="bluetoothConnectingContent">
<el-input v-model="form.bluetoothConnectingContent" placeholder="请输入蓝牙连接中文案"/>
</el-form-item>
<el-form-item label="蓝牙连接失败图片" prop="bluetoothConnectFail">
<el-upload
class="upload-demo"
:action="uploadUrl"
:headers="headers"
:limit="1"
:on-exceed="bluetoothFailUploadExceed"
:on-success="bluetoothFailUploadSuccess"
:on-error="uploadError"
:file-list="bluetoothConnectFailFile.fileList"
accept=".png,.jpg,.jpeg,.gif,.mpeg,.mp4,.avi,.mov,.wmv"
>
<el-button size="small" type="primary">点击上传</el-button>
<div slot="tip" class="el-upload__tip">只能上传一个文件</div>
</el-upload>
</el-form-item>
<el-form-item label="蓝牙连接失败标题" prop="bluetoothConnectFailTitle">
<el-input v-model="form.bluetoothConnectFailTitle" placeholder="请输入蓝牙连接失败标题"/>
</el-form-item>
<el-form-item label="蓝牙连接失败文案" prop="bluetoothConnectFailContent">
<el-input v-model="form.bluetoothConnectFailContent" placeholder="请输入蓝牙连接失败文案"/>
</el-form-item>
<el-form-item label="蓝牙断开连接图片" prop="bluetoothClosed">
<el-upload
class="upload-demo"
:action="uploadUrl"
@ -732,6 +760,12 @@
<div slot="tip" class="el-upload__tip">只能上传一个文件</div>
</el-upload>
</el-form-item>
<el-form-item label="蓝牙断开连接标题" prop="bluetoothClosedTitle">
<el-input v-model="form.bluetoothClosedTitle" placeholder="请输入蓝牙断开连接标题"/>
</el-form-item>
<el-form-item label="蓝牙断开连接文案" prop="bluetoothClosedContent">
<el-input v-model="form.bluetoothClosedContent" placeholder="请输入蓝牙断开连接文案"/>
</el-form-item>
<el-form-item label="iot版本升级说明" prop="iotVersionUpgrade">
<editor
v-model="form.iotVersionUpgrade"
@ -998,6 +1032,11 @@ export default {
fileList: [],
},
/* 蓝牙断开连接文件 */
bluetoothConnectFailFile: {
uploadHide: false,
fileList: [],
},
/* 蓝牙断开连接文件 */
bluetoothClosedFile: {
uploadHide: false,
fileList: [],
@ -1199,8 +1238,15 @@ export default {
isPurchase: 0,
shoppingAppid: null,
shoppingPath: null,
bluetoothConnectingTitle: null,
bluetoothConnectingContent: null,
bluetoothConnecting: null,
bluetoothClosed: null,
bluetoothClosedTitle: null,
bluetoothClosedContent: null,
bluetoothConnectFail: null,
bluetoothConnectFailTitle: null,
bluetoothConnectFailContent: null,
iotVersionUpgrade: null,
sortNo: 1000,
status: null,
@ -1254,6 +1300,11 @@ export default {
uploadHide: false,
fileList: [],
}
/* 蓝牙连接失败文件 */
this.bluetoothConnectFailFile = {
uploadHide: false,
fileList: [],
}
/* 蓝牙断开连接文件 */
this.bluetoothClosedFile = {
uploadHide: false,
@ -1336,39 +1387,59 @@ export default {
fileList: [{name: '', url: this.form.serial}],
}
/* 手写绑定介绍视频/图片 */
this.manualFile = {
uploadHide: true,
fileList: [
{name: '手写绑定介绍视频/图片', url: this.form.manualCodeBinding},
],
if (this.form.manualCodeBinding != null) {
this.manualFile = {
uploadHide: true,
fileList: [
{name: '手写绑定介绍视频/图片', url: this.form.manualCodeBinding},
],
}
}
/* 扫码绑定介绍视频/图片 */
this.scanFile = {
uploadHide: true,
fileList: [
{name: '扫码绑定介绍视频/图片', url: this.form.scanCodeBinding},
],
if (this.form.scanCodeBinding != null) {
this.scanFile = {
uploadHide: true,
fileList: [
{name: '扫码绑定介绍视频/图片', url: this.form.scanCodeBinding},
],
}
}
/* iot升级数据文件 */
this.iotUpgradeFile = {
uploadHide: true,
fileList: [
{name: 'iot升级数据文件', url: this.form.iotUpgradeData},
],
if (this.form.iotUpgradeData != null) {
this.iotUpgradeFile = {
uploadHide: true,
fileList: [
{name: 'iot升级数据文件', url: this.form.iotUpgradeData},
],
}
}
/* 蓝牙连接文件 */
this.bluetoothConnectFile = {
uploadHide: true,
fileList: [
{name: '蓝牙连接文件', url: this.form.bluetoothConnecting},
],
if (this.form.bluetoothConnecting != null) {
this.bluetoothConnectFile = {
uploadHide: true,
fileList: [
{name: '蓝牙连接文件', url: this.form.bluetoothConnecting},
],
}
}
/* 蓝牙连接失败文件 */
if (this.form.bluetoothConnectFail != null) {
this.bluetoothConnectFailFile = {
uploadHide: true,
fileList: [
{name: '蓝牙连接失败文件', url: this.form.bluetoothConnectFail},
],
}
}
/* 蓝牙断开连接文件 */
this.bluetoothClosedFile = {
uploadHide: false,
fileList: [
{name: '蓝牙断开连接文件', url: this.form.bluetoothClosed},
],
if (this.form.bluetoothClosed != null) {
this.bluetoothClosedFile = {
uploadHide: false,
fileList: [
{name: '蓝牙断开连接文件', url: this.form.bluetoothClosed},
],
}
}
//
if (this.form.isExtraClock == 1) {
@ -1546,6 +1617,17 @@ export default {
}
},
/* 蓝牙断开连接图片 */
bluetoothFailUploadExceed(files, fileList) {
this.$message.warning(`您已上传了文件,如需更换,请先删除原上传的文件`)
},
bluetoothFailUploadSuccess(response, file) {
if (response.code == 200) {
this.form.bluetoothConnectFail = response.data.url
} else {
this.$message.error('图片插入失败')
}
},
/* 蓝牙断开连接图片 */
bluetoothClosedUploadExceed(files, fileList) {
this.$message.warning(`您已上传了文件,如需更换,请先删除原上传的文件`)
},

Loading…
Cancel
Save