{"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/pagediy/components/mobileConfig/c_home_article.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/src/views/pagediy/components/mobileConfig/c_home_article.vue","mtime":1701741776319},{"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/thread-loader/dist/cjs.js","mtime":1701741918386},{"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// | 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 toolCom from '../mobileConfigRight/index.js';\nimport rightBtn from '../rightBtn/index.vue';\nimport * as articleApi from '@/api/article.js';\nimport { checkPermi } from '@/utils/permission'; // 权限判断函数\nexport default {\n name: 'c_home_article',\n componentsName: 'home_article',\n components: {\n ...toolCom,\n rightBtn,\n },\n props: {\n activeIndex: {\n type: null,\n },\n num: {\n type: null,\n },\n index: {\n type: null,\n },\n },\n data() {\n return {\n configObj: {},\n rCom: [\n {\n components: toolCom.c_checked_tab,\n configNme: 'setUp',\n },\n ],\n categoryId: '',\n };\n },\n watch: {\n num(nVal) {\n let value = JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[nVal]));\n this.configObj = value;\n },\n configObj: {\n handler(nVal, oVal) {\n this.$store.commit('mobildConfig/UPDATEARR', { num: this.num, val: nVal });\n },\n deep: true,\n },\n 'configObj.setUp.tabVal': {\n handler(nVal, oVal) {\n var arr = [this.rCom[0]];\n if (nVal == 0) {\n let tempArr = [\n {\n components: toolCom.c_title,\n configNme: 'layoutConfig',\n },\n {\n components: toolCom.c_txt_tab,\n configNme: 'layoutConfig',\n },\n {\n components: toolCom.c_title,\n configNme: 'selectConfig',\n },\n {\n components: toolCom.c_select,\n configNme: 'selectConfig',\n },\n {\n components: toolCom.c_input_number,\n configNme: 'numConfig',\n },\n ];\n this.rCom = arr.concat(tempArr);\n } else {\n let tempArr = [\n {\n components: toolCom.c_title,\n configNme: 'bgColor',\n },\n {\n components: toolCom.c_bg_color,\n configNme: 'bgColor',\n },\n {\n components: toolCom.c_bg_color,\n configNme: 'titleColor',\n },\n {\n components: toolCom.c_bg_color,\n configNme: 'timeColor',\n },\n {\n components: toolCom.c_title,\n configNme: 'upConfig',\n },\n {\n components: toolCom.c_slider,\n configNme: 'upConfig',\n },\n {\n components: toolCom.c_slider,\n configNme: 'downConfig',\n },\n {\n components: toolCom.c_slider,\n configNme: 'contentConfig',\n },\n {\n components: toolCom.c_slider,\n configNme: 'lrConfig',\n },\n {\n components: toolCom.c_slider,\n configNme: 'mbConfig',\n },\n {\n components: toolCom.c_title,\n configNme: 'bgStyle',\n },\n {\n components: toolCom.c_slider,\n configNme: 'bgStyle',\n },\n {\n components: toolCom.c_slider,\n configNme: 'contentStyle',\n },\n ];\n this.rCom = arr.concat(tempArr);\n }\n //文章分类\n if (localStorage.getItem('articleClass')) {\n this.configObj.selectConfig.list = JSON.parse(localStorage.getItem('articleClass'));\n } else {\n if (checkPermi(['platform:article:category:list'])) this.handlerGetTreeList();\n }\n },\n deep: true,\n },\n },\n mounted() {\n this.$nextTick(() => {\n if (this.num) {\n let value = JSON.parse(JSON.stringify(this.$store.state.mobildConfig.defaultArray[this.num]));\n this.configObj = value;\n }\n });\n },\n created() {},\n methods: {\n checkPermi,\n //文章分类\n handlerGetTreeList() {\n articleApi.articleCategoryListApi().then((data) => {\n let list = data.filter((item) => {\n return item.status;\n });\n localStorage.setItem('articleClass', JSON.stringify(list));\n this.configObj.selectConfig.list = list;\n });\n },\n getConfig(data) {\n if (data.name === 'select') this.categoryId = data.values;\n if (data.name && (data.name === 'select' || data.name === 'number')) this.getArticleList();\n },\n //文章列表\n getArticleList() {\n articleApi\n .ListArticle({\n author: null,\n cid: this.categoryId,\n page: 1,\n title: '',\n limit: this.configObj.numConfig.val,\n })\n .then((data) => {\n this.configObj.selectConfig.articleList = data.list;\n });\n },\n },\n};\n",null]}