瀏覽代碼

修复 查看模式下的确定按钮没隐藏,修复编辑后详情未传id

DESKTOP-SVI9JE1\muzen 2 年之前
父節點
當前提交
f61fbd296a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/registration/lottery/detail.vue

+ 2 - 2
src/views/registration/lottery/detail.vue

@@ -67,7 +67,7 @@
     </el-form>
     </el-form>
     <div class="form-btn">
     <div class="form-btn">
       <el-button @click="cancel">取消</el-button>
       <el-button @click="cancel">取消</el-button>
-      <el-button type="primary" @click="getSubmit">确定</el-button>
+      <el-button v-if="!disabled" type="primary" @click="getSubmit">确定</el-button>
     </div>
     </div>
   </div>
   </div>
 </template>
 </template>
@@ -209,7 +209,7 @@ export default {
               edit(this.form).then(res => {
               edit(this.form).then(res => {
                 if (res.code === 0) {
                 if (res.code === 0) {
                   this.$message.success('编辑成功!')
                   this.$message.success('编辑成功!')
-                  this.getList()
+                  this.getList(this.$route.query.id)
                 }
                 }
               })
               })
             } else {
             } else {