03d4c2743f88c4353da6dc2026c74910.json 30 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\\editing\\index.vue?vue&type=style&index=1&id=24da7f55&scoped=true&lang=scss&","dependencies":[{"path":"E:\\boman-framwork\\ruoyi-ui\\src\\views\\system\\editing\\index.vue","mtime":1621241925644},{"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:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoK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gIC5wOjpiZWZvcmUgewogICAgICBjb250ZW50OiAiIjsKICAgICAgZGlzcGxheTogYmxvY2s7CiAgICAgIHdpZHRoOiAxOHB4OwogICAgICBoZWlnaHQ6IDhweDsKICAgICAgYmFja2dyb3VuZDogIzNDOERCQzsKICAgICAgYm9yZGVyLXJhZGl1czogM3B4OwoKICAgIH0KCiAgICAucHBsIHsKICAgICAgZGlzcGxheTogZmxleDsKICAgICAgaGVpZ2h0OiA1NHB4OwoKICAgICAgcCB7CiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHdpZHRoOiAxMTNweDsKICAgICAgICBoZWlnaHQ6IDM4cHg7CgogICAgICAgIGltZyB7CiAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgICB0b3A6IDA7CiAgICAgICAgICBsZWZ0OiAwOwogICAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAgICAgICAvLyB6LWluZGV4OiAtMTsKICAgICAgICB9CgogICAgICAgIHNwYW4gewogICAgICAgICAgd2lkdGg6IDEwMCU7CiAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgICAgICAgICB0b3A6IDA7CiAgICAgICAgICBsZWZ0OiAwOwogICAgICAgICAgLy8gdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSk7CiAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7CiAgICAgICAgICBsaW5lLWhlaWdodDogMzhweDsKICAgICAgICAgIGZvbnQtc2l6ZTogMTVweDsKICAgICAgICAgIGZvbnQtZmFtaWx5OiBQaW5nRmFuZyBTQzsKICAgICAgICAgIGZvbnQtd2VpZ2h0OiBib2xkOwogICAgICAgICAgY29sb3I6ICNhYWE7CiAgICAgICAgfQoKICAgICAgICAuc3BhbiB7CiAgICAgICAgICBjb2xvcjogIzNDOERCQzsKICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9CgogIC8vIOWGheWu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ACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.vue","sourceRoot":"src/views/system/editing","sourcesContent":["<template>\r\n <div class=\"eniting\">\r\n <!-- 头部 -->\r\n <div class=\"eniting_header\">\r\n <!-- <p class=\"p\">表编辑</p> -->\r\n <div class=\"imge_tab\">\r\n <img src=\"../../../assets/images/pic_sy_ytj.png\" alt=\"\" v-if=\"imgShoew == 2\" >\r\n <img src=\"../../../assets/images/pic_sy_shz.png\" alt=\"\" v-if=\"imgShoew == 4\" >\r\n <img src=\"../../../assets/images/pic_sy_ybh.png\" alt=\"\" v-if=\"imgShoew == 3\" >\r\n </div>\r\n <div class=\"ppl\">\r\n <p v-for=\"(item,index) in tabldie\" :key=\"index\" @click=\"enditTab(index)\">\r\n <img src=\"../../../assets/images/icon_tbtab_normal.png\" alt=\"\" class=\"index_headerImg\" v-if=\"num !== index\">\r\n <img src=\"../../../assets/images/icon_tbtab_selected.png\" alt=\"\" class=\"index_headerImg\" v-if=\"num == index\">\r\n <span :class=\"[index == num ? 'span' : '']\">{{item.tableComment}}</span>\r\n </p>\r\n </div>\r\n <el-divider></el-divider>\r\n <div class=\"table_headerBtun table_headerBtuntue\" v-if=\"queryData.buttonList\">\r\n <el-form v-if=\"num !== 0\" :model=\"queryParamstwoi\" ref=\"queryForm\" :inline=\"true\" >\r\n <dynamic-form :ref=\"item.columnName\" :config=\"queryParamstwoi\" @inputs=\"changeFn\" :formConfig=\"item\" v-for=\"(item,index) in queryDatatwo.queryList\"\r\n :key='index' />\r\n <el-form-item>\r\n <el-button type=\"primary\" icon=\"el-icon-search\" size=\"mini\" @click=\"handleQueryiu\">搜索</el-button>\r\n <el-button icon=\"el-icon-refresh\" size=\"mini\" @click=\"resetQuery\">重置</el-button>\r\n </el-form-item>\r\n </el-form>\r\n <el-button type=\"primary\" size=\"small\" plain v-for=\"(item,indexss) in jeigneutwo\" :key=\"keyname + indexss\"\r\n @click=\"handleQuery(item)\">{{item}}</el-button>\r\n </div>\r\n </div>\r\n <!-- 内容 -->\r\n <div class=\"eniting_nav table_forem\">\r\n <el-collapse v-model=\"activeNames\" @change=\"handleChange\" >\r\n <el-form v-show=\"num == 0\" :rules=\"queryData.rules\" :model=\"queryParams\" 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 class=\"eitde\">\r\n <el-row>\r\n <el-col :span=\"24\" :key=\"index\">\r\n <dynamic-formsteo @modelFn=\"modelFn\" :ref=\"items.columnName\" :config=\"queryParams\" @inputs=\"changeFn\" :formConfig=\"items\"\r\n v-for=\"(items,indexs) in item.hrChildren\" :key='indexs' />\r\n </el-col>\r\n </el-row>\r\n </el-collapse-item>\r\n </el-form>\r\n <div v-show= \"num !==0\" style=\"background-color: #fff; padding-bottom: 40px; padding-left: 23px; padding-right: 23px; padding-top: 23px;\" >\r\n <el-table v-loading=\"loading\" :data=\"postList.rows\" @selection-change=\"handleSelectionChange\">\r\n <el-table-column type=\"selection\" width=\"55\" style=\"color: red;\" align=\"center\" />\r\n <template v-for=\"(item, index) in postList.tableHeadList\">\r\n <el-table-column :label=\"item.columnComment\" align=\"center\" :prop=\"item.columnName\" :key=\"index\" >\r\n <template slot-scope=\"scope\">\r\n <img class=\"img_icon\" v-if=\"item.htmlType=='imageUpload' && scope.row[scope.column.property]\" @click=\"imgBtn(JSON.parse(scope.row[scope.column.property])[0].url)\"\r\n :src=\"JSON.parse(scope.row[scope.column.property])[0].url\" alt=\"\">\r\n <!-- :style=\"scope.row.list_class\" scope.row[scope.column.property] -->\r\n <span :style=\"scope.row.list_class\" v-else-if=\"item.columnName == 'status' \" >{{ scope.row[scope.column.property] }}</span>\r\n <span v-else>{{ scope.row[scope.column.property] }}</span>\r\n </template>\r\n </el-table-column>\r\n </template>\r\n </el-table>\r\n <div class=\"index_haderPagin\">\r\n <pagination\r\n v-show=\"total>0\"\r\n :total=\"total\"\r\n :page.sync=\"queryParamslist.pageNo\"\r\n :limit.sync=\"queryParamslist.pageSize\"\r\n @pagination=\"foremliseju\"\r\n />\r\n </div>\r\n </div>\r\n </el-collapse>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\n import {\r\n tableQuery,\r\n getTableQuery,\r\n delMenutab,\r\n getQueryList,\r\n geteditindeTab,\r\n tableSubimt,\r\n tableSubimtanit,\r\n addbjectSave\r\n } from '@/api/system/table.js';\r\n import {\r\n listIndex,\r\n } from '@/api/system/form.js'\r\n\r\n export default {\r\n name: \"index\",\r\n inject: ['reload'],\r\n data() {\r\n return {\r\n // 总条数\r\n total: 0,\r\n loading:true,\r\n activeNames: [0],\r\n title: '单表1',\r\n // 查询参数\r\n queryParams: {},\r\n labletit: '查询参数1233',\r\n num: 0,\r\n tabledeLise: {\r\n table: '',\r\n isUi: true\r\n },\r\n taleLisst: [], //列表数据\r\n // 按钮参数\r\n tableZbie: {\r\n table: 'obj_test',\r\n isUi: true,\r\n fixedData: {\r\n id: -1\r\n }\r\n },\r\n tableZbietabg: {\r\n table: 'sys_user'\r\n },\r\n queryData: {},\r\n queryDatatwo:{},\r\n keyname: 'nu',\r\n tabldie: [],\r\n forme: {\r\n table: '',\r\n objId: -1,\r\n fixedData: {}\r\n },\r\n formeanti: {\r\n table: '',\r\n commitData: [],\r\n },\r\n formy: {\r\n id: 0,\r\n status: 1\r\n },\r\n // 删除参数\r\n deledlid: {\r\n table: '',\r\n idList: []\r\n },\r\n jeigneu: [],\r\n jeigneutwo: [],\r\n imgShoew:1,\r\n queryParamslist: {\r\n pageNo: 1,\r\n pageSize: 10,\r\n orderBy:'create_time desc',\r\n table: '',\r\n fixedData:{\r\n condition:{}\r\n }\r\n },\r\n postList: {},\r\n single: true,\r\n multiple: true,\r\n taheus:'',\r\n taheusid:0,\r\n tabName:'',\r\n queryParamstwoi:{}\r\n };\r\n },\r\n mounted() {\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.tabledeLise.table = this.$route.query.tables\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.tableZbietabg.table = this.$route.query.tables\r\n this.deledlid.table = this.$route.query.tables\r\n this.queryParamslist.table = this.$route.query.tables\r\n this.taheus = this.$route.query.tables\r\n this.taheusid = this.$route.query.id\r\n this.deledlid.idList.push(this.$route.query.id)\r\n // tab\r\n this.edingelsietab()\r\n this.init()\r\n\r\n },\r\n filters: {},\r\n methods: {\r\n modelFn(obj, cont) {\r\n this.$set(this.queryParams,obj,cont)\r\n },\r\n handleChange(val) {\r\n },\r\n enditTab(index) {\r\n this.num = index\r\n if(this.num == 0){\r\n this.tabledeLise.table = this.tabldie[index].tableName\r\n this.formeanti.table = this.tabldie[index].tableName\r\n this.forme.table = this.tabldie[index].tableName\r\n this.tableZbie.table = this.taheus\r\n this.tableZbie.fixedData.id = this.taheusid\r\n this.init()\r\n this.reload()\r\n }else{\r\n this.tabName = this.tabldie[index].tableName\r\n this.queryParamslist.table = this.tabldie[index].tableName\r\n this.inittwo()\r\n this.foremliseju()\r\n }\r\n },\r\n // 按钮\r\n init() {\r\n getTableQuery(\r\n this.tableZbie\r\n ).then(res => {\r\n let data = res.data\r\n this.queryData = data\r\n this.jeigneutwo = []\r\n this.jeigneu = []\r\n this.jeigneu = data.buttonList.split('')\r\n this.jeigneu.filter(route => {\r\n if (route == 'A') {\r\n if (this.formy.id == -1) {\r\n route = '保存'\r\n this.jeigneutwo.push(route)\r\n } else {\r\n route = '新增'\r\n }\r\n\r\n } else if (route == 'M') {\r\n route = '保存'\r\n if (this.formy.id != -1) {\r\n this.jeigneutwo.push(route)\r\n }\r\n } else if (route == 'D') {\r\n route = '删除'\r\n if (this.formy.id != -1) {\r\n this.jeigneutwo.push(route)\r\n }\r\n } else if (route == 'Q') {\r\n route = '查询'\r\n this.jeigneutwo.push(route)\r\n } else if (route == 'S') {\r\n route = '提交'\r\n if (this.formy.id != -1) {\r\n this.jeigneutwo.push(route)\r\n }\r\n } else if (route == 'U') {\r\n route = '反提交'\r\n if (this.formy.id != -1) {\r\n this.jeigneutwo.push(route)\r\n }\r\n } else if (route == 'I') {\r\n route = '导入'\r\n this.jeigneutwo.push(route)\r\n } else if (route == 'E') {\r\n route = '导出'\r\n this.jeigneutwo.push(route)\r\n }\r\n\r\n })\r\n this.jeigneutwo.push('刷新')\r\n this.jeigneutwo.push('返回')\r\n // 图片的显示隐藏\r\n if(this.queryData.showData.length !==0){\r\n this.queryData.showData.filter(route => {\r\n if(route.cssClass !== null){\r\n this.imgShoew = route.cssClass\r\n if(route.cssClass == 2 || route.cssClass == 4 ){\r\n route.hrChildren.filter(routers =>{\r\n if(this.queryData.table_column == undefined){\r\n this.queryData.table_column = null\r\n }\r\n routers.tableColumnuy = this.queryData.table_column\r\n routers.isonliy = true\r\n })\r\n }else{\r\n route.hrChildren.filter(routers =>{\r\n if(this.queryData.table_column == undefined){\r\n this.queryData.table_column = null\r\n }\r\n routers.tableColumnuy = this.queryData.table_column\r\n routers.isonliy = false\r\n })\r\n }\r\n }\r\n })\r\n }\r\n })\r\n },\r\n inittwo() {\r\n tableQuery({\r\n table: this.tabName,\r\n }).then(res => {\r\n let data = res.data\r\n this.queryDatatwo = data\r\n this.jeigneutwo = []\r\n this.jeigneu = []\r\n this.jeigneu = data.buttonList.split('')\r\n this.jeigneu.filter(route => {\r\n if (route == 'A') {\r\n route = '新增'\r\n this.jeigneutwo.push(route)\r\n\r\n } else if (route == 'M') {\r\n route = '修改'\r\n if (this.formy.id != -1) {\r\n this.jeigneutwo.push(route)\r\n }\r\n } else if (route == 'D') {\r\n route = '删除'\r\n if (this.formy.id != -1) {\r\n this.jeigneutwo.push(route)\r\n }\r\n } else if (route == 'Q') {\r\n route = '查询'\r\n this.jeigneutwo.push(route)\r\n } else if (route == 'S') {\r\n route = '提交'\r\n if (this.formy.id != -1) {\r\n this.jeigneutwo.push(route)\r\n }\r\n } else if (route == 'U') {\r\n route = '反提交'\r\n if (this.formy.id != -1) {\r\n this.jeigneutwo.push(route)\r\n }\r\n } else if (route == 'I') {\r\n route = '导入'\r\n this.jeigneutwo.push(route)\r\n } else if (route == 'E') {\r\n route = '导出'\r\n this.jeigneutwo.push(route)\r\n }\r\n\r\n })\r\n })\r\n },\r\n // 数据信息\r\n edingelsie() {\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 // tab数据\r\n edingelsietab() {\r\n geteditindeTab(this.tableZbietabg).then(response => {\r\n this.tabldie = [{tableComment:'主表数据',tableName:this.taheus}]\r\n this.tabldie =this.tabldie.concat(response.data.ref)\r\n if (this.tabldie.length !== 1) {\r\n\r\n } else {\r\n this.msgSuccess(\"暂无tab数据\");\r\n this.$store.dispatch(\"tagsView/delView\", this.$route);\r\n this.$router.go(-1)\r\n }\r\n\r\n });\r\n },\r\n // 列表数据\r\n foremliseju(){\r\n listIndex(this.queryParamslist).then(res => {\r\n if(res.code == 200){\r\n let data = res.data\r\n this.postList = data\r\n this.total = res.data.total - 0\r\n }else{\r\n }\r\n this.loading = false\r\n\r\n })\r\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 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{\r\n this.queryParams[item.hrChildren[i].columnName] = null\r\n }\r\n } else {\r\n this.queryParams[item.hrChildren[i].columnName] = this.$refs[item.hrChildren[i].columnName][0].config[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 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\r\n this.submitForm()\r\n } else if (index == '返回') {\r\n this.$store.dispatch(\"tagsView/delView\", this.$route);\r\n this.$router.go(-1)\r\n } else if (index == '刷新') {\r\n this.reload()\r\n }else if(index == '新增'){\r\n this.routerFn(-1, this.tabName)\r\n }else if(index == '修改'){\r\n if (this.single) {\r\n this.msgInfo('请勾选一条信息')\r\n return\r\n }\r\n const id = this.ids.join(',')\r\n this.routerFn(id, this.tabName)\r\n }\r\n\r\n // this.getList();\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 this.$store.dispatch(\"tagsView/delView\", this.$route);\r\n this.$router.go(-1)\r\n // this.getList();\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.$store.dispatch(\"tagsView/delView\", this.$route);\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.$store.dispatch(\"tagsView/delView\", this.$route);\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 if(this.num == 0){\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.$store.dispatch(\"tagsView/delView\", this.$route);\r\n this.$router.go(-1)\r\n })\r\n }else{\r\n if (this.single) {\r\n this.msgInfo('请勾选一条信息')\r\n return\r\n }\r\n // console.log(this.ids)\r\n var that = this\r\n index.idList = this.ids\r\n index.table = this.tabName\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.foremliseju();\r\n this.msgSuccess(\"删除成功\");\r\n // this.$router.go(-1)\r\n })\r\n }\r\n },\r\n // 多选框选中数据\r\n handleSelectionChange(selection) {\r\n this.ids = selection.map(item => item.id)\r\n this.single = selection.length != 1\r\n this.multiple = !selection.length\r\n },\r\n routerFn(id, tables) {\r\n if (this.queryDatatwo.viewType == 'crud') {\r\n this.$router.push({\r\n path: 'table',\r\n query: {\r\n id,\r\n tables,\r\n },\r\n })\r\n } else if (this.queryDatatwo.viewType == 'itemTab') {\r\n this.$router.push({\r\n path: '../form/index.vue',\r\n query: {\r\n id,\r\n tables,\r\n },\r\n })\r\n }\r\n },\r\n // 搜索\r\n handleQueryiu(){\r\n for(let item of this.queryDatatwo.queryList){\r\n if(item.htmlType == 'checkbox'){\r\n this.queryParamstwoi[item.columnName] = this.$refs[item.columnName][0].config\r\n }else if(item.htmlType == 'imageUpload' || item.htmlType == 'fileUpload'){\r\n this.queryParamstwoi[item.columnName] = JSON.stringify(this.$refs[item.columnName][0].config)\r\n } else{\r\n this.queryParamstwoi[item.columnName] = this.$refs[item.columnName][0].config[item.columnName]\r\n }\r\n\r\n }\r\n for(var items in this.queryParamstwoi){\r\n if(this.queryParamstwoi[items] == ''){\r\n this.queryParamstwoi[items] = undefined\r\n }\r\n }\r\n this.queryParamslist.fixedData.condition = this.queryParamstwoi\r\n this.foremliseju()\r\n },\r\n resetQuery(){\r\n this.resetForm(\"queryParamstwoi\");\r\n this.foremliseju();\r\n }\r\n\r\n },\r\n };\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n .table_forem{\r\n .el-form--inline .el-form-item{\r\n width: 100% !important;\r\n }\r\n .el-select{\r\n width: 100%;\r\n }\r\n .el-date-editor.el-input{\r\n width: 100% !important;\r\n }\r\n .el-form-item--medium .el-form-item__content{\r\n width: 70%;\r\n }\r\n }\r\n .eniting_header {\r\n position: relative;\r\n .el-divider--horizontal {\r\n margin-top: 0;\r\n }\r\n .el-form-item{\r\n margin-bottom: 0 !important;\r\n margin-right: 10px;\r\n }\r\n }\r\n\r\n .eniting_nav {\r\n\r\n // .el-form-item{\r\n // width: 25% !important;\r\n // }\r\n .el-collapse-item__content {\r\n padding-bottom: 0;\r\n }\r\n\r\n .el-collapse-item__wrap {\r\n border-bottom: 0;\r\n }\r\n\r\n .el-collapse-item__header {\r\n border-bottom: 0;\r\n font-size: 15px;\r\n font-family: PingFang SC;\r\n font-weight: bold;\r\n color: #3C8DBC;\r\n line-height: 36px;\r\n }\r\n\r\n // .el-form-item__content{\r\n // width: 65%;\r\n // }\r\n .textarea_et {\r\n width: 95%;\r\n\r\n .el-form-item__content {\r\n width: 80%;\r\n height: 83px;\r\n\r\n .el-textarea__inner {\r\n height: 100%;\r\n }\r\n }\r\n }\r\n\r\n .textarea_etyju {\r\n width: 90%;\r\n\r\n .el-form-item__content {\r\n width: 75%;\r\n\r\n // height: 83px;\r\n .el-textarea__inner {\r\n // height: 100%;\r\n }\r\n }\r\n }\r\n\r\n .textarea_ety {\r\n width: 100%;\r\n\r\n .el-form-item__content {\r\n width: 88%;\r\n height: 150px;\r\n margin-bottom: 0;\r\n\r\n .el-textarea__inner {\r\n height: 100%;\r\n }\r\n }\r\n }\r\n\r\n .el-collapse {\r\n border-top: 0;\r\n }\r\n\r\n .eitde {\r\n background-color: #fff;\r\n border-radius: 6px;\r\n padding: 23px;\r\n padding-top: 0;\r\n margin-bottom: 10px;\r\n }\r\n }\r\n</style>\r\n\r\n<style scoped lang=\"scss\">\r\n .table_headerBtuntue{\r\n display: flex;\r\n height: 30px;\r\n align-items: center;\r\n }\r\n .eniting {\r\n p {\r\n margin: 0;\r\n }\r\n\r\n background-color: #eef0ff;\r\n height: 100%;\r\n padding: 20px;\r\n\r\n .eniting_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 margin-bottom: 0;\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 .ppl {\r\n display: flex;\r\n height: 54px;\r\n\r\n p {\r\n position: relative;\r\n width: 113px;\r\n height: 38px;\r\n\r\n img {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n // z-index: -1;\r\n }\r\n\r\n span {\r\n width: 100%;\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n // transform: translate(-50%);\r\n text-align: center;\r\n line-height: 38px;\r\n font-size: 15px;\r\n font-family: PingFang SC;\r\n font-weight: bold;\r\n color: #aaa;\r\n }\r\n\r\n .span {\r\n color: #3C8DBC;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // 内容\r\n .eniting_nav {\r\n // background-color: #fff;\r\n // border-radius: 6px;\r\n // padding: 23px;\r\n }\r\n }\r\n .imge_tab{\r\n position: absolute;\r\n right: 0;\r\n top: 5px;\r\n }\r\n</style>\r\n"]}]}