diff --git a/pages/210/historyRecords/index.vue b/pages/210/historyRecords/index.vue index 02409e3..b7c7a5b 100644 --- a/pages/210/historyRecords/index.vue +++ b/pages/210/historyRecords/index.vue @@ -1,8 +1,74 @@ \ No newline at end of file diff --git a/pages/6170/deviceControl/index.vue b/pages/6170/deviceControl/index.vue index e205ef5..f9532d8 100644 --- a/pages/6170/deviceControl/index.vue +++ b/pages/6170/deviceControl/index.vue @@ -136,19 +136,23 @@ 单位: - + 姓名: - + 职位: - + ID: - + @@ -160,7 +164,8 @@ - + @@ -359,6 +364,15 @@ } }, methods: { + filterChinese(e) { + const value = e.detail.value; + // 允许中文和常见中文标点 + this.messageToSend = value.replace(/[^\u4e00-\u9fa5,。?!、;:“”‘’()【】《》…—]/g, ''); + // 修复某些平台输入法兼容性问题 + this.$nextTick(() => { + e.target.value = this.messageToSend; + }); + }, // 点击弹框外的区域关闭 closePopup() { this.lightModeA = false; @@ -1321,6 +1335,7 @@ .form-label { font-size: 32rpx; color: rgba(255, 255, 255, 0.87); + white-space: nowrap; } .form-input { @@ -1328,6 +1343,7 @@ border: 1rpx solid transparent; font-size: 32rpx; color: rgba(255, 255, 255, 0.87); + width: 100%; } .form-input1 {