|
|
@@ -101,6 +101,9 @@
|
|
|
import documentDialog from './components/documentDialog.vue';
|
|
|
import tableColumnsMixin from '@/mixins/tableColumnsMixin';
|
|
|
import { noticeDocumentPageV1API, noticeDocumentDeleteAPI, batchDeleteNotice, noticeStatusChange } from '@/api/documents/noticeIssuance/index.js';
|
|
|
+ import {
|
|
|
+ listOrganizations
|
|
|
+} from '@/api/system/organization';
|
|
|
|
|
|
export default {
|
|
|
mixins: [tableColumnsMixin],
|
|
|
@@ -111,6 +114,7 @@
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
+ organizationList: [],
|
|
|
processSubmitDialogFlag: false,
|
|
|
tabValue: '99',
|
|
|
id: '',
|
|
|
@@ -160,7 +164,8 @@
|
|
|
label: '发文机关:',
|
|
|
value: 'issuingAuthorityId',
|
|
|
type: 'select',
|
|
|
- labelWidth: 100
|
|
|
+ labelWidth: 100,
|
|
|
+ planList: this.organizationList
|
|
|
},
|
|
|
{
|
|
|
label: '紧急程度:',
|
|
|
@@ -287,12 +292,29 @@
|
|
|
|
|
|
},
|
|
|
created() {
|
|
|
+ this.getOrganizationList();
|
|
|
},
|
|
|
mounted() {
|
|
|
this.reload();
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ // 获取部门列表
|
|
|
+ getOrganizationList() {
|
|
|
+ listOrganizations()
|
|
|
+ .then((list) => {
|
|
|
+ let _list = list.filter((i) => i.name != '超级管理员');
|
|
|
+ // 转换为树形结构
|
|
|
+ this.organizationList = _list.map((i) => ({
|
|
|
+ label: i.name,
|
|
|
+ value: i.id
|
|
|
+ }));
|
|
|
+ })
|
|
|
+ .catch((e) => {
|
|
|
+ console.error('获取部门列表失败:', e);
|
|
|
+ this.$message.error('获取部门列表失败');
|
|
|
+ });
|
|
|
+ },
|
|
|
toSubmit(res) {
|
|
|
this.processSubmitDialogFlag = true;
|
|
|
this.$nextTick(() => {
|