Browse Source

deploy

master
Soleilw 1 year ago
parent
commit
b7bc579031

dist/assets/index-CbG7DmlO.js
File diff suppressed because it is too large
View File


+ 1
- 1
dist/index.html View File

@@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="/logo_1.jpg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>菊城人才市场后台管理</title>
<script type="module" crossorigin src="/assets/index-gBT6rC7U.js"></script>
<script type="module" crossorigin src="/assets/index-CbG7DmlO.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DSahY579.css">
</head>
<body>

+ 10
- 7
src/views/information/article/index.vue View File

@@ -14,6 +14,9 @@
<template #default="{ record }">
<a-row :gutter="10">
<a-col><a-button type="primary" size="small" primary @click="edit(record)">编辑</a-button></a-col>
<a-popconfirm title="是否删除该栏目/频道?" @confirm="del(record.id)">
<a-col><a-button danger size="small" primary>删除</a-button></a-col>
</a-popconfirm>
</a-row>
</template>
</a-c-table>
@@ -95,13 +98,13 @@
}
// 删除
// const delOneRole = (id: number) => {
// commomParams.value.delRecord = { id: id };
// PostRoleDel(commomParams.value.delRecord).then(res => {
// message.success('删除成功');
// getData();
// })
// }
const del = (id: number) => {
commomParams.value.delRecord = { id: id };
delArticle(commomParams.value.delRecord).then(res => {
message.success('删除成功');
getData();
})
}


</script>

+ 32
- 2
src/views/information/article/search/index.vue View File

@@ -8,8 +8,13 @@
<a-row :gutter="[10]">
<a-col span="24">
<a-form-item>
<a-input addon-before="文章" v-model:value="commomParams.search.keyword"
placeholder="请输入文章" @keyup.enter="getData"/>
<a-input addon-before="文章" v-model:value="commomParams.search.keyword" placeholder="请输入文章"
@keyup.enter="getData" />
</a-form-item>
<a-form-item>
<search-select placeholder="请选择上级栏目" :list="section_list" :select_value="commomParams.search.section_id"
@searchData="sectionSearch" @getSelectValue="getSectionValue"
:select_disabled="false"></search-select>
</a-form-item>
</a-col>
</a-row>
@@ -19,15 +24,24 @@

<script lang="ts" setup>
import { ref, onMounted, watch, computed } from 'vue';
import { addArticle, updateArticle, listSection } from '@/apis/models';
import { useCommon } from '@/hooks/useCommon';
let { store, commomParams, openSearchModel, hideSearch } = useCommon();
let props = defineProps(['search_params']);
const emit = defineEmits();

openSearchModel = computed(() => {
sectionSearch()
return store.state.openSearchModel;
})

interface listType {
section_id : Number | 0,
}

commomParams.value.search = commomParams.value.search as listType;
commomParams.value.search.section_id = null;

// watch(() => props.search_params, (newVal) => {
// emit('searchData', commomParams.value.search)
// })
@@ -54,6 +68,22 @@
clearSearch()
hideSearch()
}

// 选择栏目/频道
let section_list = ref<Object[]>([])
const sectionSearch = (val : Object) => {
listSection(val).then((res : object) => {
const data = res.data.sections.map((item : object) => ({
label: item.name,
value: item.id,
}));
section_list.value = data;
})
}
const getSectionValue = (val : Object) => {
commomParams.value.search.section_id = val.key;
getData()
}
</script>

<style>

Loading…
Cancel
Save