Commit 06493894 authored by 姬鋆屾's avatar 姬鋆屾

fixed:屏蔽企业社区字段展示,添加图片上传规格提示

parent d978fc83
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
</el-select> </el-select>
</el-col> </el-col>
<el-col <!-- <el-col
:span="span" :span="span"
v-if="!hideCity && !hideArea && !hideStreet && !hideStreet" v-if="!hideCity && !hideArea && !hideStreet && !hideStreet"
> >
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
> >
</el-option> </el-option>
</el-select> </el-select>
</el-col> </el-col> -->
</el-row> </el-row>
</div> </div>
</template> </template>
......
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
</div> </div>
</div> </div>
</div> </div>
<div slot="tip" class="el-upload__tip" v-if="slotP">
{{ slotP }}
</div>
</el-upload> </el-upload>
<el-upload <el-upload
:action="uploadImgUrl + '?prePath=' + prePath" :action="uploadImgUrl + '?prePath=' + prePath"
...@@ -53,6 +56,9 @@ ...@@ -53,6 +56,9 @@
v-else v-else
> >
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
<div slot="tip" class="el-upload__tip" v-if="slotP">
{{ slotP }}
</div>
</el-upload> </el-upload>
<el-dialog <el-dialog
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
...@@ -75,6 +81,8 @@ ...@@ -75,6 +81,8 @@
</template> </template>
<script> <script>
import { type } from "../assets/utils";
export default { export default {
data() { data() {
return { return {
...@@ -103,6 +111,10 @@ export default { ...@@ -103,6 +111,10 @@ export default {
type: Number, type: Number,
default: undefined, default: undefined,
}, },
slotP: {
type: String,
default: "",
},
}, },
mounted() { mounted() {
// 判断是否为多图上传 // 判断是否为多图上传
......
...@@ -97,12 +97,20 @@ ...@@ -97,12 +97,20 @@
<Field label="成立日期" prop="establishDate" v-model="form.establishDate" type="date" />--> <Field label="成立日期" prop="establishDate" v-model="form.establishDate" type="date" />-->
<el-row> <el-row>
<Field :span="24" label="企业logo"> <Field :span="24" label="企业logo">
<imageUpload v-model="form.logoPath" prePath="/file/preview" /> <imageUpload
v-model="form.logoPath"
prePath="/file/preview"
:slotP="'请上传 67*67px 的图片'"
/>
</Field> </Field>
</el-row> </el-row>
<el-row> <el-row>
<Field :span="24" label="企业背景图"> <Field :span="24" label="企业背景图">
<imageUpload v-model="form.background" prePath="/file/preview" /> <imageUpload
v-model="form.background"
prePath="/file/preview"
:slotP="'请上传 365*166px 的图片'"
/>
</Field> </Field>
</el-row> </el-row>
<el-row> <el-row>
...@@ -139,6 +147,7 @@ ...@@ -139,6 +147,7 @@
prePath="/file/preview" prePath="/file/preview"
:isList="true" :isList="true"
ref="imgList" ref="imgList"
:slotP="'请上传 390*220px 的图片'"
/> />
</Field> </Field>
</el-row> </el-row>
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
><imageUpload ><imageUpload
v-model="form.productFacePath" v-model="form.productFacePath"
prePath="/file/preview" prePath="/file/preview"
:slotP="'请上传 62*62px 的图片'"
/> />
</Field> </Field>
</el-row> </el-row>
...@@ -100,6 +101,7 @@ ...@@ -100,6 +101,7 @@
prePath="/file/preview" prePath="/file/preview"
:isList="true" :isList="true"
ref="imgList" ref="imgList"
:slotP="'请上传 390*220px 的图片'"
/> />
</Field> </Field>
</el-row> </el-row>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment