优化商品的多属性的下拉框,增加刷新按钮

This commit is contained in:
jishenghua
2025-04-10 22:32:30 +08:00
parent 35b0d1ef71
commit cd11c81885
2 changed files with 8 additions and 1 deletions

View File

@@ -28,7 +28,8 @@
</a-form>
<a-form :form="form">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="属性值">
<a-textarea :rows="2" placeholder="请输入属性值(用竖线隔开,比如:红色|橙色|黄色|绿色)" v-decorator.trim="[ 'attributeValue', validatorRules.attributeValue]" />
<a-textarea :rows="5" placeholder="请输入属性值" v-decorator.trim="[ 'attributeValue', validatorRules.attributeValue]" />
注意属性值请用竖线隔开比如红色|橙色|黄色|绿色
</a-form-item>
</a-form>
</a-spin>

View File

@@ -163,6 +163,12 @@
<a-tooltip title="多属性针对服装鞋帽家纺等行业注意不要勾选多单位因为多属性商品不支持多单位只支持单个的单位">
<a-select mode="multiple" v-decorator="[ 'manySku' ]" showSearch optionFilterProp="children"
placeholder="请选择多属性可多选" @change="onManySkuChange" :disabled="attributeStatus">
<div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" />
<a-divider style="margin: 4px 0;" />
<div style="padding: 4px 8px; cursor: pointer;"
@mousedown="e => e.preventDefault()" @click="initMaterialAttribute">没找到?点此刷新列表 <a-icon type="reload" /></div>
</div>
<a-select-option v-for="(item,index) in materialAttributeList" :key="index" :value="item.value" :disabled="item.disabled">
{{ item.name }}
</a-select-option>