|
|
@@ -660,7 +660,7 @@ export default {
|
|
|
request('sql', sql).then(res => {
|
|
|
const { data = [] } = res.variables || {}
|
|
|
if (!data.length) {
|
|
|
- this.updateState(id, code, '1', null)
|
|
|
+ // this.updateState(id, code, '1', null)
|
|
|
return
|
|
|
}
|
|
|
const path = data[0].bao_biao_lu_jing_.split('.rpx') [0]
|
|
|
@@ -678,11 +678,11 @@ export default {
|
|
|
}
|
|
|
const fileId = res.data && res.data.id ? res.data.id : ''
|
|
|
const fileParams = fileId ? { kuai_zhao_: fileId } : {}
|
|
|
- this.updateState(id, code, '1', fileParams)
|
|
|
+ this.updateState(id, code, '', fileParams)
|
|
|
}).catch(() => {
|
|
|
// 生成快照接口调用失败时,也需要更新状态为已完成
|
|
|
this.$message.error('提交快照生成失败!')
|
|
|
- this.updateState(id, code, '1')
|
|
|
+ // this.updateState(id, code, '1')
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
@@ -695,6 +695,7 @@ export default {
|
|
|
},
|
|
|
// 更新数据状态
|
|
|
updateState (id, code, state, fileParams) {
|
|
|
+ const t = state ? { shi_fou_guo_shen_: state } : {}
|
|
|
const params = {
|
|
|
tableName: `t_${code}`,
|
|
|
updList: [{
|
|
|
@@ -702,7 +703,7 @@ export default {
|
|
|
id_: id
|
|
|
},
|
|
|
param: {
|
|
|
- shi_fou_guo_shen_: state,
|
|
|
+ ...t,
|
|
|
...fileParams
|
|
|
}
|
|
|
}]
|