{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\common\\opinionText.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\common\\opinionText.vue","mtime":1667327529075},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"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\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"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//\nimport { mapState, mapActions } from \"vuex\";\nimport bpmDeputy from \"../../api/bpmDeputy\";\nexport default {\n name: \"opinionText\",\n props: [\"procDefKey\", \"text\"],\n data: function data() {\n return {\n wordCount: 0,\n opinion: \"\"\n };\n },\n watch: {\n text: function text(newVal, oldVal) {\n this.opinion = newVal; //newVal即是instId\n },\n opinion: function opinion(newVal, oldVal) {\n this.$emit(\"getOpinion\", this.opinion);\n }\n },\n computed: mapState({\n approvalItem: function approvalItem(state) {\n return state.storeProcess.approvalItem;\n }\n }),\n methods: {\n opinionInput: function opinionInput() {\n this.wordCount = this.opinion.length;\n },\n choseCommonOpinion: function choseCommonOpinion(commonOpinion) {\n this.opinion += commonOpinion;\n this.opinionInput();\n },\n getOpinion: function getOpinion() {\n return this.opinion;\n },\n addCommonOpinion: function addCommonOpinion() {\n var _this = this;\n\n if (!this.opinion) {\n this.$message.warning(\"请输入审批意见\");\n return;\n }\n\n this.$confirm(\"确认添加'\" + this.opinion + \"'为常用语?\").then(function () {\n var param = {\n expression: _this.opinion,\n departmentId: \"\",\n postId: \"\",\n roleId: \"\",\n type: 4\n };\n bpmDeputy.addApprovalItem(param).then(function (data) {\n if (data.state) {\n _this.$message({\n type: \"success\",\n message: data.message\n });\n\n _this.$store.dispatch(\"storeProcess/getApprovalByDefKeyAndTypeId\", _this.procDefKey);\n }\n });\n }).catch(function () {});\n }\n },\n created: function created() {\n this.$store.dispatch(\"storeProcess/getApprovalByDefKeyAndTypeId\", this.procDefKey);\n }\n};",null]}