|
@@ -13,15 +13,15 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 内容 -->
|
|
<!-- 内容 -->
|
|
- <div class="table_nav headertable_nav" >
|
|
|
|
|
|
+ <div class="table_nav headertable_nav table_forem" >
|
|
<el-collapse v-model="activeNames" @change="handleChange">
|
|
<el-collapse v-model="activeNames" @change="handleChange">
|
|
- <el-form :model="queryParams" :rules="queryData.rules" ref="queryForm" :inline="true" label-width="120px">
|
|
|
|
|
|
+ <el-form :model="queryParams" :rules="queryData.rules" ref="queryForm" :inline="true" :label-width=" this.queryData.table_column == 6 ? 80 :120" >
|
|
<el-collapse-item :title="item.columnComment" :name="index" v-for="(item,index) in queryData.showData" :key="index">
|
|
<el-collapse-item :title="item.columnComment" :name="index" v-for="(item,index) in queryData.showData" :key="index">
|
|
- <el-row>
|
|
|
|
- <el-col :span="24" :key="index">
|
|
|
|
- <dynamic-forms @modelFn="modelFn" :ref="items.columnName" :config="queryParams" @inputs="changeFn" :formConfig="items" v-for="(items,indexs) in item.hrChildren"
|
|
|
|
|
|
+ <el-row class="row-bg" >
|
|
|
|
+ <!-- <el-col :span="24" :key="index" > -->
|
|
|
|
+ <DynamicFormsteo @modelFn="modelFn" :ref="items.columnName" :config="queryParams" @inputs="changeFn" :formConfig="items" v-for="(items,indexs) in item.hrChildren"
|
|
:key='indexs' />
|
|
:key='indexs' />
|
|
- </el-col>
|
|
|
|
|
|
+ <!-- </el-col> -->
|
|
</el-row>
|
|
</el-row>
|
|
</el-collapse-item>
|
|
</el-collapse-item>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -180,8 +180,7 @@
|
|
//新增
|
|
//新增
|
|
this.xidugje = 0
|
|
this.xidugje = 0
|
|
this.reload()
|
|
this.reload()
|
|
- } else if (index == '返回') {
|
|
|
|
- this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
|
|
|
+ } else if (index == '返回') {
|
|
this.$router.go(-1)
|
|
this.$router.go(-1)
|
|
} else if (index == '刷新') {
|
|
} else if (index == '刷新') {
|
|
this.xidugje = 1
|
|
this.xidugje = 1
|
|
@@ -258,15 +257,24 @@
|
|
// 图片的显示隐藏
|
|
// 图片的显示隐藏
|
|
if(this.queryData.showData.length !==0){
|
|
if(this.queryData.showData.length !==0){
|
|
this.queryData.showData.filter(route => {
|
|
this.queryData.showData.filter(route => {
|
|
|
|
+
|
|
if(route.cssClass !== null){
|
|
if(route.cssClass !== null){
|
|
this.imgShoew = route.cssClass
|
|
this.imgShoew = route.cssClass
|
|
if(route.cssClass == 2 || route.cssClass == 4){
|
|
if(route.cssClass == 2 || route.cssClass == 4){
|
|
route.hrChildren.filter(routers =>{
|
|
route.hrChildren.filter(routers =>{
|
|
routers.isonliy = true
|
|
routers.isonliy = true
|
|
|
|
+ if(this.queryData.table_column == undefined){
|
|
|
|
+ this.queryData.table_column = null
|
|
|
|
+ }
|
|
|
|
+ routers.tableColumnuy = this.queryData.table_column
|
|
})
|
|
})
|
|
}else{
|
|
}else{
|
|
route.hrChildren.filter(routers =>{
|
|
route.hrChildren.filter(routers =>{
|
|
routers.isonliy = false
|
|
routers.isonliy = false
|
|
|
|
+ if(this.queryData.table_column == undefined){
|
|
|
|
+ this.queryData.table_column = null
|
|
|
|
+ }
|
|
|
|
+ routers.tableColumnuy = this.queryData.table_column
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -299,8 +307,7 @@
|
|
// }
|
|
// }
|
|
addbjectSave(this.forme).then(response => {
|
|
addbjectSave(this.forme).then(response => {
|
|
this.msgSuccess("保存成功");
|
|
this.msgSuccess("保存成功");
|
|
- // this.open = false;
|
|
|
|
- this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
|
|
|
+ // this.open = false;
|
|
this.$router.go(-1)
|
|
this.$router.go(-1)
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -313,16 +320,14 @@
|
|
if (this.formy.status == 1) {
|
|
if (this.formy.status == 1) {
|
|
// 提交
|
|
// 提交
|
|
tableSubimt(this.formeanti).then(response => {
|
|
tableSubimt(this.formeanti).then(response => {
|
|
- this.msgSuccess("提交成功");
|
|
|
|
- this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
|
|
|
+ this.msgSuccess("提交成功");
|
|
this.$router.go(-1)
|
|
this.$router.go(-1)
|
|
// this.getList();
|
|
// this.getList();
|
|
});
|
|
});
|
|
} else if (this.formy.status == 2) {
|
|
} else if (this.formy.status == 2) {
|
|
// 反提交
|
|
// 反提交
|
|
tableSubimtanit(this.formeanti).then(response => {
|
|
tableSubimtanit(this.formeanti).then(response => {
|
|
- this.msgSuccess("反提交成功");
|
|
|
|
- this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
|
|
|
+ this.msgSuccess("反提交成功");
|
|
this.$router.go(-1)
|
|
this.$router.go(-1)
|
|
// this.getList();
|
|
// this.getList();
|
|
});
|
|
});
|
|
@@ -340,8 +345,7 @@
|
|
return delMenutab(index);
|
|
return delMenutab(index);
|
|
}).then(() => {
|
|
}).then(() => {
|
|
// this.getList();
|
|
// this.getList();
|
|
- this.msgSuccess("删除成功");
|
|
|
|
- this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
|
|
|
+ this.msgSuccess("删除成功");
|
|
this.$router.go(-1)
|
|
this.$router.go(-1)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -356,6 +360,20 @@
|
|
margin-top: 16px;
|
|
margin-top: 16px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .table_forem{
|
|
|
|
+ .el-form--inline .el-form-item{
|
|
|
|
+ width: 100% !important;
|
|
|
|
+ }
|
|
|
|
+ .el-select{
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
|
|
+ .el-date-editor.el-input{
|
|
|
|
+ width: 100% !important;
|
|
|
|
+ }
|
|
|
|
+ .el-form-item--medium .el-form-item__content{
|
|
|
|
+ width: 70%;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.headertable_nav{
|
|
.headertable_nav{
|
|
.el-collapse-item__wrap{
|
|
.el-collapse-item__wrap{
|
|
border-bottom: 0;
|
|
border-bottom: 0;
|
|
@@ -392,8 +410,8 @@
|
|
.table_header{
|
|
.table_header{
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
border-radius: 6px;
|
|
border-radius: 6px;
|
|
- padding: 23px;
|
|
|
|
- margin-bottom: 20px;
|
|
|
|
|
|
+ padding: 13px;
|
|
|
|
+ margin-bottom: 10px;
|
|
p{
|
|
p{
|
|
font-size: 15px;
|
|
font-size: 15px;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
@@ -447,8 +465,8 @@
|
|
.table_header {
|
|
.table_header {
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
border-radius: 6px;
|
|
border-radius: 6px;
|
|
- padding: 23px;
|
|
|
|
- margin-bottom: 20px;
|
|
|
|
|
|
+ padding: 13px;
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
|
|
p {
|
|
p {
|
|
font-size: 15px;
|
|
font-size: 15px;
|
|
@@ -472,7 +490,8 @@
|
|
.headertable_nav {
|
|
.headertable_nav {
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
border-radius: 6px;
|
|
border-radius: 6px;
|
|
- padding: 23px;
|
|
|
|
|
|
+ padding: 23px;
|
|
|
|
+ padding-top: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|