Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
Project
Project
Details
Activity
Releases
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
张伯涛
tea-resources-web
Commits
e6ef3284
Commit
e6ef3284
authored
Mar 26, 2024
by
王飞龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新闻资讯 中心案例修改
parent
7c8df4b7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
139 deletions
+17
-139
index.vue
src/views/contentManagement/centralCase/index.vue
+4
-13
index.vue
src/views/contentManagement/centralCase/info/index.vue
+6
-71
index.vue
src/views/contentManagement/newsInformation/index.vue
+5
-53
index.vue
src/views/contentManagement/newsInformation/info/index.vue
+2
-2
No files found.
src/views/contentManagement/centralCase/index.vue
View file @
e6ef3284
...
...
@@ -50,7 +50,7 @@
<el-table-column
align=
"center"
label=
"封面"
prop=
"path"
>
<
template
slot-scope=
"scope"
>
<div
:id=
"step(scope.$index)"
>
<el-image
:src=
"scope.row.path"
:preview-src-list=
"scope.row.srclist"
style=
"width:100%;height:100%;"
@
click=
"handleClickStop(scope.$index)"
@
mouseover=
"justEnter($event)"
@
mouseout=
"justOut($event)"
/>
<el-image
:src=
"
imagePath+
scope.row.path"
:preview-src-list=
"scope.row.srclist"
style=
"width:100%;height:100%;"
@
click=
"handleClickStop(scope.$index)"
@
mouseover=
"justEnter($event)"
@
mouseout=
"justOut($event)"
/>
</div>
</
template
>
</el-table-column>
...
...
@@ -76,7 +76,7 @@
<span>
{{
scope
.
row
.
createByName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"创建日期"
prop=
"createDate"
>
<el-table-column
align=
"center"
label=
"创建日期"
prop=
"createDate"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<span>
{{
replace
(
scope
.
row
.
createDate
)
}}
</span>
</
template
>
...
...
@@ -115,6 +115,7 @@ export default {
data
()
{
return
{
imageSrc
:
require
(
'@/assets/image/test.png'
),
imagePath
:
'http://49.232.167.247:20020/eduServer/'
,
// 显示开关
showSwitch
:
{
courseContent
:
true
,
...
...
@@ -211,7 +212,7 @@ export default {
},
// 日期格式转换
replace
(
time
)
{
return
parseTime
(
time
,
'{y}/{m}/{d}'
)
return
parseTime
(
time
,
'{y}/{m}/{d}
:{h}:{i}
'
)
},
/** 重置按钮操作 */
...
...
@@ -405,16 +406,6 @@ export default {
// 封面图片预览
justEnter
(
event
)
{
// var node=event.relatedTarget;
// $("#nav").append("
<
p
id
=
'pic'
style
=
'z-index: 1000;position: fixed'
><
images
src
=
'" + event.target.src + "'
id
=
'pic1'
><
/p>"
)
;
// $(node).find('img').mousemove(function(e){
// console.log(e.pageY+","+e.clientY);
// $("#pic").css({
// "top": (e.clientY-200)+"px",
// "left":(e.pageX-600)+"px",
// "width":"400px",
// "height":"300px"
// }).fadeIn("fast");
// });
},
justOut
(
event
)
{
...
...
src/views/contentManagement/centralCase/info/index.vue
View file @
e6ef3284
<
template
>
<!-- 班次编辑 -->
<div
class=
"shiftInformation_update"
>
<!-- 编辑主题信息 -->
<div
class=
"updateContainer"
>
<div
class=
"updateBoby"
>
<el-form
ref=
"deviceFormRef"
:model=
"form"
:rules=
"rules"
label-position=
"right"
label-width=
"auto"
>
...
...
@@ -112,7 +110,8 @@ export default {
},
data
()
{
return
{
processType
:
'1021'
,
imagePath
:
'http://49.232.167.247:20020/eduServer/'
,
businessId
:
null
,
// 变更字段存储数组
formChanges
:
[],
...
...
@@ -133,60 +132,13 @@ export default {
],
imageUrl
:
''
,
open
:
false
,
// 弹框控制器
dialog
:
{
secondDialogVisible
:
false
},
// 申请变更表单
applicationForm
:
{
// 变更信息
list1
:
[],
userfrom
:
{
idmName
:
''
,
idmId
:
''
,
staffLevel
:
''
,
deptName
:
''
,
createDate
:
''
,
remarks
:
''
},
deptList
:
[
{
deptId
:
undefined
,
approveUserId
:
undefined
,
approveName
:
'审批人1'
,
flag
:
'0'
,
processGroup
:
'1'
,
currentNode
:
1
,
isMessage
:
'0'
,
reviewerType
:
'1'
,
approveUser
:
''
,
roleTemp
:
''
}
]
},
// // 时间选向
// times: this.generateTimes(), // 生成时间选项数组
// 所属产线
productionLineList
:
[],
// 所属科室集合
deptList
:
[],
deptForm
:
[],
// 控制表单
controls
:
{
// 1:代表新增 2:代表编辑 3:代表查看
isOperation
:
'1'
,
// 输入框输入最大长度
ONEMAXLENGTH
:
40
,
TWOMAXLENGTH
:
16
,
THREEMAXLENGTH
:
4
,
FOURMAXLENGTH
:
255
isOperation
:
'1'
},
formName
:
[
{
value
:
'equipmentName'
,
label
:
'设备型号'
},
{
value
:
'weight'
,
label
:
'权重'
},
{
value
:
'flag'
,
label
:
'状态'
},
{
value
:
'remarks'
,
label
:
'备注'
}
],
fileUpload
:
'/dev-api/common/fileUpload?file='
+
this
.
file
+
'&temp='
+
'temp'
,
// 提交表单
form
:
{
...
...
@@ -194,9 +146,6 @@ export default {
businessId
:
undefined
,
createBy
:
undefined
,
createDate
:
undefined
,
deptId
:
undefined
,
deptTwoId
:
undefined
,
equipmentName
:
undefined
,
flag
:
undefined
,
pictureId
:
undefined
,
remarks
:
undefined
,
...
...
@@ -213,20 +162,6 @@ export default {
value
:
'0'
}
],
// 原班次表单
oldForm
:
{
// 主表id
businessId
:
undefined
,
createBy
:
undefined
,
createDate
:
undefined
,
deptId
:
undefined
,
deptTwoId
:
undefined
,
equipmentName
:
undefined
,
flag
:
undefined
,
pictureId
:
undefined
,
remarks
:
undefined
,
weight
:
undefined
},
// 校验规则
rules
:
{
startDateS
:
[],
...
...
@@ -256,7 +191,7 @@ export default {
console
.
log
(
'res'
,
res
.
data
)
if
(
res
.
code
===
200
)
{
this
.
form
=
res
.
data
this
.
imageUrl
=
' https://www.10guoying.com/wp-content/uploads/2020/03/2020031107010238-scaled.jpg'
this
.
imageUrl
=
this
.
imagePath
+
res
.
data
.
path
console
.
log
(
'this.form.imageUrl'
,
this
.
form
.
imageUrl
)
}
})
...
...
src/views/contentManagement/newsInformation/index.vue
View file @
e6ef3284
...
...
@@ -49,7 +49,7 @@
<el-table-column
align=
"center"
label=
"封面"
prop=
"pictureId"
>
<
template
slot-scope=
"scope"
>
<div
:id=
"step(scope.$index)"
>
<el-image
:src=
"
scope.row.pictureId
"
:preview-src-list=
"scope.row.srclist"
style=
"width:100%;height:100%;"
@
click=
"handleClickStop(scope.$index)"
@
mouseover=
"justEnter($event)"
@
mouseout=
"justOut($event)"
/>
<el-image
:src=
"
imagePath+scope.row.path
"
:preview-src-list=
"scope.row.srclist"
style=
"width:100%;height:100%;"
@
click=
"handleClickStop(scope.$index)"
@
mouseover=
"justEnter($event)"
@
mouseout=
"justOut($event)"
/>
</div>
</
template
>
</el-table-column>
...
...
@@ -84,7 +84,7 @@
<span>
{{
scope
.
row
.
nickName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"创建日期"
prop=
"createDate"
>
<el-table-column
align=
"center"
label=
"创建日期"
prop=
"createDate"
width=
"200"
>
<
template
slot-scope=
"scope"
>
<span>
{{
replace
(
scope
.
row
.
createDate
)
}}
</span>
</
template
>
...
...
@@ -115,7 +115,7 @@
import
commonField
from
'@/utils/commonField'
import
{
delSysContentNewsInformation
,
listSysContentNewsInformation
,
updateStatus
,
listSysContentNewsInformation
,
updateStatus
}
from
'@/api/contentManagement/sysContentNewsInformation'
import
{
error
}
from
'autoprefixer/lib/utils'
import
{
parseTime
}
from
'@/utils'
...
...
@@ -127,6 +127,7 @@ export default {
data
()
{
return
{
imageSrc
:
require
(
'@/assets/image/test.png'
),
imagePath
:
'http://49.232.167.247:20020/eduServer/'
,
// 显示开关
showSwitch
:
{
courseContent
:
true
,
...
...
@@ -223,7 +224,7 @@ export default {
},
// 日期格式转换
replace
(
time
)
{
return
parseTime
(
time
,
'{y}/{m}/{d}'
)
return
parseTime
(
time
,
'{y}/{m}/{d}
/{h}:{i}
'
)
},
/** 重置按钮操作 */
...
...
@@ -401,7 +402,6 @@ export default {
message
:
'删除成功'
,
type
:
'success'
})
}).
catch
(
function
()
{
})
},
/**
...
...
@@ -422,56 +422,8 @@ export default {
// 封面图片预览
justEnter
(
event
)
{
// var node=event.relatedTarget;
// $("#nav").append("
<
p
id
=
'pic'
style
=
'z-index: 1000;position: fixed'
><
images
src
=
'" + event.target.src + "'
id
=
'pic1'
><
/p>"
)
;
// $(node).find('img').mousemove(function(e){
// console.log(e.pageY+","+e.clientY);
// $("#pic").css({
// "top": (e.clientY-200)+"px",
// "left":(e.pageX-600)+"px",
// "width":"400px",
// "height":"300px"
// }).fadeIn("fast");
// });
},
justOut
(
event
)
{
// $("#pic").remove();
},
//* ************目录*************//
loadCurCat
(
index
)
{
this
.
showSwitch
.
courseContent
=
false
this
.
showSwitch
.
curCat
=
true
this
.
curCatForm
.
id
=
this
.
bussid
[
index
]
this
.
curCatForm
.
totalStuHours
=
this
.
tableData
[
index
].
totalStuHours
this
.
curCatForm
.
tlessonName
=
this
.
tableData
[
index
].
tlessonName
this
.
curCatForm
.
tcode
=
this
.
tableData
[
index
].
tcode
this
.
curCatForm
.
directionId
=
this
.
tableData
[
index
].
directionId
this
.
curCatForm
.
directionCode
=
this
.
tableData
[
index
].
directionCode
// 加载课程目录
this
.
$refs
.
curcat
.
loadCatalog
(
this
.
curCatForm
.
id
,
this
.
curCatForm
.
totalStuHours
,
this
.
curCatForm
.
tlessonName
,
this
.
curCatForm
.
tcode
,
this
.
curCatForm
.
directionId
,
this
.
curCatForm
.
directionCode
)
},
// 目录页更新
refreshData
()
{
this
.
$refs
.
curcat
.
loadCatalog
(
this
.
curCatForm
.
id
,
this
.
curCatForm
.
totalStuHours
,
this
.
curCatForm
.
tlessonName
,
this
.
curCatForm
.
tcode
,
this
.
curCatForm
.
directionId
,
this
.
curCatForm
.
directionCode
)
},
// 子组件关闭
closeChild
()
{
// this.showSwitch.courseContent = true;
// this.showSwitch.curCat = false;
this
.
$router
.
go
(
0
)
},
// 清空封面上传列表
clearCoverFileList
()
{
this
.
$refs
.
coverUpload
.
clearFiles
()
this
.
$refs
.
coverUpload
.
abort
()
this
.
filelist
=
[]
},
// 封面限制
coverChange
(
file
,
fileList
)
{
if
(
this
.
filelist
.
length
>
0
)
{
this
.
filelist
=
[]
}
}
}
}
...
...
src/views/contentManagement/newsInformation/info/index.vue
View file @
e6ef3284
...
...
@@ -137,7 +137,7 @@ export default {
},
data
()
{
return
{
processType
:
'1021
'
,
imagePath
:
'http://49.232.167.247:20020/eduServer/
'
,
businessId
:
null
,
// 变更字段存储数组
formChanges
:
[],
...
...
@@ -281,7 +281,7 @@ export default {
console
.
log
(
'res'
,
res
.
data
)
if
(
res
.
code
===
200
)
{
this
.
form
=
res
.
data
this
.
imageUrl
=
res
.
data
.
pictureId
this
.
imageUrl
=
this
.
imagePath
+
res
.
data
.
path
}
})
}
...
...
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