分发列表添加查询条件
This commit is contained in:
parent
85985a8f96
commit
e743d9b955
|
@ -30,7 +30,7 @@ Vue.prototype.$http = Axios
|
|||
Vue.prototype.$qs = qs;
|
||||
Vue.prototype.util = util
|
||||
// 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({
|
||||
router,
|
||||
store,
|
||||
|
|
|
@ -19,6 +19,7 @@ import {
|
|||
Loading
|
||||
} from 'element-ui'
|
||||
import { Toast } from 'wot-design'
|
||||
axios.defaults.timeout = 10000
|
||||
|
||||
function conver(s) {
|
||||
return s < 10 ? '0' + s : s;
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column prop="create_time" label="创建时间" show-overflow-tooltip>
|
||||
</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">
|
||||
<div class="flex_warp flex_items">
|
||||
<el-button type="primary" size="mini" class="mt5 ml10" @click="recovery(scope.row.id)">额度回收</el-button>
|
||||
|
@ -51,7 +51,7 @@
|
|||
</div>
|
||||
</template>
|
||||
</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">
|
||||
<div class="flex_warp flex_items">
|
||||
<el-button type="primary" size="mini" class="mt5 ml10" @click="edit(scope.row.id)">编辑</el-button>
|
||||
|
|
|
@ -150,6 +150,10 @@ export default {
|
|||
} else {
|
||||
this.$toast.error(res.message);
|
||||
}
|
||||
})
|
||||
.catch(e => {
|
||||
console.log(e);
|
||||
this.$toast.error(JSON.stringify(e))
|
||||
});
|
||||
},
|
||||
goedit() {
|
||||
|
|
|
@ -7,6 +7,16 @@
|
|||
end-placeholder="结束日期" size="mini" format="yyyy 年 MM 月 dd 日">
|
||||
</el-date-picker>
|
||||
</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-input placeholder="输入手机号" v-model="form.mobile" size="mini" clearable>
|
||||
</el-input>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
const UploadToOssPlugin = require('./scripts/uploadToOssPlugin')
|
||||
// const UploadToOssPlugin = require('./scripts/uploadToOssPlugin')
|
||||
|
||||
module.exports = {
|
||||
publicPath: process.env.NODE_ENV === 'production'
|
||||
? 'https://cqxy-bank.oss-cn-chengdu.aliyuncs.com/xinye-bank/cms'
|
||||
: '/',
|
||||
// publicPath: process.env.NODE_ENV === 'production'
|
||||
// ? 'https://cqxy-bank.oss-cn-chengdu.aliyuncs.com/xinye-bank/cms'
|
||||
// : '/',
|
||||
lintOnSave: false,
|
||||
productionSourceMap: false,
|
||||
css: {
|
||||
|
@ -14,23 +14,23 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
},
|
||||
configureWebpack: config => {
|
||||
if (process.env.NODE_ENV !== 'production') return
|
||||
return {
|
||||
plugins: [
|
||||
new UploadToOssPlugin({
|
||||
cdnpath: '/xinye-bank/cms',
|
||||
ossOption: {
|
||||
region: 'oss-cn-chengdu',
|
||||
accessKeyId: 'LTAI5tGGZzjf3tvqWk8SQj2G',
|
||||
accessKeySecret: 'S0NKOAUaYWoK4EGSxrMFmYDzllhvpq',
|
||||
bucket: 'cqxy-bank'
|
||||
}
|
||||
})
|
||||
// configureWebpack: config => {
|
||||
// if (process.env.NODE_ENV !== 'production') return
|
||||
// return {
|
||||
// plugins: [
|
||||
// new UploadToOssPlugin({
|
||||
// cdnpath: '/xinye-bank/cms',
|
||||
// ossOption: {
|
||||
// region: 'oss-cn-chengdu',
|
||||
// accessKeyId: 'LTAI5tGGZzjf3tvqWk8SQj2G',
|
||||
// accessKeySecret: 'S0NKOAUaYWoK4EGSxrMFmYDzllhvpq',
|
||||
// bucket: 'cqxy-bank'
|
||||
// }
|
||||
// })
|
||||
|
||||
]
|
||||
}
|
||||
},
|
||||
// ]
|
||||
// }
|
||||
// },
|
||||
pluginOptions: {
|
||||
"cube-ui": {
|
||||
postCompile: true,
|
||||
|
|
Loading…
Reference in New Issue