mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-11 21:53:24 +08:00
bugfix with criteria filter (#273)
This commit is contained in:
parent
99d49b91fc
commit
fde8d64a40
@ -487,13 +487,27 @@ export default {
|
|||||||
.then(response => {
|
.then(response => {
|
||||||
if (response.length && !parameters.isNewRecord) {
|
if (response.length && !parameters.isNewRecord) {
|
||||||
this.dataRecords = response[0]
|
this.dataRecords = response[0]
|
||||||
if (this.$route.query.action === 'create-new') {
|
if (this.$route.query.action === 'criteria') {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: this.$route.name,
|
name: this.$route.name,
|
||||||
query: {
|
query: {
|
||||||
...this.$route.query
|
...this.$route.query,
|
||||||
|
action: this.dataRecordsq
|
||||||
|
},
|
||||||
|
params: {
|
||||||
|
tableName: this.metadata.tableName,
|
||||||
|
recordId: this.dataRecords[`${this.metadata.tableName}_ID`]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
this.$store.dispatch('notifyPanelChange', {
|
||||||
|
parentUuid: this.parentUuid,
|
||||||
|
containerUuid: this.containerUuid,
|
||||||
|
newValues: this.dataRecords,
|
||||||
|
isSendToServer: false,
|
||||||
|
isSendCallout: false,
|
||||||
|
fieldList: this.fieldList,
|
||||||
|
panelType: this.panelType
|
||||||
|
})
|
||||||
} else if (this.$route.query.action === 'reference') {
|
} else if (this.$route.query.action === 'reference') {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: this.$route.name,
|
name: this.$route.name,
|
||||||
|
@ -647,7 +647,7 @@ const panel = {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (panelType === 'table' || isAdvancedQuery) {
|
if (panelType === 'table' || isAdvancedQuery) {
|
||||||
if (field.isShowedFromUser) {
|
if (field.isShowedFromUser && field.oldValue !== field.value) {
|
||||||
// change action to advanced query on field value is changed in this panel
|
// change action to advanced query on field value is changed in this panel
|
||||||
if (router.currentRoute.query.action !== 'advancedQuery') {
|
if (router.currentRoute.query.action !== 'advancedQuery') {
|
||||||
router.push({
|
router.push({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user