|
|
@@ -111,7 +111,13 @@
|
|
|
<el-table v-loading="loading" border :data="sopTempList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
<el-table-column label="模板编号" align="center" prop="id"/>
|
|
|
- <el-table-column label="模板编号" align="center">
|
|
|
+ <el-table-column label="模板来源" align="center" width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag v-if="scope.row.templateType == 1" type="warning">总后台</el-tag>
|
|
|
+ <el-tag v-else type="info">公司</el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="所属公司" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag v-for="item in companys" v-if="scope.row.companyId == item.companyId">{{item.companyName}}</el-tag>
|
|
|
</template>
|
|
|
@@ -134,16 +140,24 @@
|
|
|
|
|
|
<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-s-promotion"
|
|
|
+ @click="handleQueryDetails(scope.row)"
|
|
|
+ v-hasPermi="['qw:sopTemp:list']"
|
|
|
+ >详情
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-connection"
|
|
|
-
|
|
|
@click="copyTemplate(scope.row)"
|
|
|
v-hasPermi="['qw:sopTemp:edit']"
|
|
|
>复制模板
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
+ v-if="scope.row.templateType != 1"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-share"
|
|
|
@@ -151,14 +165,7 @@
|
|
|
v-hasPermi="['qw:sopTemp:share']"
|
|
|
>分享模板</el-button>
|
|
|
<el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-s-promotion"
|
|
|
- @click="handleQueryDetails(scope.row)"
|
|
|
- v-hasPermi="['qw:sopTemp:list']"
|
|
|
- >详情
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
+ v-if="scope.row.templateType != 1"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
@@ -167,6 +174,7 @@
|
|
|
>修改
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
+ v-if="scope.row.templateType != 1"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
@@ -175,15 +183,16 @@
|
|
|
>管理规则
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
+ v-if="scope.row.templateType != 1 && scope.row.sendType == 5"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdateRed(scope.row)"
|
|
|
- v-if="scope.row.sendType == 5"
|
|
|
v-hasPermi="['qw:sopTemp:edit']"
|
|
|
>红包设置
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
+ v-if="scope.row.templateType != 1"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|