{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/information.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/information.vue","mtime":1740130327257},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n\nimport axios from \"axios\";\nexport default {\n data() {\n return {\n tabPosition: \"left\",\n information: \"\",\n msgsubmit: \"\",\n headline: \"\",\n recipient: \"\",\n Howmanywords: 140,\n tabpanelComment: \"\",\n textarea: \"\",\n workslide: \"first\",\n activekeep: \"first\",\n activeName: \"first\",\n dialogVisible: false,\n Receivedby: false, //发公告里面的加号弹框\n centerDialogVisible: false,\n remnant: 140,\n eduiPlus: 0,\n eduisubtract: 10000,\n props: {\n label: \"name\",\n children: \"zones\",\n isLeaf: \"leaf\"\n },\n propsPull: {\n label: \"name\",\n children: \"zones\",\n isLeaf: \"leaf\"\n }\n };\n },\n created() {\n\n },\n methods: {\n //获取发送范围的数据\n loadNode(node, resolve) {\n if (node.level === 0) {\n axios({\n url:\n \"obpm\" + \"/portal/component/user/getDepartmentsByParentId.action\",\n method: \"get\",\n params: {\n parentId: \"\"\n }\n })\n .then(res => {\n resolve(res.data.data);\n })\n .catch(() => {\n \n });\n } else {\n axios({\n url:\n \"obpm\" + \"/portal/component/user/getDepartmentsByParentId.action\",\n method: \"get\",\n params: {\n parentId: node.key\n }\n })\n .then(res => {\n resolve(res.data.data);\n })\n .catch(() => {\n\n });\n }\n },\n //获取接收人的数据\n loadNodePull(node, resolve) {\n if (node.level === 0) {\n axios({\n url:\n \"obpm\" + \"/portal/component/user/getDepartmentsByParentId.action\",\n method: \"get\",\n params: {\n parentId: \"\"\n }\n })\n .then(res => {\n resolve(res.data.data);\n })\n .catch(() => {\n });\n } else {\n axios({\n url:\n \"obpm\" + \"/portal/component/user/getDepartmentsByParentId.action\",\n method: \"get\",\n params: {\n parentId: node.key\n }\n })\n .then(res => {\n resolve(res.data.data);\n })\n .catch(() => {\n });\n }\n },\n //发送公告里面的加号弹框\n PlusSign() {\n this.Receivedby = true;\n },\n //把获取到的数据放到接受人里面去\n Receivethetitle(event) {\n this.recipient = event.name;\n },\n Sendthescope(event) {\n this.msgsubmit = event.name;\n },\n eduirelease() {\n if (this.headline.length == 0) {\n alert(\"标题不能为空!\");\n } else if (this.recipient.length == 0) {\n alert(\"接收人不能为空!\");\n } else if (this.textarea.length == 0) {\n alert(\"内容不能为空!\");\n } else {\n this.centerDialogVisible = false;\n this.headline = \"\";\n this.recipient = \"\";\n this.textarea = \"\";\n }\n },\n tabpanelInput() {\n let txtVal = this.tabpanelComment.length;\n this.Howmanywords = 140 - txtVal;\n },\n eduiInput() {\n let txtVal = this.textarea.length;\n this.eduisubtract = 10000 - txtVal;\n this.eduiPlus = 0 + txtVal;\n },\n descInput() {\n let txtVal = this.information.length;\n this.remnant = 140 - txtVal;\n },\n handleRemove(file) {\n console.log(file);\n },\n handlePreview(file) {\n console.log(file);\n },\n handleExceed(files) {\n this.$message.warning(\n `当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length} 个文件`\n );\n },\n beforeRemove(file) {\n return this.$confirm(`确定移除 ${file.name}?`);\n },\n //重置发送范围的输入框\n minus() {\n this.msgsubmit = \"\";\n },\n eduiminus() {\n this.recipient = \"\";\n },\n adhibition() {\n if (this.information == \"\") {\n alert(\"内容不能为空!\");\n } else if (this.msgsubmit == \"\") {\n alert(\"发送范围不能为空!\");\n }\n },\n \n }\n};\n",null]}