|
@@ -31,7 +31,7 @@
|
|
|
<img src="../../assets/icon_status.svg" alt="" />
|
|
<img src="../../assets/icon_status.svg" alt="" />
|
|
|
<van-tag
|
|
<van-tag
|
|
|
type="success"
|
|
type="success"
|
|
|
- v-if="!item.status === 'REVIEW_PENDING'"
|
|
|
|
|
|
|
+ v-if="item.status === 'REVIEW_PENDING'"
|
|
|
size="large"
|
|
size="large"
|
|
|
>
|
|
>
|
|
|
未评分
|
|
未评分
|
|
@@ -56,28 +56,28 @@ export default {
|
|
|
name: "expertList",
|
|
name: "expertList",
|
|
|
metaInfo() {
|
|
metaInfo() {
|
|
|
return {
|
|
return {
|
|
|
- title: "评分列表"
|
|
|
|
|
|
|
+ title: "评分列表",
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
tableData: [],
|
|
tableData: [],
|
|
|
status: {
|
|
status: {
|
|
|
- NORMAL: "正常"
|
|
|
|
|
|
|
+ NORMAL: "正常",
|
|
|
},
|
|
},
|
|
|
- empty: false
|
|
|
|
|
|
|
+ empty: false,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
- ...mapState(["userInfo"])
|
|
|
|
|
|
|
+ ...mapState(["userInfo"]),
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
handleEdit(row) {
|
|
handleEdit(row) {
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
name: "expertDetail",
|
|
name: "expertDetail",
|
|
|
query: {
|
|
query: {
|
|
|
- id: row.id
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ id: row.id,
|
|
|
|
|
+ },
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
statusFormatter(row, column, cellValue) {
|
|
statusFormatter(row, column, cellValue) {
|
|
@@ -86,7 +86,7 @@ export default {
|
|
|
goLogin() {
|
|
goLogin() {
|
|
|
localStorage.removeItem("token");
|
|
localStorage.removeItem("token");
|
|
|
this.$router.push("/login");
|
|
this.$router.push("/login");
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.$http
|
|
this.$http
|
|
@@ -95,16 +95,17 @@ export default {
|
|
|
{
|
|
{
|
|
|
size: 20,
|
|
size: 20,
|
|
|
query: {
|
|
query: {
|
|
|
- expertUserId: this.$store.state.userInfo.id
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ expertUserId: this.$store.state.userInfo.id,
|
|
|
|
|
+ // status: ["SUBMIT_GRADE", "REVIEW_PENDING"],
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
{ body: "json" }
|
|
{ body: "json" }
|
|
|
)
|
|
)
|
|
|
- .then(res => {
|
|
|
|
|
|
|
+ .then((res) => {
|
|
|
this.empty = res.empty;
|
|
this.empty = res.empty;
|
|
|
this.tableData = res.content;
|
|
this.tableData = res.content;
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|