From 2b555ff57f1368eef786157b15491552ce6d7bfb Mon Sep 17 00:00:00 2001
From: 252535409 <252535409@qq.com>
Date: Sat, 9 Dec 2023 10:02:28 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.production | 2 +-
src/mixins/JeecgListMixin.js | 8 ++++++++
src/views/ai/modules/YsRecordDetailModal.vue | 8 ++++----
vue.config.js | 4 ++--
4 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/.env.production b/.env.production
index 7d9d5b9..3725d0c 100644
--- a/.env.production
+++ b/.env.production
@@ -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
diff --git a/src/mixins/JeecgListMixin.js b/src/mixins/JeecgListMixin.js
index 3ef8dc5..8904db5 100644
--- a/src/mixins/JeecgListMixin.js
+++ b/src/mixins/JeecgListMixin.js
@@ -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(","))
}
diff --git a/src/views/ai/modules/YsRecordDetailModal.vue b/src/views/ai/modules/YsRecordDetailModal.vue
index 1964dca..d8aa095 100644
--- a/src/views/ai/modules/YsRecordDetailModal.vue
+++ b/src/views/ai/modules/YsRecordDetailModal.vue
@@ -32,8 +32,8 @@
-
- 查看
+
+ 查看
@@ -97,8 +97,8 @@
{
title: '详情',
align: "center",
- dataIndex: 'materialUrl',
- scopedSlots: { customRender: 'materialUrl' },
+ dataIndex: 'materiaUrl',
+ scopedSlots: { customRender: 'materiaUrl' },
},
],
title: '操作',
diff --git a/vue.config.js b/vue.config.js
index 1ecbbaf..a813460 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -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') {