|
|
|
@ -1,18 +1,31 @@ |
|
|
|
|
<template> |
|
|
|
|
<div> |
|
|
|
|
<el-form :model="searchForm" inline> |
|
|
|
|
<el-form :model="searchForm" inline @submit.prevent> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-input v-model="searchForm.name" placeholder="方案名称" /> |
|
|
|
|
<el-input v-model="searchForm.name" placeholder="方案名称" @keyup.enter="handleQuery" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-select v-model="searchForm.status" placeholder="启用状态" clearable filterable> |
|
|
|
|
<el-select |
|
|
|
|
v-model="searchForm.status" |
|
|
|
|
placeholder="启用状态" |
|
|
|
|
clearable |
|
|
|
|
filterable |
|
|
|
|
@change="handleQuery" |
|
|
|
|
> |
|
|
|
|
<el-option label="启用" :value="0" /> |
|
|
|
|
<el-option label="停用" :value="1" /> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-button @click="handleQuery">搜索</el-button> |
|
|
|
|
<el-button type="primary" plain @click="openForm('create')"> 新增 </el-button> |
|
|
|
|
<el-button @click="handleQuery" v-hasPermi="['finance:commission:search']">搜索</el-button> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
plain |
|
|
|
|
@click="openForm('create')" |
|
|
|
|
v-hasPermi="['finance:commission:add']" |
|
|
|
|
> |
|
|
|
|
新增 |
|
|
|
|
</el-button> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
<el-table v-loading="loading" :data="tableList" border stripe> |
|
|
|
@ -30,14 +43,29 @@ |
|
|
|
|
v-model="scope.row.status" |
|
|
|
|
:active-value="0" |
|
|
|
|
:inactive-value="1" |
|
|
|
|
v-hasPermi="['finance:commission:update']" |
|
|
|
|
@change="handleStatusChange(scope.row)" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="操作" width="200"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-button type="primary" link @click="openForm('update', scope.row)"> 修改 </el-button> |
|
|
|
|
<el-button type="primary" link @click="handleDelete(scope.row.id)"> 删除 </el-button> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
link |
|
|
|
|
@click="openForm('update', scope.row)" |
|
|
|
|
v-hasPermi="['finance:commission:update']" |
|
|
|
|
> |
|
|
|
|
修改 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
link |
|
|
|
|
@click="handleDelete(scope.row.id)" |
|
|
|
|
v-hasPermi="['finance:commission:delete']" |
|
|
|
|
> |
|
|
|
|
删除 |
|
|
|
|
</el-button> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|