提交结果暂存时不保存评分等级

This commit is contained in:
wulin 2021-06-03 20:50:22 +08:00
parent 492aba9701
commit 05886843fc
2 changed files with 8 additions and 3 deletions

View File

@ -12,8 +12,8 @@ module.exports = {
assetsPublicPath: '/', assetsPublicPath: '/',
proxyTable: { proxyTable: {
'/lz_management': { '/lz_management': {
target: `https://tlzmanagement.ldxinyong.com`, // target: `https://tlzmanagement.ldxinyong.com`,
// target: `http://192.168.4.12:8080`, target: `http://127.0.0.1:8080`,
changeOrigin: true, changeOrigin: true,
// secure: false , // secure: false ,
// pathRewrite: { // pathRewrite: {

View File

@ -510,6 +510,11 @@ export default {
}, },
async handleSaveDetail (params = Object.assign({}, this.obj, this.score, { save: 1 })) { async handleSaveDetail (params = Object.assign({}, this.obj, this.score, { save: 1 })) {
this.loadingZan = true this.loadingZan = true
if (this.tableInfo.result) {
params.lastScore = null
params.allScore = null
params.scoreLevel = null
}
let res = await apiSaveDetail(params) let res = await apiSaveDetail(params)
this.loadingZan = false this.loadingZan = false
if (res.code !== 200) { if (res.code !== 200) {