04168fa354e0565e7e3ba111cfdce3f8.json 17 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":1619684448385},{"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:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKC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},{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkZA;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;;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\"><img src=\"../../../assets/images/pic_sy_ytj.png\" alt=\"\" v-if=\"imgShoew\" ></div>\r\n <div class=\"table_headerBtun\" 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\">\r\n <el-collapse v-model=\"activeNames\" @change=\"handleChange\">\r\n <el-form :model=\"queryParams\" :rules=\"queryData.rules\" ref=\"queryForm\" :inline=\"true\" label-width=\"120px\">\r\n <el-collapse-item :title=\"item.columnComment\" :name=\"index\" v-for=\"(item,index) in queryData.showData\" :key=\"index\">\r\n\r\n <el-row>\r\n <el-col :span=\"24\" :key=\"index\">\r\n <dynamic-forms @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:true\r\n };\r\n },\r\n // filters:{\r\n // btnConversion(val) {\r\n // switch(val){\r\n // case 'A':\r\n // return '保存';\r\n // case 'M':\r\n // return '保存';\r\n // case 'D':\r\n // return '删除';\r\n // case 'Q':\r\n // return '查询';\r\n // case 'S':\r\n // return '提交';\r\n // case 'U':\r\n // return '反提交';\r\n // case 'I':\r\n // return '导入';\r\n // case 'E':\r\n // return '导出';\r\n // }\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)\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]\r\n [0].config)\r\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 console.log(this.formy.id)\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.xidugje = '保存'\r\n this.forme.fixedData = this.queryParams\r\n this.submitForm()\r\n } else if (index == '新增') {\r\n //新增\r\n this.$router.push({\r\n path: '/business/table',\r\n query: {\r\n id: -1,\r\n tables: this.forme.table\r\n },\r\n })\r\n // // this.forme.objId = \"-1\"\r\n // this.queryParams = {}\r\n this.xidugje = 0\r\n // this.tableZbie.fixedData.id = -1\r\n // this.formy.id = '-1'\r\n // this.init()\r\n this.reload()\r\n } else if (index == '返回') {\r\n if (this.xidugje == 0) {\r\n this.$router.go(-2)\r\n } else {\r\n this.$router.go(-1)\r\n }\r\n } else if (index == '刷新') {\r\n this.xidugje = 1\r\n this.reload()\r\n }\r\n\r\n\r\n console.log(this.forme)\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 console.log(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 console.log(this.jeigneu)\n this.jeigneu.filter(route => {\n // route.dept_id = route.dept_id.value\n console.log(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 }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 }else if(route == 'E'){\n route = '导出'\n }\n\n })\n this.jeigneutwo.push('刷新')\n this.jeigneutwo.push('返回')\n // console.log(this.jeigneutwo,567)\n // console.log(this.xidugje)\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 if(route.hrChildren.length !== 0){\n if(route.hrChildren[1].readonly == true){\n this.imgShoew = true\n }else{\n this.imgShoew = false\n }\n }\n })\n }\n })\r\n },\r\n tablsie() {\r\n console.log(1234)\r\n getQueryList(\r\n this.tabledeLise\r\n ).then(res => {\r\n let data = res.data\r\n this.taleLisst = data\r\n // console.log(this.queryData.queryList)\r\n })\r\n },\r\n handleChange(val) {\r\n console.log(val);\r\n },\r\n // 按钮点击\r\n delet(index) {\r\n console.log(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) {\r\n addbjectSave(this.forme).then(response => {\r\n this.msgSuccess(\"保存成功\");\r\n this.open = false;\r\n console.log(this.xidugje)\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.open = false;\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.open = false;\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 .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: 23px;\n margin-bottom: 20px;\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 }\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: 23px;\r\n margin-bottom: 20px;\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;\r\n }\r\n }\r\n\r\n p {\r\n margin: 0;\r\n\r\n }\r\n</style>\n"]}]}