|
@@ -617,8 +617,8 @@ export default {
|
|
|
ElMessageBox.prompt('当装置是通过编号来确认端子信号收发(如PM接收的"线路5A相失灵"端子)时才设置此编号:', '装置端子编号', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
- inputPattern: /^[^\s]{1,5}$/,
|
|
|
- inputErrorMessage: '编号格式不正确:只支持不超过5位的非空字符!',
|
|
|
+ inputPattern: /^[^\s]{0,5}$/,
|
|
|
+ inputErrorMessage: '编号格式不正确:只支持不超过5位的字符!',
|
|
|
inputValue:ied[0].ied_no,
|
|
|
}).then(({ value }) => {
|
|
|
// 用户点击确定,value 是输入的内容
|