教师节建议

This commit is contained in:
nisen
2023-09-01 15:55:53 +08:00
parent d14373d4f2
commit b49b83a7cf
3 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
// import ajax from '@/utils/xajax.js'
import ajax from '../ajax';
const baseURL = '/activityApi';
//notice新增
const saveOpinion=function (data){
return ajax.postJson(baseURL,'/xboe/m/boe/opinion/save',data);
}
export {
saveOpinion
}

View File

@@ -147,7 +147,7 @@
<el-form-item>
<div style="display: flex; justify-content: center">
<el-button style="width: 100px;" @click="closeDlg">取消</el-button>
<el-button style="width: 100px;" type="primary">确认</el-button>
<el-button style="width: 100px;" @click="submitNotice" type="primary">确认</el-button>
</div>
</el-form-item>
</el-form>
@@ -164,6 +164,7 @@ import interactBar from "@/components/Portal/interactBar.vue";
import courseImage from "@/components/Course/courseImage.vue";
import { toScore, formatUserNumber } from "@/utils/tools.js";
import apiIndex from "@/api/phase2/index.js";
import { saveOpinion } from '@/api/modules/grateful.js'
export default {
name: "Grateful",
components: {
@@ -197,10 +198,18 @@ export default {
},
},
methods: {
submitNotice() {
if (!this.form.textarea) return this.$message({ message: '请输入内容', type: 'error' })
saveOpinion({ content: this.form.textarea }).then(() => {
this.$message({ message: '提交成功', type: 'success' })
this.closeDlg()
})
},
getPic(index) {
return this.webBaseUrl + "/images/listblue0" + (index + 1) + ".png";
},
closeDlg() {
this.form.textarea = ''
this.gratefulVisible = false
},
toCourseDetail(item) {

View File

@@ -192,6 +192,12 @@ module.exports = {
changeOrigin: true,
secure: false,
},
'/activityApi': {
// 目标代理服务器地址
target: 'https://u-pre.boe.com',
changeOrigin: true,
secure: false,
},
},
},