{"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/videoChannel/draftList/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/views/videoChannel/draftList/index.vue","mtime":1701742078558},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 <admin@crmeb.com>\n// +----------------------------------------------------------------------\n\nimport { draftListApi, draftDelApi, draftReviewApi } from '@/api/marketing';\nimport { checkPermi } from '@/utils/permission'; // 权限判断函数\nexport default {\n  name: 'videoList',\n  data: function 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: function mounted() {\n    if (checkPermi(['merchant:pay:component:product:draft:list'])) this.getList();\n  },\n  methods: {\n    checkPermi: checkPermi,\n    /**\n     * 删除\n     * @param rowData\n     */\n    handlerOpenDel: function handlerOpenDel(rowData) {\n      var _this = this;\n      this.$modalSure('删除当前数据').then(function () {\n        draftDelApi(rowData.id).then(function (data) {\n          _this.$message.success('删除数据成功');\n          _this.getList();\n        });\n      });\n    },\n    /**\n     * 提审 platformStatus：2提审，1撤回\n     */\n    handlerReview: function handlerReview(rowData, num) {\n      var _this2 = this;\n      this.$modalSure(num === 2 ? '提审商品至平台吗？' : '撤回申请吗？').then(function () {\n        draftReviewApi({\n          draftProductId: rowData.id,\n          platformEditStatus: num\n        }).then(function (data) {\n          _this2.$message.success('提交成功');\n          _this2.getList();\n        });\n      });\n    },\n    /**\n     * 列表\n     * @param num\n     */\n    getList: function getList(num) {\n      var _this3 = this;\n      this.listLoading = true;\n      this.tableFrom.page = num ? num : this.tableFrom.page;\n      this.tableFrom.search = encodeURIComponent(this.search);\n      draftListApi(this.tableFrom).then(function (res) {\n        _this3.tableData.data = res.list;\n        _this3.tableData.total = res.total;\n        _this3.listLoading = false;\n      }).catch(function (res) {\n        _this3.listLoading = false;\n      });\n    },\n    pageChange: function pageChange(page) {\n      this.tableFrom.page = page;\n      this.getList();\n    },\n    handleSizeChange: function handleSizeChange(val) {\n      this.tableFrom.limit = val;\n      this.getList();\n    }\n  }\n};",null]}