liujq 3 년 전
부모
커밋
44a9366ce8
4개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 0
      dist/index.html
  2. 0 0
      dist/static/js/chunk-45d3c434.265e471a.js
  3. 0 0
      dist/static/js/chunk-45d3c434.41eda7ba.js
  4. 5 2
      src/views/user/components/popup/IREdit.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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)
             })
           }

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.