Commit fe05811c authored by XieZhiXiong's avatar XieZhiXiong

Merge branch 'dev' into test

parents b5aa57e0 b6cfd3cd
...@@ -158,6 +158,8 @@ const CommentManage: React.FC = () => { ...@@ -158,6 +158,8 @@ const CommentManage: React.FC = () => {
title: '提示', title: '提示',
icon: <QuestionCircleOutlined />, icon: <QuestionCircleOutlined />,
content: '确定要删除选中的评论吗?', content: '确定要删除选中的评论吗?',
okText: '确定',
cancelText: '取消',
onOk() { onOk() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
PublicApi.postMemberPlatformCommentOrderTradeHistoryDelete({ PublicApi.postMemberPlatformCommentOrderTradeHistoryDelete({
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-10-20 11:43:12 * @Date: 2020-10-20 11:43:12
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2020-10-20 11:43:21 * @LastEditTime: 2020-10-30 14:11:06
* @Description: * @Description:
*/ */
import { normalizeFiledata, FileData } from '@/utils'; import { normalizeFiledata, FileData, isJSONStr } from '@/utils';
export interface Unevaluated { export interface Unevaluated {
good: { good: {
...@@ -27,10 +27,11 @@ export function normalizeUnevaluatedList(arr: any): Unevaluated[] { ...@@ -27,10 +27,11 @@ export function normalizeUnevaluatedList(arr: any): Unevaluated[] {
return ret; return ret;
} }
arr.forEach(item => { arr.forEach(item => {
const product = isJSONStr(item.product) || {};
const atom = { const atom = {
good: { good: {
pic: item.imgUrl, pic: product.pic,
productName: item.productName, productName: product.productName,
price: item.price, price: item.price,
purchaseCount: item.dealCount, // 采购数量 purchaseCount: item.dealCount, // 采购数量
}, },
......
...@@ -139,6 +139,8 @@ const MemberPr1: React.FC<{}> = props => { ...@@ -139,6 +139,8 @@ const MemberPr1: React.FC<{}> = props => {
title: '提示', title: '提示',
icon: <QuestionCircleOutlined />, icon: <QuestionCircleOutlined />,
content: '确定要审核通过选中的会员吗?', content: '确定要审核通过选中的会员吗?',
okText: '确定',
cancelText: '取消',
onOk() { onOk() {
const members = selectedList.map(item => ({ memberId: item.memberId, validateId: item.validateId })); const members = selectedList.map(item => ({ memberId: item.memberId, validateId: item.validateId }));
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
...@@ -139,6 +139,8 @@ const MemberPr2: React.FC<{}> = props => { ...@@ -139,6 +139,8 @@ const MemberPr2: React.FC<{}> = props => {
title: '提示', title: '提示',
icon: <QuestionCircleOutlined />, icon: <QuestionCircleOutlined />,
content: '确定要审核通过选中的会员吗?', content: '确定要审核通过选中的会员吗?',
okText: '确定',
cancelText: '取消',
onOk() { onOk() {
const members = selectedList.map(item => ({ memberId: item.memberId, validateId: item.validateId })); const members = selectedList.map(item => ({ memberId: item.memberId, validateId: item.validateId }));
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
...@@ -145,6 +145,8 @@ const MemberPrConfirm: React.FC<{}> = props => { ...@@ -145,6 +145,8 @@ const MemberPrConfirm: React.FC<{}> = props => {
title: '提示', title: '提示',
icon: <QuestionCircleOutlined />, icon: <QuestionCircleOutlined />,
content: '确定要审核通过选中的会员吗?', content: '确定要审核通过选中的会员吗?',
okText: '确定',
cancelText: '取消',
onOk() { onOk() {
const members = selectedList.map(item => ({ memberId: item.memberId, validateId: item.validateId })); const members = selectedList.map(item => ({ memberId: item.memberId, validateId: item.validateId }));
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
...@@ -139,6 +139,8 @@ const MemberPrSubmit: React.FC<{}> = props => { ...@@ -139,6 +139,8 @@ const MemberPrSubmit: React.FC<{}> = props => {
title: '提示', title: '提示',
icon: <QuestionCircleOutlined />, icon: <QuestionCircleOutlined />,
content: '确定要审核通过选中的会员吗?', content: '确定要审核通过选中的会员吗?',
okText: '确定',
cancelText: '取消',
onOk() { onOk() {
const members = selectedList.map(item => ({ memberId: item.memberId, validateId: item.validateId })); const members = selectedList.map(item => ({ memberId: item.memberId, validateId: item.validateId }));
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment