瀏覽代碼

merge fix

scorpio 2 年之前
父節點
當前提交
5ef36b3938
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/views/home/component/params/params1.vue

+ 6 - 3
src/views/home/component/params/params1.vue

@@ -2,7 +2,7 @@
   <div class='flex flex-justify-start flex-align-center flex-col'>
     <div class='flex flex-center full-width flex-justify-between mt-10 mb-10'>
       <span class='full-width text-left bold'>{{ info.dictValue }}</span>
-      <el-button v-if='detail.can_update' type='primary' @click='disabled = !disabled'>{{
+      <el-button v-if='!detail.can_update' type='primary' @click='disabled = !disabled'>{{
           disabled ? '编 辑' : '保 存'
         }}
       </el-button>
@@ -20,8 +20,10 @@
           <el-form-item label="项目名称" style='flex:1'>
             <el-input v-model="form.name" placeholder='项目名称'/>
           </el-form-item>
-          <el-form-item label="总投资金额(万元)" style='flex:1' class='ml-20'>
-            <el-input v-model="form.total_amount" placeholder='总投资金额(万元)'/>
+          <el-form-item label="总投资金额(万元)" style='flex:1' class='ml-20 full-width'>
+            <div class='full-width'>
+              <el-input v-model="form.total_amount" placeholder='总投资金额(万元)' class='full-width'/>
+            </div>
           </el-form-item>
         </div>
         <div class='full-width  flex'>
@@ -254,6 +256,7 @@ export default {
     },
     updata () {
       this.detail.projectId = this.detail.id
+      this.detail.total_amount = Number.parseFloat(this.detail.total_amount)
       delete this.detail._id
       this.$api.project.proUpdate(this.detail).then(res => {
         if (res.code === 200) {