|
|
@@ -4,21 +4,20 @@
|
|
|
title="属性配置"
|
|
|
@confirm="onSave"
|
|
|
>
|
|
|
- <div class="c-grid-form mini u-align-self--center">
|
|
|
- <span class="c-grid-form__label">回采卡IP</span>
|
|
|
- <div class="l-flex--row c-grid-form__option">
|
|
|
- <el-input
|
|
|
- v-model.trim="attributes.recoveryCardIP"
|
|
|
- placeholder="192.168.0.11"
|
|
|
- maxlength="15"
|
|
|
- />
|
|
|
- </div>
|
|
|
+ <div class="c-grid-form medium u-align-self--center">
|
|
|
+ <span class="c-grid-form__label">回采卡推流地址</span>
|
|
|
+ <el-input
|
|
|
+ v-model.trim="attributes.recoveryCardIP"
|
|
|
+ class="c-grid-form__option"
|
|
|
+ placeholder="rtsp://192.168.0.11:8554"
|
|
|
+ clearable
|
|
|
+ />
|
|
|
</div>
|
|
|
</confirm-dialog>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { validIPv4 } from '@/utils/validate'
|
|
|
+import { validIPv4Address } from '@/utils/validate'
|
|
|
import {
|
|
|
getAttributes,
|
|
|
updateAttributes
|
|
|
@@ -26,8 +25,8 @@ import {
|
|
|
|
|
|
const attributeSet = [
|
|
|
{ key: 'recoveryCardIP', valid (val) {
|
|
|
- if (val && !validIPv4(val)) {
|
|
|
- return '回采卡IP格式错误'
|
|
|
+ if (val && !validIPv4Address(val)) {
|
|
|
+ return '回采卡推流地址格式错误'
|
|
|
}
|
|
|
return null
|
|
|
} }
|