|
|
@@ -247,6 +247,7 @@
|
|
|
<script>
|
|
|
import {
|
|
|
sendSave,
|
|
|
+ sendGetById,
|
|
|
sendUpdate,
|
|
|
recycleAuthority,
|
|
|
getDocTreeListAPI
|
|
|
@@ -257,12 +258,13 @@ import { mapGetters } from 'vuex';
|
|
|
import bpmDetail from '@/views/bpm/processInstance/detail.vue';
|
|
|
import browse from '@/views/doc/components/browseOpen.vue';
|
|
|
import { fileStatus } from '@/views/doc/util.js';
|
|
|
+const dayjs = require('dayjs');
|
|
|
|
|
|
const defaultForm = {
|
|
|
name: '', //名称
|
|
|
fileList: [], //文档集合json
|
|
|
userAuthority: [], //用户权限集合json
|
|
|
- releaseTime: new Date(), //发布时间
|
|
|
+ releaseTime: dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'), //发布时间
|
|
|
failureTime: '', //失效时间
|
|
|
isAuthority: '', //是否回收权限 0 1
|
|
|
remark: '',
|
|
|
@@ -464,7 +466,7 @@ export default {
|
|
|
this.data = await getDocTreeListAPI(query);
|
|
|
},
|
|
|
methods: {
|
|
|
- open(type, row, list,fileType) {
|
|
|
+ async open(type, row, list,fileType) {
|
|
|
this.title =
|
|
|
type == 'add'
|
|
|
? '发布'
|
|
|
@@ -479,11 +481,11 @@ export default {
|
|
|
}
|
|
|
|
|
|
if (this.type != 'add') {
|
|
|
- this.form = row;
|
|
|
- this.tableList = row.fileList;
|
|
|
+ this.form = await sendGetById(row.id)
|
|
|
+ this.tableList = this.form.fileList;
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.powerRef &&
|
|
|
- this.$refs.powerRef.setTableList(row.userAuthority || []);
|
|
|
+ this.$refs.powerRef.setTableList(this.form.userAuthority || []);
|
|
|
});
|
|
|
} else {
|
|
|
this.form.releaseUserName = this.user.info.name;
|