|
@@ -13,15 +13,17 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 内容 -->
|
|
<!-- 内容 -->
|
|
- <div class="table_nav table_forem" >
|
|
|
|
|
|
+ <div class="table_nav " >
|
|
<el-collapse v-model="activeNames">
|
|
<el-collapse v-model="activeNames">
|
|
- <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" class="eitde">
|
|
|
|
- <el-row :gutter="0">
|
|
|
|
- <dynamic-formsteo @modelFn="modelFn" :ref="items.columnName" :config="queryParams" @inputs = "changeFn" :formConfig="items" v-for="(items,indexs) in item.hrChildren" :key='indexs' />
|
|
|
|
- </el-row>
|
|
|
|
- </el-collapse-item>
|
|
|
|
- </el-form>
|
|
|
|
|
|
+ <div class="table_forem">
|
|
|
|
+ <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" class="eitde">
|
|
|
|
+ <el-row :gutter="0">
|
|
|
|
+ <dynamic-formsteo @modelFn="modelFn" :ref="items.columnName" :config="queryParams" @inputs = "changeFn" :formConfig="items" v-for="(items,indexs) in item.hrChildren" :key='indexs' />
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-collapse-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<el-collapse-item :title="title" name="lised" class="eitde" v-if="tabShoes">
|
|
<el-collapse-item :title="title" name="lised" class="eitde" v-if="tabShoes">
|
|
<div class="ppl">
|
|
<div class="ppl">
|
|
@@ -164,7 +166,10 @@
|
|
single: true,
|
|
single: true,
|
|
multiple: true,
|
|
multiple: true,
|
|
tabName:'',
|
|
tabName:'',
|
|
- oieufr:''
|
|
|
|
|
|
+ oieufr:'',
|
|
|
|
+ cielsshow:false,
|
|
|
|
+ foremTtae:'',
|
|
|
|
+ foremTtaid:-1
|
|
};
|
|
};
|
|
},
|
|
},
|
|
filters:{
|
|
filters:{
|
|
@@ -201,6 +206,14 @@
|
|
this.deledlid.table = this.$route.query.tables
|
|
this.deledlid.table = this.$route.query.tables
|
|
this.deledlid.idList.push(this.$route.query.id)
|
|
this.deledlid.idList.push(this.$route.query.id)
|
|
this.queryParamslist.table = this.$route.query.tables
|
|
this.queryParamslist.table = this.$route.query.tables
|
|
|
|
+ if(this.$route.query.id == -1){
|
|
|
|
+ console.log(this.$route.query.id)
|
|
|
|
+ this.foremTtae = this.$route.query.tables+'_id'
|
|
|
|
+ }else{
|
|
|
|
+ let begad = this.$route.query.tables+'_id'
|
|
|
|
+ this.queryParamslist.fixedData.condition[begad] = this.$route.query.id
|
|
|
|
+ this.foremTtae = this.$route.query.tables+'_id'
|
|
|
|
+ }
|
|
// this.objParamstue.fixedData.id = this.$route.query.id
|
|
// this.objParamstue.fixedData.id = this.$route.query.id
|
|
this.init()
|
|
this.init()
|
|
this.edingelsietab()
|
|
this.edingelsietab()
|
|
@@ -251,23 +264,22 @@
|
|
// 图片的显示隐藏
|
|
// 图片的显示隐藏
|
|
if(this.queryData.showData.length !==0){
|
|
if(this.queryData.showData.length !==0){
|
|
this.queryData.showData.filter(route => {
|
|
this.queryData.showData.filter(route => {
|
|
|
|
+ route.hrChildren.filter(routerst =>{
|
|
|
|
+ if(this.queryData.table_column == undefined){
|
|
|
|
+ this.queryData.table_column = null
|
|
|
|
+ }
|
|
|
|
+ routerst.tableColumnuy = this.queryData.table_column
|
|
|
|
+ })
|
|
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
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -421,6 +433,9 @@
|
|
this.forme.fixedData = this.queryParams
|
|
this.forme.fixedData = this.queryParams
|
|
this.submitForm()
|
|
this.submitForm()
|
|
}else if(index == 'A'){
|
|
}else if(index == 'A'){
|
|
|
|
+ // let query = Object.assign({'id':'630'},{} )
|
|
|
|
+ // this.$router.push({ query})
|
|
|
|
+ // this.reload()
|
|
this.forme.fixedData = this.queryParams
|
|
this.forme.fixedData = this.queryParams
|
|
this.submitForm()
|
|
this.submitForm()
|
|
}
|
|
}
|
|
@@ -444,7 +459,9 @@
|
|
this.queryParamstwoi[items] = undefined
|
|
this.queryParamstwoi[items] = undefined
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ this.queryParamstwoi[this.foremTtae] = this.oieufr
|
|
this.queryParamslist.fixedData.condition = this.queryParamstwoi
|
|
this.queryParamslist.fixedData.condition = this.queryParamstwoi
|
|
|
|
+ // this.queryParamslist.fixedData.condition[this.foremTtae] = this.oieufr
|
|
this.foremliseju()
|
|
this.foremliseju()
|
|
|
|
|
|
},
|
|
},
|
|
@@ -454,9 +471,21 @@
|
|
if (valid) {
|
|
if (valid) {
|
|
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.$router.go(-1)
|
|
|
|
|
|
+ if(response.code == 200){
|
|
|
|
+ this.cielsshow = true;
|
|
|
|
+ }else{
|
|
|
|
+ this.cielsshow = false;
|
|
|
|
+ }
|
|
|
|
+ // this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
|
+ let query = Object.assign({'id':response.data,'tables': this.forme.table},{} )
|
|
|
|
+ this.$router.push({ query})
|
|
|
|
+ this.queryParamslist.fixedData.condition[this.foremTtae] = response.data
|
|
|
|
+ this.oieufr = response.data
|
|
|
|
+ this.objParams.fixedData.id = response.data
|
|
|
|
+ this.init()
|
|
|
|
+ this.foremliseju()
|
|
|
|
+ // this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
|
+ // this.$router.go(-1)
|
|
// this.getList();
|
|
// this.getList();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -549,7 +578,11 @@
|
|
//删除
|
|
//删除
|
|
this.handleDeletetwo(this.deledlid)
|
|
this.handleDeletetwo(this.deledlid)
|
|
} else if(index == '新增'){
|
|
} else if(index == '新增'){
|
|
|
|
+ if(this.cielsshow == true){
|
|
this.routerFn(-1, this.tabName,this.oieufr,this.forme.table)
|
|
this.routerFn(-1, this.tabName,this.oieufr,this.forme.table)
|
|
|
|
+ }else{
|
|
|
|
+ this.msgInfo('基本信息暂未保存')
|
|
|
|
+ }
|
|
}else if(index == '修改'){
|
|
}else if(index == '修改'){
|
|
if (this.single) {
|
|
if (this.single) {
|
|
this.msgInfo('请勾选一条信息')
|
|
this.msgInfo('请勾选一条信息')
|
|
@@ -560,7 +593,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
routerFn(id, tables,tabfe, tabik) {
|
|
routerFn(id, tables,tabfe, tabik) {
|
|
- if (this.queryDatatao.viewType == 'crud') {
|
|
|
|
|
|
+ // if (this.queryDatatao.viewType == 'crud') {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: 'table',
|
|
path: 'table',
|
|
query: {
|
|
query: {
|
|
@@ -570,17 +603,17 @@
|
|
tabik
|
|
tabik
|
|
},
|
|
},
|
|
})
|
|
})
|
|
- } else if (this.queryDatatao.viewType == 'headTab') {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: 'editing',
|
|
|
|
- query: {
|
|
|
|
- id,
|
|
|
|
- tables,
|
|
|
|
- tabfe,
|
|
|
|
- tabik
|
|
|
|
- },
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
|
|
+ // } else if (this.queryDatatao.viewType == 'headTab') {
|
|
|
|
+ // this.$router.push({
|
|
|
|
+ // path: 'editing',
|
|
|
|
+ // query: {
|
|
|
|
+ // id,
|
|
|
|
+ // tables,
|
|
|
|
+ // tabfe,
|
|
|
|
+ // tabik
|
|
|
|
+ // },
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
|
|
|
|
},
|
|
},
|