{"remainingRequest":"/Users/admin/projects/dms/src/dealer_admin/node_modules/thread-loader/dist/cjs.js!/Users/admin/projects/dms/src/dealer_admin/node_modules/babel-loader/lib/index.js!/Users/admin/projects/dms/src/dealer_admin/node_modules/cache-loader/dist/cjs.js??ref--0-0!/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/assessment/review/components/review_list.vue?vue&type=script&lang=js","dependencies":[{"path":"/Users/admin/projects/dms/src/dealer_admin/src/views/assessment/review/components/review_list.vue","mtime":1713161556000},{"path":"/Users/admin/projects/dms/src/dealer_admin/babel.config.js","mtime":1713161556000},{"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/thread-loader/dist/cjs.js","mtime":499162500000},{"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":["import _regeneratorRuntime from \"/Users/admin/projects/dms/src/dealer_admin/node_modules/@babel/runtime-corejs2/helpers/esm/regeneratorRuntime.js\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"/Users/admin/projects/dms/src/dealer_admin/node_modules/@babel/runtime-corejs2/helpers/esm/asyncToGenerator.js\";\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//\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/assessment.js\";\nimport waves from \"@/directive/waves\"; // waves directive\nimport { parseTime } from \"@/utils\";\nimport Pagination from \"@/components/Pagination\";\nimport ReviewLog from \"./review_log.vue\";\nimport Review from \"./review.vue\";\nimport ReviewManager from \"./reviewManagerModal.vue\";\nexport default {\n  name: \"AssessmentReviewList\",\n  components: {\n    ReviewLog: ReviewLog,\n    Review: Review,\n    Pagination: Pagination,\n    ReviewManager: ReviewManager\n  },\n  directives: {\n    waves: waves\n  },\n  data: function data() {\n    return {\n      list: [],\n      total: 0,\n      listLoading: false,\n      listQuery: {\n        page: 1,\n        limit: 10,\n        search: '',\n        status: -1\n      },\n      userid: ''\n    };\n  },\n  props: {\n    dealerReviewStatusMap: {\n      type: Object,\n      default: {}\n    }\n  },\n  computed: {\n    is_super: function is_super() {\n      return this.$store.state.user.is_super;\n    }\n  },\n  created: function created() {\n    this.$forceUpdate();\n  },\n  methods: {\n    init: function () {\n      var _init = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(status) {\n        return _regeneratorRuntime().wrap(function _callee$(_context) {\n          while (1) switch (_context.prev = _context.next) {\n            case 0:\n              this.listQuery = {\n                page: 1,\n                limit: 10,\n                status: status\n              };\n              _context.next = 3;\n              return this.getList();\n            case 3:\n            case \"end\":\n              return _context.stop();\n          }\n        }, _callee, this);\n      }));\n      function init(_x) {\n        return _init.apply(this, arguments);\n      }\n      return init;\n    }(),\n    getList: function () {\n      var _getList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {\n        var res, _res$result, total, list, userid;\n        return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n          while (1) switch (_context2.prev = _context2.next) {\n            case 0:\n              this.listLoading = true;\n              _context2.next = 3;\n              return API.getDealerAssessmentList(this.listQuery);\n            case 3:\n              res = _context2.sent;\n              _res$result = res.result, total = _res$result.total, list = _res$result.list, userid = _res$result.userid;\n              this.total = total;\n              this.userid = userid;\n              this.list = [];\n              this.list = list;\n              this.listLoading = false;\n            case 10:\n            case \"end\":\n              return _context2.stop();\n          }\n        }, _callee2, this);\n      }));\n      function getList() {\n        return _getList.apply(this, arguments);\n      }\n      return getList;\n    }(),\n    fromHandle: function fromHandle(id) {\n      var _this = this;\n      this.$nextTick(function () {\n        _this.$refs.fromType.init(id);\n      });\n    },\n    lookReviewLog: function lookReviewLog(id) {\n      var _this2 = this;\n      this.$nextTick(function () {\n        _this2.$refs.reviewLog.init(id);\n      });\n    },\n    handleFilter: function handleFilter() {\n      this.listQuery.page = 1;\n      this.getList();\n    },\n    showReview: function showReview(id) {\n      var _this3 = this;\n      this.$nextTick(function () {\n        _this3.$refs.review.init(id);\n      });\n    },\n    showReviewManager: function showReviewManager(id) {\n      var _this4 = this;\n      this.$nextTick(function () {\n        _this4.$refs.reviewManager.init(id);\n      });\n    }\n  }\n};",null]}