|
@@ -130,17 +130,38 @@
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ routerFn(id,tables) {
|
|
|
+ if(this.queryData.viewType == 'crud'){
|
|
|
+ this.$router.push({
|
|
|
+ path: '/business/table',
|
|
|
+ query: {
|
|
|
+ id,
|
|
|
+ tables,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ }else if(this.queryData.viewType == 'headTab') {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/business/editing',
|
|
|
+ query: {
|
|
|
+ id,
|
|
|
+ tables,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ }else if(this.queryData.viewType == 'itemTab'){
|
|
|
+ this.$router.push({
|
|
|
+ path: '/business/form',
|
|
|
+ query: {
|
|
|
+ id,
|
|
|
+ tables,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
headerBtn(item) {
|
|
|
switch (item) {
|
|
|
case 'A':
|
|
|
{
|
|
|
- this.$router.push({
|
|
|
- path: '/business/table',
|
|
|
- query: {
|
|
|
- id: -1,
|
|
|
- tables: this.tabName,
|
|
|
- },
|
|
|
- })
|
|
|
+ this.routerFn(-1,this.tabName)
|
|
|
return
|
|
|
}
|
|
|
case 'M':
|
|
@@ -150,14 +171,7 @@
|
|
|
return
|
|
|
}
|
|
|
const id = this.ids.join(',')
|
|
|
- // id = id.join(',')
|
|
|
- this.$router.push({
|
|
|
- path: '/business/form',
|
|
|
- query: {
|
|
|
- id,
|
|
|
- tables: this.tabName,
|
|
|
- },
|
|
|
- })
|
|
|
+ this.routerFn(id,this.tabName)
|
|
|
return
|
|
|
}
|
|
|
case 'D':
|