7305修改人员信息的点阵方式
This commit is contained in:
@ -87,8 +87,8 @@
|
||||
<text class="usrtitle fleft">人员信息登记</text>
|
||||
<view class="btnSend fright" v-on:click.stop="sendUsr">发送</view>
|
||||
<view class="clear"></view>
|
||||
<textToDotMatrix class="TextToHex" ref="textToHex" :txts="formData.textLines" :bgColor="'#FFFFFF'"
|
||||
:color="'#000000'" :fontSize="14" />
|
||||
<textToDotMatrixV1 class="TextToHex" ref="textToHex" :txts="formData.textLines" :bgColor="'#FFFFFF'"
|
||||
:color="'#000000'" :fontSize="13" />
|
||||
</view>
|
||||
|
||||
<view class="item">
|
||||
@ -147,7 +147,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import textToDotMatrix from '@/components/TextToHex/textToDotMatrix.vue';
|
||||
import textToDotMatrixV1 from '@/components/TextToHex/textToDotMatrixV1.vue';
|
||||
import bleTool from '@/utils/BleHelper.js';
|
||||
import usrApi from '@/api/670/HBY670.js'
|
||||
import {
|
||||
@ -165,7 +165,7 @@
|
||||
var pagePath = "pages/7305/BJQ7305";
|
||||
export default {
|
||||
components: {
|
||||
textToDotMatrix
|
||||
textToDotMatrixV1
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@ -1023,6 +1023,24 @@
|
||||
these.showBleUnConnect()
|
||||
return;
|
||||
}
|
||||
let err=false;
|
||||
this.formData.textLines.find((txt)=>{
|
||||
if(txt.length===0 || txt.length>5){
|
||||
console.log("txt=",txt);
|
||||
err=true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
})
|
||||
if(err){
|
||||
this.showPop({
|
||||
message: "单位、部门、姓名必须填写且最多5字",
|
||||
iconUrl: "/static/images/6155/DeviceDetail/uploadErr.png",
|
||||
borderColor: "#e034344d",
|
||||
buttonBgColor: "#E03434",
|
||||
});
|
||||
return;
|
||||
}
|
||||
showLoading(these, {
|
||||
text: "请稍候..."
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user