{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\home\\homeNewsParticulars.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\home\\homeNewsParticulars.vue","mtime":1667327529575},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\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\r\nimport EipAttachment from \"@/components/eipControl/EipAttachment.vue\";\r\nimport req from \"@/request.js\";\r\nexport default {\r\n  components: { EipAttachment },\r\n  props: [\"id\"],\r\n  data() {\r\n    return {\r\n      dialogVisible: false,\r\n      data: {},\r\n      config:{\r\n\t\t\t\tinitialFrameHeight: 240,\r\n\t\t\t\tUEDITOR_HOME_URL: window.location.origin +'/'+ window.location.pathname.split('/')[1]+'/static/ueditor/',\r\n\t\t\t\ttoolbars:[],\r\n        elementPathEnabled:false,//是否启用元素路径，默认是true显示　\r\n        wordCount:false,          //是否开启字数统计\r\n\t\t\t\t// 初始容器宽度\r\n\t\t\t\tinitialFrameWidth: \"100%\",\r\n\t\t\t\tzIndex:9999,\r\n\t\t\t\tenableAutoSave: false,\r\n\t\t\t\treadonly : true\r\n\t\t\t},\r\n    };\r\n  },\r\n  watch: {\r\n    id: function(val) {\r\n      this.init(val);\r\n    }\r\n  },\r\n  created() {},\r\n  methods: {\r\n    downloadFile(item) {\r\n      req.download(\"${portal}/system/file/v1/downloadFile?fileId=\" + item.id);\r\n    },\r\n    openDialog() {\r\n      this.dialogVisible = true;\r\n    },\r\n    init(id) {\r\n      req\r\n        .get(\r\n          window.context.portal + \"/portalNewsNotice/v1/getNewsById?id=\" + id\r\n        )\r\n        .then(response => {\r\n          //  if(response.data.file){\r\n          //    let file=JSON.parse(response.data.file);\r\n          //    let newFile=[];\r\n          //    for(let x=0;x<file.length;x++){\r\n          //      newFile.push({fileId:file[x].id,fileName:file[x].name,size:file[x].size});\r\n          //    }\r\n          //    response.data.file=JSON.stringify(newFile);\r\n          //  }\r\n          if (\r\n            response.data.rotatingDisplayPictures &&\r\n            response.data.type == 1\r\n          ) {\r\n            response.data.imgUrl =\r\n              window.context.portal +\r\n              \"/system/file/v1/downloadFile?fileId=\" +\r\n              response.data.rotatingDisplayPictures;\r\n          }\r\n          this.data = response.data;\r\n        });\r\n    }\r\n  }\r\n};\r\n",null]}