mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 23:06:45 +08:00
修改受众状态操作
This commit is contained in:
@@ -49,8 +49,8 @@
|
|||||||
<el-button type="text" @click="editRouter(1,scope.row)">修改</el-button>
|
<el-button type="text" @click="editRouter(1,scope.row)">修改</el-button>
|
||||||
<el-button type="text" @click="copyDialog(scope.row)">复制</el-button>
|
<el-button type="text" @click="copyDialog(scope.row)">复制</el-button>
|
||||||
<el-button type="text" v-if="scope.row.status == 0" @click="publish(1,scope.row)">发布</el-button>
|
<el-button type="text" v-if="scope.row.status == 0" @click="publish(1,scope.row)">发布</el-button>
|
||||||
<el-button type="text" v-if="scope.row.status == 1" @click="publish(2,scope.row)">启用</el-button>
|
<el-button type="text" v-if="scope.row.status == 1" @click="publish(2,scope.row)">停用</el-button>
|
||||||
<el-button type="text" v-if="scope.row.status == 2" @click="publish(1,scope.row)">停用</el-button>
|
<el-button type="text" v-if="scope.row.status == 2" @click="publish(1,scope.row)">启用</el-button>
|
||||||
<el-button type="text" v-if="scope.row.status == 0 || scope.row.status == 1" @click="deleteItem(scope.row)">删除</el-button>
|
<el-button type="text" v-if="scope.row.status == 0 || scope.row.status == 1" @click="deleteItem(scope.row)">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -278,8 +278,8 @@
|
|||||||
},
|
},
|
||||||
publish(status,row){
|
publish(status,row){
|
||||||
let opt = "发布";
|
let opt = "发布";
|
||||||
if(row.status == 1){opt="启用";}
|
if(row.status == 1){opt="停用";}
|
||||||
if(row.status == 2){opt="停用";}
|
if(row.status == 2){opt="启用";}
|
||||||
this.$confirm('您确定要'+opt+'所选受众吗?', '删除提示', {
|
this.$confirm('您确定要'+opt+'所选受众吗?', '删除提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
|
|||||||
Reference in New Issue
Block a user