Commit e6ef3284 authored by 王飞龙's avatar 王飞龙

新闻资讯 中心案例修改

parent 7c8df4b7
......@@ -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) {
......
<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)
}
})
......
......@@ -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 = []
}
}
}
}
......
......@@ -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
}
})
}
......
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