diff --git a/src/views/Login/index.vue b/src/views/Login/index.vue index a32c216..de5b9d6 100644 --- a/src/views/Login/index.vue +++ b/src/views/Login/index.vue @@ -1,26 +1,32 @@ + - - - - - - - - - 登 录 - - + + + + + 登 录 + 注册账号 + + + + + + + + + 注 册 + 前往登录 + + \ No newline at end of file diff --git a/src/views/MatManage/_setManage/index.vue b/src/views/MatManage/_setManage/index.vue index 3934313..7c2bef3 100644 --- a/src/views/MatManage/_setManage/index.vue +++ b/src/views/MatManage/_setManage/index.vue @@ -28,16 +28,18 @@ - + - 重命名 + 编辑 删除 @@ -51,8 +53,17 @@ :total="pagination.total" /> - - + + + + + + + + 点击上传 + + + 取消 确定 @@ -88,12 +99,15 @@ export default defineComponent({ const visible = ref(false); const editVisible = ref(false); const activeId = ref(false); + const editId = ref(undefined) + const isEditing = ref(false); + const sortValue = ref(undefined); return { form,setForm,proxy, tableData, pagination, statusFormatter, - visible,editVisible,activeId + visible,editVisible,activeId,isEditing,sortValue,editId } }, mounted() { @@ -126,6 +140,8 @@ export default defineComponent({ this.proxy.$post("/referenceGroup/upd", obj).then(res => { this.getData(); this.editVisible = false; + this.setForm.name = ''; + this.setForm.coverUrl = ''; this.$message.success(res.data) }).catch(() => {}); }, @@ -134,6 +150,8 @@ export default defineComponent({ this.proxy.$post("/referenceGroup/add", this.setForm).then(res => { this.getData(); this.visible = false; + this.setForm.name = ''; + this.setForm.coverUrl = ''; this.$message.success(res.data) }).catch(() => {}); }, @@ -150,9 +168,30 @@ export default defineComponent({ }).catch(() => {}); }).catch(() => {}) }, + //改变排序 + handlerChangeSort(value) { + let obj = {id: this.editId,sortWeight: this.sortValue*1} + this.proxy.$post("/reference/updSort", obj).then(res => { + this.getData(); + this.isEditing = false; + this.editId = undefined; + this.sortValue = undefined; + this.$message.success(res.data) + }).catch(() => {}); + }, + handlerSortEdit(value) { + this.editId = value.id; + this.isEditing = true; + }, + editCancel() { + this.isEditing = false; + }, //上传图片 handlerUpload(data) { this.setForm.coverUrl = data.fileUrl + }, + handlerCoverUpload(data) { + this.setForm.coverUrl = data.fileUrl } } }) diff --git a/src/views/StarwayInfo/index.vue b/src/views/StarwayInfo/index.vue index 7ebb873..d070c1f 100644 --- a/src/views/StarwayInfo/index.vue +++ b/src/views/StarwayInfo/index.vue @@ -17,6 +17,11 @@ + + + + + @@ -105,6 +110,14 @@ export default defineComponent({ this.$message.success(res.data) }).catch(() => {}); }).catch(() => {}) + }, + //改变是否显示在首页 + changeIsShow(val) { + let obj = {id: val.id, showAtIndex: val.showAtIndex == 1?0:1}; + this.proxy.$post("/topicActivity/showAtIndex", obj).then(res => { + this.getData(); + this.$message.success(res.data) + }).catch(() => {}); } } })