|
|
@@ -5,8 +5,8 @@
|
|
|
<div class="Container flex f-c">
|
|
|
<div class="flex ">
|
|
|
<el-input v-model="attrName" style="margin-right: 20px;" clearable placeholder="搜索"
|
|
|
- @keydown.enter="handleEnter" @clear="ruleAttr" />
|
|
|
- <el-button @click="ruleAttr" type="primary">查找</el-button>
|
|
|
+ @keydown.enter="handleEnter" @clear="ruleAttr()" />
|
|
|
+ <el-button @click="ruleAttr()" type="primary">查找</el-button>
|
|
|
</div>
|
|
|
<div class="conditionSet flex " v-if="searchShow">
|
|
|
<div class="tabLeft">
|
|
|
@@ -118,6 +118,7 @@ const save = () => {
|
|
|
...checkeddata.InsuredInformation,
|
|
|
...checkeddata.InsuranceInformation,
|
|
|
...checkeddata.InsuranceCostFactor,
|
|
|
+ ...checkeddata.SearchDataStore,
|
|
|
]
|
|
|
let arr = props.attrIdList?[...props.attrIdList, ...mergedData]: mergedData
|
|
|
// console.log('原有的', props.attrIdList)
|
|
|
@@ -265,15 +266,15 @@ onMounted(() => {
|
|
|
|
|
|
|
|
|
let searchShow = ref(true)
|
|
|
-const ruleAttr = (id) => {
|
|
|
- console.log(id);
|
|
|
-
|
|
|
+let companyId = ref('')
|
|
|
+const ruleAttr = (id='') => {
|
|
|
+ if(id) companyId.value=id
|
|
|
if(attrName.value) {
|
|
|
searchShow.value = false
|
|
|
} else {
|
|
|
searchShow.value = true
|
|
|
}
|
|
|
- api.agreementApi.ruleAttrGroup({ attrName: attrName.value, companyId: id }).then((res: any) => {
|
|
|
+ api.agreementApi.ruleAttrGroup({ attrName: attrName.value, companyId: companyId.value }).then((res: any) => {
|
|
|
if (res.code == '200') {
|
|
|
dataStore.VehicleInformation = res.data.VehicleInformation ? processArray(res.data.VehicleInformation) : [];
|
|
|
dataStore.VehicleOwnerInformation = res.data.VehicleOwnerInformation ? processArray(res.data.VehicleOwnerInformation) : [];
|