优化代码

main
252535409 2 years ago
parent 17424172fe
commit 2b555ff57f

@ -1,6 +1,6 @@
NODE_ENV=production
VUE_APP_DATAS_SCRIPT_URL=http://47.108.158.81:8288
VUE_APP_API_BASE_URL=http://localhost:9028/handling-system/
VUE_APP_API_BASE_URL=http://wzw.mcnetmart.com/handling-system/
VUE_APP_CAS_BASE_URL=http://localhost:8888/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview

@ -102,8 +102,15 @@ export const JeecgListMixin = {
if (res.success) {
//update-begin---author:zhangyafei Date:20201118 for适配不分页的数据列表------------
this.tableData = res.result.records || res.result;
console.log("------tableData------",res.result);
if (res.result.total) {
this.ipagination.total = res.result.total;
if(this.queryParams){
this.total = res.result.total || 0
this.pageTotal = Math.ceil(this.total / this.queryParams.pageSize)
}
} else {
this.ipagination.total = 0;
}
@ -392,6 +399,7 @@ export const JeecgListMixin = {
},
/* 图片预览 */
getImgView(text) {
console.log("-------查看-----------",text);
if (text && text.indexOf(",") > 0) {
text = text.substring(0, text.indexOf(","))
}

@ -32,8 +32,8 @@
<j-ellipsis :value="text" :length="10" />
</span>
<span slot="materialUrl" slot-scope="materialUrl">
<a @click="handleQrCode(materialUrl)"></a>
<span slot="materiaUrl" slot-scope="materiaUrl">
<a @click="getImgView(materiaUrl)"></a>
</span>
</a-table>
@ -97,8 +97,8 @@
{
title: '详情',
align: "center",
dataIndex: 'materialUrl',
scopedSlots: { customRender: 'materialUrl' },
dataIndex: 'materiaUrl',
scopedSlots: { customRender: 'materiaUrl' },
},
],
title: '操作',

@ -18,8 +18,8 @@ module.exports = {
// 如果你不需要生产环境的 source map可以将其设置为 false 以加速生产环境构建。
productionSourceMap: false,
// 打包app时放开该配置
// publicPath:'./',
publicPath: '/enter-policy/',
publicPath:'./',
//publicPath: '/enter-policy/',
configureWebpack: config => {
// 生产环境取消 console.log
if (process.env.NODE_ENV === 'production') {

Loading…
Cancel
Save