|
@@ -19,7 +19,7 @@
|
|
|
<el-option
|
|
|
v-for="item in [
|
|
|
{ label: '笔记', value: 1 },
|
|
|
- { label: '观点', value: 0 },
|
|
|
+ { label: '观点', value: 2 },
|
|
|
]"
|
|
|
:label="item.label"
|
|
|
:key="item.value"
|
|
@@ -34,7 +34,7 @@
|
|
|
</template>
|
|
|
<div v-else style="margin-bottom: 20px; display: flex; justify-content: space-between">
|
|
|
<div>
|
|
|
- <el-select placeholder="作者状态" clearable v-model="authorStatus" @change="conditionChange">
|
|
|
+ <el-select style="margin-right: 20px" placeholder="作者状态" clearable v-model="authorStatus" @change="conditionChange">
|
|
|
<el-option
|
|
|
v-for="item in [
|
|
|
{ label: '启用', value: 1 },
|
|
@@ -45,7 +45,7 @@
|
|
|
:value="item.value"
|
|
|
/>
|
|
|
</el-select>
|
|
|
- <el-input @value="authorColumnValueHandler" v-model="authorColumnValue" placeholder="请输入专栏名称" clearable style="display: inline-block; width: 240px">
|
|
|
+ <el-input @input="authorColumnValueHandler" v-model="authorColumnValue" placeholder="请输入专栏名称" clearable style="display: inline-block; width: 240px">
|
|
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
|
</el-input>
|
|
|
</div>
|
|
@@ -144,13 +144,12 @@ export default {
|
|
|
collectFansDlgText: "",
|
|
|
collectFansDlgItem: {},
|
|
|
addAuthorDlgVisible: false,
|
|
|
+ topLableList: [],
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
// 头部lable
|
|
|
- topLableList() {
|
|
|
- return TopLableList;
|
|
|
- },
|
|
|
+
|
|
|
// 文章的状态
|
|
|
reportStutsList() {
|
|
|
return ReportStutsList;
|
|
@@ -163,6 +162,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.getYanxuanShowButton();
|
|
|
this.getyanxuanReportSpecial();
|
|
|
},
|
|
|
methods: {
|
|
@@ -307,6 +307,19 @@ export default {
|
|
|
this.page_no = 1;
|
|
|
this.getyanxuanReportSpecial();
|
|
|
},
|
|
|
+ // 隐藏作者按钮
|
|
|
+ async getYanxuanShowButton() {
|
|
|
+ const res = await raiInterface.getYanxuanShowButton();
|
|
|
+ if (res.Ret === 200) {
|
|
|
+ console.log(TopLableList);
|
|
|
+ let { IsShowSpecialAuthor } = res.Data;
|
|
|
+ if (IsShowSpecialAuthor) {
|
|
|
+ this.topLableList = TopLableList;
|
|
|
+ } else {
|
|
|
+ this.topLableList = [TopLableList[0]];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|