优化
This commit is contained in:
@@ -2,8 +2,8 @@ ENV = 'production'
|
|||||||
|
|
||||||
# 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置
|
# 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置
|
||||||
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
|
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
|
||||||
# VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn'
|
VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn'
|
||||||
VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn'
|
# VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn'
|
||||||
# VUE_APP_BASE_API = 'http://192.168.2.98:8000'
|
# VUE_APP_BASE_API = 'http://192.168.2.98:8000'
|
||||||
# 如果接口是 http 形式, wss 需要改为 ws
|
# 如果接口是 http 形式, wss 需要改为 ws
|
||||||
VUE_APP_WS_API = 'wss://123.56.110.252
|
VUE_APP_WS_API = 'wss://123.56.110.252
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ export default {
|
|||||||
query: {
|
query: {
|
||||||
name: '',
|
name: '',
|
||||||
isStock: '',
|
isStock: '',
|
||||||
query: ''
|
num: ''
|
||||||
},
|
},
|
||||||
downloadLoading: false,
|
downloadLoading: false,
|
||||||
uploadLoading: false,
|
uploadLoading: false,
|
||||||
@@ -103,11 +103,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
filters: {
|
|
||||||
typeEnum(m) {
|
|
||||||
return settings.typeEnum.find(item => item.typeEnum == m).label
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
},
|
},
|
||||||
@@ -133,7 +128,8 @@ export default {
|
|||||||
this.downloadLoading = true;
|
this.downloadLoading = true;
|
||||||
const file = await stockdownload({
|
const file = await stockdownload({
|
||||||
name: this.query.name,
|
name: this.query.name,
|
||||||
isStock: this.query.isStock
|
isStock: this.query.isStock,
|
||||||
|
num: this.query.num
|
||||||
})
|
})
|
||||||
downloadFile(file, "商品库存", "xlsx");
|
downloadFile(file, "商品库存", "xlsx");
|
||||||
this.downloadLoading = false;
|
this.downloadLoading = false;
|
||||||
@@ -162,6 +158,7 @@ export default {
|
|||||||
size: this.tableData.size,
|
size: this.tableData.size,
|
||||||
name: this.query.name,
|
name: this.query.name,
|
||||||
isStock: this.query.isStock,
|
isStock: this.query.isStock,
|
||||||
|
num: this.query.num,
|
||||||
shopId: localStorage.getItem('shopId')
|
shopId: localStorage.getItem('shopId')
|
||||||
})
|
})
|
||||||
this.tableData.loading = false
|
this.tableData.loading = false
|
||||||
@@ -179,6 +176,8 @@ export default {
|
|||||||
// 重置查询
|
// 重置查询
|
||||||
resetHandle() {
|
resetHandle() {
|
||||||
this.query.name = ''
|
this.query.name = ''
|
||||||
|
this.query.num = ''
|
||||||
|
this.query.isStock = ''
|
||||||
this.tableData.page = 0;
|
this.tableData.page = 0;
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user