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

修改浏览公共资源

parent 3161bf89
......@@ -223,7 +223,7 @@
<Divider type="vertical" />
<a-button
style="padding: 0; border: none; box-shadow: none"
@click="pushNotifications"
@click="pushNotifications(item)"
>
<Icon icon="icon-park-outline:hand-up" />{{ item.edit }}</a-button
>
......@@ -251,6 +251,8 @@
/>
</div>
</template>
<ApplyForPushNotificationsModal @register="registerApplyForPushNotificationsModal" />
<EditModal @register="registerEditModal" />
</PageWrapper>
</div>
</template>
......@@ -281,14 +283,15 @@
import { useRouter } from 'vue-router';
import { Columns } from './commonDataSet.data';
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 route = useRouter();
const value = ref('cardList');
const params = ref('');
const selectValue = ref('');
const sortOrder = ref('latest');
const selectedCard = reactive([] as any[]);
const cardListData = ref([]);
const workSpaceName = ref('党建建设');
......@@ -307,6 +310,12 @@
},
]);
const [
registerApplyForPushNotificationsModal,
{ openModal: openApplyForPushNotificationsModal },
] = useModal();
const [registerEditModal, { openModal: openEditModal }] = useModal();
const [registerTable, { reload }] = useTable({
api: async () => {
onSearch();
......@@ -366,44 +375,12 @@
}
function information(item) {
const title = item.title;
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: {},
});
}
openEditModal(true, item);
}
function pushNotifications() {
router.push({
path: '/mallResourceDevelopment/dataSet/commonDataSet/applyForPushNotificationsModal',
query: {},
});
/**批量推送推送*/
function pushNotifications(record) {
openApplyForPushNotificationsModal(true, record);
}
onMounted(() => {
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