odc.xiaohui
2023-07-05 820fdb2db321c699568a54e8e3d7bb8f5c657b7f
修改青羊后台部门添加刷新
3个文件已修改
35 ■■■■ 已修改文件
src/views/education/department/edit.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/education/department/list.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/paper/edit.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/education/department/edit.vue
@@ -22,9 +22,11 @@
import { mapGetters, mapState, mapActions } from 'vuex'
import subjectApi from '@/api/subject'
import departmentApi from '@/api/department'
import enumItem from '@/store/modules/enumItem'
export default {
  data () {
    return {
      depart:[],
      form: {
        id: null,
        name: '',
@@ -64,6 +66,7 @@
        departmentApi.addData(this.form.name).then(res=>{
          console.log(res)
          if (res.code ==1){
            _this.$message.success(res.message)
                _this.delCurrentView(_this).then(() => {
                  _this.$router.push('/education/department/list')
src/views/education/department/list.vue
@@ -38,10 +38,12 @@
import Pagination from '@/components/Pagination'
import subjectApi from '@/api/subject'
import departmentApi from '@/api/department'
import enumItem from '@/store/modules/enumItem'
export default {
  components: { Pagination },
  data () {
    return {
      depart:[],
      queryParam: {
        level: null,
        pageIndex: 1,
@@ -64,6 +66,15 @@
        this.total = re.total
        this.queryParam.pageIndex = re.pageNum
        this.listLoading = false
        this.depart = data.response.list
        console.log(this.depart)
        this.depart.map(item=>{
          item.key = item.id
          item.value = item.name
        })
        enumItem.state.user.levelEnum = this.depart
      })
    },
    submitForm () {
src/views/exam/paper/edit.vue
@@ -370,15 +370,18 @@
    resetForm () {
      let lastId = this.form.id
      this.$refs['form'].resetFields()
      this.form = {
        id: null,
        departmentIds: [],
        subjectId: null,
        paperType: 1,
        limitDateTime: [],
        name: '',
        suggestTime: null,
        titleItems: []
      this.form= {
        aggregateSource:100,
          id: null,
          departmentIds: [],
          subjectId: [],
          paperType: 1,
          limitDateTime: [],
          name: '',
          suggestTime: null,
          titleItems: [],
          subjectSource:null,
          questionTypeVMS:[]
      }
      this.form.id = lastId
    },