|
|
|
@ -20,27 +20,6 @@ |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8"> |
|
|
|
<!-- <el-col :span="1.5"> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
plain |
|
|
|
icon="el-icon-plus" |
|
|
|
size="mini" |
|
|
|
@click="handleAdd" |
|
|
|
v-hasPermi="['rights:link:add']" |
|
|
|
>新增</el-button> |
|
|
|
</el-col> --> |
|
|
|
<!-- <el-col :span="1.5"> |
|
|
|
<el-button |
|
|
|
type="danger" |
|
|
|
plain |
|
|
|
icon="el-icon-delete" |
|
|
|
size="mini" |
|
|
|
:disabled="multiple" |
|
|
|
@click="handleDelete" |
|
|
|
v-hasPermi="['img:banner:delete']" |
|
|
|
>删除</el-button> |
|
|
|
</el-col> --> |
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
@ -68,13 +47,6 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
|
|
|
|
<!-- <pagination |
|
|
|
v-show="total>0" |
|
|
|
:total="total" |
|
|
|
:page.sync="queryParams.pageNum" |
|
|
|
:limit.sync="queryParams.pageSize" |
|
|
|
@pagination="getList" |
|
|
|
/> --> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
@ -83,23 +55,16 @@ |
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="链接id" prop="linkId"> |
|
|
|
<el-input v-model="form.linkId" placeholder="请输入链接id" maxlength="30" /> |
|
|
|
<el-form-item label="配置名称" prop="configName"> |
|
|
|
<el-input v-model="form.configName" placeholder="请输入配置名称" maxlength="30" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="链接名字" prop="linkName"> |
|
|
|
<el-input v-model="form.linkName" placeholder="请输入链接名字" maxlength="100" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item label="所属公司" prop="affiliationCompanyName"> |
|
|
|
<el-input v-model="form.affiliationCompanyName" placeholder="请输入所属公司" maxlength="100" /> |
|
|
|
<el-form-item label="链接数据" prop="configValue"> |
|
|
|
<el-input v-model="form.configValue" placeholder="请输入链接数据" maxlength="100" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<!-- <el-row> --> |
|
|
|
<!-- </el-row> --> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
|
|
|
@ -110,7 +75,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { listConfigService, editConfigService } from "@/api/rights/configService"; |
|
|
|
import { listConfigService, editConfigService,detailsConfigService } from "@/api/rights/configService"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "configService", |
|
|
|
@ -134,15 +99,13 @@ export default { |
|
|
|
title: "", |
|
|
|
// 是否显示弹出层 |
|
|
|
open: false, |
|
|
|
// 日期范围 |
|
|
|
dateRange: [], |
|
|
|
// 表单参数 |
|
|
|
form: {}, |
|
|
|
// 查询参数 |
|
|
|
queryParams: { |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10, |
|
|
|
configName: undefined |
|
|
|
configName: 'hj' |
|
|
|
}, |
|
|
|
// 列信息 |
|
|
|
columns: [ |
|
|
|
@ -180,6 +143,18 @@ export default { |
|
|
|
if (!value) return true; |
|
|
|
return data.label.indexOf(value) !== -1; |
|
|
|
}, |
|
|
|
/** 修改按钮操作 */ |
|
|
|
handleUpdate(row) { |
|
|
|
this.reset(); |
|
|
|
const id = row.id || this.ids; |
|
|
|
detailsConfigService(id).then(response => { |
|
|
|
this.form = response.data; |
|
|
|
console.log('form',response.data) |
|
|
|
this.open = true; |
|
|
|
this.title = "修改核减配置"; |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 取消按钮 |
|
|
|
cancel() { |
|
|
|
this.open = false; |
|
|
|
@ -188,9 +163,8 @@ export default { |
|
|
|
// 表单重置 |
|
|
|
reset() { |
|
|
|
this.form = { |
|
|
|
linkId : undefined, |
|
|
|
linkName: undefined, |
|
|
|
affiliationCompanyName: undefined |
|
|
|
configName : undefined, |
|
|
|
configValue: undefined |
|
|
|
}; |
|
|
|
this.resetForm("form"); |
|
|
|
}, |
|
|
|
|