{"remainingRequest":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/Modules/ViewList.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/Modules/ViewList.vue","mtime":1701674859502},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js","mtime":1701674874357},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js","mtime":1701674874584},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js","mtime":1701674874903}],"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\nimport { getModuleViewList, deleteModuleView, copyView } from \"@/service/ViewApi.js\"\nimport viewDetail from \"@/components/Modules/View.vue\"\nimport { delMsg } from \"@/utils/elementui\"\nexport default {\n name: \"viewlist\",\n components: {\n viewDetail,\n },\n data() {\n return {\n searchParams: {\n appId: \"\",\n moduleId: \"\",\n searchword: \"\",\n pageNo: 1,\n linesPerPage: 10,\n },\n params: {\n id: \"\",\n name: \"\",\n description: \"\",\n pagination: true,\n linesPerPage: 10,\n showTotalRow: true,\n refresh: true,\n readonly: true,\n relatedMap: \"\",\n displayType: \"\",\n showWaterMark: true,\n waterMarkScript: \"\",\n searchFormId: \"\",\n styleId: \"\",\n relatedForm: \"\",\n templateForm: \"\",\n permissionType: \"\",\n filterScript: \"\",\n sqlFilterScript: \"\",\n procedureFilterScript: \"\",\n filterCondition: \"\",\n commonFilterCondition: \"\",\n authorityCondition: \"\",\n openType: \"\",\n editMode: \"\",\n },\n data: {},\n multipleSelectionId: [],\n multipleSelectionArray: [],\n tableHeight: 100,\n }\n },\n\n mounted() {\n this.getScollerHeight()\n let appId = sessionStorage.getItem(\"appId\")\n let moduleId = this.$route.query.moduleId\n let searchParams = {\n ...this.searchParams,\n appId: appId,\n moduleId: moduleId,\n }\n\n this.searchParams = searchParams\n this.getViewList()\n },\n\n methods: {\n //给form改变formVisible用\n changeviewVisible() {\n this.getViewList()\n },\n /**\n * 动态计算页面table高度\n */\n getScollerHeight() {\n setTimeout(() => {\n let clientHeight = document.documentElement.clientHeight || document.body.clientHeight\n //60 头部, 32 面包屑, 41 第一层页签, 50 列表标题, 71 查询, 20 父组件外边距, 40分页\n this.tableHeight = clientHeight - 60 - 32 - 41 - 50 - 71 - 20 - 40 + \"px\"\n }, 100)\n },\n\n /**\n * 获取视图列表\n */\n getViewList() {\n getModuleViewList(this.searchParams, {\n onSucess: (response) => {\n if (response.data.errcode == 0) {\n this.data = response.data.data\n }\n },\n })\n },\n\n /**\n * 重置查询名称值\n */\n resetName() {\n let searchParams = {\n ...this.searchParams,\n searchword: \"\",\n }\n this.searchParams = searchParams\n this.getViewList()\n },\n\n /**\n * 勾选行时响应\n */\n handleSelectionChange(val) {\n let multipleSelectionId = []\n if (val.length) {\n val.map((e) => {\n multipleSelectionId.push(e.id)\n })\n }\n this.multipleSelectionArray = val\n this.multipleSelectionId = multipleSelectionId\n },\n\n /**\n * 删除角色\n */\n async showDeleteConfirm() {\n let multipleSelectionId = this.multipleSelectionId\n if (multipleSelectionId.length > 0) {\n try {\n await delMsg(this.$t(\"msg.delConfirm\"), this.$t(\"msg.tip\"))\n const response = await deleteModuleView(multipleSelectionId)\n if (response.data.errcode == 0) {\n this.getViewList()\n this.$message.success(this.$t(\"msg.del_ss\"))\n }\n } catch (e) {\n console.log(e)\n }\n } else {\n this.$message.error(this.$t(\"msg.check_data\"))\n }\n },\n\n /**\n * 当前页\n */\n handleCurrentChange(val) {\n let searchParams = {\n ...this.searchParams,\n pageNo: val,\n }\n this.searchParams = searchParams\n this.getViewList()\n },\n\n /**\n * 切换分页,每页显示多少条\n */\n handleSizeChange(val) {\n let searchParams = {\n ...this.searchParams,\n linesPerPage: val,\n }\n this.searchParams = searchParams\n this.getViewList()\n },\n\n /**\n * 选中数据源回显\n */\n onRowClick(row, column, cell) {\n if (cell.cellIndex == 2) return false\n let appId = sessionStorage.getItem(\"appId\")\n let moduleId = this.$route.query.moduleId\n let params = {\n ...row,\n appId: appId,\n moduleId: moduleId,\n viewId: row.id,\n }\n this.$router.push({ path: \"/home/softwaresdetails/view\", query: { edit: false,moduleId: this.$route.query.moduleId, params: params } })\n },\n\n /**\n * 复制视图\n */\n copyView() {\n let multipleSelectionId = this.multipleSelectionId\n if (multipleSelectionId.length > 0) {\n copyView(multipleSelectionId, {\n onSucess: (response) => {\n if (response.data.errcode == 0) {\n this.getViewList()\n this.$message({\n message: this.$t(\"msg.copy_ss\"),\n type: \"success\",\n })\n }\n },\n })\n } else {\n this.$message({\n message: this.$t(\"msg.select_more\"),\n })\n }\n },\n /**\n * 新建视图\n */\n addView() {\n let appId = sessionStorage.getItem(\"appId\")\n let moduleId = this.$route.query.moduleId\n let params = {\n appId: appId,\n moduleId: moduleId,\n }\n this.$store.dispatch(\"rightHelpPageParams\", { title: this.$t(\"msg.view_info\"), url: \"application/application_module_view_basicinfo_help.html\" })\n this.$router.push({ path: \"/home/softwaresdetails/view\", query: { edit: false, moduleId: this.$route.query.moduleId, params: params } })\n },\n },\n\n watch: {\n \"$store.state.rightHelpPageParams\": {\n handler() {\n if (this.$store.state.rightHelpFrame) {\n this.$store.state.rightHelpFrame.contentWindow.showHelpContentHtml(this.$store.state.rightHelpPageParams.title, this.$store.state.rightHelpPageParams.url)\n }\n },\n deep: true,\n },\n },\n}\n",null]}