Commit d8519ddc authored by zhangjianqian's avatar zhangjianqian

隐患台账添加修改,我的课程课程类型图标改为代码。

parent 83a6b852
......@@ -9,9 +9,11 @@
<template>
<div class="item flex">
<div class="title" style="text-align: center">{{ itemData.courseType||'-' }}</div>
<div class="allone">
<img v-if="itemData.dataKind==0" style="height: 18px" src="@/assets/img/ykao.png"/>
<img v-if="itemData.dataKind==1" style="height: 18px" src="@/assets/img/skao.png"/>
<div class="allone" style="position:relative">
<!--<img v-if="itemData.dataKind==0" style="height: 18px" src="@/assets/img/ykao.png"/>-->
<!--<img v-if="itemData.dataKind==1" style="height: 18px" src="@/assets/img/skao.png"/>-->
<div class="content">{{itemData.dataKind==0?"培训课程":"随机考试"}}</div>
<div class="border"></div>
<div class="lesson zzz" style="width: 75%" :title="itemData.courseName"> {{ itemData.courseName }}</div>
</div>
<div class="time">发布时间:{{ itemData.createTime }}</div>
......@@ -222,4 +224,27 @@ export default {
}
}
}
.border {
width: 0;
height: 0;
border: 10px solid;
border-color: transparent transparent transparent #1d84ff;
}
.border:after {
content: '';
border-style: solid;
border-width: 10px;
border-color: transparent transparent transparent #fff;
position: absolute;
top: 0px;
left: 49px;
}
.content{
border: 1.5px solid #1d84ff;
height: 20px;
font-size: 10px;
color: #1d84ff;
line-height: 18px;
}
</style>
......@@ -97,6 +97,14 @@
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
v-if="scope.row.state==0&&(scope.row.escalation == user.userId||scope.row.createId == user.userId)"
size="mini"
type="text"
icon="el-icon-edit"
@click="handleEdit(scope.row)"
v-hasPermi="['system:book:edit']"
>修改</el-button>
<el-button
v-if="scope.row.state==0&&scope.row.rectification == user.userId"
size="mini"
......@@ -1084,7 +1092,18 @@ export default {
this.zhong = 3;
this.staffList2 = this.staffList;
},
handleEdit(book){
this.zhong = 0;
this.fast = false;
this.reset();
this.open = true;
this.title = "添加隐患台账";
this.staffList2 = this.staffList;
this.form = book;
this.fileList.push({
url: this.form.picture,
});
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
......
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