Prechádzať zdrojové kódy

玲姐叫我改字段名

Sanmu8 1 rok pred
rodič
commit
a95004e250
2 zmenil súbory, kde vykonal 17 pridanie a 8 odobranie
  1. 6 2
      src/views/ARTICLE/edit.vue
  2. 11 6
      src/views/ARTICLE/index.vue

+ 6 - 2
src/views/ARTICLE/edit.vue

@@ -9,7 +9,11 @@
         ></el-input>
       </el-form-item>
       <el-form-item label="建设规模" prop="scale">
-        <el-select
+        <el-input
+          v-model="form.scale"
+          placeholder="请输入建设内容"
+        ></el-input>
+        <!-- <el-select
           v-model="form.scale"
           placeholder="请选择建设规模"
           @change="typeSelect"
@@ -21,7 +25,7 @@
             :label="item.label"
             :value="item.label"
           ></el-option>
-        </el-select>
+        </el-select> -->
       </el-form-item>
       <el-form-item label="建设内容" prop="content">
         <el-input

+ 11 - 6
src/views/ARTICLE/index.vue

@@ -16,14 +16,18 @@
       </el-form-item>
 
       <el-form-item label="建设规模">
-        <el-select v-model="queryParams.scale" placeholder="请选择建设规模">
+        <el-input
+          v-model="queryParams.scale"
+          placeholder="请输入建设规模"
+        ></el-input>
+        <!-- <el-select v-model="queryParams.scale" placeholder="请输入建设规模">
           <el-option
             v-for="item in scaleList"
             :key="item.value + 'typeList'"
             :label="item.label"
             :value="item.label"
           ></el-option>
-        </el-select>
+        </el-select> -->
       </el-form-item>
 
       <el-form-item label="年度计划投资" label-width="120px">
@@ -109,11 +113,12 @@
         </template>
       </el-table-column>
       <el-table-column label="建设规模" align="center" prop="scale">
-        <!-- <template slot-scope="scope">
-          <el-tag v-if="scope.row.scale == 1" type="success">小型</el-tag>
+         <template slot-scope="scope">
+          {{ scope.row.scale }}
+         <!-- <el-tag v-if="scope.row.scale == 1" type="success">小型</el-tag>
           <el-tag v-else-if="scope.row.scale == 2" type="success">中型</el-tag>
-          <el-tag v-else-if="scope.row.scale == 3" type="success">大型</el-tag>
-        </template> -->
+          <el-tag v-else-if="scope.row.scale == 3" type="success">大型</el-tag>-->
+        </template> 
       </el-table-column>
       <el-table-column label="年度投资计划(万)" align="center" prop="plan">
         <template slot-scope="scope">