33 lines
854 B
JavaScript
33 lines
854 B
JavaScript
|
|
import React from 'react';
|
|
import FormPage from '../../components/FormPage'
|
|
import { ConfirmButton } from '@woowalker/feui'
|
|
import { initQueryFilter } from "../../utils/common";
|
|
import { message } from "antd/lib/index";
|
|
import moment from 'moment';
|
|
|
|
//销售订单
|
|
export default {
|
|
btnImport: (params) => {
|
|
var selectRows = params.getSelectedRecords()
|
|
if (selectRows == null || selectRows.length < 1) {
|
|
message.success("请勾选法律法规信息后再同步!");
|
|
}
|
|
var data = {
|
|
ListModel: selectRows
|
|
}
|
|
params.dispatch({
|
|
type: 'app/getDataByPost',
|
|
payload: data,
|
|
url: "LR/LRLaw/SyncToLocal",
|
|
onComplete: (ret) => {
|
|
if (ret) {
|
|
message.success("同步成功!");
|
|
params.clearSelectedRowKeys()
|
|
params.props.data.close()
|
|
}
|
|
}
|
|
});
|
|
},
|
|
}
|