1ee95920 by 蔡俊立

发起申请左侧菜单修改

1 parent 3c2c39d5
...@@ -150,7 +150,7 @@ export default { ...@@ -150,7 +150,7 @@ export default {
150 }); 150 });
151 }, 151 },
152 ywhClick (item) { 152 ywhClick (item) {
153 const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid) 153 const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1')
154 window.open(href, '_blank'); 154 window.open(href, '_blank');
155 }, 155 },
156 }, 156 },
......
...@@ -109,6 +109,7 @@ export default { ...@@ -109,6 +109,7 @@ export default {
109 queryForm: { 109 queryForm: {
110 bsmSlsq: "", 110 bsmSlsq: "",
111 bestepid: "", 111 bestepid: "",
112 bsmBusiness: ""
112 }, 113 },
113 isShowdrawer: true, 114 isShowdrawer: true,
114 key: 0, 115 key: 0,
...@@ -123,7 +124,6 @@ export default { ...@@ -123,7 +124,6 @@ export default {
123 unitData: [], 124 unitData: [],
124 taskId: "", 125 taskId: "",
125 bsmBusiness: "", 126 bsmBusiness: "",
126 id: "",
127 }; 127 };
128 }, 128 },
129 watch: { 129 watch: {
...@@ -141,18 +141,20 @@ export default { ...@@ -141,18 +141,20 @@ export default {
141 mounted() { 141 mounted() {
142 if (this.$route.query.bsmSlsq) { 142 if (this.$route.query.bsmSlsq) {
143 this.expandInfo(this.$route.query.bsmSlsq, this.$route.query.bestepid); 143 this.expandInfo(this.$route.query.bsmSlsq, this.$route.query.bestepid);
144 this.list(this.$route.query.bsmSlsq);
145 this.queryForm.bsmSlsq = this.$route.query.bsmSlsq; 144 this.queryForm.bsmSlsq = this.$route.query.bsmSlsq;
146 this.queryForm.bestepid = this.$route.query.bestepid; 145 this.queryForm.bestepid = this.$route.query.bestepid;
146 this.queryForm.bsmBusiness = this.$route.query.bsmBusiness;
147 this.list();
147 } 148 }
148 }, 149 },
149 methods: { 150 methods: {
150 // 获取左侧列表 151 // 获取左侧列表
151 list(id) { 152 list() {
152 let that = this; 153 let that = this;
153 that.id = id;
154 var formdata = new FormData(); 154 var formdata = new FormData();
155 formdata.append("bsmSlsq", id); 155 formdata.append("bsmSlsq", that.queryForm.bsmSlsq);
156 formdata.append("bestepid", that.queryForm.bestepid);
157 formdata.append("bsmBusiness", that.queryForm.bsmBusiness);
156 leftMenu(formdata).then((res) => { 158 leftMenu(formdata).then((res) => {
157 if (res.code === 200) { 159 if (res.code === 200) {
158 this.unitData = res.result ? res.result : []; 160 this.unitData = res.result ? res.result : [];
...@@ -181,7 +183,7 @@ export default { ...@@ -181,7 +183,7 @@ export default {
181 }, 183 },
182 activeClick(tab, event) { 184 activeClick(tab, event) {
183 if (tab.name == "slxx") { 185 if (tab.name == "slxx") {
184 this.list(this.id); 186 this.list();
185 } 187 }
186 }, 188 },
187 // 左侧列表点击调用接口 189 // 左侧列表点击调用接口
......
...@@ -108,8 +108,9 @@ export default { ...@@ -108,8 +108,9 @@ export default {
108 handleSort (name, sort) { 108 handleSort (name, sort) {
109 console.log(name, sort); 109 console.log(name, sort);
110 }, 110 },
111 openDialog () { 111 openDialog (item) {
112 console.log(999999999999999); 112 const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=2')
113 window.open(href, '_blank');
113 }, 114 },
114 }, 115 },
115 }; 116 };
......
...@@ -33,8 +33,14 @@ class data extends filter { ...@@ -33,8 +33,14 @@ class data extends filter {
33 } 33 }
34 }, 34 },
35 { 35 {
36 prop: "ywh",
37 label: "业务号", 36 label: "业务号",
37 render: (h, scope) => {
38 return (
39 <div>
40 <el-link type="primary" onClick={() => { vm.openDialog(scope.row) }}>{scope.row.ywh}</el-link>
41 </div>
42 )
43 }
38 }, 44 },
39 { 45 {
40 prop: "sqywmc", 46 prop: "sqywmc",
......
...@@ -115,8 +115,8 @@ export default { ...@@ -115,8 +115,8 @@ export default {
115 handleSort (name, sort) { 115 handleSort (name, sort) {
116 console.log(name, sort); 116 console.log(name, sort);
117 }, 117 },
118 openDialog () { 118 openDialog (item) {
119 const { href } = this.$router.resolve('/fqsq') 119 const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + item.bsmBusiness + '&viewtype=3')
120 window.open(href, '_blank'); 120 window.open(href, '_blank');
121 } 121 }
122 } 122 }
......
...@@ -47,7 +47,7 @@ class data extends filter { ...@@ -47,7 +47,7 @@ class data extends filter {
47 render: (h, scope) => { 47 render: (h, scope) => {
48 return ( 48 return (
49 <div> 49 <div>
50 <el-link type="primary" onClick={() => { vm.openDialog(scope) }}>{scope.row.ywh}</el-link> 50 <el-link type="primary" onClick={() => { vm.openDialog(scope.row) }}>{scope.row.ywh}</el-link>
51 </div> 51 </div>
52 ) 52 )
53 } 53 }
......