jinhui.wang

bug修复代码更新

...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
169 169
170 <script> 170 <script>
171 import { findCagroPreData } from "@/api/cargoSelect"; 171 import { findCagroPreData } from "@/api/cargoSelect";
172 -import { cargoXlsxPre } from "@/utils/zipdownload"; 172 +import { downLoadXlsx } from "@/utils/zipdownload";
173 export default { 173 export default {
174 name: "CAPreQualificationExport", 174 name: "CAPreQualificationExport",
175 data() { 175 data() {
...@@ -222,7 +222,7 @@ export default { ...@@ -222,7 +222,7 @@ export default {
222 ); 222 );
223 cargoXlse.cargoExportPreQueryDto.limitStart = 0; 223 cargoXlse.cargoExportPreQueryDto.limitStart = 0;
224 cargoXlse.cargoExportPreQueryDto.limitSize = -1; 224 cargoXlse.cargoExportPreQueryDto.limitSize = -1;
225 - cargoXlsxPre("/cargo/excelPre", cargoXlse) 225 + downLoadXlsx("/cargo/excelPre", cargoXlse,'航班预审表')
226 .then(() => { 226 .then(() => {
227 this.downLoadingTip.downloading = false; 227 this.downLoadingTip.downloading = false;
228 this.downLoadingTip.tip = ""; 228 this.downLoadingTip.tip = "";
......
...@@ -30,7 +30,13 @@ ...@@ -30,7 +30,13 @@
30 :width="item.width" 30 :width="item.width"
31 :formatter="formatter" 31 :formatter="formatter"
32 > 32 >
33 + <template slot-scope="scope">
34 + <el-tag v-if="item.value === 'menuType'" :type="scope.row.menuType === 'B'?'':'success'"
35 + disable-transitions>{{scope.row.menuType === 'B'?'按钮':'菜单'}}</el-tag>
36 + <span v-else>{{scope.row.title}}</span>
37 + </template>
33 </el-table-column> 38 </el-table-column>
39 +
34 <el-table-column 40 <el-table-column
35 header-align="center" 41 header-align="center"
36 align="center" 42 align="center"
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
41 icon="el-icon-search" 41 icon="el-icon-search"
42 size="mini" 42 size="mini"
43 :loading="tableLoading" 43 :loading="tableLoading"
44 - @click="selectRoleList" 44 + @click="selectRoleList(0)"
45 >搜索</el-button 45 >搜索</el-button
46 > 46 >
47 <el-button type="primary" icon="el-icon-plus" size="mini" @click="addRole" v-hasPermi="['system:role:add']" 47 <el-button type="primary" icon="el-icon-plus" size="mini" @click="addRole" v-hasPermi="['system:role:add']"
...@@ -205,7 +205,10 @@ export default { ...@@ -205,7 +205,10 @@ export default {
205 }, 205 },
206 methods: { 206 methods: {
207 //角色列表 207 //角色列表
208 - selectRoleList() { 208 + selectRoleList(val) {
209 + if(val == 0){
210 + this.formData.page = 1
211 + }
209 this.tableLoading = true; 212 this.tableLoading = true;
210 if (this.createTime.length > 0) { 213 if (this.createTime.length > 0) {
211 this.formData.createStart = this.createTime[0]; 214 this.formData.createStart = this.createTime[0];
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
36 icon="el-icon-search" 36 icon="el-icon-search"
37 size="mini" 37 size="mini"
38 :loading="loading" 38 :loading="loading"
39 - @click="selectUser" 39 + @click="selectUser(0)"
40 >搜索</el-button 40 >搜索</el-button
41 > 41 >
42 <el-button type="primary" icon="el-icon-plus" size="mini" @click="addUser" v-hasPermi="['system:user:add']" 42 <el-button type="primary" icon="el-icon-plus" size="mini" @click="addUser" v-hasPermi="['system:user:add']"
...@@ -251,7 +251,10 @@ export default { ...@@ -251,7 +251,10 @@ export default {
251 }, 251 },
252 methods: { 252 methods: {
253 //用户列表 253 //用户列表
254 - selectUser() { 254 + selectUser(val) {
255 + if(val == 0){
256 + this.formData.page = 1
257 + }
255 this.loading = true; 258 this.loading = true;
256 listUser(this.formData) 259 listUser(this.formData)
257 .then((res) => { 260 .then((res) => {
......