|
@@ -53,6 +53,16 @@
|
|
|
@click="handleDelete">删 除
|
|
|
</el-button>
|
|
|
</template>
|
|
|
+ <template slot-scope="{type,disabled}" slot="businessTypeIdForm">
|
|
|
+ <el-select v-model="form.businessTypeId" clearable @change="businessTypeChange(form.businessTypeId)" placeholder="请选择">
|
|
|
+ <el-option
|
|
|
+ v-for="item in feesTypeList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.cnName"
|
|
|
+ :value="item.id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </template>
|
|
|
<template slot-scope="scope" slot="menu">
|
|
|
<el-link type="primary" style="font-size: 12px" icon="el-icon-view" :underline="false" @click="detail(scope.row.id)">查看详情 </el-link>
|
|
|
<el-link type="primary" style="font-size: 12px" icon="el-icon-edit" :underline="false" @click="addedData(2, scope)">编 辑 </el-link>
|
|
@@ -125,6 +135,7 @@
|
|
|
prop: "businessTypeId",
|
|
|
width: "180",
|
|
|
search:true,
|
|
|
+ formslot: true,
|
|
|
type: 'select',
|
|
|
props: {
|
|
|
label: 'cnName',
|
|
@@ -132,14 +143,14 @@
|
|
|
},
|
|
|
dicData: [],
|
|
|
change: (column,value) => {
|
|
|
- console.log(column)
|
|
|
- if (column) {
|
|
|
- this.feesTypeList.forEach(data => {
|
|
|
- if (data.id == column.value) {
|
|
|
- this.form.businessType = data.code
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ // console.log(column)
|
|
|
+ // if (column) {
|
|
|
+ // this.feesTypeList.forEach(data => {
|
|
|
+ // if (data.id == column.value) {
|
|
|
+ // this.form.businessType = data.code
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }
|
|
|
},
|
|
|
rules: [{
|
|
|
required: true,
|
|
@@ -294,6 +305,16 @@
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+ businessTypeChange(column) {
|
|
|
+ // console.log(column, 1234)
|
|
|
+ if (column) {
|
|
|
+ this.feesTypeList.forEach(data => {
|
|
|
+ if (data.id == column) {
|
|
|
+ this.form.businessType = data.code
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
addedData(type, scope) {
|
|
|
this.form = {};
|
|
|
if (type == 1) {
|