mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 05:16:43 +08:00
教师节建议
This commit is contained in:
15
src/api/modules/grateful.js
Normal file
15
src/api/modules/grateful.js
Normal 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
|
||||||
|
}
|
||||||
@@ -147,7 +147,7 @@
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<div style="display: flex; justify-content: center">
|
<div style="display: flex; justify-content: center">
|
||||||
<el-button style="width: 100px;" @click="closeDlg">取消</el-button>
|
<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>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@@ -164,6 +164,7 @@ import interactBar from "@/components/Portal/interactBar.vue";
|
|||||||
import courseImage from "@/components/Course/courseImage.vue";
|
import courseImage from "@/components/Course/courseImage.vue";
|
||||||
import { toScore, formatUserNumber } from "@/utils/tools.js";
|
import { toScore, formatUserNumber } from "@/utils/tools.js";
|
||||||
import apiIndex from "@/api/phase2/index.js";
|
import apiIndex from "@/api/phase2/index.js";
|
||||||
|
import { saveOpinion } from '@/api/modules/grateful.js'
|
||||||
export default {
|
export default {
|
||||||
name: "Grateful",
|
name: "Grateful",
|
||||||
components: {
|
components: {
|
||||||
@@ -197,10 +198,18 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
getPic(index) {
|
||||||
return this.webBaseUrl + "/images/listblue0" + (index + 1) + ".png";
|
return this.webBaseUrl + "/images/listblue0" + (index + 1) + ".png";
|
||||||
},
|
},
|
||||||
closeDlg() {
|
closeDlg() {
|
||||||
|
this.form.textarea = ''
|
||||||
this.gratefulVisible = false
|
this.gratefulVisible = false
|
||||||
},
|
},
|
||||||
toCourseDetail(item) {
|
toCourseDetail(item) {
|
||||||
|
|||||||
@@ -192,6 +192,12 @@ module.exports = {
|
|||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false,
|
secure: false,
|
||||||
},
|
},
|
||||||
|
'/activityApi': {
|
||||||
|
// 目标代理服务器地址
|
||||||
|
target: 'https://u-pre.boe.com',
|
||||||
|
changeOrigin: true,
|
||||||
|
secure: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user