修正接口请求

This commit is contained in:
aixianling
2022-08-26 14:24:34 +08:00
parent 44ca30cbf3
commit ce1fd46b7e
53 changed files with 151 additions and 151 deletions

View File

@@ -91,7 +91,7 @@ export default {
methods: {
getDetail() {
let {id} = this.$route.query
this.instance.post("/appleavemessage/queryDetailById", null, {
this.instance.post("/app/appleavemessage/queryDetailById", null, {
params: {id}
}).then(res => {
if (res?.data) {
@@ -105,7 +105,7 @@ export default {
},
handleCloseMass(id) {
this.$confirm("是否要关闭留言?").then(() => {
this.instance.post("/appleavemessage/close", null, {
this.instance.post("/app/appleavemessage/close", null, {
params: {id}
}).then(res => {
if (res?.code == 0) {
@@ -119,7 +119,7 @@ export default {
this.$refs.ReplyForm.validate(v => {
if (v) {
let {id: messageId} = this.detail
this.instance.post("/appleavemessagereply/addOrUpdate", {...this.form, messageId, userType: 1}).then(res => {
this.instance.post("/app/appleavemessagereply/addOrUpdate", {...this.form, messageId, userType: 1}).then(res => {
if (res?.code == 0) {
this.$message.success("提交成功!")
this.back()

View File

@@ -63,7 +63,7 @@ export default {
},
methods: {
getTableData() {
this.instance.post("/appleavemessage/list", null, {
this.instance.post("/app/appleavemessage/list", null, {
params: {...this.page, ...this.search}
}).then(res => {
if (res?.data) {
@@ -78,7 +78,7 @@ export default {
handleEnable(row) {
let openLabel = row.isOpen == 1 ? "取消公示" : "公示", isOpen = (Number(row.isOpen) + 1) % 2
this.$confirm(`是否要${openLabel}留言?`).then(() => {
this.instance.post("/appleavemessage/setIsOpen", null, {
this.instance.post("/app/appleavemessage/setIsOpen", null, {
params: {id: row.id, isOpen}
}).then(res => {
if (res?.code == 0) {