{"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/main_read.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/main_read.vue","mtime":1739760944319},{"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":["\nimport form_selectApprover_flowpanel from \"@/components/form_selectApprover_flowpanel.vue\";\nimport dateFormat from '@/assets/js/dateFormat'; \nexport default {\n inject: [\"reload\"],\n components: {\n form_selectApprover_flowpanel,\n },\n data() {\n return {\n loading:true,\n preserve: [],\n preserveObj: {},\n putaside: [],\n Formrendering: [], //表格里面首次渲染的数据\n backlogRight: \"\", //$t('placeholder.theme')框的v-model\n backlogProposer: \"\", //申请框的v-model\n ChildList:'',//按部门的穿梭框的v-model\n dialogVisible: false, //弹出框是否弹出\n activeName: \"first\", //标签页默认选中第一个\n Storage: [], //储存按角色为树形的用户数据\n Shuttle: \"\", //按角色的穿梭框的v-model\n userSublist: [], //按角色储存子列表的数据\n DepartmentSublist:[],//按部门储存子列表数据\n //按部门选择的节点展示\n props: {\n label: \"name\",\n children: \"zones\",\n isLeaf: \"leaf\"\n },\n row_count:0,\n isUpcoming:true,\n initiatorId:'',\n currentSelectFlowId:'',\n };\n },\n created() {\n this.navigation();\n this.flowcenters();\n //this.selectbox();\n },\n methods: {\n setSubjectFormat(str) {\n if (str && typeof str == 'string') {\n try {\n let obj = JSON.parse(str);\n if (typeof obj == 'object' && obj) {\n return obj.summaryText;\n } else {\n return str;\n }\n } catch (e) {\n return str;\n }\n }\n },\n selectApprover(name, id) {\n this.dialogVisible = false;\n this.backlogProposer = name;\n this.initiatorId = id;\n },\n tableRowClassName({row, rowIndex}) {\n row.index = rowIndex;\n if (rowIndex%2!=0) {\n return 'table-row-color';\n } else {\n return '';\n }\n },\n onRowClick(row, column, event ) {\n console.log(\"row--->\",row.index);\n \n let params = {\n appId: this.$root.appid,\n linkType:'00',\n actionContent:row.formId,\n name: row.formName,\n docId:row.docId,\n _select:row.docId,\n refreshId:'11',\n };\n this.$emit(\"add-tab\", params);\n this.Formrendering[row.index].read = true;\n this.$forceUpdate();\n\n },\n writeCurrentDate(val){\n let now = new Date(val);\n let year=now.getFullYear(); \n let month=(now.getMonth() + 1 < 10 ? '0' + (now.getMonth() + 1) : now.getMonth() + 1) \n let date=(now.getDate() < 10 ? '0' + now.getDate() : 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 navigation() {\n //applicationId=&isread=true&_=1594186597018\n this.$api.navCarboncopy(\n {\n applicationId: this.$root.appid,\n isread: true,\n _:new Date().getTime(),\n },\n {\n onSucess: res => {\n let newData = res.data.data[0].carboncopyFlowList.map(item => {\n return {\n id: item.id,\n name: item.name,\n num: item.num\n };\n });\n this.preserveObj = {\n name: res.data.data[0].name,\n total: newData[newData.length-1].num,\n }\n this.preserve = newData.slice(0,newData.length-1);\n }\n }\n )\n },\n \n //获取待办事项\n flowcenters() {\n let appId = this.$root.appid;\n let params = {\n title: this.backlogRight,\n linesPerPage: 10,\n pageNo: 1,\n initiatorId: this.initiatorId,\n flowId: this.currentSelectFlowId,\n isRead: true,\n isMyWorkFlow: false,\n appId: this.$root.appid,\n _: new Date().getTime(),\n }\n this.$api.getCarboncopyList(\n appId,\n params,\n {\n onSucess: res => {\n this.row_count = res.data.data.rowCount;\n let newData = res.data.data.datas.map(item => {\n return {\n formId: item.formId,\n docId: item.docId,\n initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastProcessTime: this.writeCurrentDate(item.lastProcessTime),//dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)), //.substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = this.$t('flow.circulation')),\n stateLabel: item.stateLabel,\n subject: item.subject,\n read:item.read,\n formName: item.formName,\n };\n });\n this.Formrendering = newData;\n this.loading = false;\n }\n }\n )\n },\n //{{$t('btns.clean')}}$t('placeholder.theme')框和申请框里面面对数据\n eliminating() {\n this.backlogProposer = '';\n this.initiatorId = '';\n },\n //分页请求\n paging(num) {\n let appId = this.$root.appid;\n let params = {\n title: this.backlogRight,\n linesPerPage: 10,\n pageNo: num,\n initiatorId: this.initiatorId,\n flowId: this.currentSelectFlowId,\n isRead: true,\n isMyWorkFlow: false,\n appId: this.$root.appid,\n _: new Date().getTime(),\n }\n this.$api.getCarboncopyList(\n appId,\n params,\n {\n onSucess: res => {\n this.row_count = res.data.data.rowCount;\n let newData = res.data.data.datas.map(item => {\n return {\n formId: item.formId,\n docId: item.docId,\n initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastProcessTime: this.writeCurrentDate(item.lastProcessTime),//dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)) //.substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = this.$t('flow.circulation')),\n stateLabel: item.stateLabel,\n subject: item.subject,\n read:item.read,\n formName: item.formName,\n };\n });\n this.Formrendering = newData;\n }\n }\n )\n },\n //$t('placeholder.theme')框的出发事件\n activate() {\n if (this.backlogRight.length === 0) {\n console.log(\"--->0\");\n }\n },\n //点击左侧导航触发待办事项\n omniselector(id) {\n let appId = this.$root.appid;\n this.currentSelectFlowId = id;\n let params = {\n title: this.backlogRight,\n linesPerPage: 10,\n pageNo: 1,\n initiatorId: this.initiatorId,\n flowId: id,\n isRead: true,\n isMyWorkFlow: false,\n appId: this.$root.appid,\n _: new Date().getTime(),\n }\n this.$api.getCarboncopyList(\n appId,\n params,\n {\n onSucess: res => {\n this.row_count = res.data.data.rowCount;\n let newData = res.data.data.datas.map(item => {\n return {\n formId: item.formId,\n docId: item.docId,\n initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastProcessTime: this.writeCurrentDate(item.lastProcessTime),//dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)), //.substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = this.$t('flow.circulation')),\n stateLabel: item.stateLabel,\n subject: item.subject,\n read:item.read,\n formName: item.formName,\n };\n });\n this.Formrendering = newData;\n }\n }\n )\n },\n //点击重新加载表格数据\n primaryNavigationSystem() {\n this.currentSelectFlowId = '';\n let appId = this.$root.appid;\n let params = {\n title: '',\n linesPerPage: 10,\n pageNo: 1,\n initiatorId: '',\n flowId: '',\n isRead: true,\n isMyWorkFlow: false,\n appId: this.$root.appid,\n _: new Date().getTime(),\n }\n this.$api.getCarboncopyList(\n appId,\n params,\n {\n onSucess: res => {\n this.row_count = res.data.data.rowCount;\n let newData = res.data.data.datas.map(item => {\n return {\n formId: item.formId,\n docId: item.docId,\n initiator: item.initiator,\n initiatorDept: item.initiatorDept,\n lastProcessTime: this.writeCurrentDate(item.lastProcessTime),//dateFormat.calculateTime(this.writeCurrentDate(item.lastProcessTime)), //.substring(5, 10),\n lastFlowOperation: (item.lastFlowOperation = this.$t('flow.circulation')),\n stateLabel: item.stateLabel,\n subject: item.subject,\n read:item.read,\n formName: item.formName,\n };\n });\n this.Formrendering = newData;\n this.loading = false;\n }\n }\n )\n },\n //点击添加弹出\n AddPopup() {\n this.dialogVisible = true;\n },\n \n }\n};\n",null]}