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