NEZ-896 fix: Asset/Asset新增界面部分,添加必填标识
This commit is contained in:
@@ -58,15 +58,18 @@ export default {
|
|||||||
if (zoom != '100%') {
|
if (zoom != '100%') {
|
||||||
// 缩放时显示弹框
|
// 缩放时显示弹框
|
||||||
this.browserWindowZoom = true
|
this.browserWindowZoom = true
|
||||||
|
// 定义开关防止重复触发
|
||||||
let flag = true
|
let flag = true
|
||||||
// 防止重复触发
|
|
||||||
// 定时器5秒后隐藏弹框
|
// 定时器5秒后隐藏弹框
|
||||||
if (flag === true) {
|
if (flag === true) {
|
||||||
|
// 设置定时器
|
||||||
this.timer = setTimeout(() => {
|
this.timer = setTimeout(() => {
|
||||||
this.browserWindowZoom = false
|
this.browserWindowZoom = false
|
||||||
}, 5000)
|
}, 5000)
|
||||||
|
// 关闭
|
||||||
flag = false
|
flag = false
|
||||||
}
|
}
|
||||||
|
// 打开
|
||||||
flag = true
|
flag = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -345,6 +345,12 @@ export default {
|
|||||||
authProtocolPort: [
|
authProtocolPort: [
|
||||||
// { required: true, message: this.$t('validate.required'), trigger: 'change' },
|
// { required: true, message: this.$t('validate.required'), trigger: 'change' },
|
||||||
{ validator: port, trigger: 'blur' }
|
{ validator: port, trigger: 'blur' }
|
||||||
|
],
|
||||||
|
sn: [
|
||||||
|
{ required: true, message: this.$t('validate.required'), trigger: 'change' }
|
||||||
|
],
|
||||||
|
location: [
|
||||||
|
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
cabRules: {
|
cabRules: {
|
||||||
|
|||||||
Reference in New Issue
Block a user