{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\FlowFormSubRowAuth.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\flow\\FlowFormSubRowAuth.vue","mtime":1675071991803},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\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//\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 flow from \"@/api/flow.js\";\r\nimport req from \"@/request.js\";\r\nimport { mapState, mapActions } from \"vuex\";\r\nimport FlowNodeCusersSelector from \"@/components/flow/FlowNodeCusersSelector.vue\";\r\nimport utils from \"@/hotent-ui-util.js\";\r\n\r\nconst flowFormSubRowCondition = () =>\r\n import(\"@/components/flow/FlowFormSubRowCondition.vue\");\r\n\r\nexport default {\r\n components: { flowFormSubRowCondition },\r\n data() {\r\n return {\r\n userConditionTab: \"first\",\r\n dialogVisible: false,\r\n title: \"子表数据授权\",\r\n subRowAuth: {},\r\n table: {},\r\n boTree: [],\r\n totalAuth:[],\r\n finishTable:[],\r\n curTableAuth:{}\r\n };\r\n },\r\n watch:{\r\n totalAuth:function(n,o) {\r\n if (!n || n.length ==0) {\r\n this.userConditionTab = \"first\";\r\n }else if (n.length ==1) {\r\n if (n.indexOf('r') >-1) {\r\n this.userConditionTab = \"second\";\r\n }else{\r\n this.userConditionTab = \"first\";\r\n }\r\n }\r\n }\r\n },\r\n computed: mapState({\r\n defConfigData: (state) => state.flow.defConfigData,\r\n }),\r\n methods: {\r\n showDialog: function (subRowAuth, table, boTree) {\r\n this.subRowAuth = subRowAuth;\r\n this.table = table;\r\n this.boTree = boTree;\r\n\r\n this.curTableAuth = JSON.parse(JSON.stringify(this.subRowAuth[this.table.tableName] || {}));\r\n this.totalAuth = this.curTableAuth.total || []\r\n this.userConditionTab = \"first\";\r\n this.dialogVisible = true;\r\n },\r\n isNotEmpty(val) {\r\n if (!val || val.length == 0) {\r\n return false;\r\n }\r\n return true;\r\n },\r\n handleClose: function() {\r\n this.curTableAuth.total = this.totalAuth;\r\n if (this.totalAuth.length ==2) {\r\n this.subRowAuth[this.table.tableName] = this.curTableAuth;\r\n this.dialogVisible = false;\r\n }else{\r\n this.finishTable = [];\r\n if (this.$refs.readCondition) {\r\n this.$refs.readCondition.handleClose();\r\n }\r\n if (this.$refs.editCondition) {\r\n this.$refs.editCondition.handleClose();\r\n }\r\n }\r\n },\r\n },\r\n created() {\r\n let me_ = this;\r\n this.$root.$on('sub-row-auth-confirm-end',function(){\r\n if (me_.finishTable.length == (2 - me_.totalAuth.length)) {\r\n me_.subRowAuth[me_.table.tableName] = me_.curTableAuth;\r\n me_.dialogVisible = false;\r\n }\r\n });\r\n },\r\n};\r\n",null]}