|
|
@ -43,9 +43,9 @@ |
|
|
|
<div class=""> |
|
|
|
<div class="radio"> |
|
|
|
<el-radio-group v-model="mode"> |
|
|
|
<el-radio :label="1" :disabled="updateIsDisable">{{ t('ts.更新')}}</el-radio> |
|
|
|
<el-radio :label="2" :disabled="appendIsDisable">{{ t('ts.追加') }}</el-radio> |
|
|
|
<el-radio :label="3" :disabled="coverIsDisable">{{ t('ts.覆盖') }}</el-radio> |
|
|
|
<el-radio :label="1" v-show="updateIsShow" :disabled="updateIsDisable">{{ t('ts.更新')}}</el-radio> |
|
|
|
<el-radio :label="2" v-show="appendIsShow" :disabled="appendIsDisable">{{ t('ts.追加') }}</el-radio> |
|
|
|
<el-radio :label="3" v-show="coverIsShow" :disabled="coverIsDisable">{{ t('ts.覆盖') }}</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</div> |
|
|
|
|
|
|
@ -141,18 +141,36 @@ const props = defineProps({ |
|
|
|
required: false, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
// 更新是否展示 |
|
|
|
updateIsShow: { |
|
|
|
type: Boolean, |
|
|
|
required: false, |
|
|
|
default: true |
|
|
|
}, |
|
|
|
// 追加是否禁用,默认值不禁用 |
|
|
|
appendIsDisable: { |
|
|
|
type: Boolean, |
|
|
|
required: false, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
// 追加是否展示 |
|
|
|
appendIsShow: { |
|
|
|
type: Boolean, |
|
|
|
required: false, |
|
|
|
default: true |
|
|
|
}, |
|
|
|
// 覆盖是否禁用,默认值不禁用 |
|
|
|
coverIsDisable: { |
|
|
|
type: Boolean, |
|
|
|
required: false, |
|
|
|
default: false |
|
|
|
}, |
|
|
|
// 覆盖是否展示 |
|
|
|
coverIsShow: { |
|
|
|
type: Boolean, |
|
|
|
required: false, |
|
|
|
default: true |
|
|
|
}, |
|
|
|
// 是否部门保存,默认是 |
|
|
|
updatePart: { |
|
|
|
type: Boolean, |
|
|
|