This commit is contained in:
2025-09-25 09:44:34 +08:00
parent 6fe683e97e
commit eb8342ec8b
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@
<MOSTY.Date v-else-if="item.type == 'date'" :type="item.lx ? item.lx : 'date'" width="100%" clearable <MOSTY.Date v-else-if="item.type == 'date'" :type="item.lx ? item.lx : 'date'" width="100%" clearable
v-model="listQuery[item.prop]" /> v-model="listQuery[item.prop]" />
<!-- 上传 upload limit:'限制张数'--> <!-- 上传 upload limit:'限制张数'-->
<MOSTY.Upload v-else-if="item.type == 'upload'" :isImg="item.isImg" :limit="item.limit" width="100%" <MOSTY.Upload v-else-if="item.type == 'upload'" :showBtn="item.showBtn" :isImg="item.isImg" :limit="item.limit" width="100%"
v-model="listQuery[item.prop]" /> v-model="listQuery[item.prop]" />
<!--选择checkbox --> <!--选择checkbox -->
<MOSTY.CheckBox v-else-if="item.type == 'checkbox'" width="100%" clearable v-model="listQuery[item.prop]" <MOSTY.CheckBox v-else-if="item.type == 'checkbox'" width="100%" clearable v-model="listQuery[item.prop]"

View File

@ -36,7 +36,7 @@ const formList = reactive([
{ label: "视频标题", prop: "spbt", type: "input" }, { label: "视频标题", prop: "spbt", type: "input" },
], ],
[ [
{ label: "附件", prop: "fjid", type: "upload"}, { label: "附件", prop: "fjid", type: "upload",isImg:false,showBtn:true,limit:2 },
], ],
]) ])
@ -65,6 +65,7 @@ const save = () => {
} }
const close = () => { const close = () => {
dialogForm.value = false; dialogForm.value = false;
listQuery.value.fjid = []
FormRef.value.reset() FormRef.value.reset()
};; };;