Browse Source

始宁农业小程序:样式

panyong 2 years ago
parent
commit
f91f678400

+ 2 - 2
htmldev/shiningManage/src/views/productManage/products/index.vue

@@ -90,7 +90,7 @@
       <el-table-column label="状态" prop="product_status" min-width="100">
         <template slot-scope="scope">{{ getStatusTextAndColor(scope.row).product_status_text }}</template>
       </el-table-column>
-      <el-table-column label="优秀推荐" prop="product_is_recommend" min-width="160">
+      <el-table-column label="优秀推荐" prop="product_is_recommend" min-width="80">
         <template slot-scope="scope">{{ scope.row.product_is_recommend === 1 ? '是' : '否' }}</template>
       </el-table-column>
       <el-table-column label="审核通过时间" prop="product_check_at" min-width="160"></el-table-column>
@@ -99,7 +99,7 @@
       <el-table-column label="操作" width="120">
         <template slot-scope="scope">
           <el-button type="text" @click="edit(scope.row)">操作</el-button>
-          <el-button type="text" @click="del(scope.row)">推荐</el-button>
+          <el-button type="text" @click="del(scope.row)" v-if="scope.row.product_is_recommend === 0">推荐</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 2 - 1
htmldev/shiningManage/src/views/productManage/recommend/index.vue

@@ -97,8 +97,9 @@
       <el-table-column label="更新时间" prop="updated_at" min-width="160"></el-table-column>
       <el-table-column label="操作" width="120">
         <template slot-scope="scope">
-          <el-button type="text" @click="del(scope.row)">取消推荐</el-button>
           <el-button type="text" @click="edit(scope.row)">操作</el-button>
+          <el-button type="text" @click="del(scope.row)" v-if="scope.row.product_is_recommend === 1">取消推荐
+          </el-button>
         </template>
       </el-table-column>
     </el-table>