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