|
|
|
@ -6,8 +6,8 @@
@@ -6,8 +6,8 @@
|
|
|
|
|
<el-form-item :label="item.name || t(item.i18n)" :prop="item.code" |
|
|
|
|
v-if="!modify || (modify && !item.noModify)"> |
|
|
|
|
<NoobSelect v-if="item.dict || item.maxValue" v-model="param[item.code]" :dict="item.dict" |
|
|
|
|
:max-value="item.maxValue" full :placeholder="t('rule.pleaseSelect') + (item.name || t(item.i18n))" |
|
|
|
|
:disabled="item.disabled" /> |
|
|
|
|
:max-value="item.maxValue" full |
|
|
|
|
:placeholder="t('rule.pleaseSelect') + (item.name || t(item.i18n))" :disabled="item.disabled" /> |
|
|
|
|
<NoobDate v-else-if="item.date" v-model="param[item.code]" :formater="item.formater" full |
|
|
|
|
:placeholder="t('rule.pleaseSelect') + (item.name || t(item.i18n))" :disabled="item.disabled" /> |
|
|
|
|
<slot v-else-if="item.slot" :name="item.code" /> |
|
|
|
@ -17,8 +17,8 @@
@@ -17,8 +17,8 @@
|
|
|
|
|
</template> |
|
|
|
|
<slot></slot> |
|
|
|
|
<el-form-item class="form-btns"> |
|
|
|
|
<NoobButton type="primary" @click="formConfirm">{{ t('base.confirm') }}</NoobButton> |
|
|
|
|
<NoobButton type="info" @click="emit('cancel')">{{ t('base.cancel') }}</NoobButton> |
|
|
|
|
<NoobButton type="primary" @click="formConfirm">{{ t(confirm) }}</NoobButton> |
|
|
|
|
<NoobButton type="info" @click="emit('cancel')">{{ t(cancel) }}</NoobButton> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
</div> |
|
|
|
@ -60,6 +60,14 @@ const prop = defineProps({
@@ -60,6 +60,14 @@ const prop = defineProps({
|
|
|
|
|
type: Array<any>(), |
|
|
|
|
default: [], |
|
|
|
|
}, |
|
|
|
|
confirm: { |
|
|
|
|
type: String, |
|
|
|
|
default: 'base.confirm' |
|
|
|
|
}, |
|
|
|
|
cancel: { |
|
|
|
|
type: String, |
|
|
|
|
default: 'base.cancel' |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
const emit = defineEmits(["confirm", "cancel"]); |
|
|
|
|
const modifyForm = ref<FormInstance>(); |
|
|
|
|