Commit 198f9348 authored by 廖旭伟's avatar 廖旭伟

Merge remote-tracking branch 'origin/master'

parents a49e81e3 510dc2f9
...@@ -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() {
// 判断是否为多图上传 // 判断是否为多图上传
......
...@@ -128,18 +128,23 @@ export default { ...@@ -128,18 +128,23 @@ export default {
this.$post("/company/stat").then((res) => { this.$post("/company/stat").then((res) => {
const { data, code } = res; const { data, code } = res;
if (code == 1) { if (code == 1) {
this.enterpriseNums = data.enterpriseNums; data.enterpriseNums
this.productNums = data.productNums; ? (this.enterpriseNums = data.enterpriseNums)
this.staffNums = data.staffNums; : "--";
this.newsNums = data.newsNums; data.productNums ? (this.productNums = data.productNums) : "--";
this.feedbackNums = data.feedbackNums; data.staffNums ? (this.staffNums = data.staffNums) : "--";
this.customerNums = data.customerNums; data.newsNums ? (this.newsNums = data.newsNums) : "--";
data.feedbackNums ? (this.feedbackNums = data.feedbackNums) : "--";
data.customerNums ? (this.customerNums = data.customerNums) : "--";
this.lineDayValue = data.accessStatList ? data.accessStatList : []; this.lineDayValue = data.accessStatList ? data.accessStatList : [];
this.barDayValue = data.sendCardStaffList this.barDayValue = data.sendCardStaffList
? data.sendCardStaffList ? data.sendCardStaffList
: []; : [];
if (data.newsDistributionList.length > 0) { if (
data.newsDistributionList &&
data.newsDistributionList.length > 0
) {
let arr = []; let arr = [];
data.newsDistributionList.forEach((item) => { data.newsDistributionList.forEach((item) => {
arr.push({ arr.push({
...@@ -152,7 +157,10 @@ export default { ...@@ -152,7 +157,10 @@ export default {
this.xwfbDayValue = []; this.xwfbDayValue = [];
} }
if (data.productDistributionList.length > 0) { if (
data.productDistributionList &&
data.productDistributionList.length > 0
) {
let arr = []; let arr = [];
data.productDistributionList.forEach((item) => { data.productDistributionList.forEach((item) => {
arr.push({ arr.push({
...@@ -165,7 +173,10 @@ export default { ...@@ -165,7 +173,10 @@ export default {
this.cpfbDayValue = []; this.cpfbDayValue = [];
} }
if (data.businessCardDistributionList.length > 0) { if (
data.businessCardDistributionList &&
data.businessCardDistributionList.length > 0
) {
let arr = []; let arr = [];
data.businessCardDistributionList.forEach((item) => { data.businessCardDistributionList.forEach((item) => {
arr.push({ arr.push({
......
...@@ -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>
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
:isList="true" :isList="true"
:limit="9" :limit="9"
ref="imgList" ref="imgList"
:slotP="'请上传2MB以内的图片'"
/> />
</Field> </Field>
......
...@@ -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>
......
...@@ -44,7 +44,11 @@ ...@@ -44,7 +44,11 @@
/> />
<!-- <Field :span="20" label="员工状态" type="select" prop="staffStatus" v-model="form.staffStatus" :enum-data="dict.staffStatus" placeholder="请输入员工状态"/> --> <!-- <Field :span="20" label="员工状态" type="select" prop="staffStatus" v-model="form.staffStatus" :enum-data="dict.staffStatus" placeholder="请输入员工状态"/> -->
<Field :span="20" label="头像" prop="photoPath" placeholder="请输入照片" <Field :span="20" label="头像" prop="photoPath" placeholder="请输入照片"
><imageUpload v-model="form.photoPath" prePath="/file/preview" /> ><imageUpload
v-model="form.photoPath"
prePath="/file/preview"
:slotP="'请上传 62*62px 的2MB以内的图片'"
/>
</Field> </Field>
<Field <Field
:span="20" :span="20"
......
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