|
|
@@ -6,6 +6,8 @@
|
|
|
:selection.sync="selection"
|
|
|
:columns="columns"
|
|
|
:datasource="datasource"
|
|
|
+ height="calc(100vh - 420px)"
|
|
|
+ full-height="calc(100vh - 116px)"
|
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar v-if="!isPop">
|
|
|
@@ -34,7 +36,7 @@
|
|
|
<el-link
|
|
|
type="primary"
|
|
|
:underline="false"
|
|
|
- @click="openEdit('view',row)"
|
|
|
+ @click="openEdit('view', row)"
|
|
|
>
|
|
|
{{ row.name }}
|
|
|
</el-link>
|
|
|
@@ -84,197 +86,196 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import search from './components/search.vue';
|
|
|
-import edit from '@/views/doc/issue_doc/components/edit.vue';
|
|
|
-import receiveEdit from '@/views/doc/sendReceive/receive/components/edit.vue';
|
|
|
-import { mapGetters } from 'vuex';
|
|
|
-import dictMixins from '@/mixins/dictMixins';
|
|
|
-import { sendPage, sendDeleteAPI } from '@/api/doc-manage';
|
|
|
-import processSubmitDialog from '@/components/processSubmitDialog/processSubmitDialog.vue';
|
|
|
+ import search from './components/search.vue';
|
|
|
+ import edit from '@/views/doc/issue_doc/components/edit.vue';
|
|
|
+ import receiveEdit from '@/views/doc/sendReceive/receive/components/edit.vue';
|
|
|
+ import { mapGetters } from 'vuex';
|
|
|
+ import dictMixins from '@/mixins/dictMixins';
|
|
|
+ import { sendPage, sendDeleteAPI } from '@/api/doc-manage';
|
|
|
+ import processSubmitDialog from '@/components/processSubmitDialog/processSubmitDialog.vue';
|
|
|
|
|
|
-export default {
|
|
|
- mixins: [dictMixins],
|
|
|
- components: {
|
|
|
- search,
|
|
|
- edit,
|
|
|
- receiveEdit,
|
|
|
- processSubmitDialog
|
|
|
- },
|
|
|
- props: {
|
|
|
- isPop: {
|
|
|
- default: false
|
|
|
+ export default {
|
|
|
+ mixins: [dictMixins],
|
|
|
+ components: {
|
|
|
+ search,
|
|
|
+ edit,
|
|
|
+ receiveEdit,
|
|
|
+ processSubmitDialog
|
|
|
},
|
|
|
- disabledList: {
|
|
|
- //已选择列表
|
|
|
- default: () => []
|
|
|
- }
|
|
|
- },
|
|
|
- data() {
|
|
|
- return {
|
|
|
- selection: [],
|
|
|
- processSubmitDialogFlag: false,
|
|
|
- columns: [
|
|
|
- {
|
|
|
- width: 45,
|
|
|
- type: 'selection',
|
|
|
- columnKey: 'selection',
|
|
|
- align: 'center',
|
|
|
- selectable: (row, index) => {
|
|
|
- return (
|
|
|
- !this.disabledList.map((item) => item.id).includes(row.id) &&
|
|
|
- row.reviewStatus == 2
|
|
|
- );
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- width: 45,
|
|
|
- type: 'index',
|
|
|
- columnKey: 'index',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
+ props: {
|
|
|
+ isPop: {
|
|
|
+ default: false
|
|
|
+ },
|
|
|
+ disabledList: {
|
|
|
+ //已选择列表
|
|
|
+ default: () => []
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ selection: [],
|
|
|
+ processSubmitDialogFlag: false,
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ width: 45,
|
|
|
+ type: 'selection',
|
|
|
+ columnKey: 'selection',
|
|
|
+ align: 'center',
|
|
|
+ selectable: (row, index) => {
|
|
|
+ return (
|
|
|
+ !this.disabledList.map((item) => item.id).includes(row.id) &&
|
|
|
+ row.reviewStatus == 2
|
|
|
+ );
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ width: 45,
|
|
|
+ type: 'index',
|
|
|
+ columnKey: 'index',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
|
|
|
- {
|
|
|
- label: '主题',
|
|
|
- align: 'center',
|
|
|
- prop: 'name',
|
|
|
- width: 220,
|
|
|
- slot: 'name',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
+ {
|
|
|
+ label: '主题',
|
|
|
+ align: 'center',
|
|
|
+ prop: 'name',
|
|
|
+ width: 220,
|
|
|
+ slot: 'name',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
|
|
|
- {
|
|
|
- align: 'center',
|
|
|
- label: '是否回收权限',
|
|
|
- prop: 'isAuthority',
|
|
|
- width: 120,
|
|
|
- formatter: (_row, _column, cellValue) => {
|
|
|
- return cellValue == 1 ? '是' : '否';
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- align: 'center',
|
|
|
- label: '回收权限时间',
|
|
|
- prop: 'isAuthorityTime',
|
|
|
- width: 180,
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- align: 'center',
|
|
|
- label: '失效时间',
|
|
|
- prop: 'failureTime',
|
|
|
- width: 180,
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
+ {
|
|
|
+ align: 'center',
|
|
|
+ label: '是否回收权限',
|
|
|
+ prop: 'isAuthority',
|
|
|
+ width: 120,
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
+ return cellValue == 1 ? '是' : '否';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ align: 'center',
|
|
|
+ label: '回收权限时间',
|
|
|
+ prop: 'isAuthorityTime',
|
|
|
+ width: 180,
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ align: 'center',
|
|
|
+ label: '失效时间',
|
|
|
+ prop: 'failureTime',
|
|
|
+ width: 180,
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
|
|
|
- {
|
|
|
- prop: 'userAuthority',
|
|
|
- label: '通知用户',
|
|
|
- align: 'center',
|
|
|
- minWidth:300,
|
|
|
- formatter: (_row, _column, cellValue) => {
|
|
|
- return cellValue.map((item) => item.name).toString();
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- align: 'center',
|
|
|
- label: '发布人',
|
|
|
- prop: 'releaseUserName',
|
|
|
- width: 180
|
|
|
- },
|
|
|
+ {
|
|
|
+ prop: 'userAuthority',
|
|
|
+ label: '通知用户',
|
|
|
+ align: 'center',
|
|
|
+ minWidth: 300,
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
+ return cellValue.map((item) => item.name).toString();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ align: 'center',
|
|
|
+ label: '发布人',
|
|
|
+ prop: 'releaseUserName',
|
|
|
+ width: 180
|
|
|
+ },
|
|
|
|
|
|
- {
|
|
|
- prop: 'releaseTime',
|
|
|
- align: 'center',
|
|
|
- label: '发布时间',
|
|
|
- width: 180
|
|
|
- },
|
|
|
- {
|
|
|
- align: 'center',
|
|
|
- label: '审核状态',
|
|
|
- prop: 'reviewStatus',
|
|
|
- width: 100,
|
|
|
- formatter: (_row, _column, cellValue) => {
|
|
|
- return cellValue == 0
|
|
|
- ? '未提交'
|
|
|
- : cellValue == 1
|
|
|
- ? '审核中'
|
|
|
- : cellValue == 2
|
|
|
- ? '已审核'
|
|
|
- : '审核不通过';
|
|
|
+ {
|
|
|
+ prop: 'releaseTime',
|
|
|
+ align: 'center',
|
|
|
+ label: '发布时间',
|
|
|
+ width: 180
|
|
|
+ },
|
|
|
+ {
|
|
|
+ align: 'center',
|
|
|
+ label: '审核状态',
|
|
|
+ prop: 'reviewStatus',
|
|
|
+ width: 100,
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
+ return cellValue == 0
|
|
|
+ ? '未提交'
|
|
|
+ : cellValue == 1
|
|
|
+ ? '审核中'
|
|
|
+ : cellValue == 2
|
|
|
+ ? '已审核'
|
|
|
+ : '审核不通过';
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ columnKey: 'action',
|
|
|
+ label: '操作',
|
|
|
+ width: 200,
|
|
|
+ align: 'center',
|
|
|
+ resizable: false,
|
|
|
+ slot: 'action'
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
- columnKey: 'action',
|
|
|
- label: '操作',
|
|
|
- width: 200,
|
|
|
- align: 'center',
|
|
|
- resizable: false,
|
|
|
- slot: 'action'
|
|
|
- }
|
|
|
- ]
|
|
|
- };
|
|
|
- },
|
|
|
- created() {},
|
|
|
- computed: {
|
|
|
- ...mapGetters(['user'])
|
|
|
- },
|
|
|
- methods: {
|
|
|
- openEdit(type, row) {
|
|
|
- console.log(row,'row')
|
|
|
- this.$refs.editRef.open(type, row);
|
|
|
- },
|
|
|
-
|
|
|
- datasource({ page, where, limit }) {
|
|
|
- return sendPage({
|
|
|
- ...where,
|
|
|
- pageNum: page,
|
|
|
- size: limit
|
|
|
- });
|
|
|
+ ]
|
|
|
+ };
|
|
|
},
|
|
|
- search(where) {
|
|
|
- this.$refs.table.reload({
|
|
|
- where: where,
|
|
|
- page: 1
|
|
|
- });
|
|
|
+ created() {},
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(['user'])
|
|
|
},
|
|
|
- processSubmit(row) {
|
|
|
- this.processSubmitDialogFlag = true;
|
|
|
- this.$nextTick(() => {
|
|
|
- row['businessKey']='fm_file_release_approve'
|
|
|
+ methods: {
|
|
|
+ openEdit(type, row) {
|
|
|
+ console.log(row, 'row');
|
|
|
+ this.$refs.editRef.open(type, row);
|
|
|
+ },
|
|
|
|
|
|
- this.$refs.processSubmitDialogRef.init(row, {
|
|
|
- pcHandle: '/bpm/handleTask/components/doc/submit.vue',
|
|
|
- pcView: '/bpm/handleTask/components/doc/send/sendDialog.vue'
|
|
|
+ datasource({ page, where, limit }) {
|
|
|
+ return sendPage({
|
|
|
+ ...where,
|
|
|
+ pageNum: page,
|
|
|
+ size: limit
|
|
|
});
|
|
|
- });
|
|
|
- },
|
|
|
- remove(row) {
|
|
|
- sendDeleteAPI([row.id])
|
|
|
- .then((message) => {
|
|
|
- this.$message.success(message);
|
|
|
- this.done();
|
|
|
- })
|
|
|
- .catch((e) => {});
|
|
|
- },
|
|
|
+ },
|
|
|
+ search(where) {
|
|
|
+ this.$refs.table.reload({
|
|
|
+ where: where,
|
|
|
+ page: 1
|
|
|
+ });
|
|
|
+ },
|
|
|
+ processSubmit(row) {
|
|
|
+ this.processSubmitDialogFlag = true;
|
|
|
+ this.$nextTick(() => {
|
|
|
+ row['businessKey'] = 'fm_file_release_approve';
|
|
|
|
|
|
- done() {
|
|
|
- this.$refs.search.search();
|
|
|
- },
|
|
|
- receive() {
|
|
|
- if (this.selection.length == 0) {
|
|
|
- this.$message.warning('请选择一条数据');
|
|
|
- return;
|
|
|
+ this.$refs.processSubmitDialogRef.init(row, {
|
|
|
+ pcHandle: '/bpm/handleTask/components/doc/submit.vue',
|
|
|
+ pcView: '/bpm/handleTask/components/doc/send/sendDialog.vue'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ remove(row) {
|
|
|
+ sendDeleteAPI([row.id])
|
|
|
+ .then((message) => {
|
|
|
+ this.$message.success(message);
|
|
|
+ this.done();
|
|
|
+ })
|
|
|
+ .catch((e) => {});
|
|
|
+ },
|
|
|
+
|
|
|
+ done() {
|
|
|
+ this.$refs.search.search();
|
|
|
+ },
|
|
|
+ receive() {
|
|
|
+ if (this.selection.length == 0) {
|
|
|
+ this.$message.warning('请选择一条数据');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.$refs.receiveEditRef.open(
|
|
|
+ 'add',
|
|
|
+ JSON.parse(JSON.stringify(this.selection))
|
|
|
+ );
|
|
|
+ },
|
|
|
+ getTableList() {
|
|
|
+ return JSON.parse(JSON.stringify(this.selection));
|
|
|
}
|
|
|
- this.$refs.receiveEditRef.open(
|
|
|
- 'add',
|
|
|
- JSON.parse(JSON.stringify(this.selection))
|
|
|
- );
|
|
|
- },
|
|
|
- getTableList() {
|
|
|
- return JSON.parse(JSON.stringify(this.selection));
|
|
|
}
|
|
|
- }
|
|
|
-};
|
|
|
+ };
|
|
|
</script>
|
|
|
-<style scoped lang="scss">
|
|
|
-</style>
|
|
|
+<style scoped lang="scss"></style>
|