feat(cms): add article creation feature and update pricing fields

- Imported PlusOutlined icon for UI enhancement
- Replaced category search with add article functionality
- Commented out cover image column in help index view
- Renamed leader price to market price in shop goods edit form
- Added member price field in shop goods edit form
- Updated environment configuration comments
This commit is contained in:
2025-11-19 16:48:58 +08:00
parent 306b600da0
commit 74e2bd5ffb
5 changed files with 22 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
VITE_APP_NAME=后台管理(开发环境) VITE_APP_NAME=后台管理(开发环境)
VITE_API_URL=http://127.0.0.1:9200/api #VITE_API_URL=http://192.168.1.131:9200/api
#VITE_SERVER_API_URL=http://127.0.0.1:8000/api #VITE_SERVER_API_URL=http://127.0.0.1:8000/api

BIN
dist.zip

Binary file not shown.

View File

@@ -13,6 +13,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import {watch} from 'vue'; import {watch} from 'vue';
import { PlusOutlined } from '@ant-design/icons-vue';
import type {CmsArticle, CmsArticleParam} from '@/api/cms/cmsArticle/model'; import type {CmsArticle, CmsArticleParam} from '@/api/cms/cmsArticle/model';
import useSearch from '@/utils/use-search'; import useSearch from '@/utils/use-search';
import {CmsNavigation} from '@/api/cms/cmsNavigation/model'; import {CmsNavigation} from '@/api/cms/cmsNavigation/model';
@@ -50,10 +51,9 @@ const reload = () => {
emit('search', where); emit('search', where);
}; };
// 按分类查询 // 新增
const onCategoryId = (id: number) => { const add = () => {
where.categoryId = id; emit('add');
emit('search', where);
}; };
watch( watch(

View File

@@ -133,13 +133,13 @@ const columns = ref<ColumnItem[]>([
// align: 'center', // align: 'center',
// width: 90 // width: 90
// }, // },
{ // {
title: '封面图', // title: '封面图',
dataIndex: 'image', // dataIndex: 'image',
key: 'image', // key: 'image',
width: 120, // width: 120,
align: 'center' // align: 'center'
}, // },
{ {
title: '文章标题', title: '文章标题',
dataIndex: 'title', dataIndex: 'title',

View File

@@ -77,9 +77,17 @@
/> />
</a-space> </a-space>
</a-form-item> </a-form-item>
<a-form-item label="团长价" name="originPrice"> <a-form-item label="市场价" name="salePrice">
<a-input-number <a-input-number
:placeholder="`团长价`" :placeholder="`市场价`"
style="width: 240px"
:min="0.01"
v-model:value="form.salePrice"
/>
</a-form-item>
<a-form-item label="会员价" name="originPrice">
<a-input-number
:placeholder="`会员价`"
style="width: 240px" style="width: 240px"
:min="0.01" :min="0.01"
v-model:value="form.dealerPrice" v-model:value="form.dealerPrice"