Commit 5eb39d8e authored by 罗林杰's avatar 罗林杰

修改浏览公共资源

parent 3161bf89
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
<Divider type="vertical" /> <Divider type="vertical" />
<a-button <a-button
style="padding: 0; border: none; box-shadow: none" style="padding: 0; border: none; box-shadow: none"
@click="pushNotifications" @click="pushNotifications(item)"
> >
<Icon icon="icon-park-outline:hand-up" />{{ item.edit }}</a-button <Icon icon="icon-park-outline:hand-up" />{{ item.edit }}</a-button
> >
...@@ -251,6 +251,8 @@ ...@@ -251,6 +251,8 @@
/> />
</div> </div>
</template> </template>
<ApplyForPushNotificationsModal @register="registerApplyForPushNotificationsModal" />
<EditModal @register="registerEditModal" />
</PageWrapper> </PageWrapper>
</div> </div>
</template> </template>
...@@ -281,14 +283,15 @@ ...@@ -281,14 +283,15 @@
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { Columns } from './commonDataSet.data'; import { Columns } from './commonDataSet.data';
import { router } from '@/router'; import { router } from '@/router';
import { useModal } from '@/components/Modal';
import EditModal from '@/views/mallResourceDevelopment/dataSet/commonDataSet/editModal.vue';
import ApplyForPushNotificationsModal from '@/views/mallResourceDevelopment/dataSet/commonDataSet/applyForPushNotificationsModal.vue';
const { createMessage, createConfirm } = useMessage(); const { createMessage, createConfirm } = useMessage();
const route = useRouter();
const value = ref('cardList'); const value = ref('cardList');
const params = ref(''); const params = ref('');
const selectValue = ref(''); const selectValue = ref('');
const sortOrder = ref('latest'); const sortOrder = ref('latest');
const selectedCard = reactive([] as any[]);
const cardListData = ref([]); const cardListData = ref([]);
const workSpaceName = ref('党建建设'); const workSpaceName = ref('党建建设');
...@@ -307,6 +310,12 @@ ...@@ -307,6 +310,12 @@
}, },
]); ]);
const [
registerApplyForPushNotificationsModal,
{ openModal: openApplyForPushNotificationsModal },
] = useModal();
const [registerEditModal, { openModal: openEditModal }] = useModal();
const [registerTable, { reload }] = useTable({ const [registerTable, { reload }] = useTable({
api: async () => { api: async () => {
onSearch(); onSearch();
...@@ -366,44 +375,12 @@ ...@@ -366,44 +375,12 @@
} }
function information(item) { function information(item) {
const title = item.title; openEditModal(true, item);
if (title === '党建工作总结') {
router.push({
path: '/mallResourceDevelopment/dataSet/commonDataSet/columnInformation',
query: {},
});
}
if (title === '党史知识竞赛') {
router.push({
path: '/mallResourceDevelopment/dataSet/commonDataSet/partyHistoryKnowledgeCompetition',
query: {},
});
}
if (title === '主题教育活动') {
router.push({
path: '/mallResourceDevelopment/dataSet/commonDataSet/themeEducationActivities',
query: {},
});
}
if (title === '党员发展计划') {
router.push({
path: '/mallResourceDevelopment/dataSet/commonDataSet/partyMemberDevelopmentPlan',
query: {},
});
}
if (title === '基本信息') {
router.push({
path: '/mallResourceDevelopment/dataSet/commonDataSet/essentialInformation',
query: {},
});
}
} }
function pushNotifications() { /**批量推送推送*/
router.push({ function pushNotifications(record) {
path: '/mallResourceDevelopment/dataSet/commonDataSet/applyForPushNotificationsModal', openApplyForPushNotificationsModal(true, record);
query: {},
});
} }
onMounted(() => { onMounted(() => {
onSearch(); onSearch();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment