Browse Source

feat: "科研会议"

master
xuesinan 4 years ago
parent
commit
7d2bdcca3e
  1. 39
      src/components/tall/task/MeetingManagement.vue
  2. 12
      src/components/tall/task/ScientificPayoffs.vue
  3. 32
      src/components/tall/task/SubMeetingManagement.vue
  4. 3
      src/components/tall/task/TaskConList.vue

39
src/components/tall/task/MeetingManagement.vue

@ -117,10 +117,27 @@ if (sessionProject) {
store.commit('projects/setProject', project);
}
getMeetingInfo();
watch(meetId, async () => {
await getMeetingInfo();
if (meetId.value) {
await getMeetingInfo();
} else {
topicMeetFormData.value = {
projectId: projectId.value,
id: '',
name: '',
date: [],
startTime: '',
endTime: '',
address: '',
notificationList: [],
summaryList: [],
attachmentList: [],
};
notificationList.value = [];
summaryList.value = [];
attachmentList.value = [];
}
});
const handleChange = (info, index) => {
@ -203,6 +220,22 @@ async function getMeetingInfo() {
attachmentList.value.push(obj);
});
} else {
topicMeetFormData.value = {
projectId: projectId.value,
id: '',
name: '',
date: [],
startTime: '',
endTime: '',
address: '',
notificationList: [],
summaryList: [],
attachmentList: [],
};
notificationList.value = [];
summaryList.value = [];
attachmentList.value = [];
}
} catch (error) {
console.log('error', error);

12
src/components/tall/task/ScientificPayoffs.vue

@ -9,7 +9,7 @@
<template #bodyCell="{ column, text, record }">
<div class="flex items-center" v-if="column.key === 'action'">
<a-button
:disabled="record.status === 0 ? false : true"
:disabled="record.status === 0 || record.status === 2 ? false : true"
class="action-btn edit-btn"
type="primary"
@click="showModal(record.id, 'success')"
@ -17,14 +17,18 @@
通过
</a-button>
<a-button
:disabled="record.status === 0 ? false : true"
:disabled="record.status === 0 || record.status === 2 ? false : true"
class="action-btn del-btn"
type="primary"
@click="showModal(record.id, 'fail')"
>
驳回
</a-button>
<img v-if="record.status === 0" style="width: 28px" src="https://www.tall.wiki/staticrec/experiment/unlock.png" />
<img
v-if="record.status === 0 || record.status === 2"
style="width: 28px"
src="https://www.tall.wiki/staticrec/experiment/unlock.png"
/>
<img
v-if="record.status === 1"
class="cursor-pointer"
@ -32,7 +36,7 @@
src="https://www.tall.wiki/staticrec/experiment/locking.png"
@click="showModal(record.id, 'tips')"
/>
<div v-if="record.status === 2" class="status-btn" style="background: #cccccc"></div>
<div v-if="record.status === 3" class="status-btn" style="background: #cccccc"></div>
<div v-if="record.status === 4" class="status-btn" style="background: #ff5353"></div>
</div>

32
src/components/tall/task/SubMeetingManagement.vue

@ -98,7 +98,23 @@ if (sessionProject) {
getMeetingInfo();
watch(subMeetId, async () => {
await getMeetingInfo();
if (subMeetId.value) {
await getMeetingInfo();
} else {
topicMeetFormData.value = {
projectId: projectId.value,
id: '',
name: '',
date: [],
startTime: '',
endTime: '',
address: '',
summaryList: [],
attachmentList: [],
};
summaryList.value = [];
attachmentList.value = [];
}
});
const handleChange = (info, index) => {
@ -169,6 +185,20 @@ async function getMeetingInfo() {
attachmentList.value.push(obj);
});
} else {
topicMeetFormData.value = {
projectId: projectId.value,
id: '',
name: '',
date: [],
startTime: '',
endTime: '',
address: '',
summaryList: [],
attachmentList: [],
};
summaryList.value = [];
attachmentList.value = [];
}
} catch (error) {
console.log('error', error);

3
src/components/tall/task/TaskConList.vue

@ -71,6 +71,9 @@ async function getMeetList(type) {
try {
const data = await getMeetQuery(params);
data.forEach(item => {
item.time = item.startTime;
});
lists.value = [...data];
} catch (error) {
console.log('error', error);

Loading…
Cancel
Save