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
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

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

@ -910,5 +910,8 @@
}
}
}
}
.ant-modal-footer .ant-btn-primary{
display:block;
}
</style>

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

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

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

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

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

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

@ -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: '操作',
@ -176,4 +176,7 @@
div.ant-modal-footer {
text-align: center !important;
}
.ant-modal-footer .ant-btn-primary{
display:block !important;
}
</style>

@ -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