|
@@ -74,8 +74,8 @@
|
|
<a-button type="primary" @click="handleSearchClick">查询</a-button>
|
|
<a-button type="primary" @click="handleSearchClick">查询</a-button>
|
|
</div>
|
|
</div>
|
|
</a-form>
|
|
</a-form>
|
|
- <a-button v-if="checkButton('processEdit')" alias="processEdit" :butn-icon="'false'" @click="$router.push('/knowledge/auditProcessMaintain')">维护审核流程</a-button>
|
|
|
|
- <a-button v-if="checkButton('processBatch')" alias="processBatch" :butn-icon="'false'" @click="handldAuditClick('batch')">批量审核</a-button>
|
|
|
|
|
|
+ <rx-button alias="processEdit" :butn-icon="'false'" @click="$router.push('/knowledge/auditProcessMaintain')">维护审核流程</rx-button>
|
|
|
|
+ <rx-button alias="processBatch" :butn-icon="'false'" @click="handldAuditClick('batch')">批量审核</rx-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -97,7 +97,7 @@
|
|
idField="pkId"
|
|
idField="pkId"
|
|
>
|
|
>
|
|
<template slot="pkId" slot-scope="{text,record}">
|
|
<template slot="pkId" slot-scope="{text,record}">
|
|
- <div style="white-space: pre-line">{{ $route.query.showUnchecked ? record.approvalsFirst.pkId : text }}</div>
|
|
|
|
|
|
+ <div>{{ $route.query.showUnchecked ? record.approvalsFirst.pkId : text }}</div>
|
|
</template>
|
|
</template>
|
|
<template slot="titles" slot-scope="{text}">
|
|
<template slot="titles" slot-scope="{text}">
|
|
<div style="white-space: pre-line">{{ text }}</div>
|
|
<div style="white-space: pre-line">{{ text }}</div>
|
|
@@ -115,11 +115,11 @@
|
|
<!-- isAudit 0能审核 1不能审核 -->
|
|
<!-- isAudit 0能审核 1不能审核 -->
|
|
<template v-if="($route.query.showUnchecked ? true : record.isAudit == 0) && (record.approvalStatus == 1 || record.approvalStatus == 3)" >
|
|
<template v-if="($route.query.showUnchecked ? true : record.isAudit == 0) && (record.approvalStatus == 1 || record.approvalStatus == 3)" >
|
|
<!-- <template v-if="(record.approvalStatus == 1 || record.approvalStatus == 3) && record.approverId == $store.state.appSetting.user.userId" > -->
|
|
<!-- <template v-if="(record.approvalStatus == 1 || record.approvalStatus == 3) && record.approverId == $store.state.appSetting.user.userId" > -->
|
|
- <a-button v-if="checkButton('processDo')" class="clearBtn" alias="processDo" :butn-icon="'none'" @click="handleJumpUpdateClick(record)">审核</a-button>
|
|
|
|
- <a-button v-if="checkButton('processFast')" class="clearBtn" alias="processFast" :butn-icon="'none'" @click="handldAuditClick('fast',record)">快速审核</a-button>
|
|
|
|
|
|
+ <rx-button class="clearBtn" alias="processDo" :butn-icon="'none'" @click="handleJumpUpdateClick(record)">审核</rx-button>
|
|
|
|
+ <rx-button class="clearBtn" alias="processFast" :butn-icon="'none'" @click="handldAuditClick('fast',record)">快速审核</rx-button>
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
- <a-button v-if="checkButton('processLook')" class="clearBtn" alias="processLook" :butn-icon="'none'" @click="handleJumpUpdateClick(record,true)">查看</a-button>
|
|
|
|
|
|
+ <rx-button class="clearBtn" alias="processLook" :butn-icon="'none'" @click="handleJumpUpdateClick(record,true)">查看</rx-button>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</rx-grid>
|
|
</rx-grid>
|
|
@@ -172,7 +172,6 @@ import classApi from '@/api/knowledge/classify'
|
|
import { getCategory } from '../aJs/getClassifyTree'
|
|
import { getCategory } from '../aJs/getClassifyTree'
|
|
import mixin from "../aMixin/mixin"
|
|
import mixin from "../aMixin/mixin"
|
|
import initMixin from "../aMixin/initMixin"
|
|
import initMixin from "../aMixin/initMixin"
|
|
-import {mapState} from "vuex";
|
|
|
|
const auditMixin = new mixin('audit')
|
|
const auditMixin = new mixin('audit')
|
|
export default {
|
|
export default {
|
|
name: 'auditManageList',
|
|
name: 'auditManageList',
|
|
@@ -361,6 +360,7 @@ export default {
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
let innerWidth = window.innerWidth
|
|
let innerWidth = window.innerWidth
|
|
|
|
+
|
|
// 计算
|
|
// 计算
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
let offsetWidth = document.querySelector('.scroll-ckunk').getBoundingClientRect().left
|
|
let offsetWidth = document.querySelector('.scroll-ckunk').getBoundingClientRect().left
|
|
@@ -381,9 +381,6 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- ...mapState({
|
|
|
|
- menusBase: state => state.appSetting.menusBase,
|
|
|
|
- }),
|
|
|
|
getApprovalStatus(){
|
|
getApprovalStatus(){
|
|
return function(arg) {
|
|
return function(arg) {
|
|
switch(arg) {
|
|
switch(arg) {
|
|
@@ -413,15 +410,6 @@ export default {
|
|
}
|
|
}
|
|
this.reloadTable()
|
|
this.reloadTable()
|
|
},
|
|
},
|
|
- //判断按钮权限
|
|
|
|
- checkButton(menuKey){
|
|
|
|
- let btnLength = this.menusBase.filter(item => item.menuKey == menuKey)
|
|
|
|
- if(btnLength.length>0){
|
|
|
|
- return true;
|
|
|
|
- }else{
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
// 审核
|
|
// 审核
|
|
handleJumpUpdateClick(record,arg) {
|
|
handleJumpUpdateClick(record,arg) {
|
|
// 从知识管理跳转
|
|
// 从知识管理跳转
|