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:
@@ -1,5 +1,5 @@
|
||||
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
|
||||
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import {watch} from 'vue';
|
||||
import { PlusOutlined } from '@ant-design/icons-vue';
|
||||
import type {CmsArticle, CmsArticleParam} from '@/api/cms/cmsArticle/model';
|
||||
import useSearch from '@/utils/use-search';
|
||||
import {CmsNavigation} from '@/api/cms/cmsNavigation/model';
|
||||
@@ -50,10 +51,9 @@ const reload = () => {
|
||||
emit('search', where);
|
||||
};
|
||||
|
||||
// 按分类查询
|
||||
const onCategoryId = (id: number) => {
|
||||
where.categoryId = id;
|
||||
emit('search', where);
|
||||
// 新增
|
||||
const add = () => {
|
||||
emit('add');
|
||||
};
|
||||
|
||||
watch(
|
||||
|
||||
@@ -133,13 +133,13 @@ const columns = ref<ColumnItem[]>([
|
||||
// align: 'center',
|
||||
// width: 90
|
||||
// },
|
||||
{
|
||||
title: '封面图',
|
||||
dataIndex: 'image',
|
||||
key: 'image',
|
||||
width: 120,
|
||||
align: 'center'
|
||||
},
|
||||
// {
|
||||
// title: '封面图',
|
||||
// dataIndex: 'image',
|
||||
// key: 'image',
|
||||
// width: 120,
|
||||
// align: 'center'
|
||||
// },
|
||||
{
|
||||
title: '文章标题',
|
||||
dataIndex: 'title',
|
||||
|
||||
@@ -77,9 +77,17 @@
|
||||
/>
|
||||
</a-space>
|
||||
</a-form-item>
|
||||
<a-form-item label="团长价" name="originPrice">
|
||||
<a-form-item label="市场价" name="salePrice">
|
||||
<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"
|
||||
:min="0.01"
|
||||
v-model:value="form.dealerPrice"
|
||||
|
||||
Reference in New Issue
Block a user