{"remainingRequest":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/admin.ws.baibaodun.com.cn/src/views/product/comment/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/src/views/product/comment/index.vue","mtime":1701741776324},{"path":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":1701741929501},{"path":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":1701741918737},{"path":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js","mtime":1701741928146}],"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//\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// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]\n// +---------------------------------------------------------------------\n// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.\n// +---------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权\n// +---------------------------------------------------------------------\n// | Author: CRMEB Team \n// +---------------------------------------------------------------------\nimport merchantName from '@/components/merchantName';\nimport { replyListApi, replyDeleteApi } from '@/api/product';\nimport { formatDates } from '@/utils/index';\nimport { userListApi } from '@/api/user';\nimport { checkPermi } from '@/utils/permission'; // 权限判断函数\nexport default {\n name: 'StoreComment',\n filters: {\n formatDate(time) {\n if (time !== 0) {\n const date = new Date(time * 1000);\n return formatDates(date, 'yyyy-MM-dd hh:mm');\n }\n },\n },\n components: { merchantName },\n data() {\n return {\n props: {\n children: 'child',\n label: 'name',\n value: 'id',\n emitPath: false,\n },\n fromList: this.$constants.fromList,\n tableData: {\n data: [],\n total: 0,\n },\n listLoading: false,\n tableFrom: {\n page: 1,\n limit: 20,\n isReply: '',\n dateLimit: '',\n merId: '',\n nickname: '',\n productSearch: '',\n isDel: false,\n },\n timeVal: [],\n loading: false,\n uids: [],\n options: [],\n timer: '',\n };\n },\n watch: {\n $route(to, from) {\n this.getList();\n },\n },\n mounted() {\n if (checkPermi(['platform:product:reply:list'])) this.getList();\n },\n methods: {\n checkPermi,\n remoteMethod(query) {\n if (query !== '') {\n this.loading = true;\n setTimeout(() => {\n this.loading = false;\n userListApi({ keywords: query, page: 1, limit: 10 }).then((res) => {\n this.options = res.list;\n });\n }, 200);\n } else {\n this.options = [];\n }\n },\n getMerId(id) {\n this.tableFrom.merId = id;\n this.seachList();\n },\n seachList() {\n this.tableFrom.page = 1;\n this.getList();\n },\n // 选择时间\n selectChange(tab) {\n this.timeVal = [];\n this.tableFrom.page = 1;\n this.getList();\n },\n // 具体日期\n onchangeTime(e) {\n this.timeVal = e;\n this.tableFrom.dateLimit = e ? this.timeVal.join(',') : '';\n this.tableFrom.page = 1;\n this.getList();\n },\n // 删除\n handleDelete(id, idx) {\n this.$modalSure().then(() => {\n replyDeleteApi(id).then(() => {\n this.$message.success('删除成功');\n this.tableData.data.splice(idx, 1);\n });\n });\n },\n // 列表\n getList() {\n this.listLoading = true;\n this.tableFrom.uid = this.uids.join(',');\n replyListApi(this.tableFrom)\n .then((res) => {\n this.tableData.data = res.list;\n this.tableData.total = res.total;\n this.listLoading = false;\n })\n .catch(() => {\n this.listLoading = false;\n });\n },\n pageChange(page) {\n this.tableFrom.page = page;\n this.getList();\n },\n handleSizeChange(val) {\n this.tableFrom.limit = val;\n this.getList();\n },\n },\n};\n",null]}