{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\tripartite\\buildBigScreen\\src\\page\\group\\imglist.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\tripartite\\buildBigScreen\\src\\page\\group\\imglist.vue","mtime":1675071992616},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\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\r\nimport { imgOption } from '@/tripartite/buildBigScreen/src/option/config'\r\nexport default {\r\n data () {\r\n return {\r\n imgVisible: false,\r\n imgObj: '',\r\n type: '',\r\n imgActive: 0,\r\n imgOption: imgOption,\r\n imgTabs: [],\r\n token:''\r\n }\r\n },\r\n created() {\r\n this.getToken()\r\n },\r\n computed: {\r\n styleName () {\r\n if (this.type === 'background') {\r\n return {\r\n width: '200px'\r\n }\r\n }\r\n return {}\r\n },\r\n //获取token值\r\n headers() {\r\n return {\r\n \"Authorization\": this.token \r\n }\r\n }\r\n },\r\n watch: {\r\n type: {\r\n handler () {\r\n if (this.type === 'background') {\r\n this.imgActive = 0;\r\n } else if (this.type == 'border') {\r\n this.imgActive = 1;\r\n } else {\r\n this.imgActive = 2;\r\n }\r\n },\r\n immediate: true\r\n }\r\n },\r\n methods: {\r\n onSuccess (res) {\r\n const url = res.data.link;\r\n this.imgOption[this.imgActive].unshift({\r\n label: url,\r\n value: url\r\n });\r\n },\r\n openImg (item, type) {\r\n this.type = type;\r\n this.imgObj = item\r\n this.imgVisible = true;\r\n },\r\n handleSetimg (item) {\r\n this.imgVisible = false;\r\n this.$emit('change', item, this.imgObj);\r\n },\r\n //获取tokren\r\n getToken: function () {\r\n if (window.sessionStorage['currentUser']) {\r\n var currentUserInfo = eval('(' + window.sessionStorage['currentUser'] + ')');\r\n // console.log(currentUserInfo.token);\r\n this.token = 'Bearer ' + currentUserInfo.token\r\n // console.log(queryData.token)\r\n return currentUserInfo.token;\r\n } else {\r\n return 'Bearer ';\r\n }\r\n }\r\n }\r\n}\r\n",null]}