Browse Source

2023-08-23

wrc 2 years ago
parent
commit
b01a7ae1ea
2 changed files with 10 additions and 16 deletions
  1. 8 11
      src/views/project/componens/info4.vue
  2. 2 5
      src/views/project/componens/info5.vue

+ 8 - 11
src/views/project/componens/info4.vue

@@ -14,7 +14,7 @@
             <el-input
               class="input"
               placeholder="中央预算内投资"
-              v-model="form.zyBudgetInvestment"
+              v-model="form.zy_budget_investment"
             ></el-input>
           </div>
         </el-form-item>
@@ -24,7 +24,7 @@
             <el-input
               class="input"
               placeholder="地方预算内投资"
-              v-model="form.dfBudgetInvestment"
+              v-model="form.df_budget_investment"
             ></el-input>
           </div>
         </el-form-item>
@@ -36,7 +36,7 @@
             <el-input
               class="input"
               placeholder="专项债券资金"
-              v-model="form.debtsAsCapital"
+              v-model="form.debts_as_capital"
             ></el-input>
           </div>
         </el-form-item>
@@ -46,7 +46,7 @@
             <el-input
               class="input"
               placeholder="抗疫特别国债资金"
-              v-model="form.treasuryFunds"
+              v-model="form.treasury_funds"
             ></el-input>
           </div>
         </el-form-item>
@@ -58,7 +58,7 @@
             <el-input
               class="input"
               placeholder="其他地方财政性建设资金"
-              v-model="form.otherConstructionFunds"
+              v-model="form.other_construction_funds"
             ></el-input>
           </div>
         </el-form-item>
@@ -68,7 +68,7 @@
             <el-input
               class="input"
               placeholder="政策性开发性金融工具(基金)投资"
-              v-model="form.financialInvestment"
+              v-model="form.financial_investment"
             ></el-input>
           </div>
         </el-form-item>
@@ -183,12 +183,9 @@ export default {
   methods: {
     save() {
       console.log('save')
-      this.$api.project.proUpdate(this.detail).then(res => {
+      this.$api.project.proUpdate(this.form).then(res => {
         if (res.code === 200) {
-          if (show) {
-            this.$message.success(res.msg)
-            this.show = false
-          }
+          this.$message.success(res.msg)
         } else {
           this.$message.error(res.msg)
         }

+ 2 - 5
src/views/project/componens/info5.vue

@@ -63,12 +63,9 @@ export default {
   methods: {
     save() {
       console.log('save')
-      this.$api.project.proUpdate(this.detail).then(res => {
+      this.$api.project.proUpdate(this.form).then(res => {
         if (res.code === 200) {
-          if (show) {
-            this.$message.success(res.msg)
-            this.show = false
-          }
+          this.$message.success(res.msg)
         } else {
           this.$message.error(res.msg)
         }