{"remainingRequest":"/Users/admin/projects/dms/src/dealer_admin/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/admin/projects/dms/src/dealer_admin/src/views/examination/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/Users/admin/projects/dms/src/dealer_admin/src/views/examination/index.vue","mtime":1713161556000},{"path":"/Users/admin/projects/dms/src/dealer_admin/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/Users/admin/projects/dms/src/dealer_admin/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/admin/projects/dms/src/dealer_admin/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport * as API from \"@/api/examination.js\";\nimport waves from \"@/directive/waves\"; // waves directive\nimport {parseTime} from \"@/utils\";\nimport Form from \"./components/form\";\nimport Pagination from \"@/components/Pagination\";\nimport ExaminationLog from \"./components/log.vue\";\n\nexport default {\n  name: \"DealerInvite\",\n  components: {Form,Pagination,ExaminationLog},\n  directives: {waves},\n  data() {\n    return {\n      list: [],\n      total: 0,\n      listLoading: true,\n      listQuery: {\n        page: 1,\n        limit: 10,\n        search:'',\n      }\n    };\n  },\n  created() {\n    this.$forceUpdate();\n    this.getList();\n  },\n  methods: {\n    async getList() {\n      this.listLoading = true;\n      const res = await API.list(this.listQuery);\n      this.total = res.result.total;\n      let list = res.result.list;\n      this.list = [];\n      this.list = list;\n      this.listLoading = false;\n    },\n    async delHandle(id) {\n      this.$confirm(\"确认删除???\", \"提示\")\n        .then(async _ => {\n          console.log(\"确认\");\n          const res = await API.del(id);\n          if (res.__error === 0) {\n            this.$message({\n              message: \"成功\",\n              type: \"success\"\n            });\n            this.getList();\n          }\n        })\n        .catch(_ => {\n          console.log(\"取消\");\n        });\n    },\n    fromHandle(id) {\n      this.$nextTick(() => {\n        this.$refs.fromType.init(id);\n      });\n    },\n    checkSubject(id){\n      this.$router.push({'path':'/examination/subject','query':{'examination':id}});\n    },\n    checkLog(id){\n      this.$nextTick(() => {\n        this.$refs.examinationLog.init(id);\n      });\n    },\n    handleFilter() {\n      this.listQuery.page = 1;\n      this.getList();\n    },\n    disableChange(id,disable){\n      this.$confirm(\"确定修改状态\", \"提示\")\n      .then(async _ => {\n        let updateData = {\n          id,\n          disable\n        };\n        const res = await API.update(updateData);\n        if (res.__error === 0) {\n          this.$message({\n            message: \"成功\",\n            type: \"success\"\n          });\n          this.getList();\n        }\n      })\n      .catch(_ => {\n        console.log(\"取消\");\n      });\n    }\n  }\n};\n",null]}