{"remainingRequest":"/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/broadcast/product/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/views/marketing/broadcast/product/index.vue","mtime":1701742078555},{"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//\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// +----------------------------------------------------------------------\nimport {\n  liveGoodsListApi,\n  // changeProDisplayApi,\n  applyBroadcastProApi,\n  liveGoodsDelApi,\n} from '@/api/marketing';\nimport detailsFrom from './proDetail';\nimport { checkPermi } from '@/utils/permission'; // 权限判断函数\nexport default {\n  name: 'BroadcastProList',\n  computed: {},\n  components: { detailsFrom },\n  data() {\n    return {\n      Loading: false,\n      listLoading: true,\n      product_id: '',\n      dialogVisible: false,\n      tableData: {\n        data: [],\n        total: 0,\n      },\n      keywords: '',\n      tableForm: {\n        page: 1,\n        limit: 20,\n        reviewStatus: '',\n        keywords: '',\n      },\n      liveRoomStatus: '',\n      roomInfo: {},\n    };\n  },\n  mounted() {\n    if (checkPermi(['merchant:mp:live:goods:list'])) this.getList();\n  },\n  methods: {\n    checkPermi,\n    // 排序\n    handleSort(id) {\n      this.id = id;\n      this.$refs.ProDetail.dialogVisible = true;\n      this.$refs.ProDetail.isEdit = true;\n      this.$refs.ProDetail.getData(id);\n    },\n    onEdit(id) {\n      this.$router.push({ path: `/marketing/broadcast/creatPro/${id}` });\n    },\n    // 详情\n    onProDetails(row) {\n      this.roomInfo = row;\n      // this.product_id = id;\n      this.dialogVisible = true;\n      // this.$refs.ProDetail.isEdit = false;\n      // this.$refs.ProDetail.getData(id);\n    },\n    // 删除\n    handleDelete(id, idx) {\n      this.$modalSure('删除该商品吗？').then(() => {\n        liveGoodsDelApi(id).then(() => {\n          this.$message.success('删除成功');\n          if (this.tableData.data.length === 1 && this.tableForm.page > 1)\n            this.tableForm.page = this.tableForm.page - 1;\n          this.getList('');\n        });\n      });\n    },\n    handleSizeChangeIssue(val) {\n      this.tableFormIssue.limit = val;\n      this.getIssueList();\n    },\n    // 列表\n    getList(num) {\n      this.listLoading = true;\n      this.tableForm.page = num ? num : this.tableForm.page;\n      this.tableForm.keywords = encodeURIComponent(this.keywords);\n      liveGoodsListApi(this.tableForm)\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.tableForm.page = page;\n      this.getList();\n    },\n    handleSizeChange(val) {\n      this.tableForm.limit = val;\n      this.getList();\n    },\n    // 修改状态\n    // onchangeIsShow(row) {\n    //   changeProDisplayApi(row.broadcast_goods_id, { is_show: row.is_show })\n    //     .then(({ message }) => {\n    //       this.$message.success(message);\n    //       this.getList();\n    //     })\n    //     .catch(({ message }) => {\n    //       this.$message.error(message);\n    //     });\n    // },\n    // 审核\n  },\n};\n",null]}