feat: 补充页面路由使用 url path 传递参数
This commit is contained in:
@@ -153,16 +153,18 @@
|
|||||||
right: 8px;
|
right: 8px;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
}
|
}
|
||||||
|
.license-warn{
|
||||||
|
color: #d92926;
|
||||||
|
margin-top: 22px;
|
||||||
|
text-align: center;
|
||||||
|
text-shadow: 1px 1px 3px #ddd;
|
||||||
|
}
|
||||||
.login-license{
|
.login-license{
|
||||||
margin-top: 27px;
|
margin-top: 27px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
.license-warn{
|
|
||||||
color: #d92926;
|
|
||||||
text-shadow: 1px 1px 3px #ddd;
|
|
||||||
}
|
|
||||||
.license-info {
|
.license-info {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
color: white;
|
color: white;
|
||||||
|
|||||||
@@ -26,8 +26,8 @@
|
|||||||
<button v-if="!verifyShow" id="login" v-loading="loading" :class="{'nz-btn-disabled': !license.valid}" class="login-btn" @click="login">Login</button>
|
<button v-if="!verifyShow" id="login" v-loading="loading" :class="{'nz-btn-disabled': !license.valid}" class="login-btn" @click="login">Login</button>
|
||||||
<button v-if="verifyShow" id="verify" v-loading="loading" :class="{'nz-btn-disabled': !license.valid}" class="login-btn" @click="verify">{{$t("login.verify")}}</button>
|
<button v-if="verifyShow" id="verify" v-loading="loading" :class="{'nz-btn-disabled': !license.valid}" class="login-btn" @click="verify">{{$t("login.verify")}}</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="license-warn" v-if="license.warnInfo">{{license.warnInfo}}</div>
|
||||||
<div class="login-license">
|
<div class="login-license">
|
||||||
<div class="license-warn" v-if="license.warnInfo">{{license.warnInfo}}</div>
|
|
||||||
<!-- <div v-if="!license.valid" class="license-info">INSTALLATION ID: {{license.token}}</div>-->
|
<!-- <div v-if="!license.valid" class="license-info">INSTALLATION ID: {{license.token}}</div>-->
|
||||||
<div v-if="!license.valid" class="license-upload">
|
<div v-if="!license.valid" class="license-upload">
|
||||||
<!-- <button type="button" class="login-btn" @click="downloadMib"><span style="margin-right: 5px"><i class="nz-icon nz-icon-download1"></i></span>{{$t('license.dowLicense')}}</button>-->
|
<!-- <button type="button" class="login-btn" @click="downloadMib"><span style="margin-right: 5px"><i class="nz-icon nz-icon-download1"></i></span>{{$t('license.dowLicense')}}</button>-->
|
||||||
|
|||||||
@@ -296,20 +296,432 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
const searchKeys = {
|
// {
|
||||||
// key: path 键
|
// // key: path 键
|
||||||
// value: vue set 参数
|
// // value: vue set 参数
|
||||||
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
// pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
// pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
// orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
id: { target: this.searchLabel, propertyName: 'id', type: 'number' },
|
// ids: { target: this.searchLabel, propertyName: 'ids', type: 'number' },
|
||||||
severityIds: { target: this.searchLabel, propertyName: 'severityIds', type: 'string' },
|
// severityIds: { target: this.searchLabel, propertyName: 'severityIds', type: 'string' },
|
||||||
type: { target: this.searchLabel, propertyName: 'type', type: 'number' },
|
// type: { target: this.searchLabel, propertyName: 'type', type: 'number' },
|
||||||
name: { target: this.searchLabel, propertyName: 'name', type: 'string' },
|
// name: { target: this.searchLabel, propertyName: 'name', type: 'string' },
|
||||||
typeIds: { target: this.searchCheckBox, propertyName: 'typeIds', type: 'number' },
|
// typeIds: { target: this.searchCheckBox, propertyName: 'typeIds', type: 'number' },
|
||||||
ping: { target: this.searchCheckBox, propertyName: 'ping', type: 'string' },
|
// ping: { target: this.searchCheckBox, propertyName: 'ping', type: 'string' },
|
||||||
modelIds: { target: this.searchCheckBox, propertyName: 'modelIds', type: 'number' },
|
// modelIds: { target: this.searchCheckBox, propertyName: 'modelIds', type: 'number' },
|
||||||
fields: { target: this.searchCheckBox, propertyName: 'fields', type: 'json' }
|
// fields: { target: this.searchCheckBox, propertyName: 'fields', type: 'json' }
|
||||||
|
// }
|
||||||
|
const path = this.$route.fullPath.match(/\/(\S*)\?/)[1]
|
||||||
|
let searchKeys = {}
|
||||||
|
if (path === 'dc') {
|
||||||
|
searchKeys = {
|
||||||
|
// key: path 键
|
||||||
|
// value: vue set 参数
|
||||||
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
|
ids: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'ids',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'ids',
|
||||||
|
label: 'ids',
|
||||||
|
name: 'ID',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'name',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'name',
|
||||||
|
label: 'name',
|
||||||
|
name: 'Name',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
location: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'location',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'location',
|
||||||
|
name: 'Location',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
state: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'state',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'dcState',
|
||||||
|
name: 'State',
|
||||||
|
readonly: true,
|
||||||
|
type: 'selectString',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (path === 'template') {
|
||||||
|
searchKeys = {
|
||||||
|
// key: path 键
|
||||||
|
// value: vue set 参数
|
||||||
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
|
ids: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'ids',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'ids',
|
||||||
|
label: 'ids',
|
||||||
|
name: 'ID',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'name',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'name',
|
||||||
|
label: 'name',
|
||||||
|
name: 'Name',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
gname: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'gname',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'gname',
|
||||||
|
name: 'Group',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (path === 'i18n') {
|
||||||
|
searchKeys = {
|
||||||
|
// key: path 键
|
||||||
|
// value: vue set 参数
|
||||||
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
|
ids: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'ids',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'ids',
|
||||||
|
label: 'ids',
|
||||||
|
name: 'ID',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
code: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'code',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'code',
|
||||||
|
name: 'Code',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
value: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'value',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'value',
|
||||||
|
name: 'Value',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
lang: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'lang',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'lang',
|
||||||
|
name: 'Lang',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (path === 'model') {
|
||||||
|
searchKeys = {
|
||||||
|
// key: path 键
|
||||||
|
// value: vue set 参数
|
||||||
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
|
ids: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'ids',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'ids',
|
||||||
|
label: 'ids',
|
||||||
|
name: 'ID',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'name',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'name',
|
||||||
|
label: 'name',
|
||||||
|
name: 'Name',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
brandIds: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'brandIds',
|
||||||
|
type: 'number',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'brandIds',
|
||||||
|
name: 'Brand',
|
||||||
|
readonly: true,
|
||||||
|
type: 'brand',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (path === 'operationLog' || path === 'profile') {
|
||||||
|
searchKeys = {
|
||||||
|
// key: path 键
|
||||||
|
// value: vue set 参数
|
||||||
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
|
type: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'type',
|
||||||
|
type: 'number',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 11,
|
||||||
|
label: 'type',
|
||||||
|
name: 'Type',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
username: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'username',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 12,
|
||||||
|
label: 'username',
|
||||||
|
name: 'User',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
operation: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'operation',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 13,
|
||||||
|
label: 'operation',
|
||||||
|
name: 'Operation',
|
||||||
|
type: 'selectString',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
state: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'state',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 16,
|
||||||
|
label: 'state',
|
||||||
|
name: 'State',
|
||||||
|
readonly: true,
|
||||||
|
type: 'selectString',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
operaId: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'operaId',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 14,
|
||||||
|
label: 'operaId',
|
||||||
|
name: 'Resources',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
params: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'params',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 17,
|
||||||
|
label: 'params',
|
||||||
|
name: 'Params',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (path === 'agent') {
|
||||||
|
searchKeys = {
|
||||||
|
// key: path 键
|
||||||
|
// value: vue set 参数
|
||||||
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
|
ids: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'ids',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'ids',
|
||||||
|
label: 'ids',
|
||||||
|
name: 'ID',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
state: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'state',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'promState',
|
||||||
|
name: 'State',
|
||||||
|
readonly: true,
|
||||||
|
type: 'select',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
dc: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'dc',
|
||||||
|
type: 'number',
|
||||||
|
defaultJson: {
|
||||||
|
name: 'Date center',
|
||||||
|
type: 'dc',
|
||||||
|
label: 'dcIds',
|
||||||
|
disabled: false,
|
||||||
|
val: '',
|
||||||
|
valnum: '',
|
||||||
|
valString: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'valnum',
|
||||||
|
strKey: 'val',
|
||||||
|
listStr: 'dcSelect'
|
||||||
|
},
|
||||||
|
type: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'type',
|
||||||
|
type: 'number',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'promType',
|
||||||
|
name: 'Type',
|
||||||
|
readonly: true,
|
||||||
|
type: 'select',
|
||||||
|
val: '',
|
||||||
|
valnum: '',
|
||||||
|
valString: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'valnum',
|
||||||
|
strKey: 'val',
|
||||||
|
listStr: 'history_once'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (path === 'roles') {
|
||||||
|
searchKeys = {
|
||||||
|
// key: path 键
|
||||||
|
// value: vue set 参数
|
||||||
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
|
name: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'name',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'name',
|
||||||
|
label: 'name',
|
||||||
|
name: 'Name',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.initQueryFromPath(searchKeys)
|
this.initQueryFromPath(searchKeys)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,19 +6,19 @@ export default {
|
|||||||
const q = this.$route.query
|
const q = this.$route.query
|
||||||
lodash.forIn(searchKeys, (val, key) => {
|
lodash.forIn(searchKeys, (val, key) => {
|
||||||
let qv = lodash.get(q, key)
|
let qv = lodash.get(q, key)
|
||||||
console.log(qv, q, key, val)
|
|
||||||
if (qv && val.type == 'number') {
|
if (qv && val.type == 'number') {
|
||||||
qv = lodash.toNumber(qv)
|
qv = lodash.toNumber(qv)
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.setSearchInput(val, qv)
|
this.setSearchInput(val, qv)
|
||||||
}, 200)
|
}, 200)
|
||||||
|
console.log()
|
||||||
qv && this.$set(val.target, val.propertyName, qv)
|
qv && this.$set(val.target, val.propertyName, qv)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 更新path,包含请求参数
|
// 更新path,包含请求参数
|
||||||
updatePath (param, path) {
|
updatePath (param, path) {
|
||||||
// console.log(param)
|
console.log(param)
|
||||||
this.$router.replace({ path: path, query: param }).catch(err => {})
|
this.$router.replace({ path: path, query: param }).catch(err => {})
|
||||||
},
|
},
|
||||||
setSearchInput (val, qv) {
|
setSearchInput (val, qv) {
|
||||||
@@ -32,10 +32,17 @@ export default {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const obj = lodash.cloneDeep(val.defaultJson)
|
const obj = lodash.cloneDeep(val.defaultJson)
|
||||||
obj[val.jsonKey] = qv
|
obj[val.jsonKey] = qv
|
||||||
|
console.log(obj[val.jsonKey])
|
||||||
|
if (val.strKey) {
|
||||||
|
this.$refs[dataList].$refs.searchInput[val.listStr].map((e) => {
|
||||||
|
console.log(e)
|
||||||
|
obj[val.strKey] = e.name
|
||||||
|
})
|
||||||
|
}
|
||||||
this.$refs[dataList].$refs.searchInput.select_list.push(obj)
|
this.$refs[dataList].$refs.searchInput.select_list.push(obj)
|
||||||
this.$refs[dataList].$refs.searchInput.sreach_num++
|
this.$refs[dataList].$refs.searchInput.sreach_num++
|
||||||
// this.$refs[dataList].$refs.searchInput.searchLabelList = this.$refs[dataList].$refs.searchInput.searchLabelList.filter(item => item.label !== 'projectIds')
|
// this.$refs[dataList].$refs.searchInput.searchLabelList = this.$refs[dataList].$refs.searchInput.searchLabelList.filter(item => item.label !== 'projectIds')
|
||||||
})
|
}, 500)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -401,12 +401,90 @@ export default {
|
|||||||
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
ids: { target: this.searchLabel, propertyName: 'ids', type: 'number' },
|
ids: {
|
||||||
endpointName: { target: this.searchLabel, propertyName: 'endpointName', type: 'string' },
|
target: this.searchLabel,
|
||||||
summary: { target: this.searchLabel, propertyName: 'summary', type: 'number' },
|
propertyName: 'ids',
|
||||||
ruleName: { target: this.searchLabel, propertyName: 'ruleName', type: 'string' },
|
type: 'number',
|
||||||
assetName: { target: this.searchLabel, propertyName: 'assetName', type: 'string' },
|
|
||||||
labels: { target: this.searchLabel, propertyName: 'labels', type: 'string' },
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 26,
|
||||||
|
label: 'ids',
|
||||||
|
name: 'ID',
|
||||||
|
type: 'id',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
endpointName: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'endpointName',
|
||||||
|
type: 'string',
|
||||||
|
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'endpointName',
|
||||||
|
name: 'Endpoint',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
summary: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'summary',
|
||||||
|
type: 'number',
|
||||||
|
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'summary',
|
||||||
|
name: 'Summary',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
ruleName: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'ruleName',
|
||||||
|
type: 'string',
|
||||||
|
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'ruleName',
|
||||||
|
name: 'Alert rule',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
assetName: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'assetName',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'assetName',
|
||||||
|
name: 'Asset ',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
labels: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'labels',
|
||||||
|
type: 'string',
|
||||||
|
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'labels',
|
||||||
|
name: 'Label',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
dcIds: { target: this.searchCheckBox, propertyName: 'dcIds', type: 'number' },
|
dcIds: { target: this.searchCheckBox, propertyName: 'dcIds', type: 'number' },
|
||||||
modelIds: { target: this.searchCheckBox, propertyName: 'modelIds', type: 'number' },
|
modelIds: { target: this.searchCheckBox, propertyName: 'modelIds', type: 'number' },
|
||||||
moduleIds: { target: this.searchCheckBox, propertyName: 'moduleIds', type: 'number' },
|
moduleIds: { target: this.searchCheckBox, propertyName: 'moduleIds', type: 'number' },
|
||||||
|
|||||||
@@ -342,35 +342,75 @@ export default {
|
|||||||
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
ids: { target: this.searchLabel, propertyName: 'ids', type: 'number' },
|
ids: {
|
||||||
severityIds: { target: this.searchLabel, propertyName: 'severityIds', type: 'string' },
|
target: this.searchLabel,
|
||||||
|
propertyName: 'ids',
|
||||||
|
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 1,
|
||||||
|
label: 'ids',
|
||||||
|
name: 'ID',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
severityIds: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'severityIds',
|
||||||
|
type: 'string',
|
||||||
|
isSearchInput: true,
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 4,
|
||||||
|
label: 'severityIds',
|
||||||
|
name: 'Priority',
|
||||||
|
readonly: true,
|
||||||
|
type: 'severity',
|
||||||
|
val: '',
|
||||||
|
valnum: '',
|
||||||
|
valString: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'valnum',
|
||||||
|
strKey: 'val',
|
||||||
|
listStr: 'severitySelect'
|
||||||
|
},
|
||||||
type: {
|
type: {
|
||||||
target: this.searchLabel,
|
target: this.searchLabel,
|
||||||
propertyName: 'type',
|
propertyName: 'type',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
isSearchInput: true,
|
isSearchInput: true,
|
||||||
defaultJson:
|
defaultJson: {
|
||||||
{
|
name: 'Type',
|
||||||
name: 'Type',
|
id: 5,
|
||||||
id: 5,
|
type: 'alertTypes',
|
||||||
type: 'alertTypes',
|
label: 'type',
|
||||||
label: 'type',
|
disabled: false,
|
||||||
disabled: false,
|
readonly: true,
|
||||||
readonly: true,
|
val: '',
|
||||||
val: 'Metrics',
|
valnum: '',
|
||||||
valnum: 1,
|
valString: ''
|
||||||
valString: ''
|
},
|
||||||
},
|
jsonKey: 'valnum',
|
||||||
jsonKey: 'valnum'
|
strKey: 'val',
|
||||||
|
listStr: 'alertTypesSelect'
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
target: this.searchLabel,
|
target: this.searchLabel,
|
||||||
propertyName: 'name',
|
propertyName: 'name',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
isSearchInput: true,
|
|
||||||
defaultJson: {
|
|
||||||
|
|
||||||
}
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 2,
|
||||||
|
label: 'name',
|
||||||
|
name: 'Name',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Object.keys(this.$route.query).forEach(key => {
|
Object.keys(this.$route.query).forEach(key => {
|
||||||
|
|||||||
@@ -244,8 +244,33 @@ export default {
|
|||||||
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
ids: { target: this.searchLabel, propertyName: 'ids', type: 'number' },
|
ids: {
|
||||||
matchers: { target: this.searchLabel, propertyName: 'matchers', type: 'string' }
|
target: this.searchLabel,
|
||||||
|
propertyName: 'ids',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'ids',
|
||||||
|
label: 'ids',
|
||||||
|
name: 'ID',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
matchers: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'matchers',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'matchers',
|
||||||
|
name: 'Matcher',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.initQueryFromPath(searchKeys)
|
this.initQueryFromPath(searchKeys)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -764,11 +764,82 @@ export default {
|
|||||||
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
ids: { target: this.searchLabel, propertyName: 'ids', type: 'number' },
|
ids: {
|
||||||
sn: { target: this.searchLabel, propertyName: 'sn', type: 'number' },
|
target: this.searchLabel,
|
||||||
name: { target: this.searchLabel, propertyName: 'name', type: 'string' },
|
propertyName: 'ids',
|
||||||
manageIp: { target: this.searchLabel, propertyName: 'manageIp', type: 'number' },
|
|
||||||
statistics: { target: this.searchLabel, propertyName: 'statistics', type: 'number' }
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'ids',
|
||||||
|
label: 'ids',
|
||||||
|
name: 'ID',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'name',
|
||||||
|
type: 'string',
|
||||||
|
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'name',
|
||||||
|
label: 'name',
|
||||||
|
name: 'Name',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
sn: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'sn',
|
||||||
|
type: 'number',
|
||||||
|
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'sn',
|
||||||
|
label: 'sn',
|
||||||
|
name: 'SN',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
manageIp: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'manageIp',
|
||||||
|
type: 'number',
|
||||||
|
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'manageIp',
|
||||||
|
label: 'manageIp',
|
||||||
|
name: 'IP',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
statistics: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'statistics',
|
||||||
|
type: 'number',
|
||||||
|
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'stateIds',
|
||||||
|
label: 'stateIds',
|
||||||
|
name: 'State',
|
||||||
|
readonly: true,
|
||||||
|
type: 'assetState',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.initQueryFromPath(searchKeys)
|
this.initQueryFromPath(searchKeys)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -294,9 +294,66 @@ export default {
|
|||||||
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
ids: { target: this.searchLabel, propertyName: 'ids', type: 'number' },
|
ids: {
|
||||||
name: { target: this.searchLabel, propertyName: 'name', type: 'string' },
|
target: this.searchLabel,
|
||||||
brandIds: { target: this.searchLabel, propertyName: 'brandIds', type: 'number' }
|
propertyName: 'ids',
|
||||||
|
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'ids',
|
||||||
|
label: 'ids',
|
||||||
|
name: 'ID',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'name',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'name',
|
||||||
|
label: 'name',
|
||||||
|
name: 'Name',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
key: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'key',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'key',
|
||||||
|
name: 'Key',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
groupIds: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'groupIds',
|
||||||
|
type: 'number',
|
||||||
|
isSearchInput: true,
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'group',
|
||||||
|
name: 'Group',
|
||||||
|
readonly: true,
|
||||||
|
type: 'group',
|
||||||
|
val: '',
|
||||||
|
searchType: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'searchType',
|
||||||
|
strKey: 'val',
|
||||||
|
listStr: 'groupSelect'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.initQueryFromPath(searchKeys)
|
this.initQueryFromPath(searchKeys)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -163,9 +163,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.$get('/sys/license/status', { scope: 'all' }).then(res => {
|
this.$get('/sys/license/status', { scope: 'all' }).then(res => {
|
||||||
res = statusDate
|
|
||||||
this.loading = false
|
|
||||||
return this.tableData = res.data.list
|
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.tableData = res.data.list
|
this.tableData = res.data.list
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|||||||
@@ -218,12 +218,6 @@ export default {
|
|||||||
this.$set(this.searchLabel, 'pageNo', this.pageObj.pageNo)
|
this.$set(this.searchLabel, 'pageNo', this.pageObj.pageNo)
|
||||||
this.$set(this.searchLabel, 'pageSize', this.pageObj.pageSize)
|
this.$set(this.searchLabel, 'pageSize', this.pageObj.pageSize)
|
||||||
this.tools.loading = true
|
this.tools.loading = true
|
||||||
const chartTempParam = {
|
|
||||||
...this.searchLabel,
|
|
||||||
...this.searchCheckBox
|
|
||||||
}
|
|
||||||
const path = this.fromRoute.chartTemp
|
|
||||||
this.updatePath(chartTempParam, path)
|
|
||||||
this.$get(this.url, { ...this.searchLabel, ...this.searchCheckBox, panelId: 0, returnChildren: 0, groupId: 0 }).then(response => {
|
this.$get(this.url, { ...this.searchLabel, ...this.searchCheckBox, panelId: 0, returnChildren: 0, groupId: 0 }).then(response => {
|
||||||
this.tools.loading = false
|
this.tools.loading = false
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
@@ -262,20 +256,6 @@ export default {
|
|||||||
},
|
},
|
||||||
panelReload () {},
|
panelReload () {},
|
||||||
panelReloadOnlyPanel () {}
|
panelReloadOnlyPanel () {}
|
||||||
},
|
|
||||||
created () {
|
|
||||||
const searchKeys = {
|
|
||||||
// key: path 键
|
|
||||||
// value: vue set 参数
|
|
||||||
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
|
||||||
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
|
||||||
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
|
||||||
ids: { target: this.searchLabel, propertyName: 'ids', type: 'number' },
|
|
||||||
type: { target: this.searchLabel, propertyName: 'type', type: 'string' },
|
|
||||||
name: { target: this.searchLabel, propertyName: 'name', type: 'string' },
|
|
||||||
varType: { target: this.searchLabel, propertyName: 'varType', type: 'number' }
|
|
||||||
}
|
|
||||||
this.initQueryFromPath(searchKeys)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -221,13 +221,107 @@ export default {
|
|||||||
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
host: { target: this.searchLabel, propertyName: 'host', type: 'string' },
|
host: {
|
||||||
username: { target: this.searchLabel, propertyName: 'username', type: 'string' },
|
target: this.searchLabel,
|
||||||
loginUser: { target: this.searchLabel, propertyName: 'loginUser', type: 'string' },
|
propertyName: 'host',
|
||||||
remoteAddr: { target: this.searchLabel, propertyName: 'remoteAddr', type: 'string' },
|
type: 'string',
|
||||||
uuid: { target: this.searchLabel, propertyName: 'uuid', type: 'string' },
|
defaultJson: {
|
||||||
protocol: { target: this.searchLabel, propertyName: 'protocol', type: 'string' },
|
disabled: false,
|
||||||
state: { target: this.searchLabel, propertyName: 'state', type: 'number' }
|
id: 11,
|
||||||
|
label: 'host',
|
||||||
|
name: 'Login host',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
username: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'username',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 14,
|
||||||
|
label: 'username',
|
||||||
|
name: 'Source user',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
loginUser: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'loginUser',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 12,
|
||||||
|
label: 'loginUser',
|
||||||
|
name: 'Login user',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
remoteAddr: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'remoteAddr',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 13,
|
||||||
|
label: 'remoteAddr',
|
||||||
|
name: 'Source IP',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
uuid: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'uuid',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 15,
|
||||||
|
label: 'uuid',
|
||||||
|
name: 'UUID',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
protocol: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'protocol',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 16,
|
||||||
|
label: 'protocol',
|
||||||
|
name: 'Protocol',
|
||||||
|
readonly: true,
|
||||||
|
type: 'selectString',
|
||||||
|
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
state: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'state',
|
||||||
|
type: 'number',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 17,
|
||||||
|
label: 'state',
|
||||||
|
name: 'State',
|
||||||
|
readonly: true,
|
||||||
|
type: 'terminalStatus',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.initQueryFromPath(searchKeys)
|
this.initQueryFromPath(searchKeys)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -208,7 +208,21 @@ export default {
|
|||||||
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
name: { target: this.searchLabel, propertyName: 'name', type: 'string' }
|
name: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'name',
|
||||||
|
type: 'string',
|
||||||
|
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'name',
|
||||||
|
label: 'name',
|
||||||
|
name: 'Name',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.initQueryFromPath(searchKeys)
|
this.initQueryFromPath(searchKeys)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -807,9 +807,47 @@ export default {
|
|||||||
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
ids: { target: this.searchLabel, propertyName: 'ids', type: 'number' },
|
ids: {
|
||||||
name: { target: this.searchLabel, propertyName: 'name', type: 'string' },
|
target: this.searchLabel,
|
||||||
assetName: { target: this.searchLabel, propertyName: 'assetName', type: 'string' },
|
propertyName: 'ids',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'ids',
|
||||||
|
label: 'ids',
|
||||||
|
name: 'ID',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'name',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'name',
|
||||||
|
label: 'name',
|
||||||
|
name: 'Name',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
assetName: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'assetName',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'assetName',
|
||||||
|
name: 'Asset',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
projectIds: { target: this.searchCheckBox, propertyName: 'projectIds', type: 'string' },
|
projectIds: { target: this.searchCheckBox, propertyName: 'projectIds', type: 'string' },
|
||||||
logsStates: { target: this.searchCheckBox, propertyName: 'logsStates', type: 'string' },
|
logsStates: { target: this.searchCheckBox, propertyName: 'logsStates', type: 'string' },
|
||||||
moduleIds: { target: this.searchCheckBox, propertyName: 'moduleIds', type: 'string' }
|
moduleIds: { target: this.searchCheckBox, propertyName: 'moduleIds', type: 'string' }
|
||||||
|
|||||||
@@ -462,9 +462,49 @@ export default {
|
|||||||
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
ids: { target: this.searchLabel, propertyName: 'ids', type: 'number' },
|
ids: {
|
||||||
projectIds: { target: this.searchLabel, propertyName: 'projectIds', type: 'number' },
|
target: this.searchLabel,
|
||||||
name: { target: this.searchLabel, propertyName: 'name', type: 'string' }
|
propertyName: 'ids',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'ids',
|
||||||
|
label: 'ids',
|
||||||
|
name: 'ID',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'name',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'name',
|
||||||
|
label: 'name',
|
||||||
|
name: 'Name',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
projectIds: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'projectIds',
|
||||||
|
type: 'number',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 11,
|
||||||
|
label: 'projectIds',
|
||||||
|
name: 'Project name',
|
||||||
|
readonly: true,
|
||||||
|
type: 'project',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.initQueryFromPath(searchKeys)
|
this.initQueryFromPath(searchKeys)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -166,8 +166,36 @@ export default {
|
|||||||
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
pageNo: { target: this.pageObj, propertyName: 'pageNo', type: 'number' },
|
||||||
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
pageSize: { target: this.pageObj, propertyName: 'pageSize', type: 'number' },
|
||||||
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
orderBy: { target: this.$data, propertyName: 'orderBy', type: 'string' },
|
||||||
ids: { target: this.searchLabel, propertyName: 'ids', type: 'number' },
|
ids: {
|
||||||
name: { target: this.searchLabel, propertyName: 'name', type: 'string' }
|
target: this.searchLabel,
|
||||||
|
propertyName: 'ids',
|
||||||
|
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'ids',
|
||||||
|
label: 'ids',
|
||||||
|
name: 'ID',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
propertyName: 'name',
|
||||||
|
type: 'string',
|
||||||
|
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
id: 'name',
|
||||||
|
label: 'name',
|
||||||
|
name: 'Name',
|
||||||
|
type: 'input',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.initQueryFromPath(searchKeys)
|
this.initQueryFromPath(searchKeys)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user