dev
张同海 2 years ago
parent ba3e733e3f
commit d5baf6a0b2

@ -21,6 +21,9 @@ export function BookingPrintTemplatePage(parameter) {
export function BookingPrintTemplateAdd(parameter) {
let params = new FormData()
params.append('file', parameter.file)
Object.keys(parameter.data).forEach(item => {
params.append(`${item}`, parameter.data[item])
})
console.log(parameter)
return axios({
url: '/BookingPrintTemplate/add',
@ -28,15 +31,6 @@ export function BookingPrintTemplateAdd(parameter) {
data: params,
headers: { 'Content-type': 'multipart/form-data;charset=utf-8' }
})
// return axios({
// url: '/sysFileInfo/upload',
// method: 'post',
// data: parameter,
// onUploadProgress: function(progressEvent) {
// let percent = ((progressEvent.loaded / progressEvent.total) * 100) | 0
// uploadProcess && uploadProcess(percent)
// }
// })
}
/**
@ -64,3 +58,18 @@ export function BookingPrintTemplateDelete(parameter) {
data: parameter
})
}
/**
* 分页查询租户
*
* @author Myshipping
*/
export function SysTenantPage() {
return axios({
url: '/sysTenant/page',
method: 'get',
params: {
pageNo: 1,
pageSize: 999999
}
})
}

@ -17,22 +17,24 @@
</a-col>
</a-row>
</a-col>
<a-col :md="6" :sm="24">
<a-col :md="4" :sm="24">
<span class="table-page-search-submitButtons">
<a-popover placement="bottom" v-model="setVisible" trigger="click">
<template #content>
<columnSetting :columns="ColumnsQuery" @columnChange="columnChange"></columnSetting>
</template>
<span class="tab-btn"> <a-icon type="setting" :style="{ fontSize: '16px' }" /> 设置 </span>
</a-popover>
<a-button type="primary" @click="FnGetData"></a-button>
<a-button style="margin-left: 8px" @click="init"></a-button>
<a @click="toggleAdvanced" style="margin-left: 8px">
<a v-if="ColumnsQueryL > 3" @click="toggleAdvanced" style="margin-left: 8px">
{{ advanced ? '收起' : '展开' }}
<a-icon :type="advanced ? 'up' : 'down'" />
</a>
</span>
</a-col>
<a-col :md="2" :sm="24" class="SetFlex">
<a-popover placement="bottom" v-model="setVisible" trigger="click">
<template #content>
<columnSetting :columns="ColumnsQuery" @columnChange="columnChange"></columnSetting>
</template>
<span class="tab-btn"> <a-icon type="setting" :style="{ fontSize: '16px' }" /> 设置 </span>
</a-popover>
</a-col>
</a-row>
</a-form>
</div>
@ -61,7 +63,7 @@
v-for="item in TableColumns"
:key="`${item.dataIndex}3`"
:field="item.dataIndex"
:width="item.width"
:min-width="item.width"
:title="item.title"
:align="item.align"
v-if="item.checked"
@ -236,7 +238,8 @@ export default {
TableColumns: [],
tstyle: { 'padding-bottom': '0px', 'margin-bottom': '10px' },
// Promise
loadData: {}
loadData: {},
ColumnsQueryL: 0
}
},
created() {},
@ -252,6 +255,7 @@ export default {
Data.push(item.dataIndex)
}
})
this.ColumnsQueryL = Data.length
DjyUserConfigAdd({
type: 'customer_cond_cfg',
configJson: JSON.stringify(Data)
@ -322,6 +326,7 @@ export default {
this.$forceUpdate()
})
DjyCustomerGet({ type: 'customer_cond_cfg' }).then(res => {
this.ColumnsQueryL = JSON.parse(res.data.configJson).length
if (JSON.parse(res.data.configJson).length) {
this.ColumnsQuery = []
columns.forEach(item => {
@ -404,4 +409,8 @@ button {
height: 45px;
overflow: hidden;
}
.SetFlex {
display: flex;
justify-content: flex-end;
}
</style>

@ -27,7 +27,13 @@
</a-form-item>
</a-col>
<a-col :span="8">
<a-upload name="file" @change="handleChange" :customRequest="customRequest" :multiple="false">
<a-upload
name="file"
:file-list="fileList"
@change="handleChange"
:customRequest="customRequest"
:multiple="false"
>
<a-button> <a-icon type="upload" /> 文件上传 </a-button>
</a-upload>
</a-col>
@ -44,6 +50,7 @@ export default {
data() {
return {
file: {},
fileList: [],
labelCol: {
xs: { span: 24 },
sm: { span: 7 }
@ -63,7 +70,7 @@ export default {
this.file = data.file
},
handleChange(info) {
console.log(this.file)
this.fileList = [info.file]
},
//
add(record) {

@ -41,7 +41,7 @@
<vxe-toolbar>
<template #buttons>
<a-button type="primary" icon="plus" @click="$refs.addForm.add()">
新增客户
新增订舱打印模板
</a-button>
</template>
<template #tools>
@ -97,14 +97,17 @@ const columns = [
{
title: '类型名称',
align: 'center',
width: '60',
dataIndex: 'typeName'
},
{
title: '租户名称',
align: 'center',
width: '60',
dataIndex: 'tenantName'
},
{
title: '文件名称',
align: 'center',
dataIndex: 'fileName'
}
]
export default {

Loading…
Cancel
Save