diff --git a/src/views/BasicSetting/_rewardRule/config.js b/src/views/BasicSetting/_rewardRule/config.js index a649ccb..2fe9cf7 100644 --- a/src/views/BasicSetting/_rewardRule/config.js +++ b/src/views/BasicSetting/_rewardRule/config.js @@ -1,7 +1,6 @@ export function statusFormatter(row) { switch(row.isDefault) { case true: return '是'; - case false: return '否'; - default: return ''; + default: return '否'; } }; \ No newline at end of file diff --git a/src/views/BasicSetting/_rewardRule/index.vue b/src/views/BasicSetting/_rewardRule/index.vue index 1330d69..d07f0e9 100644 --- a/src/views/BasicSetting/_rewardRule/index.vue +++ b/src/views/BasicSetting/_rewardRule/index.vue @@ -91,6 +91,7 @@ export default defineComponent({ let obj = Object.assign({pageNum: this.pagination.current,pageSize: this.pagination.pageSize}) this.proxy.$post("/rewardRuleTemplate/list", obj).then(res => { const data = res.data; + console.log(data) this.tableData.data = data; }).catch(() => {}); }, diff --git a/src/views/MatManage/_matList/index.vue b/src/views/MatManage/_matList/index.vue index a92e9b2..0d2bde5 100644 --- a/src/views/MatManage/_matList/index.vue +++ b/src/views/MatManage/_matList/index.vue @@ -134,7 +134,10 @@ export default defineComponent({ '删除', //标题 {type: 'warning'} ).then(() => { - this.$message.success('删除成功') + this.proxy.$post("/reference/del", {id: id}).then(res => { + this.getData(); + this.$message.success(res.data); + }).catch(() => {}); }).catch(() => {}) } } diff --git a/src/views/QuestManage/_questList/config.js b/src/views/QuestManage/_questList/config.js index 81250f3..5c7dc4a 100644 --- a/src/views/QuestManage/_questList/config.js +++ b/src/views/QuestManage/_questList/config.js @@ -1,8 +1,8 @@ export function statusFormatter(row) { switch(row.status) { - case 1: return '未开始'; - case 2: return '进行中'; - case 3: return '已终止'; + case 0: return '未上线'; + case 1: return '已上线'; + case 2: return '已结束'; default: return ''; } }; \ No newline at end of file diff --git a/src/views/QuestManage/_questList/index.vue b/src/views/QuestManage/_questList/index.vue index 56db7f3..c66a5ee 100644 --- a/src/views/QuestManage/_questList/index.vue +++ b/src/views/QuestManage/_questList/index.vue @@ -38,24 +38,31 @@
- + + + + @@ -112,7 +119,6 @@ export default defineComponent({ let obj = Object.assign({pageNum: this.pagination.current,pageSize: this.pagination.pageSize}) this.proxy.$post("/task/list", obj).then(res => { const data = res.data - console.log(data.records) this.tableData.data = data.records; this.pagination.total = data.total }).catch(() => {}); diff --git a/src/views/QuestManage/_questRelease/config.js b/src/views/QuestManage/_questRelease/config.js new file mode 100644 index 0000000..6836920 --- /dev/null +++ b/src/views/QuestManage/_questRelease/config.js @@ -0,0 +1,3 @@ +export function valueFormatter(row) { + return row.min +' 至 '+ row.max +}; \ No newline at end of file diff --git a/src/views/QuestManage/_questRelease/index.vue b/src/views/QuestManage/_questRelease/index.vue index 643b46f..7a56556 100644 --- a/src/views/QuestManage/_questRelease/index.vue +++ b/src/views/QuestManage/_questRelease/index.vue @@ -1,7 +1,7 @@