优化
This commit is contained in:
@@ -117,6 +117,7 @@ export default {
|
||||
},
|
||||
// 站点查询
|
||||
async _queryStation () {
|
||||
this.dataList = []
|
||||
try {
|
||||
let res = await queryStation()
|
||||
if (res && res.data) {
|
||||
@@ -128,6 +129,7 @@ export default {
|
||||
},
|
||||
// 任务链查询
|
||||
async _queryTaskChain () {
|
||||
this.linkData = []
|
||||
this.chainId = null
|
||||
try {
|
||||
let res = await queryTaskChain()
|
||||
@@ -222,6 +224,8 @@ export default {
|
||||
},
|
||||
// 点击任务链点位
|
||||
handleLinkCheck (e) {
|
||||
this.newData = []
|
||||
this.chainId = ''
|
||||
this._queryTaskChainDtl(e.chain_id)
|
||||
},
|
||||
// 任务链明细
|
||||
@@ -339,6 +343,8 @@ export default {
|
||||
let res = await deleteTaskChain(this.chainId)
|
||||
if (res) {
|
||||
this.$message(res.message)
|
||||
this.newData = []
|
||||
this.chainId = ''
|
||||
this._queryTaskChain()
|
||||
}
|
||||
this.loading.close()
|
||||
|
||||
Reference in New Issue
Block a user