xiangpei
2024-06-12 30b299c1554b91bfd678b41ff1f854c8c0b0e50b
响应调整
19个文件已修改
42 ■■■■ 已修改文件
src/api/subject.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/modules/exam.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/modules/user.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/answer/list.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dashboard/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/education/subject/list.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/paper/list.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/question/edit/short-answer.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/question/edit/single-choice.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/question/edit/true-false.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/question/list.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/log/list.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/message/list.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/message/send.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/task/list.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/admin/edit.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/admin/list.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/student/edit.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/student/list.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/subject.js
@@ -2,7 +2,7 @@
export default {
  list: query => post('/api/admin/subject/list'),
  pageList: query => post('/api/admin/education/subject/page', query),
  pageList: query => post('/api/admin/subject/page', query),
  edit: query => post('/api/admin/education/subject/edit', query),
  select: id => post('/api/admin/education/subject/select/' + id),
  deleteSubject: id => post('/api/admin/education/subject/delete/' + id)
src/store/modules/exam.js
@@ -19,7 +19,7 @@
const actions = {
  initSubject ({ commit }, action) {
    subjectApi.list().then(re => {
      commit('setSubjects', re.response)
      commit('setSubjects', re.data)
      if (action !== undefined) {
        action()
      }
src/store/modules/user.js
@@ -10,7 +10,7 @@
const actions = {
  initUserInfo ({ commit }) {
    userApi.getCurrentUser().then(re => {
      commit('setUserInfo', re.response)
      commit('setUserInfo', re.data)
    })
  }
}
src/views/answer/list.vue
@@ -61,7 +61,7 @@
    search () {
      this.listLoading = true
      examPaperAnswerApi.page(this.queryParam).then(data => {
        const re = data.response
        const re = data.data
        this.tableData = re.list
        this.total = re.total
        this.queryParam.pageIndex = re.pageNum
src/views/dashboard/index.vue
@@ -91,7 +91,7 @@
    let _this = this
    this.loading = true
    dashboardApi.index().then(re => {
      let response = re.response
      let response = re.data
      _this.examPaperCount = response.examPaperCount
      _this.questionCount = response.questionCount
      _this.doExamPaperCount = response.doExamPaperCount
src/views/education/subject/list.vue
@@ -58,7 +58,7 @@
    search () {
      this.listLoading = true
      subjectApi.pageList(this.queryParam).then(data => {
        const re = data.response
        const re = data.data
        this.tableData = re.list
        this.total = re.total
        this.queryParam.pageIndex = re.pageNum
src/views/exam/paper/list.vue
@@ -72,7 +72,7 @@
    search () {
      this.listLoading = true
      examPaperApi.pageList(this.queryParam).then(data => {
        const re = data.response
        const re = data.data
        this.tableData = re.list
        this.total = re.total
        this.queryParam.pageIndex = re.pageNum
src/views/exam/question/edit/short-answer.vue
@@ -114,7 +114,7 @@
    if (id && parseInt(id) !== 0) {
      _this.formLoading = true
      questionApi.select(id).then(re => {
        _this.form = re.response
        _this.form = re.data
        _this.formLoading = false
      })
    }
src/views/exam/question/edit/single-choice.vue
@@ -129,7 +129,7 @@
    if (id && parseInt(id) !== 0) {
      _this.formLoading = true
      questionApi.select(id).then(re => {
        _this.form = re.response
        _this.form = re.data
        _this.formLoading = false
      })
    }
src/views/exam/question/edit/true-false.vue
@@ -125,7 +125,7 @@
    if (id && parseInt(id) !== 0) {
      _this.formLoading = true
      questionApi.select(id).then(re => {
        _this.form = re.response
        _this.form = re.data
        _this.formLoading = false
      })
    }
src/views/exam/question/list.vue
@@ -100,7 +100,7 @@
    search () {
      this.listLoading = true
      questionApi.pageList(this.queryParam).then(data => {
        const re = data.response
        const re = data.data
        this.tableData = re.list
        this.total = re.total
        this.queryParam.pageIndex = re.pageNum
src/views/log/list.vue
@@ -54,7 +54,7 @@
    search () {
      this.listLoading = true
      userApi.getUserEventPageList(this.queryParam).then(data => {
        const re = data.response
        const re = data.data
        this.tableData = re.list
        this.total = re.total
        this.queryParam.pageIndex = re.pageNum
src/views/message/list.vue
@@ -50,7 +50,7 @@
    search () {
      this.listLoading = true
      messageApi.pageList(this.queryParam).then(data => {
        const re = data.response
        const re = data.data
        this.tableData = re.list
        this.total = re.total
        this.queryParam.pageIndex = re.pageNum
src/views/message/send.vue
@@ -59,7 +59,7 @@
        _this.selectLoading = true
        userApi.selectByUserName(query).then(re => {
          _this.selectLoading = false
          _this.options = re.response
          _this.options = re.data
        })
      } else {
        _this.options = []
src/views/task/list.vue
@@ -55,7 +55,7 @@
    search () {
      this.listLoading = true
      taskApi.pageList(this.queryParam).then(data => {
        const re = data.response
        const re = data.data
        this.tableData = re.list
        this.total = re.total
        this.queryParam.pageIndex = re.pageNum
src/views/user/admin/edit.vue
@@ -74,7 +74,7 @@
    if (id && parseInt(id) !== 0) {
      _this.formLoading = true
      userApi.selectUser(id).then(re => {
        _this.form = re.response
        _this.form = re.data
        _this.formLoading = false
      })
    }
src/views/user/admin/list.vue
@@ -70,7 +70,7 @@
    search () {
      this.listLoading = true
      userApi.getUserPageList(this.queryParam).then(data => {
        const re = data.response
        const re = data.data
        this.tableData = re.list
        this.total = re.total
        this.queryParam.pageIndex = re.pageNum
@@ -81,7 +81,7 @@
      let _this = this
      userApi.changeStatus(row.id).then(re => {
        if (re.code === 1) {
          row.status = re.response
          row.status = re.data
          _this.$message.success(re.message)
        } else {
          _this.$message.error(re.message)
src/views/user/student/edit.vue
@@ -83,7 +83,7 @@
    if (id && parseInt(id) !== 0) {
      _this.formLoading = true
      userApi.selectUser(id).then(re => {
        _this.form = re.response
        _this.form = re.data
        _this.formLoading = false
      })
    }
src/views/user/student/list.vue
@@ -74,7 +74,7 @@
    search () {
      this.listLoading = true
      userApi.getUserPageList(this.queryParam).then(data => {
        const re = data.response
        const re = data.data
        this.tableData = re.list
        this.total = re.total
        this.queryParam.pageIndex = re.pageNum
@@ -85,7 +85,7 @@
      let _this = this
      userApi.changeStatus(row.id).then(re => {
        if (re.code === 1) {
          row.status = re.response
          row.status = re.data
          _this.$message.success(re.message)
        } else {
          _this.$message.error(re.message)