diff --git a/src/components/SelectBox/SelectBox.vue b/src/components/SelectBox/SelectBox.vue index 76e9deda..fe2584ee 100644 --- a/src/components/SelectBox/SelectBox.vue +++ b/src/components/SelectBox/SelectBox.vue @@ -8,6 +8,7 @@ @blur="handleBlur" @change="handleChange" :clearable="props.clearable !== false" + :disabled="props.disabled === true" >
{ for (let i = 0; i < _oldArr.length; i++) { const value = _oldArr[i]; - if (item.prop !== value.prop) continue; + if (item.prop + item.label + item.type !== value.prop + value.label + value.type) continue; _setArr.push(item); _oldArr.splice(i, 1); break; @@ -170,7 +170,7 @@ const initTable = async () => { _setArr.push(..._oldArr); console.log('_setArr :>> ', _setArr); - columnRef.value = _setArr; + columnRef.value = [..._setArr]; handleClearTableQuery(_setArr); emit('update:modelValue', _setArr); } catch (error) { diff --git a/src/views/distribution/artery/addTripartiteTransfer.vue b/src/views/distribution/artery/addTripartiteTransfer.vue index 60a18731..5c7ac63c 100644 --- a/src/views/distribution/artery/addTripartiteTransfer.vue +++ b/src/views/distribution/artery/addTripartiteTransfer.vue @@ -70,6 +70,16 @@ class="m-2" placeholder="运费分摊方式" size="default" + @change=" + val => { + console.log('val :>> ', val); + if (val + '' === '2') return; + details.form.driverName = ''; + details.form.driverId = ''; + details.form.driverMobile = ''; + details.form.carNumber = ''; + } + " >
- +
- - +
-