{"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/videoChannel/videoList/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/src/views/videoChannel/videoList/index.vue","mtime":1701741776327},{"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// | 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 { videoProductListApi, videoDelApi, videoUpApi, videoDownApi } from '@/api/videoChannel';\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 };\n },\n mounted() {\n if (checkPermi(['platform:pay:component:product:list'])) this.getList();\n },\n methods: {\n checkPermi,\n // 上架\n upChange(id) {\n videoUpApi(id).then(() => {\n this.$message.success('上架成功');\n this.getList();\n });\n },\n // 下架\n downChange(id) {\n videoDownApi(id).then(() => {\n this.$message.success('下架成功');\n this.getList();\n });\n },\n // 订单删除\n handleDelete(id, idx) {\n this.$modalSure('删除吗?此操作不可逆,请谨慎操作!').then(() => {\n videoDelApi(id).then(() => {\n this.$message.success('删除成功');\n this.tableData.data.splice(idx, 1);\n });\n });\n },\n // 列表\n getList(num) {\n this.listLoading = true;\n this.tableFrom.page = num ? num : this.tableFrom.page;\n videoProductListApi(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]}