{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/views/marketing/seckill/seckillActivity/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/views/marketing/seckill/seckillActivity/index.vue","mtime":1701742078555},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/babel.config.js","mtime":1701742078504},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/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//\n//\n//\n//\n//\n//\n\nimport { seckillActivityListApi, seckillAtivityDelApi } from '@/api/marketing';\nimport { checkPermi } from '@/utils/permission'; // 权限判断函数\nimport Cookies from 'js-cookie';\nexport default {\n  name: 'SeckillList',\n  data: function data() {\n    return {\n      listLoading: false,\n      tableData: {\n        data: [],\n        total: 0\n      },\n      tableForm: {\n        page: 1,\n        limit: 20,\n        name: '',\n        date: ''\n      },\n      name: '',\n      fromList: this.$constants.fromList,\n      merStarLevel: Cookies.get('merStarLevel')\n    };\n  },\n  mounted: function mounted() {\n    if (checkPermi(['merchant:seckill:activity:page'])) this.getList(1);\n    if (checkPermi(['merchant:plat:product:category:cache:tree'])) this.$store.dispatch('product/getAdminProductClassify');\n  },\n  methods: {\n    checkPermi: checkPermi,\n    goOn: function goOn(id) {\n      this.$router.push({\n        path: \"/marketing/seckill/creatActivity/\".concat(id)\n      });\n    },\n    // 删除\n    handleDelete: function handleDelete(id) {\n      var _this = this;\n      this.$modalSure(\"\\u5220\\u9664\\u8BE5\\u79D2\\u6740\\u6D3B\\u52A8\\u5417\\uFF1F\").then(function () {\n        seckillAtivityDelApi(id).then(function () {\n          _this.$message.success('删除成功');\n          if (_this.tableData.data.length === 1 && _this.tableForm.page > 1) _this.tableForm.page = _this.tableForm.page - 1;\n          _this.getList();\n        });\n      });\n    },\n    // 列表\n    getList: function getList(num) {\n      var _this2 = this;\n      this.tableForm.page = num ? num : this.tableForm.page;\n      this.tableForm.name = encodeURIComponent(this.name);\n      this.listLoading = true;\n      seckillActivityListApi(this.tableForm).then(function (res) {\n        _this2.tableData.data = res.list;\n        _this2.tableData.total = res.total;\n        _this2.listLoading = false;\n      }).catch(function (res) {\n        _this2.listLoading = false;\n      });\n    },\n    pageChange: function pageChange(page) {\n      this.tableForm.page = page;\n      this.getList();\n    },\n    handleSizeChange: function handleSizeChange(val) {\n      this.tableForm.limit = val;\n      this.getList();\n    }\n  }\n};",null]}