@@ -41,7 +41,7 @@ export const getNumByStaff = (params: any) =>
export const delApi = (params: DelParams) =>
defHttp.post<Result>({
url: Api.deleteStaff,
- params: { userId: params },
+ params,
headers: {
// @ts-ignore
ignoreCancelToken: true,
@@ -32,6 +32,7 @@ export const padsSchemas: FormSchema[] = [
label: '标题',
componentProps: {
placeholder: '标题',
+ maxLength: 15,
},
required: true,
@@ -106,6 +107,7 @@ export const schemas: FormSchema[] = [
label: '正文标题',
placeholder: '轮播图正文标题',
@@ -3,7 +3,7 @@
v-bind="$attrs"
@register="register"
:title="t('routes.corporation.expirationTime')"
- :height="600"
+ :minHeight="350"
@visible-change="handleVisibleChange"
@ok="handleSubmit"
@cancel="resetFields"
@@ -174,11 +174,9 @@ weixinOpenid: "oeADe5U9uLeMYsNigq98zdu8J96A"
function renderGenderLabel(gender: number): string {
switch (gender) {
case 0:
- return '未知';
+ return '女';
case 1:
return '男';
- case 2:
- return '女';
default:
return '未知';
}
@@ -27,7 +27,12 @@
</template>
<template #formFooter>
<div>
- <a-button style="margin-right: 30px" @click="addBut">添加规格项目</a-button>
+ <a-button
+ :disabled="Object.keys(ggList.list)?.length > 2"
+ style="margin-right: 30px"
+ @click="addBut"
+ >添加规格项目</a-button
+ >
<a-button @click="handleSubmit">生成规格明细</a-button>
</div>
@@ -237,6 +237,7 @@
let apiData = {
...editData.value,
...values,
+ retailPrice: editData.value.productList[0]?.retailPrice,
isOnSale: values.isOnSale ? 1 : 0,
};
let requresApi = isUpdate.value ? UpdateSaleApi : SaveSaleApi;
@@ -51,7 +51,7 @@
if (!text) {
return '请输入商品属性';
- if (text && text.length > 25) {
+ if (text && text.length > 15) {
return t('routes.corporation.maxlength');
return '';
@@ -103,7 +103,7 @@
xxl: 6,
- maxLength: 100,
],
@@ -113,7 +113,7 @@
width: 120,
{
- title: t('routes.scenes.webSite'),
+ title: '直播间链接',
dataIndex: 'webSite',
slots: { customRender: 'link' },
width: 180,
@@ -243,7 +243,7 @@
title: '警告',
content: `此操作将对${record.userName}进行删除, 是否继续?`,
onOk: async () => {
- await delApi(record.id);
+ await delApi({ userId: record.id });
reload();
});