scorpio преди 2 години
родител
ревизия
712b975c6b
променени са 3 файла, в които са добавени 47 реда и са изтрити 13 реда
  1. 1 0
      src/components/wt-card/index.vue
  2. 45 12
      src/views/project/componens/info1.vue
  3. 1 1
      src/views/project/index.vue

+ 1 - 0
src/components/wt-card/index.vue

@@ -13,6 +13,7 @@
         >{{ btnText }}</el-button
       >
     </div>
+    <el-divider />
     <slot></slot>
   </el-card>
 </template>

+ 45 - 12
src/views/project/componens/info1.vue

@@ -5,19 +5,27 @@
         <el-form-item class="full-width flex-child-average">
           <div class="flex flex-center full-width item">
             <span class="title">项目名称:</span>
-            <el-input></el-input>
+            <el-input
+              placeholder="请输入项目名称"
+              v-model="form.name"
+            ></el-input>
           </div>
         </el-form-item>
         <el-form-item class="full-width flex-child-average">
           <div class="flex flex-center full-width item">
             <span class="title">总投资金额:</span>
-            <el-input></el-input>
+            <el-input
+              placeholder="请输入总投资金额"
+              v-model="form.total_amount"
+            >
+              <template #append>万元</template>
+            </el-input>
           </div>
         </el-form-item>
         <el-form-item class="full-width flex-child-average">
           <div class="flex flex-center full-width item">
             <span class="title">区县:</span>
-            <el-input></el-input>
+            <el-input placeholder="请选择区县"></el-input>
           </div>
         </el-form-item>
       </div>
@@ -37,7 +45,7 @@
         <el-form-item class="full-width flex-child-average">
           <div class="flex flex-center full-width item">
             <span class="title">责任领导:</span>
-            <el-input></el-input>
+            <el-input placeholder="请输入责任领导"></el-input>
           </div>
         </el-form-item>
       </div>
@@ -45,7 +53,7 @@
         <el-form-item class="full-width flex-child-average">
           <div class="flex flex-center full-width item">
             <span class="title">联系电话:</span>
-            <el-input></el-input>
+            <el-input placeholder="请输入责任领导联系电话"></el-input>
           </div>
         </el-form-item>
         <el-form-item class="full-width flex-child-average">
@@ -65,7 +73,7 @@
         <el-form-item class="full-width" style="flex: 2">
           <div class="flex flex-center full-width" style="width: 95%">
             <span class="title">项目位置:</span>
-            <el-input></el-input>
+            <el-input placeholder="请选择项目位置"></el-input>
             <el-button class="ml-10" plain type="primary">查看地图</el-button>
           </div>
         </el-form-item>
@@ -80,10 +88,14 @@
         <el-form-item class="full-width" style="flex: 1">
           <div
             class="flex flex-center flex-align-start full-width"
-            style="width: 96.7%"
+            style="width: 99.3%"
           >
             <span class="title-textarea">建设规模:</span>
-            <el-input type="textarea" :rows="5"></el-input>
+            <el-input
+              type="textarea"
+              placeholder="请输入建设规模"
+              :rows="5"
+            ></el-input>
           </div>
         </el-form-item>
       </div>
@@ -91,10 +103,14 @@
         <el-form-item class="full-width" style="flex: 1">
           <div
             class="flex flex-center flex-align-start full-width"
-            style="width: 96.7%"
+            style="width: 99.3%"
           >
             <span class="title-textarea">建设内容:</span>
-            <el-input type="textarea" :rows="5"></el-input>
+            <el-input
+              type="textarea"
+              placeholder="请输入建设内容"
+              :rows="5"
+            ></el-input>
           </div>
         </el-form-item>
       </div>
@@ -109,9 +125,26 @@ export default {
   components: {
     wtCard
   },
+  props: {
+    info: {
+      type: Object,
+      default: () => {
+        return {}
+      }
+    }
+  },
+  watch: {
+    info: {
+      handler(val) {
+        this.form = val
+      },
+      immediate: true
+    }
+  },
   data() {
     return {
-      disabled: true
+      disabled: true,
+      form: {}
     }
   },
   methods: {
@@ -137,6 +170,6 @@ export default {
 }
 
 .item {
-  width: 90%;
+  width: 98%;
 }
 </style>

+ 1 - 1
src/views/project/index.vue

@@ -12,7 +12,7 @@
     </tips-custom>
     <!--    content-->
     <div>
-      <info1 />
+      <info1 :info="detail" />
       <info2 />
     </div>
     <!--    buttom-->