{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/o_reminder_history.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/o_reminder_history.vue","mtime":1739760944321},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["\n\nimport Constant from \"@/Constant.js\"\nimport controlHidden from \"@/assets/js/controlHidden.js\"\nexport default {\n name: \"o-reminder-history\",\n props: [\"id\"],\n computed: {\n field: function() {\n let formData = this.$parent.findField(this.id);\n if(formData.flowDiagram) {\n let cp = obpmConfig.obpmFilePath;\n formData.flowDiagramPath = cp + formData.flowDiagram;\n }\n if(formData.displayType == 5 || formData.displayType == 3) {\n formData.printHiddenValue = formData.printHiddenValue?formData.printHiddenValue.replace(/ /g,\"\"):'';\n }\n return formData;\n },\n },\n data: function() {\n return {\n Constant,\n tableData:[],\n flowPhoto:'',\n };\n },\n mounted(){\n this.getFlowHistory();\n this.$nextTick(()=>{\n let field = this.field;\n if(field.isHideType) {\n let id = this.id,\n formShowType = field.formShowType;\n controlHidden({id, field, formShowType})\n }\n })\n },\n methods: {\n getFlowHistory(){\n console.log(\"this.fleld---->\",this.field);\n let appId = this.$root.appid\n let docId = this.field.docId;\n this.$api.getRemindHistorys(\n appId,\n docId,\n {\n onSucess: response => {\n this.tableData = response.data.data;\n this.$forceUpdate();\n }\n }\n );\n\n // this.$api.getbillflow(\n // this.field.flowDiagram,\n // {\n // onSucess: res => {\n // \n // //this.flowPhoto = 'data:image/png;base64,' + response.data\n // let blob = new Blob([res.data], {type: \"application/vnd.ms-excel\"});\n // let url = window.URL.createObjectURL(blob);\n // this.flowPhoto = url;\n // console.log(\"url---->\",url)\n // //window.location.href = url;\n\n // }\n // }\n \n // )\n\n }\n },\n \n filters: {\n writeCurrentDate(val){\n let now = new Date(val);\n let year=now.getFullYear(); \n let month=now.getMonth()+1; \n let date=now.getDate(); \n let hour=now.getHours(); \n let minute=now.getMinutes(); \n let second=now.getSeconds(); \n return year+\"-\"+month+\"-\"+date+\" \"+hour+\":\"+minute+\":\"+second; \n }\n }\n}\n",null]}