{"remainingRequest":"/data/jenkins/workspace/mer.mall2.baibaodun.cn/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/mer.mall2.baibaodun.cn/src/views/videoChannel/draftList/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/mer.mall2.baibaodun.cn/src/views/videoChannel/draftList/index.vue","mtime":1720764823964},{"path":"/data/jenkins/workspace/mer.mall2.baibaodun.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/mer.mall2.baibaodun.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.mall2.baibaodun.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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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~2021 https://www.crmeb.com All rights reserved.\n// +----------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权\n// +----------------------------------------------------------------------\n// | Author: CRMEB Team \n// +----------------------------------------------------------------------\n\nimport { draftListApi, draftDelApi, draftReviewApi } from '@/api/marketing';\nimport { checkPermi } from '@/utils/permission'; // 权限判断函数\nexport default {\n name: 'videoList',\n data() {\n return {\n listLoading: false,\n tableData: {\n data: [],\n total: 0,\n },\n tableFrom: {\n page: 1,\n limit: 20,\n proId: '',\n search: '',\n },\n search: '',\n };\n },\n mounted() {\n if (checkPermi(['merchant:pay:component:product:draft:list'])) this.getList();\n },\n methods: {\n checkPermi,\n /**\n * 删除\n * @param rowData\n */\n handlerOpenDel(rowData) {\n this.$modalSure('删除当前数据').then(() => {\n draftDelApi(rowData.id).then((data) => {\n this.$message.success('删除数据成功');\n this.getList();\n });\n });\n },\n /**\n * 提审 platformStatus:2提审,1撤回\n */\n handlerReview(rowData, num) {\n this.$modalSure(num === 2 ? '提审商品至平台吗?' : '撤回申请吗?').then(() => {\n draftReviewApi({ draftProductId: rowData.id, platformEditStatus: num }).then((data) => {\n this.$message.success('提交成功');\n this.getList();\n });\n });\n },\n /**\n * 列表\n * @param num\n */\n getList(num) {\n this.listLoading = true;\n this.tableFrom.page = num ? num : this.tableFrom.page;\n this.tableFrom.search = encodeURIComponent(this.search);\n draftListApi(this.tableFrom)\n .then((res) => {\n this.tableData.data = res.list;\n this.tableData.total = res.total;\n this.listLoading = false;\n })\n .catch((res) => {\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]}