mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
教师节建议
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user