NEZ-916 feat: module endpoint 支持relabel

This commit is contained in:
zhangyu
2021-08-19 15:54:38 +08:00
parent 9167bb2107
commit 2113c435a4
10 changed files with 326 additions and 36 deletions

View File

@@ -18,11 +18,11 @@ export const agent = {
value: 2,
text: 'Per-datacenter'
},
{
label: 'Loki',
value: 11,
text: 'Loki'
}
// {
// label: 'Loki',
// value: 11,
// text: 'Loki'
// }
]
},
{
@@ -70,12 +70,12 @@ export const agent2 = {
label: 'Per-datacenter',
value: 2,
text: 'Per-datacenter'
},
{
label: 'Loki',
value: 11,
text: 'Loki'
}
// {
// label: 'Loki',
// value: 11,
// text: 'Loki'
// }
],
theDataGroup: [
{

View File

@@ -170,6 +170,14 @@ export function checkExprTempAge (rule, value, callback) {
}, 100)
}
export function arrLength (rule, value, callback) { // 校验经纬度
if (value.length > 0) {
callback()
} else {
callback(new Error(vm.$t('validate.required')))
}
}
export function longAndLat (rule, value, callback) { // 校验经纬度
}