NEZ-692 fix: 二级页面复数去除
This commit is contained in:
@@ -132,17 +132,17 @@ export default {
|
|||||||
panel: [
|
panel: [
|
||||||
{ prop: 'panelTab', name: this.$t('overall.detail'), active: true },
|
{ prop: 'panelTab', name: this.$t('overall.detail'), active: true },
|
||||||
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false },
|
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false },
|
||||||
{ prop: 'endpointTab', name: 'Endpoints', active: false }
|
{ prop: 'endpointTab', name: 'Endpoint', active: false }
|
||||||
],
|
],
|
||||||
alertMessage: [
|
alertMessage: [
|
||||||
{ prop: 'panelTab', name: this.$t('overall.detail'), active: false },
|
{ prop: 'panelTab', name: this.$t('overall.detail'), active: false },
|
||||||
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: true },
|
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: true },
|
||||||
{ prop: 'endpointTab', name: 'Endpoints', active: false }
|
{ prop: 'endpointTab', name: 'Endpoint', active: false }
|
||||||
],
|
],
|
||||||
endpoint: [
|
endpoint: [
|
||||||
{ prop: 'panelTab', name: this.$t('overall.detail'), active: false },
|
{ prop: 'panelTab', name: this.$t('overall.detail'), active: false },
|
||||||
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false },
|
{ prop: 'alertMessageTab', name: this.$t('overall.alert'), active: false },
|
||||||
{ prop: 'endpointTab', name: 'Endpoints', active: true }
|
{ prop: 'endpointTab', name: 'Endpoint', active: true }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
|
|||||||
@@ -742,7 +742,7 @@ const en = {
|
|||||||
cabinetNum: 'Cabinet',
|
cabinetNum: 'Cabinet',
|
||||||
assets: 'Asset',
|
assets: 'Asset',
|
||||||
remark: 'Description',
|
remark: 'Description',
|
||||||
cabinets: 'Cabinets',
|
cabinets: 'Cabinet',
|
||||||
createDc: 'New data center',
|
createDc: 'New data center',
|
||||||
editDc: 'Edit data center',
|
editDc: 'Edit data center',
|
||||||
editCabinet: 'Edit cabinet',
|
editCabinet: 'Edit cabinet',
|
||||||
|
|||||||
@@ -65,7 +65,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import latlngPicker from '../latlngPicker'
|
import latlngPicker from '../latlngPicker'
|
||||||
const regNum = /^[0-9]+.?[0-9]*/
|
const regNum = /^[0-9]+.?[0-9]*/
|
||||||
import {isvalidPhone} from "../../../store/validate";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'dcBox',
|
name: 'dcBox',
|
||||||
@@ -77,15 +76,6 @@ export default {
|
|||||||
userData: Array
|
userData: Array
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
const phoneVerification = (rule, value,callback) => {
|
|
||||||
if (!value){
|
|
||||||
callback(new Error(this.$t('validate.telephone')))
|
|
||||||
}else if (!isvalidPhone(value)){
|
|
||||||
callback(new Error(this.$t('validate.tel')))
|
|
||||||
}else {
|
|
||||||
callback()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return {
|
return {
|
||||||
editDc: {},
|
editDc: {},
|
||||||
rules: {
|
rules: {
|
||||||
@@ -94,10 +84,6 @@ export default {
|
|||||||
],
|
],
|
||||||
state: [
|
state: [
|
||||||
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
|
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
|
||||||
],
|
|
||||||
tel: [
|
|
||||||
{ validator: phoneVerification, required: true, trigger: 'blur' },
|
|
||||||
{ required: true, message: '', trigger: 'blur' }
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
areaData: [],
|
areaData: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user