百色农校完成
This commit is contained in:
@@ -97,10 +97,7 @@ const reload = async () => {
|
||||
pageCmsArticle(where).then(response => {
|
||||
if(response){
|
||||
total.value = response?.count;
|
||||
list.value = response?.list.map(d => {
|
||||
d.image = getImage(d.image);
|
||||
return d;
|
||||
});
|
||||
list.value = response?.list || [];
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -215,9 +215,9 @@ const reload = async () => {
|
||||
})
|
||||
}
|
||||
// 拼接图片路径
|
||||
if(data.content){
|
||||
form.content = form.content?.replace(/src="\//g, 'src="' + FILE_SERVER + '/');
|
||||
}
|
||||
// if(data.content){
|
||||
// form.content = form.content?.replace(/src="\//g, 'src="' + FILE_SERVER + '/');
|
||||
// }
|
||||
|
||||
if(form.permission === 1){
|
||||
console.log('登录可见')
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<el-form-item label="插件图标" class="px-4" label-width="100" label-position="left">
|
||||
<el-upload
|
||||
v-model:file-list="avatar"
|
||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
||||
action="https://server.gxbsnx.com/api/oss/upload"
|
||||
:headers="{
|
||||
Authorization: token,
|
||||
TenantId: '5'
|
||||
@@ -81,7 +81,7 @@
|
||||
<el-tab-pane label="插件截屏" name="files">
|
||||
<el-upload
|
||||
v-model:file-list="files"
|
||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
||||
action="https://server.gxbsnx.com/api/oss/upload"
|
||||
:headers="{
|
||||
Authorization: token,
|
||||
TenantId: '5'
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
:on-preview="handlePictureCardPreview"
|
||||
:on-remove="filesRemove"
|
||||
:on-success="filesOnSuccess"
|
||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
||||
action="https://server.gxbsnx.com/api/oss/upload"
|
||||
list-type="picture-card"
|
||||
>
|
||||
<el-icon>
|
||||
|
||||
@@ -238,7 +238,7 @@ useHead({
|
||||
* 执行登录
|
||||
*/
|
||||
const onSubmit = async () => {
|
||||
const {data: response} = await useServerRequest<ApiResult<LoginResult>>('/login',{baseURL: 'https://server.gxwebsoft.com/api',method: "post",body: form})
|
||||
const {data: response} = await useServerRequest<ApiResult<LoginResult>>('/login',{baseURL: 'https://server.gxbsnx.com/api',method: "post",body: form})
|
||||
// 登录成功
|
||||
if(response.value?.code == 0){
|
||||
ElMessage.success(response.value?.message)
|
||||
|
||||
@@ -6,17 +6,17 @@
|
||||
<span class="text-large font-600"> {{ '站内搜索' }} </span>
|
||||
</template>
|
||||
<template #extra>
|
||||
<el-radio-group v-model="where.model" @change="reload">
|
||||
<el-radio-button label="文档" value="docs" />
|
||||
<el-radio-button label="资讯" value="article" />
|
||||
</el-radio-group>
|
||||
<!-- <el-radio-group v-model="where.model" @change="reload">-->
|
||||
<!-- <el-radio-button label="文档" value="docs" />-->
|
||||
<!-- <el-radio-button label="资讯" value="article" />-->
|
||||
<!-- </el-radio-group>-->
|
||||
</template>
|
||||
<el-row :gutter="24" id="container" class="clearfix">
|
||||
<el-col v-for="(item,index) in list" :key="index" :span="6" class="left mb-6">
|
||||
<el-card shadow="hover" :body-style="{ padding: '0px' }" class=" hover:bg-gray-50 cursor-pointer">
|
||||
<nuxt-link :to="`/detail/${item.articleId}.html`">
|
||||
<el-image
|
||||
:src="`${config.FILE_SERVER}${item.image}`"
|
||||
:src="`${item.image}`"
|
||||
fit="cover"
|
||||
:lazy="true" class="w-full md:h-[166px] h-[199px] cursor-pointer bg-gray-50"/>
|
||||
<div class="flex-1 px-4 py-5 sm:p-6 !p-4">
|
||||
@@ -51,6 +51,7 @@ import dayjs from "dayjs";
|
||||
import {getViews} from "~/utils/common";
|
||||
import {pageCmsArticle} from "~/api/cms/cmsArticle";
|
||||
import {FILE_SERVER} from "~/config";
|
||||
import {pageCmsArticleContent} from "~/api/cms/cmsArticleContent";
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
@@ -69,17 +70,17 @@ const where = reactive<CmsArticleParam>({
|
||||
keywords: undefined,
|
||||
page: 1,
|
||||
limit: 12,
|
||||
status: 0,
|
||||
parentId: undefined,
|
||||
categoryId: undefined,
|
||||
lang: i18n.locale.value
|
||||
// status: 0,
|
||||
// parentId: undefined,
|
||||
// categoryId: undefined,
|
||||
// lang: i18n.locale.value
|
||||
});
|
||||
|
||||
// 加载页面数据
|
||||
const reload = async () => {
|
||||
list.value = [];
|
||||
|
||||
pageCmsArticle(where).then(response => {
|
||||
pageCmsArticleContent(where).then(response => {
|
||||
list.value = response?.list || [];
|
||||
total.value = response?.count || 0;
|
||||
})
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<el-form-item label="身份证">
|
||||
<el-upload
|
||||
v-model:file-list="sfzFile"
|
||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
||||
action="https://server.gxbsnx.com/api/oss/upload"
|
||||
:headers="{
|
||||
Authorization: token,
|
||||
TenantId: 5,
|
||||
@@ -144,7 +144,7 @@
|
||||
<el-form-item label="营业执照" required>
|
||||
<el-upload
|
||||
v-model:file-list="yyzzFile"
|
||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
||||
action="https://server.gxbsnx.com/api/oss/upload"
|
||||
:headers="{
|
||||
Authorization: token,
|
||||
TenantId: 5,
|
||||
@@ -169,7 +169,7 @@
|
||||
<el-form-item label="门头照片">
|
||||
<el-upload
|
||||
v-model:file-list="image"
|
||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
||||
action="https://server.gxbsnx.com/api/oss/upload"
|
||||
:headers="{
|
||||
Authorization: token,
|
||||
TenantId: 5,
|
||||
@@ -194,7 +194,7 @@
|
||||
<el-form-item label="其他证件">
|
||||
<el-upload
|
||||
v-model:file-list="files"
|
||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
||||
action="https://server.gxbsnx.com/api/oss/upload"
|
||||
:headers="{
|
||||
Authorization: token,
|
||||
TenantId: 5,
|
||||
@@ -228,7 +228,7 @@
|
||||
<el-form-item label="身份证">
|
||||
<el-upload
|
||||
v-model:file-list="sfzFile"
|
||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
||||
action="https://server.gxbsnx.com/api/oss/upload"
|
||||
:headers="{
|
||||
Authorization: token,
|
||||
TenantId: 5,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<el-form-item label="上传头像" class="px-4">
|
||||
<el-upload
|
||||
v-model:file-list="avatar"
|
||||
action="https://server.gxwebsoft.com/api/oss/upload"
|
||||
action="https://server.gxbsnx.com/api/oss/upload"
|
||||
:headers="{
|
||||
Authorization: token,
|
||||
TenantId: 5,
|
||||
|
||||
Reference in New Issue
Block a user