bb62d328f14d63a6a0f96e0e07269ef0.json 9.4 KB

1
  1. {"remainingRequest":"D:\\cloud\\cemp\\cemp-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\cloud\\cemp\\cemp-ui\\src\\views\\cemp_itil\\gendemo\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\cloud\\cemp\\cemp-ui\\src\\views\\cemp_itil\\gendemo\\index.vue","mtime":1625455598568},{"path":"D:\\cloud\\cemp\\cemp-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\cloud\\cemp\\cemp-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\cloud\\cemp\\cemp-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\cloud\\cemp\\cemp-ui\\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\nimport {fetchList, getObj, addObj, putObj, delObj} from '@/api/gendemo'\nimport {tableOption} from '@/const/crud/gendemo'\nimport {mapGetters} from 'vuex'\n\nexport default {\n name: 'gendemo',\n data() {\n return {\n searchForm: {},\n tableData: [],\n page: {\n total: 0, // 总页数\n currentPage: 1, // 当前页数\n pageSize: 20 // 每页显示多少条\n },\n tableLoading: false,\n tableOption: tableOption\n }\n },\n computed: {\n ...mapGetters(['permissions']),\n permissionList() {\n return {\n addBtn: this.vaildData(this.permissions.itil_gendemo_add, false),\n delBtn: this.vaildData(this.permissions.itil_gendemo_del, false),\n editBtn: this.vaildData(this.permissions.itil_gendemo_edit, false)\n };\n }\n },\n methods: {\n getList(page, params) {\n this.tableLoading = true\n fetchList(Object.assign({\n current: page.currentPage,\n size: page.pageSize\n }, params, this.searchForm )).then(response => {\n this.tableData = response.data.data.records\n this.page.total = response.data.data.total\n this.tableLoading = false\n }).catch(() => {\n this.tableLoading=false\n })\n },\n rowDel: function (row, index) {\n this.$confirm('是否确认删除ID为' + row.id, '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n return delObj(row.id)\n }).then(data => {\n this.$message.success('删除成功')\n this.getList(this.page)\n })\n },\n handleUpdate: function (row, index, done,loading) {\n putObj(row).then(data => {\n this.$message.success('修改成功')\n done()\n this.getList(this.page)\n }).catch(() => {\n loading();\n });\n },\n handleSave: function (row, done,loading) {\n addObj(row).then(data => {\n this.$message.success('添加成功')\n done()\n this.getList(this.page)\n }).catch(() => {\n loading();\n });\n },\n sizeChange(pageSize){\n this.page.pageSize = pageSize\n },\n currentChange(current){\n this.page.currentPage = current\n },\n searchChange(form, done) {\n this.searchForm = form\n this.page.currentPage = 1\n this.getList(this.page, form)\n done()\n },\n refreshChange() {\n this.getList(this.page)\n }\n }\n}\n",{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.vue","sourceRoot":"src/views/itil/gendemo","sourcesContent":["<!--\n - Copyright (c) 2018-2025, lengleng All rights reserved.\n -\n - Redistribution and use in source and binary forms, with or without\n - modification, are permitted provided that the following conditions are met:\n -\n - Redistributions of source code must retain the above copyright notice,\n - this list of conditions and the following disclaimer.\n - Redistributions in binary form must reproduce the above copyright\n - notice, this list of conditions and the following disclaimer in the\n - documentation and/or other materials provided with the distribution.\n - Neither the name of the pig4cloud.com developer nor the names of its\n - contributors may be used to endorse or promote products derived from\n - this software without specific prior written permission.\n - Author: lengleng (wangiegie@gmail.com)\n -->\n<template>\n <div class=\"execution\">\n <basic-container>\n <avue-crud ref=\"crud\"\n :page.sync=\"page\"\n :data=\"tableData\"\n :permission=\"permissionList\"\n :table-loading=\"tableLoading\"\n :option=\"tableOption\"\n @on-load=\"getList\"\n @search-change=\"searchChange\"\n @refresh-change=\"refreshChange\"\n @size-change=\"sizeChange\"\n @current-change=\"currentChange\"\n @row-update=\"handleUpdate\"\n @row-save=\"handleSave\"\n @row-del=\"rowDel\">\n </avue-crud>\n </basic-container>\n </div>\n</template>\n\n<script>\n import {fetchList, getObj, addObj, putObj, delObj} from '@/api/gendemo'\n import {tableOption} from '@/const/crud/gendemo'\n import {mapGetters} from 'vuex'\n\n export default {\n name: 'gendemo',\n data() {\n return {\n searchForm: {},\n tableData: [],\n page: {\n total: 0, // 总页数\n currentPage: 1, // 当前页数\n pageSize: 20 // 每页显示多少条\n },\n tableLoading: false,\n tableOption: tableOption\n }\n },\n computed: {\n ...mapGetters(['permissions']),\n permissionList() {\n return {\n addBtn: this.vaildData(this.permissions.itil_gendemo_add, false),\n delBtn: this.vaildData(this.permissions.itil_gendemo_del, false),\n editBtn: this.vaildData(this.permissions.itil_gendemo_edit, false)\n };\n }\n },\n methods: {\n getList(page, params) {\n this.tableLoading = true\n fetchList(Object.assign({\n current: page.currentPage,\n size: page.pageSize\n }, params, this.searchForm )).then(response => {\n this.tableData = response.data.data.records\n this.page.total = response.data.data.total\n this.tableLoading = false\n }).catch(() => {\n this.tableLoading=false\n })\n },\n rowDel: function (row, index) {\n this.$confirm('是否确认删除ID为' + row.id, '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n return delObj(row.id)\n }).then(data => {\n this.$message.success('删除成功')\n this.getList(this.page)\n })\n },\n handleUpdate: function (row, index, done,loading) {\n putObj(row).then(data => {\n this.$message.success('修改成功')\n done()\n this.getList(this.page)\n }).catch(() => {\n loading();\n });\n },\n handleSave: function (row, done,loading) {\n addObj(row).then(data => {\n this.$message.success('添加成功')\n done()\n this.getList(this.page)\n }).catch(() => {\n loading();\n });\n },\n sizeChange(pageSize){\n this.page.pageSize = pageSize\n },\n currentChange(current){\n this.page.currentPage = current\n },\n searchChange(form, done) {\n this.searchForm = form\n this.page.currentPage = 1\n this.getList(this.page, form)\n done()\n },\n refreshChange() {\n this.getList(this.page)\n }\n }\n }\n</script>\n"]}]}