fix(richedit): 修复编辑按钮和审核操作权限问题
- 限制状态为3时只有审核人员才能显示编辑按钮 - 移除原有的发布/撤稿按钮 - 新增送审和撤审按钮,根据状态显示不同操作
This commit is contained in:
parent
633db07fbe
commit
817d464859
|
|
@ -163,15 +163,19 @@
|
||||||
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text"
|
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text"
|
||||||
@click="goDetail(1, scope.row, false)">编辑</el-button>
|
@click="goDetail(1, scope.row, false)">编辑</el-button>
|
||||||
|
|
||||||
<el-button v-if="scope.row.status == 3" type="text"
|
<el-button v-if="scope.row.status == 3 && Session.get('userInfoLocal').userType == '01'"
|
||||||
@click="goDetail(1, scope.row, false)">编辑</el-button>
|
type="text" @click="goDetail(1, scope.row, false)">编辑</el-button>
|
||||||
<div>
|
<!-- <div v-if="Session.get('userInfoLocal').userType == '01'">
|
||||||
<!-- 审核人员才有发布和撤稿 -->
|
|
||||||
<el-button type="text" v-if="scope.row.status == 2"
|
<el-button type="text" v-if="scope.row.status == 2"
|
||||||
@click="doNewsPublishFn(scope.row, 1)">撤稿</el-button>
|
@click="doNewsPublishFn(scope.row, 1)">撤稿</el-button>
|
||||||
<el-button type="text" v-else @click="doNewsPublishFn(scope.row, 2)">发布</el-button>
|
<el-button type="text" v-else @click="doNewsPublishFn(scope.row, 2)">发布</el-button>
|
||||||
|
</div> -->
|
||||||
|
<div style="display: flex">
|
||||||
|
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text"
|
||||||
|
@click="doApprovalFn(scope.row, scope.row.status)">送审</el-button>
|
||||||
|
<el-button v-else-if="scope.row.status == 3" type="text"
|
||||||
|
@click="doApprovalFn(scope.row, scope.row.status)">撤审</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-button type="text" :disabled="scope.row.status != 2" class="copyBtn"
|
<el-button type="text" :disabled="scope.row.status != 2" class="copyBtn"
|
||||||
@click="copyUrl(scope.row)">复制</el-button>
|
@click="copyUrl(scope.row)">复制</el-button>
|
||||||
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text"
|
<el-button v-if="scope.row.status == 0 || scope.row.status == 1" type="text"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue