NEZ-2842 feat:新增alert message页面 高级搜索 回显
This commit is contained in:
@@ -2,7 +2,7 @@ import lodash from 'lodash'
|
||||
export default {
|
||||
methods: {
|
||||
// 解析请求参数,初始化 searchLabel
|
||||
initQueryFromPath (searchKeys) {
|
||||
initQueryFromPath (searchKeys, cb) {
|
||||
const q = this.$route.query
|
||||
lodash.forIn(searchKeys, (val, key) => {
|
||||
let qv = lodash.get(q, key)
|
||||
@@ -27,6 +27,12 @@ export default {
|
||||
}, 200)
|
||||
qv && this.$set(val.target, val.propertyName, qv)
|
||||
})
|
||||
if (q.body) {
|
||||
this.searchLabel.body = JSON.parse(q.body)
|
||||
if (cb) {
|
||||
cb()
|
||||
}
|
||||
}
|
||||
if (q.bottomBox && JSON.parse(q.bottomBox)) {
|
||||
this.$nextTick(() => {
|
||||
this.detailType = q.detailType
|
||||
|
||||
Reference in New Issue
Block a user