gcz il y a 1 an
Parent
commit
3b6cf25544
1 fichiers modifiés avec 8 ajouts et 8 suppressions
  1. 8 8
      src/views/venue/schedulingMr/index.vue

+ 8 - 8
src/views/venue/schedulingMr/index.vue

@@ -109,9 +109,9 @@
       </el-table-column>
       <el-table-column label="状态" align="center" prop="status">
         <template slot-scope="scope">
-          <el-tag type="success" v-if="scope.row.status == '1'">发布</el-tag>
-          <el-tag type="danger" v-else-if="scope.row.status == '2'">下架</el-tag>
-          <el-tag type="info" v-else>待发布</el-tag>
+          <el-tag type="success" v-if="scope.row.status == '1'">启用</el-tag>
+          <el-tag type="danger" v-else-if="scope.row.status == '2'">禁用</el-tag>
+          <!-- <el-tag type="info" v-else>待发布</el-tag> -->
           <!-- <span>{{ scope.row.status }}</span> -->
           <!-- <dict-tag :options="statusList" :value="String( scope.row.status)"/> -->
         </template>
@@ -123,7 +123,7 @@
             type="text"
             @click="ionlineApi(scope.row)"
             v-hasPermi="['schedulingMr:schedulingMr:edit']"
-          >{{scope.row.status == '1' ? '取消发布' : '发布'}}</el-button>
+          >{{scope.row.status == '1' ? '禁用' : '启用'}}</el-button>
           <el-button
             size="mini"
             type="text"
@@ -219,9 +219,9 @@ export default {
         type: undefined,
       },
       statusList: [
-        {id: 1, name: '未发布', value: 0},
-        {id: 2, name: '发布', value: 1},
-        {id: 3, name: '下架', value: 2},
+        // {id: 1, name: '未发布', value: 0},
+        {id: 1, name: '启用', value: 1},
+        {id: 2, name: '禁用', value: 2},
       ],
       visibleStatus: false,
       newObj: {},
@@ -282,7 +282,7 @@ export default {
 
     /** 发布或者取消发布按钮操作 */
     ionlineApi(row) {
-      this.$confirm("是否对:" + row.performName + row.goodsNames + "的数据进行" + (row.status == 1 ? '下架?' : '发布?'), '提示', {
+      this.$confirm("是否对:" + row.performName + row.goodsNames + "的数据进行" + (row.status == 1 ? '禁用?' : '启用?'), '提示', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         type: 'warning'