|
@@ -53,6 +53,12 @@
|
|
|
<preview v-model="scope.row.p1"></preview>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="是否推荐" align="center" prop="recommend" width="80">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag type="info" v-if="scope.row.recommend == 0">否</el-tag>
|
|
|
+ <el-tag type="success" v-if="scope.row.recommend == 1">是</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="是否认证" align="center" width="130">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag type="danger" v-if="scope.row.state == 0">待认证</el-tag>
|
|
@@ -69,6 +75,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" type="text" icon="el-icon-view" @click="op('detail', scope.row)">详情</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="op('audit', scope.row)" v-hasPermi="['work:enterprise:edit']" v-if="scope.row.state == 0">审核</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-sell" @click="op('recommend', scope.row)" v-hasPermi="['work:enterprise:recommend']" v-if="scope.row.state == 1">推荐</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="del(scope.row)" v-hasPermi="['work:enterprise:remove']">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -82,6 +89,7 @@
|
|
|
|
|
|
<script>
|
|
|
import edit from './edit';
|
|
|
+import recommend from './recommend';
|
|
|
export default {
|
|
|
name: 'Enterprise',
|
|
|
data() {
|
|
@@ -127,6 +135,9 @@ export default {
|
|
|
if (tag == 'detail') {
|
|
|
this.iframe({ obj: edit, param: { id: row.id, detail: true }, title: '企业详情', width: '50%', height: '65%' });
|
|
|
}
|
|
|
+ if (tag == 'recommend') {
|
|
|
+ this.iframe({ obj: recommend, param: { id: row.id }, title: '设为推荐', width: '25%', height: '35%' });
|
|
|
+ }
|
|
|
if (tag == 'audit') {
|
|
|
this.iframe({ obj: edit, param: { id: row.id, detail: true }, title: '审核', width: '50%', height: '65%' });
|
|
|
}
|