fix() 修改 修改规则引擎后跳转页面失败
parent
cfed56f091
commit
a7df48335a
|
@ -41,12 +41,10 @@ export default {
|
||||||
'modification': {
|
'modification': {
|
||||||
handler(val) {
|
handler(val) {
|
||||||
if (val != null) {
|
if (val != null) {
|
||||||
console.log(val)
|
|
||||||
console.log(this.code)
|
|
||||||
updateEngine({id: this.modification, codeText: this.code}).then(res => {
|
updateEngine({id: this.modification, codeText: this.code}).then(res => {
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$router.push({path: `/rule/engineMaintenance`});
|
this.$router.push({path: `/rule/rule`});
|
||||||
}, 100)
|
}, 100)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -327,7 +327,6 @@ export default {
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listEngine(this.queryParams).then(response => {
|
listEngine(this.queryParams).then(response => {
|
||||||
console.log(response)
|
|
||||||
this.engineList = response.data.rows;
|
this.engineList = response.data.rows;
|
||||||
this.engineList.forEach(item => {
|
this.engineList.forEach(item => {
|
||||||
if (item.type === "1") {
|
if (item.type === "1") {
|
||||||
|
|
|
@ -51,7 +51,6 @@ export default {
|
||||||
this.modification = null
|
this.modification = null
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
}, 50)
|
}, 50)
|
||||||
this.$router.push({path: `/rule/rule`})
|
|
||||||
},
|
},
|
||||||
getInfo() {
|
getInfo() {
|
||||||
getEngine(this.$route.query.id).then(res => {
|
getEngine(this.$route.query.id).then(res => {
|
||||||
|
|
Loading…
Reference in New Issue