Update main.js
This commit is contained in:
parent
f4a58ab995
commit
3ec64715ee
|
@ -206,7 +206,7 @@ export default class edittemplate extends React.Component{
|
||||||
if(this.state.model.id > 0)
|
if(this.state.model.id > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(this.state.isSystemModel)
|
if(this.state.isSystemModel == true)
|
||||||
{
|
{
|
||||||
formdata.sort = this.state.model.sort;
|
formdata.sort = this.state.model.sort;
|
||||||
putSystemTemplate(this.state.model.id,formdata).then((res)=>{
|
putSystemTemplate(this.state.model.id,formdata).then((res)=>{
|
||||||
|
@ -234,9 +234,11 @@ export default class edittemplate extends React.Component{
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
console.log("状态")
|
||||||
if(this.state.isSystemModel)
|
console.log(this.state.isSystemModel)
|
||||||
|
if(this.state.isSystemModel == true)
|
||||||
{
|
{
|
||||||
|
formdata.sort = this.state.model.sort;
|
||||||
addSystemTemplate(formdata).then((res)=>{
|
addSystemTemplate(formdata).then((res)=>{
|
||||||
handelResponse(res,(req,msg)=>{
|
handelResponse(res,(req,msg)=>{
|
||||||
Notify.success("保存成功")
|
Notify.success("保存成功")
|
||||||
|
|
Loading…
Reference in New Issue