|
|
@@ -5,7 +5,7 @@
|
|
|
<ElRow :gutter="20">
|
|
|
<ElCol :md="8">
|
|
|
<ElFormItem label="保险公司">
|
|
|
- <el-select v-model="formInline.companyId" placeholder="请选择保险公司" style="width: 100%;">
|
|
|
+ <el-select v-model="formInline.companyId" placeholder="请选择保险公司" clearable filterable style="width: 100%;">
|
|
|
<el-option :label="item.name" :value="item.id" v-for="(item, index) in companyList" :key="index" />
|
|
|
</el-select>
|
|
|
</ElFormItem>
|
|
|
@@ -36,7 +36,7 @@
|
|
|
</ElCol>
|
|
|
<ElCol :md="8">
|
|
|
<div class="flex a-c j-end" style="width: 100%;">
|
|
|
- <el-button type="primary" @click="findpage">查询</el-button>
|
|
|
+ <el-button type="primary" @click="findpage" v-auth="'specialClause.view'">查询</el-button>
|
|
|
<el-button type="default" @click="reset">重置</el-button>
|
|
|
</div>
|
|
|
</ElCol>
|
|
|
@@ -47,7 +47,7 @@
|
|
|
:pageInfo="pageInfo" @getList="getList" @selectionChange="selectionChange">
|
|
|
<template v-slot:table-title-btn>
|
|
|
<RouterLink :to="{ name: 'SpecialClauseAdd' }">
|
|
|
- <el-button type="primary">
|
|
|
+ <el-button type="primary" v-auth="'specialClause.add'">
|
|
|
添加特约
|
|
|
<template #icon>
|
|
|
<el-icon>
|
|
|
@@ -57,15 +57,19 @@
|
|
|
</el-button>
|
|
|
</RouterLink>
|
|
|
|
|
|
- <el-button type="default" @click="batchDel" :disabled="!sysUpAndDownList.length">
|
|
|
+ <el-button type="default" @click="batchDel" v-auth="'specialClause.delete'" :disabled="!sysUpAndDownList.length">
|
|
|
批量删除
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<template v-slot:operation="scope">
|
|
|
- <el-button type="primary" link @click="Edit(scope.operationData.id)"> 编辑
|
|
|
- </el-button>
|
|
|
- <el-button type="primary" link @click="Del(scope.operationData.id)"> 删除
|
|
|
- </el-button>
|
|
|
+ <Auth :value="'specialClause.edit'">
|
|
|
+ <el-button type="primary" link @click="Edit(scope.operationData.id)"> 编辑
|
|
|
+ </el-button>
|
|
|
+ </Auth>
|
|
|
+ <Auth :value="'specialClause.delete'">
|
|
|
+ <el-button type="primary" link @click="Del(scope.operationData.id)"> 删除
|
|
|
+ </el-button>
|
|
|
+ </Auth>
|
|
|
</template>
|
|
|
<template v-slot:search="scope">
|
|
|
{{ scope.slotData.label }}
|
|
|
@@ -118,11 +122,10 @@ function findpage() {
|
|
|
pageInfo.value.pageSize = res.data.size;
|
|
|
pageInfo.value.total = res.data.total;
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
}
|
|
|
const columns = [
|
|
|
- { prop: "companyName", label: "保险公司", align: 'left', width: '180' },
|
|
|
+ { prop: "companyName", label: "保险公司", align: 'left', width: '280' },
|
|
|
{
|
|
|
prop: "riskCode", label: "特约类型", width: '150', formatter: (row: any) => {
|
|
|
let riskCode = row.riskCode;
|
|
|
@@ -132,7 +135,7 @@ const columns = [
|
|
|
},
|
|
|
{ prop: "clauseName", label: "特约名称", align: 'left' },
|
|
|
{ prop: "clauseCode", label: "编码", width: '220' },
|
|
|
- { prop: "clauseContent", label: "特别约定内容", width: '480', },
|
|
|
+ { prop: "clauseContent", label: "特别约定内容", width: '480'},
|
|
|
];
|
|
|
function getList(item: PageInfo) {
|
|
|
pageInfo.value.pageNum = item.pageNum;
|
|
|
@@ -215,7 +218,12 @@ const Del = (id: string) => {
|
|
|
|
|
|
}
|
|
|
const reset = () => {
|
|
|
-
|
|
|
+ formInline.clauseCode='';
|
|
|
+ formInline.clauseContent='';
|
|
|
+ formInline.clauseName='';
|
|
|
+ formInline.companyId='';
|
|
|
+ formInline.riskCode='';
|
|
|
+ findpage();
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|