|
@ -2,52 +2,25 @@ |
|
|
<div class="app-container"> |
|
|
<div class="app-container"> |
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
|
|
<el-form-item label="适用群组" prop="limitGroup"> |
|
|
<el-form-item label="适用群组" prop="limitGroup"> |
|
|
<el-input |
|
|
<el-input v-model="queryParams.limitGroup" placeholder="请输入适用群组" clearable @keyup.enter.native="handleQuery" /> |
|
|
v-model="queryParams.limitGroup" |
|
|
|
|
|
placeholder="请输入适用群组" |
|
|
|
|
|
clearable |
|
|
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="对应等级" prop="limitLevel"> |
|
|
<el-form-item label="对应等级" prop="limitLevel"> |
|
|
<el-input |
|
|
<el-input v-model="queryParams.limitLevel" placeholder="请输入对应等级" clearable @keyup.enter.native="handleQuery" /> |
|
|
v-model="queryParams.limitLevel" |
|
|
|
|
|
placeholder="请输入对应等级" |
|
|
|
|
|
clearable |
|
|
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="提现限制" prop="cashoutLimit"> |
|
|
<el-form-item label="提现限制" prop="cashoutLimit"> |
|
|
<el-input |
|
|
<el-input v-model="queryParams.cashoutLimit" placeholder="请输入提现限制" clearable |
|
|
v-model="queryParams.cashoutLimit" |
|
|
@keyup.enter.native="handleQuery" /> |
|
|
placeholder="请输入提现限制" |
|
|
|
|
|
clearable |
|
|
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="转账限制" prop="transferLimit"> |
|
|
<el-form-item label="转账限制" prop="transferLimit"> |
|
|
<el-input |
|
|
<el-input v-model="queryParams.transferLimit" placeholder="请输入转账限制" clearable |
|
|
v-model="queryParams.transferLimit" |
|
|
@keyup.enter.native="handleQuery" /> |
|
|
placeholder="请输入转账限制" |
|
|
|
|
|
clearable |
|
|
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="支付限制" prop="payLimit"> |
|
|
<el-form-item label="支付限制" prop="payLimit"> |
|
|
<el-input |
|
|
<el-input v-model="queryParams.payLimit" placeholder="请输入支付限制" clearable @keyup.enter.native="handleQuery" /> |
|
|
v-model="queryParams.payLimit" |
|
|
|
|
|
placeholder="请输入支付限制" |
|
|
|
|
|
clearable |
|
|
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="收款限制" prop="receiveLimit"> |
|
|
<el-form-item label="收款限制" prop="receiveLimit"> |
|
|
<el-input |
|
|
<el-input v-model="queryParams.receiveLimit" placeholder="请输入收款限制" clearable |
|
|
v-model="queryParams.receiveLimit" |
|
|
@keyup.enter.native="handleQuery" /> |
|
|
placeholder="请输入收款限制" |
|
|
|
|
|
clearable |
|
|
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
|
@ -57,93 +30,51 @@ |
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8"> |
|
|
<el-row :gutter="10" class="mb8"> |
|
|
<el-col :span="1.5"> |
|
|
<el-col :span="1.5"> |
|
|
<el-button |
|
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" |
|
|
type="primary" |
|
|
v-hasPermi="['business:commonLimitSetting:add']">新增</el-button> |
|
|
plain |
|
|
|
|
|
icon="el-icon-plus" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
@click="handleAdd" |
|
|
|
|
|
v-hasPermi="['business:commonLimitSetting:add']" |
|
|
|
|
|
>新增</el-button> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="1.5"> |
|
|
<el-col :span="1.5"> |
|
|
<el-button |
|
|
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" |
|
|
type="success" |
|
|
v-hasPermi="['business:commonLimitSetting:edit']">修改</el-button> |
|
|
plain |
|
|
|
|
|
icon="el-icon-edit" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
:disabled="single" |
|
|
|
|
|
@click="handleUpdate" |
|
|
|
|
|
v-hasPermi="['business:commonLimitSetting:edit']" |
|
|
|
|
|
>修改</el-button> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="1.5"> |
|
|
<el-col :span="1.5"> |
|
|
<el-button |
|
|
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" |
|
|
type="danger" |
|
|
v-hasPermi="['business:commonLimitSetting:remove']">删除</el-button> |
|
|
plain |
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
:disabled="multiple" |
|
|
|
|
|
@click="handleDelete" |
|
|
|
|
|
v-hasPermi="['business:commonLimitSetting:remove']" |
|
|
|
|
|
>删除</el-button> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="1.5"> |
|
|
<el-col :span="1.5"> |
|
|
<el-button |
|
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" |
|
|
type="warning" |
|
|
v-hasPermi="['business:commonLimitSetting:export']">导出</el-button> |
|
|
plain |
|
|
|
|
|
icon="el-icon-download" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
@click="handleExport" |
|
|
|
|
|
v-hasPermi="['business:commonLimitSetting:export']" |
|
|
|
|
|
>导出</el-button> |
|
|
|
|
|
</el-col> |
|
|
</el-col> |
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
|
|
</el-row> |
|
|
</el-row> |
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="commonLimitSettingList" @selection-change="handleSelectionChange"> |
|
|
<el-table v-loading="loading" :data="commonLimitSettingList" @selection-change="handleSelectionChange"> |
|
|
<el-table-column type="selection" width="55" align="center" /> |
|
|
<el-table-column type="selection" width="55" align="center" /> |
|
|
<el-table-column label="ID" align="center" prop="id" v-if="true"/> |
|
|
|
|
|
<el-table-column label="适用群组" align="center" prop="limitGroup" /> |
|
|
<el-table-column label="适用群组" align="center" prop="limitGroup" /> |
|
|
<el-table-column label="对应等级" align="center" prop="limitLevel" /> |
|
|
<el-table-column label="对应等级" align="center" prop="limitLevel" /> |
|
|
<el-table-column label="提现限制" align="center" prop="cashoutLimit" /> |
|
|
<el-table-column label="提现限制" align="center" prop="cashoutLimit" /> |
|
|
<el-table-column label="转账限制" align="center" prop="transferLimit" /> |
|
|
<el-table-column label="转账限制" align="center" prop="transferLimit" /> |
|
|
<el-table-column label="支付限制" align="center" prop="payLimit" /> |
|
|
<el-table-column label="支付限制" align="center" prop="payLimit" /> |
|
|
<el-table-column label="收款限制" align="center" prop="receiveLimit" /> |
|
|
<el-table-column label="收款限制" align="center" prop="receiveLimit" /> |
|
|
<el-table-column label="状态" align="center" prop="status" /> |
|
|
<el-table-column label="状态" align="center" prop="status"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<el-tag v-if="scope.row.status == '0'">启用</el-tag> |
|
|
|
|
|
<el-tag type="danger" v-if="scope.row.status == '1'">停用</el-tag> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> |
|
|
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-button |
|
|
<el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)">详情</el-button> |
|
|
size="mini" |
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" |
|
|
type="text" |
|
|
v-hasPermi="['business:commonLimitSetting:edit']">修改</el-button> |
|
|
icon="el-icon-view" |
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" |
|
|
@click="handleDetail(scope.row)" |
|
|
v-hasPermi="['business:commonLimitSetting:remove']">删除</el-button> |
|
|
>详情</el-button> |
|
|
|
|
|
<el-button |
|
|
|
|
|
size="mini" |
|
|
|
|
|
type="text" |
|
|
|
|
|
icon="el-icon-edit" |
|
|
|
|
|
@click="handleUpdate(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:commonLimitSetting:edit']" |
|
|
|
|
|
>修改</el-button> |
|
|
|
|
|
<el-button |
|
|
|
|
|
size="mini" |
|
|
|
|
|
type="text" |
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
@click="handleDelete(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:commonLimitSetting:remove']" |
|
|
|
|
|
>删除</el-button> |
|
|
|
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
|
|
|
|
|
|
<pagination |
|
|
<pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" |
|
|
v-show="total>0" |
|
|
@pagination="getList" /> |
|
|
:total="total" |
|
|
|
|
|
:page.sync="queryParams.pageNum" |
|
|
|
|
|
:limit.sync="queryParams.pageSize" |
|
|
|
|
|
@pagination="getList" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改阈值设置对话框 --> |
|
|
<!-- 添加或修改阈值设置对话框 --> |
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
|
@ -204,9 +135,15 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { listCommonLimitSetting, getCommonLimitSetting, delCommonLimitSetting, addCommonLimitSetting, updateCommonLimitSetting } from "@/api/business/commonLimitSetting"; |
|
|
import { |
|
|
|
|
|
listCommonLimitSetting, |
|
|
|
|
|
getCommonLimitSetting, |
|
|
|
|
|
delCommonLimitSetting, |
|
|
|
|
|
addCommonLimitSetting, |
|
|
|
|
|
updateCommonLimitSetting |
|
|
|
|
|
} from "@/api/business/commonLimitSetting"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: "CommonLimitSetting", |
|
|
name: "CommonLimitSetting", |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -248,12 +185,16 @@ export default { |
|
|
form: {}, |
|
|
form: {}, |
|
|
// 表单校验 |
|
|
// 表单校验 |
|
|
rules: { |
|
|
rules: { |
|
|
limitGroup: [ |
|
|
limitGroup: [{ |
|
|
{ required: true, message: "适用群组不能为空", trigger: "blur" } |
|
|
required: true, |
|
|
], |
|
|
message: "适用群组不能为空", |
|
|
limitLevel: [ |
|
|
trigger: "blur" |
|
|
{ required: true, message: "对应等级不能为空", trigger: "blur" } |
|
|
}], |
|
|
], |
|
|
limitLevel: [{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: "对应等级不能为空", |
|
|
|
|
|
trigger: "blur" |
|
|
|
|
|
}], |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
@ -308,7 +249,7 @@ export default { |
|
|
// 多选框选中数据 |
|
|
// 多选框选中数据 |
|
|
handleSelectionChange(selection) { |
|
|
handleSelectionChange(selection) { |
|
|
this.ids = selection.map(item => item.id) |
|
|
this.ids = selection.map(item => item.id) |
|
|
this.single = selection.length!==1 |
|
|
this.single = selection.length !== 1 |
|
|
this.multiple = !selection.length |
|
|
this.multiple = !selection.length |
|
|
}, |
|
|
}, |
|
|
/** 新增按钮操作 */ |
|
|
/** 新增按钮操作 */ |
|
@ -318,7 +259,7 @@ export default { |
|
|
this.title = "添加阈值设置"; |
|
|
this.title = "添加阈值设置"; |
|
|
}, |
|
|
}, |
|
|
/** 详情按钮操作 */ |
|
|
/** 详情按钮操作 */ |
|
|
handleDetail(row){ |
|
|
handleDetail(row) { |
|
|
this.reset(); |
|
|
this.reset(); |
|
|
this.form = row; |
|
|
this.form = row; |
|
|
this.detailOpen = true; |
|
|
this.detailOpen = true; |
|
@ -371,8 +312,7 @@ export default { |
|
|
this.loading = false; |
|
|
this.loading = false; |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
this.$modal.msgSuccess("删除成功"); |
|
|
this.$modal.msgSuccess("删除成功"); |
|
|
}).catch(() => { |
|
|
}).catch(() => {}).finally(() => { |
|
|
}).finally(() => { |
|
|
|
|
|
this.loading = false; |
|
|
this.loading = false; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
@ -383,5 +323,5 @@ export default { |
|
|
}, `commonLimitSetting_${new Date().getTime()}.xlsx`) |
|
|
}, `commonLimitSetting_${new Date().getTime()}.xlsx`) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|