This commit is contained in:
parent
599b7add38
commit
e86c8bd322
|
@ -571,6 +571,10 @@ export const postThemecustom= (data) => {
|
|||
return upload('post', baseurl + "/plan/theme/custom",data)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//登录
|
||||
export const postLogin = (data) => {
|
||||
return req('login', baseurl + "/auth/login", data)
|
||||
|
@ -609,6 +613,10 @@ export const putMyTheme= (id,data) => {
|
|||
return req('put', baseurl + "/plan/theme/"+id,data)
|
||||
}
|
||||
|
||||
export const getThemeChoice= (data) => {
|
||||
return upload('get', baseurl + "/plan/theme/choice",data)
|
||||
}
|
||||
|
||||
|
||||
//新增落地页模板
|
||||
export const addTheme= (data) => {
|
||||
|
|
|
@ -266,7 +266,7 @@ export default class acclist extends React.Component{
|
|||
showTime={{ format: 'HH:mm:ss', defaultTime: [moment().format("HH:mm:ss"), '23:59:59'],
|
||||
}}
|
||||
format="YYYY-MM-DD HH:mm:ss"
|
||||
disabled={[this.props.disabled,this.props.disabled]}
|
||||
disabled={[this.props.disabled,false]}
|
||||
value={this.state.model.date_time}
|
||||
onChange={(e)=>{
|
||||
Bus.emit('change',"date_time" ,e);
|
||||
|
|
|
@ -5,7 +5,7 @@ import { Button ,Tabs, CombinedDateRangePicker,Select,Input,RadioGroup,RadioButt
|
|||
import Ipt from "../../../components/input/main"
|
||||
import Form from "../../../components/form/main"
|
||||
import FormItem from "../../../components/form-item/main"
|
||||
import {addPlanStep,handelResponse,getTheme} from "../../../assets/api.js"
|
||||
import {addPlanStep,handelResponse,getTheme,getThemeChoice} from "../../../assets/api.js"
|
||||
import _ from "lodash";
|
||||
import Bus from "../../../assets/eventBus.js"
|
||||
import "./add.less"
|
||||
|
@ -34,7 +34,7 @@ export default class acclist extends React.Component{
|
|||
|
||||
getThemeData(){
|
||||
|
||||
getTheme().then((res)=>{
|
||||
getThemeChoice().then((res)=>{
|
||||
handelResponse(res,(req,msg)=>{
|
||||
let arr = _.map(req.data,(o)=>{
|
||||
let obj = {};
|
||||
|
|
Loading…
Reference in New Issue