分发列表添加查询条件

This commit is contained in:
xiaogang 2024-10-08 17:39:46 +08:00
parent 85985a8f96
commit e743d9b955
6 changed files with 38 additions and 23 deletions

View File

@ -30,7 +30,7 @@ Vue.prototype.$http = Axios
Vue.prototype.$qs = qs; Vue.prototype.$qs = qs;
Vue.prototype.util = util Vue.prototype.util = util
// http://211.137.105.198:8020/ // http://211.137.105.198:8020/
Vue.prototype.HOST = process.env.NODE_ENV === "production" ? "http://xyfenfa.86698.cn/api/" : "/api/"// Vue.prototype.HOST = process.env.NODE_ENV === "production" ? "http://cdxy.qyff.86698.cn/" : "/api/"
new Vue({ new Vue({
router, router,
store, store,

View File

@ -19,6 +19,7 @@ import {
Loading Loading
} from 'element-ui' } from 'element-ui'
import { Toast } from 'wot-design' import { Toast } from 'wot-design'
axios.defaults.timeout = 10000
function conver(s) { function conver(s) {
return s < 10 ? '0' + s : s; return s < 10 ? '0' + s : s;

View File

@ -42,7 +42,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="create_time" label="创建时间" show-overflow-tooltip> <el-table-column prop="create_time" label="创建时间" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="260" v-if="account == 'admin'"> <el-table-column label="操作" align="center" width="260" v-if="['admin','管理员'].includes(account)">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="flex_warp flex_items"> <div class="flex_warp flex_items">
<el-button type="primary" size="mini" class="mt5 ml10" @click="recovery(scope.row.id)">额度回收</el-button> <el-button type="primary" size="mini" class="mt5 ml10" @click="recovery(scope.row.id)">额度回收</el-button>
@ -51,7 +51,7 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="160" v-if="account !== 'admin'"> <el-table-column label="操作" align="center" width="160" v-else>
<template slot-scope="scope"> <template slot-scope="scope">
<div class="flex_warp flex_items"> <div class="flex_warp flex_items">
<el-button type="primary" size="mini" class="mt5 ml10" @click="edit(scope.row.id)">编辑</el-button> <el-button type="primary" size="mini" class="mt5 ml10" @click="edit(scope.row.id)">编辑</el-button>

View File

@ -150,6 +150,10 @@ export default {
} else { } else {
this.$toast.error(res.message); this.$toast.error(res.message);
} }
})
.catch(e => {
console.log(e);
this.$toast.error(JSON.stringify(e))
}); });
}, },
goedit() { goedit() {

View File

@ -7,6 +7,16 @@
end-placeholder="结束日期" size="mini" format="yyyy 年 MM 月 dd 日"> end-placeholder="结束日期" size="mini" format="yyyy 年 MM 月 dd 日">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="分发时间">
<el-date-picker v-model="form.distribute_time" type="daterange" range-separator="" start-placeholder="开始日期"
end-placeholder="结束日期" size="mini" format="yyyy 年 MM 月 dd 日">
</el-date-picker>
</el-form-item>
<el-form-item label="领取时间">
<el-date-picker v-model="form.confirm_time" type="daterange" range-separator="" start-placeholder="开始日期"
end-placeholder="结束日期" size="mini" format="yyyy 年 MM 月 dd 日">
</el-date-picker>
</el-form-item>
<el-form-item label="手机号"> <el-form-item label="手机号">
<el-input placeholder="输入手机号" v-model="form.mobile" size="mini" clearable> <el-input placeholder="输入手机号" v-model="form.mobile" size="mini" clearable>
</el-input> </el-input>

View File

@ -1,9 +1,9 @@
const UploadToOssPlugin = require('./scripts/uploadToOssPlugin') // const UploadToOssPlugin = require('./scripts/uploadToOssPlugin')
module.exports = { module.exports = {
publicPath: process.env.NODE_ENV === 'production' // publicPath: process.env.NODE_ENV === 'production'
? 'https://cqxy-bank.oss-cn-chengdu.aliyuncs.com/xinye-bank/cms' // ? 'https://cqxy-bank.oss-cn-chengdu.aliyuncs.com/xinye-bank/cms'
: '/', // : '/',
lintOnSave: false, lintOnSave: false,
productionSourceMap: false, productionSourceMap: false,
css: { css: {
@ -14,23 +14,23 @@ module.exports = {
}, },
}, },
}, },
configureWebpack: config => { // configureWebpack: config => {
if (process.env.NODE_ENV !== 'production') return // if (process.env.NODE_ENV !== 'production') return
return { // return {
plugins: [ // plugins: [
new UploadToOssPlugin({ // new UploadToOssPlugin({
cdnpath: '/xinye-bank/cms', // cdnpath: '/xinye-bank/cms',
ossOption: { // ossOption: {
region: 'oss-cn-chengdu', // region: 'oss-cn-chengdu',
accessKeyId: 'LTAI5tGGZzjf3tvqWk8SQj2G', // accessKeyId: 'LTAI5tGGZzjf3tvqWk8SQj2G',
accessKeySecret: 'S0NKOAUaYWoK4EGSxrMFmYDzllhvpq', // accessKeySecret: 'S0NKOAUaYWoK4EGSxrMFmYDzllhvpq',
bucket: 'cqxy-bank' // bucket: 'cqxy-bank'
} // }
}) // })
] // ]
} // }
}, // },
pluginOptions: { pluginOptions: {
"cube-ui": { "cube-ui": {
postCompile: true, postCompile: true,