{"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\\dialog\\CustomDialogDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\dialog\\CustomDialogDialog.vue","mtime":1675071991694},{"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":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.number.constructor\";\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 req from \"@/request.js\";\nexport default {\n  name: \"custom-dialog-dialog\",\n  props: {\n    appendToBody: {\n      type: Boolean,\n      default: false\n    },\n    single: {\n      type: Boolean,\n      default: true\n    },\n\n    /**显示样式(0:列表 1:树形) */\n    styleType: {\n      type: Number\n    }\n  },\n  data: function data() {\n    return {\n      pageResult: {\n        page: 1,\n        pageSize: 50,\n        total: 0\n      },\n      data: [],\n      dialogVisible: false,\n      selectedNode: null\n    };\n  },\n  computed: {\n    title: function title() {\n      if (this.styleType === 0) {\n        return \"选择[列表类型]-自定义对话框\";\n      } else if (this.styleType === 1) {\n        return \"选择[树形类型]-自定义对话框\";\n      } else if (this.styleType === 2) {\n        return \"选择[组合]-自定义对话框\";\n      }\n    }\n  },\n  methods: {\n    //页面加载显示数据\n    loadData: function loadData(param, cb) {\n      var _this = this;\n\n      req.post(window.context.form + \"/form/customDialog/v1/list\", param).then(function (response) {\n        _this.data = response.data.rows;\n        _this.pageResult = {\n          page: response.data.page,\n          pageSize: response.data.pageSize,\n          total: response.data.total\n        };\n      }).finally(function () {\n        cb && cb();\n      });\n    },\n    showDialog: function showDialog() {\n      this.dialogVisible = true;\n    },\n    handleClose: function handleClose() {\n      this.dialogVisible = false;\n    },\n    onConfirm: function onConfirm() {\n      var selectedList = this.$refs.dialogTable.$refs.htTable.selection;\n\n      if (selectedList.length < 1) {\n        this.$message({\n          message: \"请至少选择一项!\",\n          type: \"warning\"\n        });\n        return;\n      }\n\n      if (this.single && selectedList.length > 1) {\n        this.$message({\n          message: \"只能选择一项!\",\n          type: \"warning\"\n        });\n        return;\n      }\n\n      var arr = [];\n      selectedList.forEach(function (item) {\n        arr.push({\n          alias: item.alias,\n          name: item.name\n        });\n      });\n      this.$emit(\"onConfirm\", arr);\n      this.dialogVisible = false;\n    }\n  }\n};",null]}