{"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/comment/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/Users/admin/projects/dms/src/dealer_admin/src/views/comment/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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport * as API from \"@/api/comment.js\";\nimport waves from \"@/directive/waves\"; // waves directive\nimport {parseTime} from \"@/utils\";\nimport Pagination from \"@/components/Pagination\";\n\nexport default {\n  name: \"Comment\",\n  components: {Pagination},\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        style:'',\n      },\n      commentStyleList:[],\n      informationTypeMap:{},\n    };\n  },\n  created() {\n    this.$forceUpdate();\n    this.getCommentStyleList();\n    this.getCommentStyleMap();\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 getCommentStyleList() {\n      const res = await API.getCommentStyleList();\n      let {list} = res.result;\n      this.commentStyleList = list;\n    },\n    async getCommentStyleMap(){\n      const res = await API.getCommentStyleMap();\n      let {comment_style} = res.result;\n      this.commentStyleMap = comment_style;\n      console.log(\"commentStyleMap\",this.commentStyleMap);\n    },\n    async handle(id) {\n      this.$confirm(\"是否确定已处理？\", \"提示\")\n        .then(async _ => {\n          const res = await API.handle({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    handleFilter() {\n      this.listQuery.page = 1;\n      this.getList();\n    }\n  }\n};\n",null]}