|
@@ -12,7 +12,8 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
loadData(pageNo, apiUrl) {
|
|
loadData(pageNo, apiUrl) {
|
|
this.state.data = [];
|
|
this.state.data = [];
|
|
this.setState({
|
|
this.setState({
|
|
- loading: true
|
|
|
|
|
|
+ loading: true,
|
|
|
|
+ ispage:pageNo,
|
|
});
|
|
});
|
|
let nameText=this.state.SuperArr;
|
|
let nameText=this.state.SuperArr;
|
|
let superText=(this.state.superId)?nameText[parseInt(this.state.superId)].id:"";
|
|
let superText=(this.state.superId)?nameText[parseInt(this.state.superId)].id:"";
|
|
@@ -20,7 +21,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
method: "post",
|
|
method: "post",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
- url: globalConfig.context + '/api/admin/Varieties/vtList',
|
|
|
|
|
|
+ url: globalConfig.context + '/open/api/admin/Varieties/vtList',
|
|
data: {
|
|
data: {
|
|
pageNo: pageNo || 1,
|
|
pageNo: pageNo || 1,
|
|
pageSize: this.state.pagination.pageSize,
|
|
pageSize: this.state.pagination.pageSize,
|
|
@@ -118,9 +119,9 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
method: "get",
|
|
method: "get",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
- url: globalConfig.context + "/api/admin/Varieties/getSuperList",
|
|
|
|
|
|
+ url: globalConfig.context + "/open/api/admin/Varieties/getSuperList",
|
|
data:{
|
|
data:{
|
|
-
|
|
|
|
|
|
+ flag:1,
|
|
},
|
|
},
|
|
success: function (data) {
|
|
success: function (data) {
|
|
let theArr = [];
|
|
let theArr = [];
|
|
@@ -147,7 +148,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
|
|
|
|
}.bind(this),
|
|
}.bind(this),
|
|
}).always(function () {
|
|
}).always(function () {
|
|
- this.loadData();
|
|
|
|
|
|
+ this.loadData(this.state.ispage);
|
|
this.setState({
|
|
this.setState({
|
|
loading: false
|
|
loading: false
|
|
});
|
|
});
|
|
@@ -171,7 +172,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
method: "post",
|
|
method: "post",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
- url:globalConfig.context + '/api/admin/Varieties/editVarieties',
|
|
|
|
|
|
+ url:globalConfig.context + '/open/api/admin/Varieties/editVarieties',
|
|
data:{
|
|
data:{
|
|
id:this.state.editId,//品类ID
|
|
id:this.state.editId,//品类ID
|
|
cname:this.state.editName,//品类名称
|
|
cname:this.state.editName,//品类名称
|
|
@@ -197,7 +198,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
method: "post",
|
|
method: "post",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
- url:globalConfig.context + '/api/admin/Varieties/editVarieties',
|
|
|
|
|
|
+ url:globalConfig.context + '/open/api/admin/Varieties/editVarieties',
|
|
data:{
|
|
data:{
|
|
id:this.state.editId,//品类ID
|
|
id:this.state.editId,//品类ID
|
|
cname:this.state.editName,//品类名称
|
|
cname:this.state.editName,//品类名称
|
|
@@ -226,7 +227,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
method: "post",
|
|
method: "post",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
- url:globalConfig.context + '/api/admin/Varieties/editVarieties',
|
|
|
|
|
|
+ url:globalConfig.context + '/open/api/admin/Varieties/editVarieties',
|
|
data:{
|
|
data:{
|
|
id:this.state.editId,//品类ID
|
|
id:this.state.editId,//品类ID
|
|
cname:this.state.editName,//品类名称
|
|
cname:this.state.editName,//品类名称
|
|
@@ -252,7 +253,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
method: "post",
|
|
method: "post",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
- url:globalConfig.context + '/api/admin/Varieties/editVarieties',
|
|
|
|
|
|
+ url:globalConfig.context + '/open/api/admin/Varieties/editVarieties',
|
|
data:{
|
|
data:{
|
|
id:this.state.editId,//品类ID
|
|
id:this.state.editId,//品类ID
|
|
cname:this.state.editName,//品类名称
|
|
cname:this.state.editName,//品类名称
|
|
@@ -287,7 +288,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
method: "get",
|
|
method: "get",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
- url: globalConfig.context +"/api/admin/Varieties/detailVarieties" ,
|
|
|
|
|
|
+ url: globalConfig.context +"/open/api/admin/Varieties/detailVarieties" ,
|
|
data: {
|
|
data: {
|
|
id: record.id
|
|
id: record.id
|
|
},
|
|
},
|
|
@@ -352,7 +353,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
method: "get",
|
|
method: "get",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
- url:globalConfig.context + '/api/admin/Varieties/addVarieties',
|
|
|
|
|
|
+ url:globalConfig.context + '/open/api/admin/Varieties/addVarieties',
|
|
data:{
|
|
data:{
|
|
cname:this.state.categoryName,//组织名称
|
|
cname:this.state.categoryName,//组织名称
|
|
superId:superText,//上级组织
|
|
superId:superText,//上级组织
|
|
@@ -389,7 +390,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
method: "get",
|
|
method: "get",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
- url: globalConfig.context + "/api/admin/Varieties/deleteState",
|
|
|
|
|
|
+ url: globalConfig.context + "/open/api/admin/Varieties/deleteState",
|
|
data: {
|
|
data: {
|
|
id: deletedIds
|
|
id: deletedIds
|
|
}
|
|
}
|
|
@@ -422,7 +423,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
method: "get",
|
|
method: "get",
|
|
dataType: "json",
|
|
dataType: "json",
|
|
crossDomain: false,
|
|
crossDomain: false,
|
|
- url: globalConfig.context + "/api/admin/Varieties/updateStatus",
|
|
|
|
|
|
+ url: globalConfig.context + "/open/api/admin/Varieties/updateStatus",
|
|
data: {
|
|
data: {
|
|
id: deletedIds
|
|
id: deletedIds
|
|
}
|
|
}
|
|
@@ -561,7 +562,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
<Form horizontal onSubmit={this.addhandleSubmit} id="demand-form">
|
|
<Form horizontal onSubmit={this.addhandleSubmit} id="demand-form">
|
|
<Spin spinning={this.state.loading}>
|
|
<Spin spinning={this.state.loading}>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|
|
- <FormItem className="half-item"
|
|
|
|
|
|
+ <FormItem
|
|
labelCol={{ span: 7 }}
|
|
labelCol={{ span: 7 }}
|
|
wrapperCol={{ span: 12 }}
|
|
wrapperCol={{ span: 12 }}
|
|
label="品类名称" >
|
|
label="品类名称" >
|
|
@@ -602,7 +603,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
<Form horizontal onSubmit={this.edithandleSubmit} id="demand-form">
|
|
<Form horizontal onSubmit={this.edithandleSubmit} id="demand-form">
|
|
<Spin spinning={this.state.loading}>
|
|
<Spin spinning={this.state.loading}>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|
|
- <FormItem className="half-item"
|
|
|
|
|
|
+ <FormItem
|
|
labelCol={{ span: 7 }}
|
|
labelCol={{ span: 7 }}
|
|
wrapperCol={{ span: 12 }}
|
|
wrapperCol={{ span: 12 }}
|
|
label="品类名称" >
|
|
label="品类名称" >
|
|
@@ -611,7 +612,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
</FormItem>
|
|
</FormItem>
|
|
</div>
|
|
</div>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|
|
- <FormItem className="half-item"
|
|
|
|
|
|
+ <FormItem
|
|
labelCol={{ span: 7 }}
|
|
labelCol={{ span: 7 }}
|
|
wrapperCol={{ span: 12 }}
|
|
wrapperCol={{ span: 12 }}
|
|
label="品类状态"
|
|
label="品类状态"
|
|
@@ -639,7 +640,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
</FormItem>
|
|
</FormItem>
|
|
</div>
|
|
</div>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|
|
- <FormItem className="half-item"
|
|
|
|
|
|
+ <FormItem
|
|
labelCol={{ span: 7 }}
|
|
labelCol={{ span: 7 }}
|
|
wrapperCol={{ span: 12 }}
|
|
wrapperCol={{ span: 12 }}
|
|
label="品类层级"
|
|
label="品类层级"
|
|
@@ -648,7 +649,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
</FormItem>
|
|
</FormItem>
|
|
</div>
|
|
</div>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|
|
- <FormItem className="half-item"
|
|
|
|
|
|
+ <FormItem
|
|
labelCol={{ span: 7 }}
|
|
labelCol={{ span: 7 }}
|
|
wrapperCol={{ span: 12 }}
|
|
wrapperCol={{ span: 12 }}
|
|
label="品类编号"
|
|
label="品类编号"
|
|
@@ -657,7 +658,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
</FormItem>
|
|
</FormItem>
|
|
</div>
|
|
</div>
|
|
<div className="clearfix" >
|
|
<div className="clearfix" >
|
|
- <FormItem className="half-item"
|
|
|
|
|
|
+ <FormItem
|
|
labelCol={{ span: 7 }}
|
|
labelCol={{ span: 7 }}
|
|
wrapperCol={{ span: 12 }}
|
|
wrapperCol={{ span: 12 }}
|
|
label="创建人"
|
|
label="创建人"
|
|
@@ -666,7 +667,7 @@ const BusinessCategory=Form.create()(React.createClass({
|
|
</FormItem>
|
|
</FormItem>
|
|
</div>
|
|
</div>
|
|
<div className="clearfix">
|
|
<div className="clearfix">
|
|
- <FormItem className="half-item"
|
|
|
|
|
|
+ <FormItem
|
|
labelCol={{ span: 7 }}
|
|
labelCol={{ span: 7 }}
|
|
wrapperCol={{ span: 12 }}
|
|
wrapperCol={{ span: 12 }}
|
|
label="创建时间"
|
|
label="创建时间"
|