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
Hide 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 @@
...
@@ -12,13 +12,13 @@
label-width=
"120px"
label-width=
"120px"
v-loading=
"loading"
v-loading=
"loading"
>
>
<el-form-item
label=
"标题"
prop=
"
firmnam
e"
>
<el-form-item
label=
"标题"
prop=
"
titl
e"
>
<el-input
<el-input
v-model=
"dataForm.
firmnam
e"
v-model=
"dataForm.
titl
e"
placeholder=
"请输入标题"
placeholder=
"请输入标题"
v-show=
"!showInfo"
v-show=
"!showInfo"
></el-input>
></el-input>
<p
v-show=
"showInfo"
>
{{
dataForm
.
firmnam
e
}}
</p>
<p
v-show=
"showInfo"
>
{{
dataForm
.
titl
e
}}
</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
,
firmnam
e
:
""
,
titl
e
:
""
,
service
:
""
,
service
:
""
,
site
:
""
,
name
:
""
,
phone
:
""
,
email
:
""
,
levels
:
""
,
levels
:
""
,
pic
:
""
,
showtime
:
""
,
// pic: "",
brief
:
""
,
brief
:
""
,
},
},
cclassidStr
:
undefined
,
cclassidStr
:
undefined
,
dataRule
:
{
dataRule
:
{
firmnam
e
:
[{
required
:
true
,
message
:
"标题不能为空"
,
trigger
:
"blur"
}],
titl
e
:
[{
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
.
partner
s
;
this
.
dataForm
=
data
.
case
s
;
this
.
imgUrlStr
=
data
.
partner
s
.
pic
;
// this.imgUrlStr = data.case
s.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
.
firmnam
e
,
title
:
this
.
dataForm
.
titl
e
,
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
})
=>
{
...
...
src/views/modules/standard/cases.vue
View file @
91692a77
...
@@ -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=
"
firmnam
e"
>
<el-form-item
label=
"标题"
prop=
"
titl
e"
>
<el-input
<el-input
v-model=
"dataForm.
firmnam
e"
v-model=
"dataForm.
titl
e"
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=
"
firmnam
e"
prop=
"
titl
e"
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
:
{
firmnam
e
:
""
,
titl
e
:
""
,
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
.
firmnam
e
,
title
:
this
.
dataForm
.
titl
e
,
editor
:
this
.
dataForm
.
editor
,
editor
:
this
.
dataForm
.
editor
,
status
:
this
.
dataForm
.
status
,
status
:
this
.
dataForm
.
status
,
service
:
this
.
dataForm
.
service
,
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