Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-admin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-admin
Commits
91692a77
Commit
91692a77
authored
Jan 15, 2022
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改案例管理联调
parent
ea088866
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
77 deletions
+41
-77
package-lock.json
package-lock.json
+0
-0
cases-add-or-update.vue
src/views/modules/standard/cases-add-or-update.vue
+30
-66
cases.vue
src/views/modules/standard/cases.vue
+11
-11
No files found.
package-lock.json
deleted
100644 → 0
View file @
ea088866
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/views/modules/standard/cases-add-or-update.vue
View file @
91692a77
...
...
@@ -12,13 +12,13 @@
label-width=
"120px"
v-loading=
"loading"
>
<el-form-item
label=
"标题"
prop=
"
firmnam
e"
>
<el-form-item
label=
"标题"
prop=
"
titl
e"
>
<el-input
v-model=
"dataForm.
firmnam
e"
v-model=
"dataForm.
titl
e"
placeholder=
"请输入标题"
v-show=
"!showInfo"
></el-input>
<p
v-show=
"showInfo"
>
{{
dataForm
.
firmnam
e
}}
</p>
<p
v-show=
"showInfo"
>
{{
dataForm
.
titl
e
}}
</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
,
firmnam
e
:
""
,
titl
e
:
""
,
service
:
""
,
site
:
""
,
name
:
""
,
phone
:
""
,
email
:
""
,
levels
:
""
,
pic
:
""
,
showtime
:
""
,
// pic: "",
brief
:
""
,
},
cclassidStr
:
undefined
,
dataRule
:
{
firmnam
e
:
[{
required
:
true
,
message
:
"标题不能为空"
,
trigger
:
"blur"
}],
titl
e
:
[{
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
.
partner
s
;
this
.
imgUrlStr
=
data
.
partner
s
.
pic
;
this
.
dataForm
=
data
.
case
s
;
// this.imgUrlStr = data.case
s.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
.
firmnam
e
,
title
:
this
.
dataForm
.
titl
e
,
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
})
=>
{
...
...
src/views/modules/standard/cases.vue
View file @
91692a77
...
...
@@ -6,9 +6,9 @@
@
keyup
.
enter
.
native=
"getDataList()"
label-width=
"80px"
>
<el-form-item
label=
"标题"
prop=
"
firmnam
e"
>
<el-form-item
label=
"标题"
prop=
"
titl
e"
>
<el-input
v-model=
"dataForm.
firmnam
e"
v-model=
"dataForm.
titl
e"
placeholder=
"请输入标题"
clearable
></el-input>
...
...
@@ -109,7 +109,7 @@
>
</el-table-column>
<el-table-column
prop=
"
firmnam
e"
prop=
"
titl
e"
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
:
{
firmnam
e
:
""
,
titl
e
:
""
,
editor
:
""
,
status
:
""
,
service
:
""
,
...
...
@@ -351,7 +351,7 @@ export default {
data
:
this
.
$http
.
adornParams
({
page
:
this
.
pageIndex
,
limit
:
this
.
pageSize
,
firmname
:
this
.
dataForm
.
firmnam
e
,
title
:
this
.
dataForm
.
titl
e
,
editor
:
this
.
dataForm
.
editor
,
status
:
this
.
dataForm
.
status
,
service
:
this
.
dataForm
.
service
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment