Commit e2fac3e6 authored by cellee's avatar cellee

报告员回复修改图片type

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent bc16ef64
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-03-02 14:39:40 * @Date: 2021-03-02 14:39:40
* @LastEditTime: 2021-03-08 17:03:53 * @LastEditTime: 2021-03-09 10:55:16
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \tostumi\src\pages\AccountManagement\Service\serviceEdit.tsx * @FilePath: \tostumi\src\pages\AccountManagement\Service\serviceEdit.tsx
...@@ -130,8 +130,7 @@ const service = (props: any) => { ...@@ -130,8 +130,7 @@ const service = (props: any) => {
<PictureOptionsRow <PictureOptionsRow
action="/tos/image/upload" action="/tos/image/upload"
data={{ data={{
// imageType: 'tosReportImage', imageType: 'tosReportImage',
imageType: 'tosReplyImage',
identification: '', identification: '',
}} }}
limitNums={10} limitNums={10}
...@@ -200,7 +199,8 @@ const service = (props: any) => { ...@@ -200,7 +199,8 @@ const service = (props: any) => {
<PictureOptionsRow <PictureOptionsRow
action="/tos/image/upload" action="/tos/image/upload"
data={{ data={{
imageType: 'tosReportImage', // imageType: 'tosReportImage',
imageType: 'tosReplyImage',
identification: '', identification: '',
}} }}
limitNums={10} limitNums={10}
......
...@@ -155,7 +155,9 @@ const ContractContent = (props: any) => { ...@@ -155,7 +155,9 @@ const ContractContent = (props: any) => {
uid: i, uid: i,
name: FileImg[i].fileName, name: FileImg[i].fileName,
status: 'done', status: 'done',
type: FileImg[i].fileName.match(/\.([^\.]+)$/)[1].toLowerCase(), type: FileImg[i].fileName
? FileImg[i].fileName.match(/\.([^\.]+)$/)[1].toLowerCase()
: 'jpg',
url: FileImg[i].fileUrl, url: FileImg[i].fileUrl,
}; };
console.log(); console.log();
......
...@@ -101,7 +101,9 @@ const ContractContent = (props: any) => { ...@@ -101,7 +101,9 @@ const ContractContent = (props: any) => {
uid: i, uid: i,
name: FileImg[i].fileName, name: FileImg[i].fileName,
status: 'done', status: 'done',
type: FileImg[i].fileName.match(/\.([^\.]+)$/)[1].toLowerCase(), type: FileImg[i].fileName
? FileImg[i].fileName.match(/\.([^\.]+)$/)[1].toLowerCase()
: 'jpg',
url: FileImg[i].fileUrl, url: FileImg[i].fileUrl,
}; };
console.log(); console.log();
......
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