设置优质留言
This commit is contained in:
parent
efb9d2059e
commit
58980de56d
@ -85,7 +85,7 @@
|
||||
type="primary"
|
||||
@click="openDetail(scope.row.comment_id,scope.row.content)">修改</el-button> -->
|
||||
<el-button type="default" size="small" @click="handleUpdateStatus(scope.row.comment_id,scope.row.status)">{{ scope.row.status==1?'隐藏':'启用' }}</el-button>
|
||||
<el-button type="default" size="small" @click="handleUpdateQualityStatus(scope.row.comment_id,scope.row.is_high_quality)" :disabled="scope.row.is_high_quality==1">{{ scope.row.is_high_quality==1?'优质留言':'设置优质留言' }}</el-button>
|
||||
<el-button type="default" size="small" @click="handleUpdateQualityStatus(scope.row.comment_id,scope.row.is_high_quality)" :disabled="scope.row.is_high_quality==1 || isLock">{{ scope.row.is_high_quality==1?'优质留言':'设置优质留言' }}</el-button>
|
||||
<el-tag type="danger" v-if="scope.row.is_sensitive==1" class="tag">风险提醒</el-tag>
|
||||
<el-tag type="success" class="tag" v-else>风险提醒</el-tag>
|
||||
</template>
|
||||
@ -136,6 +136,7 @@ const msgform = reactive({
|
||||
});
|
||||
const comment_id=ref('');
|
||||
const project_id=ref('')
|
||||
const isLock=ref(false)
|
||||
|
||||
|
||||
const whiteType=ref(null);
|
||||
@ -211,9 +212,11 @@ const handleUpdateStatus=(id,status)=>{
|
||||
})
|
||||
}
|
||||
const handleUpdateQualityStatus=(id,status)=>{
|
||||
isLock.value=true
|
||||
userApi.updateCommentQualityStatus(id,{
|
||||
is_high_quality:status==1?0:1
|
||||
}).then(res=>{
|
||||
isLock.value=false
|
||||
console.log(res);
|
||||
let {code}=res;
|
||||
if(code==200){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user