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