Commit 64b38dfb authored by linweijiong's avatar linweijiong

fix:筛选合同以及币种的全部时,不需要传值

parent d6fd4184
......@@ -71,6 +71,9 @@ const Index = () => {
// if (isEmpty(obj[key])) {
// delete obj[key]
// }
if(key =='currencyType'&&obj[key]==0){
delete obj[key]
}
if (moment.isMoment(obj[key])) {
obj[key] = moment(obj[key]).format('YYYY-MM-DD')
}
......
......@@ -70,6 +70,12 @@ const Index = () => {
const handleSubmit = (values) => {
const obj = { ...values }
for (const key in obj) {
if(key =='status'&&obj[key]==0){
delete obj[key]
}
if(key =='currencyType'&&obj[key]==0){
delete obj[key]
}
if (isEmpty(obj[key])&& (typeof obj[key] !='number')&& (typeof obj[key] !='boolean') ) {
delete obj[key]
}
......
......@@ -64,6 +64,12 @@ const Index = () => {
const handleSubmit = (values) => {
const obj = { ...values }
for (const key in obj) {
if(key =='status'&&obj[key]==0){
delete obj[key]
}
if(key =='currencyType'&&obj[key]==0){
delete obj[key]
}
if (isEmpty(obj[key])&& (typeof obj[key] !='number') ) {
delete obj[key]
}
......
......@@ -53,6 +53,9 @@ const Index = () => {
const handleSubmit = (values) => {
const obj = { ...values }
for (const key in obj) {
if(key =='currencyType'&&obj[key]==0){
delete obj[key]
}
if (isEmpty(obj[key])&& (typeof obj[key] !='number')&& (typeof obj[key] !='boolean') ) {
delete obj[key]
}
......
......@@ -52,6 +52,9 @@ const Index = () => {
const handleSubmit = (values) => {
const obj = { ...values }
for (const key in obj) {
if(key =='currencyType'&&obj[key]==0){
delete obj[key]
}
if (isEmpty(obj[key])&& (typeof obj[key] !='number')&& (typeof obj[key] !='boolean') ) {
delete obj[key]
}
......
......@@ -48,6 +48,9 @@ const Index = () => {
const handleSubmit = (values) => {
const obj = { ...values }
for (const key in obj) {
if(key =='currencyType'&&obj[key]==0){
delete obj[key]
}
if (isEmpty(obj[key]) && (typeof obj[key] != 'number')) {
delete obj[key]
}
......
......@@ -50,6 +50,9 @@ const Index = () => {
const handleSubmit = (values) => {
const obj = { ...values }
for (const key in obj) {
if(key =='currencyType'&&obj[key]==0){
delete obj[key]
}
if (isEmpty(obj[key])&& (typeof obj[key] !='number') ) {
delete obj[key]
}
......
......@@ -49,6 +49,9 @@ const Index = () => {
const handleSubmit = (values) => {
const obj = { ...values }
for (const key in obj) {
if(key =='currencyType'&&obj[key]==0){
delete obj[key]
}
if (isEmpty(obj[key])&& (typeof obj[key] !='number') ) {
delete obj[key]
}
......
......@@ -56,6 +56,9 @@ const Index = () => {
// }
// }
for (const key in obj) {
if(key =='currencyType'&&obj[key]==0){
delete obj[key]
}
if (isEmpty(obj[key])&& (typeof obj[key] !='number') ) {
delete obj[key]
}
......
......@@ -48,6 +48,9 @@ const Index = () => {
const obj = { ...values }
for (const key in obj) {
if(key =='currencyType'&&obj[key]==0){
delete obj[key]
}
if (isEmpty(obj[key])&& (typeof obj[key] !='number') ) {
delete obj[key]
}
......
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