浏览代码

deploy

master
Soleilw 1年前
父节点
当前提交
b7bc579031
共有 4 个文件被更改,包括 142 次插入109 次删除
  1. 99
    99
      dist/assets/index-CbG7DmlO.js
  2. 1
    1
      dist/index.html
  3. 10
    7
      src/views/information/article/index.vue
  4. 32
    2
      src/views/information/article/search/index.vue

dist/assets/index-CbG7DmlO.js
文件差异内容过多而无法显示
查看文件


+ 1
- 1
dist/index.html 查看文件

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

+ 10
- 7
src/views/information/article/index.vue 查看文件

<template #default="{ record }"> <template #default="{ record }">
<a-row :gutter="10"> <a-row :gutter="10">
<a-col><a-button type="primary" size="small" primary @click="edit(record)">编辑</a-button></a-col> <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> </a-row>
</template> </template>
</a-c-table> </a-c-table>
} }
// 删除 // 删除
// 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> </script>

+ 32
- 2
src/views/information/article/search/index.vue 查看文件

<a-row :gutter="[10]"> <a-row :gutter="[10]">
<a-col span="24"> <a-col span="24">
<a-form-item> <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-form-item>
</a-col> </a-col>
</a-row> </a-row>


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


openSearchModel = computed(() => { openSearchModel = computed(() => {
sectionSearch()
return store.state.openSearchModel; 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) => { // watch(() => props.search_params, (newVal) => {
// emit('searchData', commomParams.value.search) // emit('searchData', commomParams.value.search)
// }) // })
clearSearch() clearSearch()
hideSearch() 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> </script>


<style> <style>

正在加载...
取消
保存