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