8d2368824d693d089748432c4b00459f.json 18 KB

1
  1. {"remainingRequest":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\boman-framwork\\ruoyi-ui\\src\\views\\system\\table\\index.vue?vue&type=style&index=1&id=81268aea&scoped=true&lang=scss&","dependencies":[{"path":"E:\\boman-framwork\\ruoyi-ui\\src\\views\\system\\table\\index.vue","mtime":1621241925648},{"path":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\css-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\sass-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\boman-framwork\\ruoyi-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgouYXBwLW1haW57CiAgIC8vIGJhY2tncm91bmQtY29sb3I6ICNlZWYwZmYgIWltcG9ydGFudDsKfQoudGFibGVfdG90YWx7CiAgIGJhY2tncm91bmQtY29sb3I6ICNlZWYwZmY7CiAgIGhlaWdodDogMTAwJTsKICAgcGFkZGluZzogMjBweDsKICAgLy8g5aS06YOoCiAgIC50YWJsZV9oZWFkZXJ7CiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7CiAgICAgIGJvcmRlci1yYWRpdXM6IDZweDsKICAgICAgcGFkZGluZzogMTNweDsKICAgICAgbWFyZ2luLWJvdHRvbTogMTBweDsKICAgIHB7CiAgICAgICBmb250LXNpemU6IDE1cHg7CiAgICAgICBmb250LXdlaWdodDogYm9sZDsKICAgICAgIGNvbG9yOiAjM0M4REJDOwogICAgICAgbGluZS1oZWlnaHQ6IDM2cHg7CiAgICAgIH0KICAgIHA6OmJlZm9yZXsKICAgICAgY29udGVudDogIiI7CiAgICAgIGRpc3BsYXk6IGJsb2NrOwogICAgICB3aWR0aDogMThweDsKICAgICAgaGVpZ2h0OiA4cHg7CiAgICAgIGJhY2tncm91bmQ6ICMzQzhEQkM7CiAgICAgIGJvcmRlci1yYWRpdXM6IDNweDsKCiAgICB9CiAgICAudGFibGVfaGVhZGVyQnR1bnR3b3sKICAgICAgbWFyZ2luLWJvdHRvbTogMCAhaW1wb3J0YW50OwogICAgfQogICB9CiAgIC8vIOWGheWuuQogICAuaGVhZGVydGFibGVfbmF2ewogICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7CiAgICAgYm9yZGVyLXJhZGl1czogNnB4OwogICAgIHBhZGRpbmc6IDIzcHg7CiAgIH0KfQpwewogIG1hcmdpbjogMDsKCn0KLmltZ2VfdGFiewogIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICByaWdodDogMDsKICB0b3A6IDVweDsKfQo="},{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiZA;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA","file":"index.vue","sourceRoot":"src/views/system/table","sourcesContent":["<template>\r\n <div class=\"table_total\">\r\n <div class=\"table_header\">\r\n <!-- <p>单表</p>\r\n <el-divider></el-divider> -->\n <div class=\"imge_tab\">\n <img src=\"../../../assets/images/pic_sy_ytj.png\" alt=\"\" v-if=\"imgShoew == 2\" >\n <img src=\"../../../assets/images/pic_sy_shz.png\" alt=\"\" v-if=\"imgShoew == 4\" >\n <img src=\"../../../assets/images/pic_sy_ybh.png\" alt=\"\" v-if=\"imgShoew == 3\" >\n </div>\r\n <div class=\"table_headerBtun table_headerBtuntwo\" v-if=\"queryData.buttonList\">\r\n <el-button type=\"primary\" size=\"mini\" plain v-for=\"(item,index) in jeigneutwo\" :key=\"index\" @click=\"handleQuery(item)\">{{item}}</el-button>\r\n </div>\r\n </div>\r\n <!-- 内容 -->\r\n <div class=\"table_nav headertable_nav table_forem\" >\r\n <el-collapse v-model=\"activeNames\" @change=\"handleChange\">\r\n <el-form :model=\"queryParams\" :rules=\"queryData.rules\" ref=\"queryForm\" :inline=\"true\" :label-width=\" this.queryData.table_column == 6 ? 80 :120\" >\r\n <el-collapse-item :title=\"item.columnComment\" :name=\"index\" v-for=\"(item,index) in queryData.showData\" :key=\"index\">\r\n <el-row class=\"row-bg\" >\r\n <!-- <el-col :span=\"24\" :key=\"index\" > -->\r\n <DynamicFormsteo @modelFn=\"modelFn\" :ref=\"items.columnName\" :config=\"queryParams\" @inputs=\"changeFn\" :formConfig=\"items\" v-for=\"(items,indexs) in item.hrChildren\"\r\n :key='indexs' />\r\n <!-- </el-col> -->\r\n </el-row>\r\n </el-collapse-item>\r\n </el-form>\r\n </el-collapse>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\n import {\r\n getTableQuery,\r\n getQueryList,\r\n tableSubimt,\r\n tableSubimtanit,\r\n addbjectSave,\r\n delMenutab\r\n } from '@/api/system/table.js'\r\n export default {\r\n name: \"index\",\r\n inject: ['reload'],\r\n data() {\r\n return {\r\n // 显示搜索条件\r\n showSearch: true,\r\n activeNames: [0],\r\n title: '单表1',\r\n tabledeLise: {\r\n table: '',\r\n isUi: true\r\n },\r\n queryData: {},\r\n // 查询参数\r\n queryParams: {\r\n\r\n },\r\n labletit: '查询参数1233',\n tableZbie:{\n table:'',\n isUi:true,\n fixedData:{\n id:-1\n }\n\n },\n taleLisst:[],\n forme:{\n table:'',\n objId:-1,\n fixedData:{}\n },\n formeanti:{\n table:'',\n commitData:[],\n },\n formy:{\n id:0,\n status:1\n },\n // 删除参数\n deledlid:{\n table:'',\n idList:[]\n },\n jeigneu:[],\n jeigneutwo:[],\n xidugje:0,\n tijeq:0,\n imgShoew:0,\n tablees:-1,\n juegkae:''\r\n };\r\n },\r\n mounted() {\r\n // this.tableZbie.fixedData.id = 0\r\n this.deledlid.idList = []\r\n this.formeanti.table = this.$route.query.tables\r\n // this.formeanti.id = this.$route.query.id\r\n this.forme.table = this.$route.query.tables\r\n this.forme.objId = this.$route.query.id\r\n this.tableZbie.table = this.$route.query.tables\r\n this.tableZbie.fixedData.id = this.$route.query.id\r\n this.formy.id = this.$route.query.id\r\n this.deledlid.table = this.$route.query.tables\r\n this.deledlid.idList.push(this.$route.query.id)\n if(this.$route.query.tabfe){\n this.tablees = this.$route.query.tabfe\n this.juegkae = this.$route.query.tables + '_id'\n\n console.log(this.juegkae)\n }\n console.log(this.forme.fixedData)\r\n this.init()\r\n // this.tablsie()\r\n },\r\n methods: {\r\n modelFn(obj, cont) {\n this.$set(this.queryParams,obj,cont)\n },\r\n changeFn(obj) {\r\n for (let key in obj) {\r\n this.queryParams[key] = obj[key]\r\n }\r\n },\r\n resetQuery() {\r\n\r\n },\r\n /** 搜索按钮操作 */\r\n handleQuery(index) {\r\n for (let item of this.queryData.showData) {\r\n for (var i = 0; i < item.hrChildren.length; i++) {\r\n if (item.hrChildren[i].htmlType == 'checkbox') {\r\n this.queryParams[item.hrChildren[i].columnName] = this.$refs[item.hrChildren[i].columnName][0].config\r\n } else if (item.hrChildren[i].htmlType == 'imageUpload' || item.hrChildren[i].htmlType == 'fileUpload') {\r\n if (this.$refs[item.hrChildren[i].columnName][0].config.length) {\r\n this.queryParams[item.hrChildren[i].columnName] = JSON.stringify(this.$refs[item.hrChildren[i].columnName][0].config)\r\n }\r\n } else if (item.hrChildren[i].htmlType == 'datetime') {\r\n if (this.$refs[item.hrChildren[i].columnName][0].config[item.hrChildren[i].columnName]) {\r\n this.queryParams[item.hrChildren[i].columnName] = this.$refs[item.hrChildren[i].columnName][0].config[item.hrChildren[i].columnName]\r\n }else{\n this.queryParams[item.hrChildren[i].columnName] = null\n }\r\n } else {\r\n this.queryParams[item.hrChildren[i].columnName] = this.$refs[item.hrChildren[i].columnName][0].config[\r\n item.hrChildren[i].columnName]\r\n }\r\n }\r\n }\r\n if (this.queryParams.pageNum !== undefined) {\r\n this.queryParams.pageNum = undefined\r\n }\r\n if (this.queryParams.pageSize !== undefined) {\r\n this.queryParams.pageSize = undefined\r\n }\r\n\r\n if (index == '删除') {\r\n //删除\r\n this.handleDelete(this.deledlid)\r\n } else if (index == '提交') {\r\n //提交 保存\r\n this.formeanti.commitData = []\r\n this.formy.status = 1\r\n this.formeanti.commitData.push(this.formy)\r\n this.antiSubmission()\r\n } else if (index == '反提交') {\r\n //反提交 保存\r\n this.formeanti.commitData = []\r\n this.formy.status = 2\r\n this.formeanti.commitData.push(this.formy)\r\n this.antiSubmission()\r\n } else if (index == '保存') {\r\n // 修改\r\n this.forme.fixedData = this.queryParams\n this.forme.fixedData[this.juegkae] = this.tablees\r\n this.submitForm()\r\n } else if (index == '新增') {\r\n //新增\r\n this.xidugje = 0\r\n this.reload()\r\n } else if (index == '返回') {\r\n this.$router.go(-1)\r\n } else if (index == '刷新') {\r\n this.xidugje = 1\r\n this.reload()\r\n }\r\n\r\n\r\n // this.getList();\r\n },\r\n getList() {\r\n\r\n },\r\n init() {\r\n getTableQuery(\r\n this.tableZbie\r\n ).then(res => {\r\n let data = res.data\n this.queryData = {}\n this.queryData = data\n // imgShoew\n this.jeigneutwo = []\n this.jeigneu = []\n this.jeigneu = data.buttonList.split('')\n // console.log(data.buttonList)\n this.jeigneu.filter(route => {\n if(route == 'A'){\n if(this.formy.id == -1){\n route = '保存'\n this.jeigneutwo.push(route)\n }else{\n route = '新增'\n }\n\n }else if(route == 'M'){\n route = '保存'\n if(this.formy.id != -1){\n this.jeigneutwo.push(route)\n }\n }else if(route == 'D'){\n route = '删除'\n if(this.formy.id != -1){\n this.jeigneutwo.push(route)\n }\n }else if(route == 'Q'){\n route = '查询'\n this.jeigneutwo.push(route)\n }else if(route == 'S'){\n route = '提交'\n if(this.formy.id != -1){\n this.jeigneutwo.push(route)\n }\n }else if(route == 'U'){\n route = '反提交'\n if(this.formy.id != -1){\n this.jeigneutwo.push(route)\n }\n }else if(route == 'I'){\n route = '导入'\n this.jeigneutwo.push(route)\n }else if(route == 'E'){\n route = '导出'\n this.jeigneutwo.push(route)\n }\n\n })\n\n this.jeigneutwo.push('刷新')\n this.jeigneutwo.push('返回')\n if(this.xidugje == '刷新'){\n if(res.code == 200){\n this.msgSuccess(\"操作成功\");\n }\n }\n // 图片的显示隐藏\n if(this.queryData.showData.length !==0){\n this.queryData.showData.filter(route => {\n\n if(route.cssClass !== null){\n this.imgShoew = route.cssClass\n if(route.cssClass == 2 || route.cssClass == 4){\n route.hrChildren.filter(routers =>{\n routers.isonliy = true\n if(this.queryData.table_column == undefined){\n this.queryData.table_column = null\n }\n routers.tableColumnuy = this.queryData.table_column\n })\n }else{\n route.hrChildren.filter(routers =>{\n routers.isonliy = false\n if(this.queryData.table_column == undefined){\n this.queryData.table_column = null\n }\n routers.tableColumnuy = this.queryData.table_column\n })\n }\n }\n })\n }\n })\r\n },\r\n tablsie() {\r\n getQueryList(\r\n this.tabledeLise\r\n ).then(res => {\r\n let data = res.data\r\n this.taleLisst = data\r\n })\r\n },\r\n handleChange(val) {\r\n },\r\n // 按钮点击\r\n delet(index) {\r\n if (index == 'D') {\r\n this.handleDelete(this.formy.id)\r\n }\r\n },\r\n /** 新增 修改提交按钮 */\r\n submitForm: function() {\r\n this.$refs[\"queryForm\"].validate(valid => {\r\n if (valid) {\n // if(this.tablees !== -1){\n console.log(this.forme)\n // }\n addbjectSave(this.forme).then(response => {\r\n this.msgSuccess(\"保存成功\");\n // this.open = false;\r\n this.$router.go(-1)\r\n });\r\n }\r\n });\r\n },\r\n // 提交反提交\r\n antiSubmission() {\r\n this.$refs[\"queryForm\"].validate(valid => {\r\n if (valid) {\r\n if (this.formy.status == 1) {\r\n // 提交\r\n tableSubimt(this.formeanti).then(response => {\r\n this.msgSuccess(\"提交成功\");\r\n this.$router.go(-1)\r\n // this.getList();\r\n });\r\n } else if (this.formy.status == 2) {\r\n // 反提交\r\n tableSubimtanit(this.formeanti).then(response => {\r\n this.msgSuccess(\"反提交成功\");\r\n this.$router.go(-1)\r\n // this.getList();\r\n });\r\n }\r\n }\r\n });\r\n },\r\n //删除\r\n handleDelete(index) {\r\n this.$confirm('是否确认删除', \"警告\", {\r\n confirmButtonText: \"确定\",\r\n cancelButtonText: \"取消\",\r\n type: \"warning\"\r\n }).then(function() {\r\n return delMenutab(index);\r\n }).then(() => {\r\n // this.getList();\r\n this.msgSuccess(\"删除成功\");\r\n this.$router.go(-1)\r\n })\r\n }\r\n },\r\n };\r\n</script>\r\n\r\n<style lang=\"scss\">\n .table_header{\n position: relative;\n .el-divider--horizontal{\n margin-top: 16px;\n }\n }\n .table_forem{\n .el-form--inline .el-form-item{\n width: 100% !important;\n }\n .el-select{\n width: 100%;\n }\n .el-date-editor.el-input{\n width: 100% !important;\n }\n .el-form-item--medium .el-form-item__content{\n width: 70%;\n }\n }\n .headertable_nav{\n .el-collapse-item__wrap{\n border-bottom: 0;\n }\n .el-collapse-item__header{\n border-bottom: 0;\n font-size: 15px;\n font-family: PingFang SC;\n font-weight: bold;\n color: #3C8DBC;\n line-height: 36px;\n }\n // .el-form-item__content{\n // width: 55%;\n // }\n .el-collapse{\n border-top: 0;\n }\n }\n\n</style>\n\n\n\n<style scoped lang=\"scss\">\n .app-main{\n // background-color: #eef0ff !important;\n }\n .table_total{\n background-color: #eef0ff;\n height: 100%;\n padding: 20px;\n // 头部\n .table_header{\n background-color: #fff;\n border-radius: 6px;\n padding: 13px;\n margin-bottom: 10px;\n p{\n font-size: 15px;\n font-weight: bold;\n color: #3C8DBC;\n line-height: 36px;\n }\n p::before{\n content: \"\";\n display: block;\n width: 18px;\n height: 8px;\n background: #3C8DBC;\n border-radius: 3px;\n\n }\n .table_headerBtuntwo{\n margin-bottom: 0 !important;\n }\n }\n // 内容\n .headertable_nav{\n background-color: #fff;\n border-radius: 6px;\n padding: 23px;\n }\n }\n p{\n margin: 0;\n\n }\n .imge_tab{\n position: absolute;\n right: 0;\n top: 5px;\n }\n</style>\r\n\r\n\r\n\r\n<style scoped lang=\"scss\">\r\n .app-main {\r\n // background-color: #eef0ff !important;\r\n }\r\n\r\n .table_total {\r\n background-color: #eef0ff;\r\n height: 100%;\r\n padding: 20px;\r\n\r\n // 头部\r\n .table_header {\r\n background-color: #fff;\r\n border-radius: 6px;\r\n padding: 13px;\r\n margin-bottom: 10px;\r\n\r\n p {\r\n font-size: 15px;\r\n font-weight: bold;\r\n color: #3C8DBC;\r\n line-height: 36px;\r\n }\r\n\r\n p::before {\r\n content: \"\";\r\n display: block;\r\n width: 18px;\r\n height: 8px;\r\n background: #3C8DBC;\r\n border-radius: 3px;\r\n\r\n }\r\n }\r\n\r\n // 内容\r\n .headertable_nav {\r\n background-color: #fff;\r\n border-radius: 6px;\r\n padding: 23px;\n padding-top: 0;\r\n }\r\n }\r\n\r\n p {\r\n margin: 0;\r\n\r\n }\r\n</style>\n"]}]}