diff --git a/nezha-fronted/src/components/common/js/validate.js b/nezha-fronted/src/components/common/js/validate.js index f75f6cc8f..bcf9a0f99 100644 --- a/nezha-fronted/src/components/common/js/validate.js +++ b/nezha-fronted/src/components/common/js/validate.js @@ -160,6 +160,16 @@ export function checkExpressionAge (rule, value, callback) { }, 100) } +export function checkExprTempAge (rule, value, callback) { + setTimeout(() => { + if (value.length > 256) { + return callback(vm.$t('overall.checkAssetAge')) + } else { + callback() + } + }, 100) +} + export function longAndLat (rule, value, callback) { // 校验经纬度 } diff --git a/nezha-fronted/src/components/common/rightBox/dcBox.vue b/nezha-fronted/src/components/common/rightBox/dcBox.vue index 9d2d627ff..90723fd45 100644 --- a/nezha-fronted/src/components/common/rightBox/dcBox.vue +++ b/nezha-fronted/src/components/common/rightBox/dcBox.vue @@ -84,10 +84,10 @@ export default { rules: { name: [ { required: true, message: this.$t('validate.required'), trigger: 'blur' } - ], - state: [ - { required: true, message: this.$t('validate.required'), trigger: 'blur' } ] + // state: [ + // { required: true, message: this.$t('validate.required'), trigger: 'blur' } + // ] }, areaData: [], coordinateFlag: false diff --git a/nezha-fronted/src/components/common/rightBox/exprTmplBox.vue b/nezha-fronted/src/components/common/rightBox/exprTmplBox.vue index 7c2d0c7da..b282a6174 100644 --- a/nezha-fronted/src/components/common/rightBox/exprTmplBox.vue +++ b/nezha-fronted/src/components/common/rightBox/exprTmplBox.vue @@ -73,7 +73,7 @@