|
@@ -21,7 +21,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<div style="display: flex;">
|
|
<div style="display: flex;">
|
|
|
<span style="width: 10%"><a style="color: red">*</a>规则条件</span>
|
|
<span style="width: 10%"><a style="color: red">*</a>规则条件</span>
|
|
|
- <div class="ruleList">
|
|
|
|
|
|
|
+<!-- <div class="ruleList">
|
|
|
<div class="ruleItem">
|
|
<div class="ruleItem">
|
|
|
<el-input placeholder="请填写" style="width: 300px"></el-input>
|
|
<el-input placeholder="请填写" style="width: 300px"></el-input>
|
|
|
<el-select style="width: 100px">
|
|
<el-select style="width: 100px">
|
|
@@ -32,7 +32,8 @@
|
|
|
<el-input placeholder="请填写" style="width: 300px"></el-input>
|
|
<el-input placeholder="请填写" style="width: 300px"></el-input>
|
|
|
<el-icon><CircleCloseFilled /></el-icon>
|
|
<el-icon><CircleCloseFilled /></el-icon>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>-->
|
|
|
|
|
+ <rule-condition :ruleConditionVisible="false"></rule-condition>
|
|
|
</div>
|
|
</div>
|
|
|
<el-button style="margin: 10px 10%" plain type="primary" icon="plus">添加条件</el-button>
|
|
<el-button style="margin: 10px 10%" plain type="primary" icon="plus">添加条件</el-button>
|
|
|
<el-descriptions>
|
|
<el-descriptions>
|
|
@@ -59,7 +60,7 @@
|
|
|
title="选择驾意险"
|
|
title="选择驾意险"
|
|
|
width="700"
|
|
width="700"
|
|
|
>
|
|
>
|
|
|
- <driving @close="handleDrivingClose(item, $event)"></driving>
|
|
|
|
|
|
|
+ <driving ref="DrivingTypeRef" @close="handleDrivingClose(item, $event)"></driving>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
<el-table
|
|
<el-table
|
|
@@ -150,8 +151,10 @@ import api from "@/api";
|
|
|
import { ElMessage } from "element-plus";
|
|
import { ElMessage } from "element-plus";
|
|
|
import insurance from '../../../../layouts/components/InsuranceType/index.vue'
|
|
import insurance from '../../../../layouts/components/InsuranceType/index.vue'
|
|
|
import driving from '../../../../layouts/components/DrivingType/index.vue'
|
|
import driving from '../../../../layouts/components/DrivingType/index.vue'
|
|
|
|
|
+import rule from '../../../../components/ruleConditionContainer/index.vue'
|
|
|
|
|
|
|
|
const InsuranceTypeRef = ref(null)
|
|
const InsuranceTypeRef = ref(null)
|
|
|
|
|
+const DrivingTypeRef = ref(null)
|
|
|
|
|
|
|
|
let projectAddFrom = ref({
|
|
let projectAddFrom = ref({
|
|
|
rulesList: [],
|
|
rulesList: [],
|
|
@@ -242,16 +245,20 @@ const insuranceTypeDel = (item, row) => {
|
|
|
let drivingShow = ref(false)
|
|
let drivingShow = ref(false)
|
|
|
const handleDriving = (item, index) => {
|
|
const handleDriving = (item, index) => {
|
|
|
drivingShow.value = true
|
|
drivingShow.value = true
|
|
|
|
|
+ nextTick(() => {
|
|
|
|
|
+ DrivingTypeRef.value[index].initEditData(item.drivingList)
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
const handleDrivingClose = (item, list ) => {
|
|
const handleDrivingClose = (item, list ) => {
|
|
|
if(list && list.length > 0) {
|
|
if(list && list.length > 0) {
|
|
|
- list.forEach(sub => {
|
|
|
|
|
|
|
+ let selectList = list.filter(a => a.checked)
|
|
|
|
|
+ selectList.forEach(sub => {
|
|
|
sub.drivingIntentionId = sub.id
|
|
sub.drivingIntentionId = sub.id
|
|
|
- sub.selectedStatus = '1'
|
|
|
|
|
- sub.quantity = '1'
|
|
|
|
|
|
|
+ sub.selectedStatus = sub.selectedStatus?sub.selectedStatus:'1'
|
|
|
|
|
+ sub.quantity = sub.quantity?sub.quantity:'1'
|
|
|
})
|
|
})
|
|
|
|
|
+ item.drivingList = selectList
|
|
|
}
|
|
}
|
|
|
- item.drivingList = list
|
|
|
|
|
drivingShow.value = false
|
|
drivingShow.value = false
|
|
|
}
|
|
}
|
|
|
const drivingTypeDel = (item, row) => {
|
|
const drivingTypeDel = (item, row) => {
|