{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\components\\myLayout\\myLayoutList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\myLayout\\myLayoutList.vue","mtime":1675214577651},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.search\";\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { mapState, mapActions } from \"vuex\";\nimport req from \"@/request.js\";\n\nvar PortalDesignerDialog = function PortalDesignerDialog() {\n  return import(\"@/components/myLayout/PortalDesignerDialog.vue\");\n};\n\nimport EipPopconfirmButton from \"@/components/eipControl/EipPopconfirmButton\";\nexport default {\n  name: \"approvalItemList\",\n  components: {\n    PortalDesignerDialog: PortalDesignerDialog,\n    EipPopconfirmButton: EipPopconfirmButton\n  },\n  data: function data() {\n    return {\n      tableData: \"\",\n      fullscreenLoading: true,\n      checkBoxData: [],\n      portal: window.context.portal,\n      rows: [],\n      pagination: {\n        page: 1,\n        pageSize: 20,\n        showTotal: true\n      },\n      total: 1\n    };\n  },\n  methods: {\n    setValid: function setValid(id) {\n      var _this = this;\n\n      req.get(this.portal + \"/portal/sysIndexMyLayout/v1/setValid?id=\" + id).then(function (response) {\n        _this.search();\n      });\n    },\n    designClose: function designClose() {\n      this.init();\n    },\n    addMyLayout: function addMyLayout() {\n      this.$refs.designDialog.showDialog();\n    },\n    editMylayout: function editMylayout(id) {\n      this.$refs.designDialog.showDialog(id);\n    },\n    init: function init(pagination) {\n      var _this2 = this;\n\n      if (!pagination) {\n        pagination = {\n          pageBean: {\n            page: 1,\n            pageSize: 20,\n            showTotal: true\n          }\n        };\n      }\n\n      req.post(this.portal + \"/portal/sysIndexMyLayout/v1/listJson\", pagination).then(function (response) {\n        _this2.rows = response.data.rows;\n        var pageBean = {\n          page: response.data.page,\n          pageSize: response.data.pageSize,\n          showTotal: true\n        };\n        _this2.pagination = pageBean;\n        _this2.total = response.data.total;\n        _this2.fullscreenLoading = false;\n      });\n    },\n    remove: function remove() {\n      var _this3 = this;\n\n      var ids = [];\n\n      if (this.checkBoxData && this.checkBoxData.length > 0) {\n        for (var index = 0; index < this.checkBoxData.length; index++) {\n          ids.push(this.checkBoxData[index].id);\n        }\n      } //数组去重\n      //this.checkBoxData = Array.from(new Set(this.checkBoxData));\n\n\n      if (ids.length > 0) {\n        req.remove(this.portal + \"/portal/sysIndexMyLayout/v1/deleteLayout?ids=\" + ids.join(\",\")).then(function (response) {\n          _this3.search();\n        });\n      } else {\n        this.$message({\n          message: \"请选择要删除的数据\",\n          type: \"warning\"\n        });\n      }\n    },\n    handleChecked: function handleChecked(value) {\n      this.checkBoxData = value;\n    },\n    //Loading 加载中\n    openFullScreen: function openFullScreen() {\n      this.fullscreenLoading = true;\n    },\n    // 查询\n    search: function search(str) {\n      this.openFullScreen();\n\n      if (str == \"find\") {\n        this.pagination.page = 1;\n      }\n\n      var querys = []; //查询条件\n\n      var queryFilter = {};\n      var pageBean = {\n        pageBean: this.pagination\n      };\n\n      if (this.tableData == \"\") {\n        this.init(pageBean);\n      } else {\n        querys = [{\n          property: \"NAME_\",\n          value: this.tableData,\n          group: \"main\",\n          operation: \"LIKE\",\n          relation: \"OR\"\n        }];\n        queryFilter = {\n          pageBean: this.pagination,\n          querys: querys\n        };\n        this.init(queryFilter);\n      }\n    },\n    //重置\n    reset: function reset() {\n      this.tableData = \"\";\n      this.search(\"find\");\n    },\n    operating: function operating(id, action) {\n      var title = action == \"edit\" ? \"编辑常用语\" : action == \"add\" ? \"添加常用语\" : \"查看常用语\";\n\n      if (action == \"add\") {\n        this.$router.push(\"/approvalItem/approvalItemAdd\");\n      } else if (action == \"edit\") {\n        this.$router.push(\"/approvalItem/approvalItemEdit/\" + id);\n      } else {\n        this.$router.push(\"/approvalItem/approvalItemGet/\" + id);\n      }\n    },\n    handleSizeChange: function handleSizeChange(size) {\n      //每页下拉显示数据\n      this.$store.dispatch(\"approvalItem/setPaginationSize\", size);\n      this.search();\n    },\n    handleCurrentChange: function handleCurrentChange(currentPage) {\n      //点击第几页\n      this.$store.dispatch(\"approvalItem/setPaginationPageNum\", currentPage);\n      this.search();\n    }\n  },\n  created: function created() {\n    this.init();\n  }\n};",null]}