Compare commits

..

2 Commits

Author SHA1 Message Date
252535409 2b555ff57f 优化代码
2 years ago
252535409 17424172fe 优化
2 years ago

@ -1,6 +1,6 @@
NODE_ENV=production NODE_ENV=production
VUE_APP_DATAS_SCRIPT_URL=http://47.108.158.81:8288 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_CAS_BASE_URL=http://localhost:8888/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview

@ -97,13 +97,20 @@ export const JeecgListMixin = {
} }
var params = this.getQueryParams(); //查询条件 var params = this.getQueryParams(); //查询条件
this.loading = true; this.loading = true;
console.log("------刷新------",this.url.list);
getAction(this.url.list, params).then((res) => { getAction(this.url.list, params).then((res) => {
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(","))
} }

@ -911,4 +911,7 @@
} }
} }
} }
.ant-modal-footer .ant-btn-primary{
display:block;
}
</style> </style>

@ -159,11 +159,11 @@
dataIndex: 'materialCode', dataIndex: 'materialCode',
align: 'center', align: 'center',
}, },
{ //{
title: '核发部门', // title: '',
dataIndex: 'departName', // dataIndex: 'departName',
align: 'center', // align: 'center',
}, //},
{ {
title: '材料类型', title: '材料类型',
dataIndex: 'materialType', dataIndex: 'materialType',

@ -62,8 +62,8 @@
</span> </span>
<span slot="handle" slot-scope="text, record"> <span slot="handle" slot-scope="text, record">
<a @click="add(record)"></a> <a @click="add(record)"></a>
<a> | </a> <!--<a> | </a>
<a @click="downLoad(record.id)"></a> <a @click="downLoad(record.id)"></a>-->
</span> </span>
</a-table> </a-table>
<div class="myPagination"> <div class="myPagination">

@ -216,4 +216,7 @@
div.ant-modal-footer { div.ant-modal-footer {
text-align: center !important; text-align: center !important;
} }
.ant-modal-footer{
display:block;
}
</style> </style>

@ -66,7 +66,7 @@
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :span="10" style="margin-left: 20px;"> <a-col :span="10" style="margin-left: 20px;">
<a-form-item label="事项类型"> <a-form-item label="事项类型">
<a-input placeholder="请输入事项类型" v-model="queryParam.eventType"></a-input> <a-input placeholder="请输入事项类型" v-model="queryParam.eventTypeName"></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="10"> <a-col :span="10">
@ -207,18 +207,18 @@
{ {
title: '事项类型', title: '事项类型',
align: 'center', align: 'center',
dataIndex: 'evtentType', dataIndex: 'eventTypeName',
},
{
title: '权利来源',
align: 'center',
width: 120,
dataIndex: 'sourceOfRights',
} }
//{
// title: '',
// align: 'center',
// width: 120,
// dataIndex: 'sourceOfRights',
//}
], ],
url: { url: {
list: '/ai/ysDirectory/page', list: '/ai/ysDirectory/page',
treeList: '/sys/sysDepart/queryTreeListTest', treeList: '/sys/sysDepart/queryTreeList',
}, },
aSpinLoading: '', aSpinLoading: '',
spinning: false, spinning: false,
@ -562,4 +562,7 @@
div.ant-modal-footer { div.ant-modal-footer {
text-align: center !important; text-align: center !important;
} }
.ant-modal-footer .ant-btn-primary{
display:block !important;
}
</style> </style>

@ -210,8 +210,8 @@
} }
} }
</script> </script>
<style> <!--<style>
.ant-modal-footer{ .ant-modal-footer .ant-btn-primary{
display:none; display:none;
} }
</style> </style>-->

@ -105,14 +105,14 @@
dataIndex: 'materialName' dataIndex: 'materialName'
}, },
{ {
title: '材料类型', title: '材料编码',
align: "center", align: "center",
dataIndex: 'materialType' dataIndex: 'materialCode'
}, },
{ {
title: '核发部门', title: '材料种类',
align: "center", align: "center",
dataIndex: 'departName' dataIndex: 'uploadMaterialType'
}, },
], ],
tableData: [], tableData: [],
@ -194,4 +194,7 @@
div.ant-modal-footer { div.ant-modal-footer {
text-align: center !important; text-align: center !important;
} }
.ant-modal-footer .ant-btn-primary{
display:block !important;
}
</style> </style>

@ -32,8 +32,8 @@
<j-ellipsis :value="text" :length="10" /> <j-ellipsis :value="text" :length="10" />
</span> </span>
<span slot="materialUrl" slot-scope="materialUrl"> <span slot="materiaUrl" slot-scope="materiaUrl">
<a @click="handleQrCode(materialUrl)"></a> <a @click="getImgView(materiaUrl)"></a>
</span> </span>
</a-table> </a-table>
@ -97,8 +97,8 @@
{ {
title: '详情', title: '详情',
align: "center", align: "center",
dataIndex: 'materialUrl', dataIndex: 'materiaUrl',
scopedSlots: { customRender: 'materialUrl' }, scopedSlots: { customRender: 'materiaUrl' },
}, },
], ],
title: '操作', title: '操作',
@ -176,4 +176,7 @@
div.ant-modal-footer { div.ant-modal-footer {
text-align: center !important; text-align: center !important;
} }
.ant-modal-footer .ant-btn-primary{
display:block !important;
}
</style> </style>

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

Loading…
Cancel
Save