liujq 3 年之前
父节点
当前提交
44a9366ce8

文件差异内容过多而无法显示
+ 0 - 0
dist/index.html


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-45d3c434.265e471a.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-45d3c434.41eda7ba.js


+ 5 - 2
src/views/user/components/popup/IREdit.vue

@@ -63,9 +63,12 @@ export default {
             const oldform = this.$refs.ruleForm.baseForm
             let newForm = { ...oldform }
             let apiStr = 'admintegralruleadd'
-            if (newForm.id) apiStr = 'admintegralruleedit'
+            if (this.curObj.id) {
+              apiStr = 'admintegralruleedit'
+              newForm.id = this.curObj.id
+            }
             this.$api.user[apiStr](newForm).then(data => {
-              this.$msgs(newForm.id ? '编辑成功' : '新增成功')
+              this.$msgs(this.curObj.id ? '编辑成功' : '新增成功')
               this.$emit('close', newForm)
             })
           }

部分文件因为文件数量过多而无法显示