提交 4ea0e7c9 authored 作者: 王鹏飞's avatar 王鹏飞

chore update

上级 0c510571
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
@change="search"> @change="search">
<template v-for="(option, index) in item.options"> <template v-for="(option, index) in item.options">
<el-option <el-option
:label="option[item.labelKey] || option.label" :label="option[item.labelKey] || option.label || option"
:value="option[item.valueKey] || option.value" :value="option[item.valueKey] || option.value || option"
:key="index"></el-option> :key="index"></el-option>
</template> </template>
</el-select> </el-select>
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
<slot name="body" v-bind="{ data: dataList }"> <slot name="body" v-bind="{ data: dataList }">
<el-table <el-table
:data="dataList" :data="dataList"
:header-cell-style="{ background: '#f7f9fa' }"
v-loading="loading" v-loading="loading"
v-bind="$attrs" v-bind="$attrs"
v-on="$listeners" v-on="$listeners"
......
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
.app-header { .app-header {
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 1000; z-index: 9999;
padding: 0 20px; padding: 0 20px;
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -3,17 +3,21 @@ import App from './App.vue' ...@@ -3,17 +3,21 @@ import App from './App.vue'
import router from './router' import router from './router'
import store from '@/store' import store from '@/store'
import modules from './modules' import modules from './modules'
// 公共css // 公共css
import '@/assets/css/base.css' import '@/assets/css/base.css'
import beforeEnter from '@/utils/beforeEnter'
// Element-UI
import ElementUI from 'element-ui'
import '@/assets/theme/style.scss'
// 公共组件 // 公共组件
import AppCard from './components/base/AppCard.vue' import AppCard from './components/base/AppCard.vue'
import AppList from './components/base/AppList.vue' import AppList from './components/base/AppList.vue'
// Element-UI import beforeEnter from '@/utils/beforeEnter'
import ElementUI from 'element-ui'
import '@/assets/theme/style.scss' // 注册element-ui组件
Vue.use(ElementUI, { size: 'small' }) Vue.use(ElementUI, { size: 'small' })
// 注册公共组件 // 注册公共组件
......
<!-- 支付详情-已确认列表 --> <!-- 支付详情-已确认列表 -->
<template> <template>
<app-card> <app-list v-bind="tableOptions" ref="list">
<app-list v-bind="tableOptions" ref="list"> <template v-slot:payment_voucher_filename="{ row }">
<template v-slot:payment_voucher_filename="{ row }"> <el-image v-for="(item, index) in row.payment_voucher_filename" :key="index" :src="item"></el-image>
<el-image v-for="(item, index) in row.payment_voucher_filename" :key="index" :src="item"></el-image> </template>
</template> <template v-slot:table-x="{ row }">
<template v-slot:table-x="{ row }"> <el-button @click="toPayDetail(row)">查看</el-button>
<el-button @click="toPayDetail(row)">查看</el-button> <el-button @click="cancelReceive(row)">取消到账</el-button>
<el-button @click="cancelReceive(row)">取消到账</el-button> </template>
</template> </app-list>
</app-list>
</app-card>
</template> </template>
<script> <script>
// 组件 // 组件
......
<!-- 待确认列表 --> <!-- 待确认列表 -->
<template> <template>
<app-card> <app-list v-bind="tableOptions" ref="list">
<app-list v-bind="tableOptions" ref="list"> <template v-slot:payment_voucher_filename="{ row }">
<template v-slot:payment_voucher_filename="{ row }"> <el-image v-for="(item, index) in row.payment_voucher_filename" :key="index" :src="item"></el-image>
<el-image v-for="(item, index) in row.payment_voucher_filename" :key="index" :src="item"></el-image> </template>
</template> <template v-slot:table-x="{ row }">
<template v-slot:table-x="{ row }"> <el-button @click="toDeal(row)">处理</el-button>
<el-button @click="toDeal(row)">处理</el-button> </template>
</template> </app-list>
</app-list>
</app-card>
</template> </template>
<script> <script>
// 接口 // 接口
......
...@@ -100,7 +100,7 @@ import ShareQrcode from '../components/ShareQrcode.vue' ...@@ -100,7 +100,7 @@ import ShareQrcode from '../components/ShareQrcode.vue'
import History from '../components/History.vue' import History from '../components/History.vue'
// 接口 // 接口
import { getCondition, getPayList, allowCreate, createNewTicket, drawBack, cancelTicket, download } from '../api' import { getCondition, getPayList, allowCreate, createNewTicket, drawBack, cancelTicket } from '../api'
import * as XLSX from 'xlsx' import * as XLSX from 'xlsx'
import { funDownload } from '@/utils/util' import { funDownload } from '@/utils/util'
import queryString from 'query-string' import queryString from 'query-string'
...@@ -156,7 +156,8 @@ export default { ...@@ -156,7 +156,8 @@ export default {
final_payment_time_from: '', final_payment_time_from: '',
final_payment_time_to: '', final_payment_time_to: '',
sort: '', sort: '',
related_id: '' related_id: '',
class_name: ''
}, },
beforeRequest: this.beforeRequest beforeRequest: this.beforeRequest
}, },
...@@ -227,6 +228,12 @@ export default { ...@@ -227,6 +228,12 @@ export default {
type: 'input', type: 'input',
prop: 'related_id', prop: 'related_id',
placeholder: '交易流水号' placeholder: '交易流水号'
},
{
type: 'select',
options: this.conditionList.classes,
prop: 'class_name',
placeholder: '班级名称'
} }
], ],
moreFilters: [ moreFilters: [
...@@ -637,10 +644,12 @@ export default { ...@@ -637,10 +644,12 @@ export default {
Object.keys(this.tableOptions.remote.params).forEach(key => { Object.keys(this.tableOptions.remote.params).forEach(key => {
if (this.tableOptions.remote.params[key] === '') delete this.tableOptions.remote.params[key] if (this.tableOptions.remote.params[key] === '') delete this.tableOptions.remote.params[key]
}) })
download(this.tableOptions.remote.params).then(() => { const params = queryString.stringify(this.tableOptions.remote.params)
const params = queryString.stringify(this.tableOptions.remote.params) window.open(`/api/finance/v1/payments/download?${params}`)
window.open(`/api/finance/v1/payments/download?${params}`) // download(this.tableOptions.remote.params).then(() => {
}) // const params = queryString.stringify(this.tableOptions.remote.params)
// window.open(`/api/finance/v1/payments/download?${params}`)
// })
}, },
// 根据首次缴费时间排序 // 根据首次缴费时间排序
sortChange(columns) { sortChange(columns) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论