|
@@ -67,6 +67,7 @@
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-view" @click="op('detail', scope.row)" v-hasPermi="['work:notice:list']">查看</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="op('edit',scope.row)" v-hasPermi="['work:notice:edit']">修改</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="del(scope.row)" v-hasPermi="['work:notice:remove']">删除</el-button>
|
|
|
</template>
|
|
@@ -151,6 +152,10 @@ export default {
|
|
|
const id = row.id || this.ids[0];
|
|
|
this.iframe({ obj: edit, param: {id: id}, title:'编辑',width: '50%', height: '50%'});
|
|
|
}
|
|
|
+ if (tag == 'detail') {
|
|
|
+ const id = row.id || this.ids[0];
|
|
|
+ this.iframe({ obj: edit, param: {id: id,readonly:true}, title:'详情',width: '50%', height: '50%'});
|
|
|
+ }
|
|
|
},
|
|
|
del(row) {
|
|
|
this.$confirm('是否确认删除选中数据?', '警告', { type: 'warning' }).then(() => {
|