{"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/mobileConfigRight/c_pictrue.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/admin.ws.baibaodun.com.cn/src/views/pagediy/components/mobileConfigRight/c_pictrue.vue","mtime":1701741776321},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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// +----------------------------------------------------------------------\nexport default {\n name: 'c_pictrue',\n props: {\n configObj: {\n type: Object,\n },\n configNme: {\n type: String,\n },\n },\n data() {\n return {\n defaults: {},\n configData: {},\n isUpdate: false, // 重新渲染\n currentIndex: 0,\n arrayObj: {\n image: '',\n link: '',\n },\n };\n },\n computed: {\n style() {\n return this.configObj.tabConfig.tabVal;\n },\n },\n mounted() {\n this.$nextTick(() => {\n this.defaults = this.configObj;\n if (this.configObj.hasOwnProperty('timestamp')) {\n this.isUpdate = true;\n } else {\n this.isUpdate = false;\n }\n this.$set(this, 'configData', this.configObj[this.configNme]);\n });\n },\n watch: {\n configObj: {\n handler(nVal, oVal) {\n this.defaults = nVal;\n this.$set(this, 'configData', nVal[this.configNme]);\n this.isUpdate = true;\n this.$set(this, 'isUpdate', true);\n },\n deep: true,\n },\n 'configObj.tabConfig.tabVal': {\n handler(nVal, oVal) {\n this.count = this.defaults.tabConfig.list[nVal].count;\n this.picArrayConcat(this.count);\n this.configData.picList.splice(nVal + 1);\n this.currentIndex = 0;\n let list = this.defaults.menuConfig.list[0];\n if (this.configData.picList[0]) {\n list.img = this.configData.picList[0].image;\n list.info[0].value = this.configData.picList[0].link;\n }\n },\n deep: true,\n },\n },\n methods: {\n currentTab(e, data) {\n this.currentIndex = e;\n this.configData.tabVal = e;\n if (this.defaults.menuConfig.isCube) {\n let list = this.defaults.menuConfig.list[0];\n if (data.picList[e] && data.picList[e].image) {\n list.img = data.picList[e].image;\n list.info[0].value = data.picList[e].link;\n } else {\n list.img = '';\n list.info[0].value = '';\n }\n }\n },\n picArrayConcat(count) {\n for (let i = this.configData.picList.length; i < count; i++) {\n this.configData.picList.push(this.arrayObj);\n }\n },\n },\n};\n",null]}