Forráskód Böngészése

失效不可编辑

DESKTOP-SVI9JE1\muzen 2 éve
szülő
commit
bffaa97f64
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/views/operation/activity/index.vue

+ 1 - 1
src/views/operation/activity/index.vue

@@ -44,7 +44,7 @@
           <el-button type="text" @click="getDetail(scope.row, true)">查看</el-button>
           <el-button type="text" @click="getDetail(scope.row, true)">查看</el-button>
           <el-button type="text" v-if="scope.row.status === 1" @click="getChange(scope.row.id, 0, '上架')" v-hasPermi="['operation:activity:up']">上架</el-button>
           <el-button type="text" v-if="scope.row.status === 1" @click="getChange(scope.row.id, 0, '上架')" v-hasPermi="['operation:activity:up']">上架</el-button>
           <span v-else style="margin: 0 10px">
           <span v-else style="margin: 0 10px">
-            <el-button type="text" @click="getDetail(scope.row)" v-hasPermi="['operation:activity:edit']">编辑</el-button>
+            <el-button v-if="scope.row.status !== 2" type="text" @click="getDetail(scope.row)" v-hasPermi="['operation:activity:edit']">编辑</el-button>
             <el-button type="text" @click="getChange(scope.row.id, 1, '下架')" v-hasPermi="['operation:activity:down']">下架</el-button>
             <el-button type="text" @click="getChange(scope.row.id, 1, '下架')" v-hasPermi="['operation:activity:down']">下架</el-button>
             <el-button type="delete" @click="getDelete(scope.row)" v-hasPermi="['operation:activity:delete']">删除</el-button>
             <el-button type="delete" @click="getDelete(scope.row)" v-hasPermi="['operation:activity:delete']">删除</el-button>
           </span>
           </span>