Commit a46dc1ad authored by Mac's avatar Mac

1

parent 373b968c
......@@ -72,17 +72,17 @@
label='请选择' class="my-special-class" option-value="Id" option-label="Name" />
<q-input v-if="x.Type==''" outlined v-model="x.StartValue" label="请输入" dense />
<div v-if="x.Name=='标签'" class="input_label" @click="showlabel(y)">
<div style="display: flex;" v-if="x.LableIds && x.LableIds.length>0">
<div style="display: flex;" v-if="x.StartValue && x.StartValue.length>0">
<div class="text-clamp-1 tag-select-input" style="max-width:110px;">
{{x.LableIds[0].Name}}
{{x.StartValue[0].Name}}
</div>
<div v-if="x.LableIds.length>1" class="tag-select-input" style="margin-left: 5px;">
{{x.LableIds.length-1}}+
<div v-if="x.StartValue.length>1" class="tag-select-input" style="margin-left: 5px;">
{{x.StartValue.length-1}}+
</div>
</div>
<div v-if="x.LableIds && x.LableIds.length>0" class="lablec">
<div v-if="x.StartValue && x.StartValue.length>0" class="lablec">
<i style="font-size: 16px;" class="el-icon-error"
@click.stop="addMsg[y].LableIds=[]"></i>
@click.stop="addMsg[y].StartValue=[]"></i>
</div>
</div>
<!-- 新增和删除 -->
......@@ -161,8 +161,7 @@
StartValue: '',
EndValue: '',
IsCustom: filedList.value[0].IsCustom,
StageId: [],
LableIds: [],
})
})
}
......@@ -177,8 +176,7 @@
StartValue: '',
EndValue: '',
IsCustom: '2',
LableIds: [],
StageId: [],
}
addMsg.value.push(obj)
}
......@@ -186,11 +184,16 @@
const showlabel = (y) =>{
isshowlabel.value = true
selectindex.value = y;
LableList.value = addMsg.value[y].LableIds
if(addMsg.value[y].StartValue==''){//为空赋值为数组
LableList.value = []
}else{
LableList.value = addMsg.value[y].StartValue
}
}
const getlabel=(list)=> {
isshowlabel.value = false;
addMsg.value[selectindex.value].LableIds = list
addMsg.value[selectindex.value].StartValue = list
}
return {
getCustomerFiledList,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment