Commit 91692a77 by 林家欣

修改案例管理联调

parent ea088866
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -12,13 +12,13 @@
label-width="120px"
v-loading="loading"
>
<el-form-item label="标题" prop="firmname">
<el-form-item label="标题" prop="title">
<el-input
v-model="dataForm.firmname"
v-model="dataForm.title"
placeholder="请输入标题"
v-show="!showInfo"
></el-input>
<p v-show="showInfo">{{ dataForm.firmname }}</p>
<p v-show="showInfo">{{ dataForm.title }}</p>
</el-form-item>
<el-form-item label="服务行业:" prop="service">
<el-select
......@@ -36,38 +36,7 @@
</el-select>
<p v-show="showInfo">{{ dataForm.service }}</p>
</el-form-item>
<el-form-item label="网址:" prop="site">
<el-input
v-model="dataForm.site"
placeholder="请输入网址"
v-show="!showInfo"
></el-input>
<p v-show="showInfo">{{ dataForm.site }}</p>
</el-form-item>
<el-form-item label="联系人姓名:" prop="name">
<el-input
v-model="dataForm.name"
placeholder="请输入联系人姓名"
v-show="!showInfo"
></el-input>
<p v-show="showInfo">{{ dataForm.name }}</p>
</el-form-item>
<el-form-item label="联系电话:" prop="phone">
<el-input
v-model="dataForm.phone"
placeholder="请输入联系电话"
v-show="!showInfo"
></el-input>
<p v-show="showInfo">{{ dataForm.phone }}</p>
</el-form-item>
<el-form-item label="邮箱:" prop="email">
<el-input
v-model="dataForm.email"
placeholder="请输入邮箱"
v-show="!showInfo"
></el-input>
<p v-show="showInfo">{{ dataForm.email }}</p>
</el-form-item>
<el-form-item label="级别:" prop="levels">
<el-select
v-model="dataForm.levels"
......@@ -84,8 +53,18 @@
</el-select>
<p v-show="showInfo">{{ dataForm.levels }}</p>
</el-form-item>
<el-form-item label="上传图片:" prop="pic">
<el-form-item label="显示时间:" prop="showtime">
<el-date-picker
v-show="!showInfo"
v-model="dataForm.showtime"
value-format="yyyy-MM-dd"
type="date"
placeholder="选择日期"
>
</el-date-picker>
<p v-show="showInfo">{{ dataForm.showtime }}</p>
</el-form-item>
<!-- <el-form-item label="图片:" prop="pic">
<el-upload
v-show="!showInfo"
class="avatar-uploader"
......@@ -98,9 +77,8 @@
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload>
<p v-show="showInfo"><img :src="imgUrlStr" class="avatar" /></p>
</el-form-item>
<el-form-item label="企业简介:" prop="brief">
</el-form-item> -->
<el-form-item label="案例内容" prop="brief">
<Ueditor
@ready="editorReady"
:value="ueditor.value"
......@@ -182,26 +160,20 @@ export default {
],
dataForm: {
id: 0,
firmname: "",
title: "",
service: "",
site: "",
name: "",
phone: "",
email: "",
levels: "",
pic: "",
showtime: "",
// pic: "",
brief: "",
},
cclassidStr: undefined,
dataRule: {
firmname: [{ required: true, message: "标题不能为空", trigger: "blur" }],
title: [{ required: true, message: "标题不能为空", trigger: "blur" }],
service: [{ required: true, message: "服务行业不能为空", trigger: "blur" }],
site: [{ required: true, message: "网址不能为空", trigger: "blur" }],
name: [{ required: true, message: "联系人姓名不能为空", trigger: "blur" }],
phone: [{ required: true, message: "联系电话不能为空", trigger: "blur" }],
email: [{ required: true, message: "邮箱不能为空", trigger: "blur" }],
levels: [{ required: true, message: "级别不能为空", trigger: "blur" }],
pic: [{ required: true, message: "请上传图片", trigger: "blur" }],
showtime: [{ required: true, message: "邮箱不能为空", trigger: "blur" }],
// pic: [{ required: true, message: "请上传图片", trigger: "blur" }],
brief: [{ required: true, message: "企业简介不能为空", trigger: "blur" }],
},
imgUrl: new FormData(),
......@@ -215,13 +187,8 @@ export default {
};
},
methods: {
getSelectName(list, id) {
let arr = list.filter((item) => {
return item.id === id;
});
return arr[0].name;
},
init(id, showInfo) {
console.log(id, 'id');
this.dataForm.id = id || 0;
this.visible = true;
this.showInfo = showInfo;
......@@ -236,8 +203,8 @@ export default {
}).then(({ data }) => {
this.loading = false;
if (data && data.code === 0) {
this.dataForm = data.partners;
this.imgUrlStr = data.partners.pic;
this.dataForm = data.cases;
// this.imgUrlStr = data.cases.pic;
this.dialogVisible = true;
this.ueditor.value = this.dataForm.brief;
}
......@@ -258,14 +225,11 @@ export default {
method: "post",
data: this.$http.adornData({
id: this.dataForm.id || undefined,
firmname: this.dataForm.firmname,
title: this.dataForm.title,
service: this.dataForm.service,
site: this.dataForm.site,
name: this.dataForm.name,
phone: this.dataForm.phone,
email: this.dataForm.email,
levels: this.dataForm.levels,
pic: this.dataForm.pic,
showtime: this.dataForm.showtime,
// pic: this.dataForm.pic,
brief: this.dataForm.brief,
}),
}).then(({ data }) => {
......
......@@ -6,9 +6,9 @@
@keyup.enter.native="getDataList()"
label-width="80px"
>
<el-form-item label="标题" prop="firmname">
<el-form-item label="标题" prop="title">
<el-input
v-model="dataForm.firmname"
v-model="dataForm.title"
placeholder="请输入标题"
clearable
></el-input>
......@@ -109,7 +109,7 @@
>
</el-table-column>
<el-table-column
prop="firmname"
prop="title"
header-align="center"
align="center"
label="标题"
......@@ -154,25 +154,25 @@
>
</el-table-column>
<el-table-column
prop="auditor"
prop="checkDate"
header-align="center"
align="center"
label="审核人"
sortable
label="审核时间"
>
</el-table-column>
<el-table-column
prop="checkDate"
prop="auditor"
header-align="center"
align="center"
sortable
label="审核时间"
label="审核人"
>
</el-table-column>
<el-table-column
prop="status"
header-align="center"
align="center"
label="审核状态"
label="状态"
>
<template slot-scope="scope">
<div>
......@@ -260,7 +260,7 @@ export default {
return {
addOrUpdateVisible: false,
dataForm: {
firmname: "",
title: "",
editor: "",
status: "",
service: "",
......@@ -351,7 +351,7 @@ export default {
data: this.$http.adornParams({
page: this.pageIndex,
limit: this.pageSize,
firmname: this.dataForm.firmname,
title: this.dataForm.title,
editor: this.dataForm.editor,
status: this.dataForm.status,
service: this.dataForm.service,
......
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