添加人员、材料、机械管理上传图片、文件功能
This commit is contained in:
@ -29,7 +29,7 @@
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入备注" />
|
||||
</el-form-item>
|
||||
<el-form-item label="图片" prop="picture">
|
||||
<el-input v-model="form.picture" placeholder="请输入图片" />
|
||||
<image-upload v-model="form.picture" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
@ -80,6 +80,7 @@ const rules = reactive({
|
||||
});
|
||||
|
||||
const formRef = ref();
|
||||
const imageValue = ref([]);
|
||||
|
||||
const submitForm = () => {
|
||||
formRef.value.validate(async (valid: boolean) => {
|
||||
|
||||
@ -10,9 +10,9 @@
|
||||
<el-table-column label="检验单位" align="center" prop="checkoutUnit" />
|
||||
<el-table-column label="检定日期/有效期" align="center" prop="checkoutDate" />
|
||||
<el-table-column label="入场时间" align="center" prop="entryTime" />
|
||||
<el-table-column label="图片" align="center" prop="picture">
|
||||
<el-table-column label="图片" align="center" prop="pictureList.url">
|
||||
<template #default="scope">
|
||||
<el-image :src="scope.row.picture" />
|
||||
<el-image :key="picture.id" v-for="picture in scope.row.pictureList" :src="picture.url" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
@ -68,7 +68,7 @@
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入备注" />
|
||||
</el-form-item>
|
||||
<el-form-item label="图片" prop="picture">
|
||||
<el-input v-model="form.picture" placeholder="请输入图片" />
|
||||
<image-upload v-model="form.picture" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
|
||||
Reference in New Issue
Block a user