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)
|
return upload('post', baseurl + "/plan/theme/custom",data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//登录
|
//登录
|
||||||
export const postLogin = (data) => {
|
export const postLogin = (data) => {
|
||||||
return req('login', baseurl + "/auth/login", 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)
|
return req('put', baseurl + "/plan/theme/"+id,data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const getThemeChoice= (data) => {
|
||||||
|
return upload('get', baseurl + "/plan/theme/choice",data)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//新增落地页模板
|
//新增落地页模板
|
||||||
export const addTheme= (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'],
|
showTime={{ format: 'HH:mm:ss', defaultTime: [moment().format("HH:mm:ss"), '23:59:59'],
|
||||||
}}
|
}}
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
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}
|
value={this.state.model.date_time}
|
||||||
onChange={(e)=>{
|
onChange={(e)=>{
|
||||||
Bus.emit('change',"date_time" ,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 Ipt from "../../../components/input/main"
|
||||||
import Form from "../../../components/form/main"
|
import Form from "../../../components/form/main"
|
||||||
import FormItem from "../../../components/form-item/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 _ from "lodash";
|
||||||
import Bus from "../../../assets/eventBus.js"
|
import Bus from "../../../assets/eventBus.js"
|
||||||
import "./add.less"
|
import "./add.less"
|
||||||
|
@ -34,7 +34,7 @@ export default class acclist extends React.Component{
|
||||||
|
|
||||||
getThemeData(){
|
getThemeData(){
|
||||||
|
|
||||||
getTheme().then((res)=>{
|
getThemeChoice().then((res)=>{
|
||||||
handelResponse(res,(req,msg)=>{
|
handelResponse(res,(req,msg)=>{
|
||||||
let arr = _.map(req.data,(o)=>{
|
let arr = _.map(req.data,(o)=>{
|
||||||
let obj = {};
|
let obj = {};
|
||||||
|
|
Loading…
Reference in New Issue