|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
import { FilterTable } from 'wptpc-design'
|
|
import { FilterTable } from 'wptpc-design'
|
|
import { dc } from '@/conf/config'
|
|
import { dc } from '@/conf/config'
|
|
import { getcodis,setcodis,delcodis,delscodis } from './service';
|
|
import { getcodis,setcodis,delcodis,delscodis } from './service';
|
|
-import { Button,Input,Select,InputGroup,message,Modal } from 'antd';
|
|
|
|
|
|
+import { Button,Input,Select,InputGroup,message,Modal, Checkbox } from 'antd';
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
const apiUrl = `${dc}/ht/web/get-codis`
|
|
const apiUrl = `${dc}/ht/web/get-codis`
|
|
const { Option } = Select;
|
|
const { Option } = Select;
|
|
@@ -31,6 +31,7 @@ class SummaryList extends React.PureComponent {
|
|
remaintime:-3,
|
|
remaintime:-3,
|
|
msg:'',
|
|
msg:'',
|
|
clusterType:'codis',
|
|
clusterType:'codis',
|
|
|
|
+ isCheck: false
|
|
}
|
|
}
|
|
handleChange = (value) => {
|
|
handleChange = (value) => {
|
|
this.setState({
|
|
this.setState({
|
|
@@ -85,6 +86,7 @@ class SummaryList extends React.PureComponent {
|
|
type:this.state.type,
|
|
type:this.state.type,
|
|
clusterType:this.state.clusterType,
|
|
clusterType:this.state.clusterType,
|
|
cacheKey:this.state.cacheKey,
|
|
cacheKey:this.state.cacheKey,
|
|
|
|
+ wx:this.state.isCheck
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
this.setState({
|
|
this.setState({
|
|
@@ -127,6 +129,7 @@ class SummaryList extends React.PureComponent {
|
|
socre:this.state.socre,
|
|
socre:this.state.socre,
|
|
clusterType:this.state.clusterType,
|
|
clusterType:this.state.clusterType,
|
|
list:value,
|
|
list:value,
|
|
|
|
+ wx:this.state.isCheck
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
this.setState({
|
|
this.setState({
|
|
@@ -159,6 +162,7 @@ class SummaryList extends React.PureComponent {
|
|
value:this.state.value,
|
|
value:this.state.value,
|
|
clusterType:this.state.clusterType,
|
|
clusterType:this.state.clusterType,
|
|
list:value,
|
|
list:value,
|
|
|
|
+ wx:this.state.isCheck
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
this.setState({
|
|
this.setState({
|
|
@@ -191,6 +195,7 @@ class SummaryList extends React.PureComponent {
|
|
type:this.state.type,
|
|
type:this.state.type,
|
|
clusterType:this.state.clusterType,
|
|
clusterType:this.state.clusterType,
|
|
cacheKey:this.state.cacheKey,
|
|
cacheKey:this.state.cacheKey,
|
|
|
|
+ wx:this.state.isCheck
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
this.setState({
|
|
this.setState({
|
|
@@ -238,7 +243,7 @@ class SummaryList extends React.PureComponent {
|
|
<Option value="userCodis">模块化用户</Option>
|
|
<Option value="userCodis">模块化用户</Option>
|
|
</Select>
|
|
</Select>
|
|
<Input placeholder="default size" style={{ width: 520 }} value={this.state.cacheKey} onChange={this.cacheKeyChange} />
|
|
<Input placeholder="default size" style={{ width: 520 }} value={this.state.cacheKey} onChange={this.cacheKeyChange} />
|
|
- <Select defaultValue="string" style={{ width: 120 }} value={this.state.type} onChange={this.handleChange}>
|
|
|
|
|
|
+ <Select defaultValue="string" style={{ width: 80 }} value={this.state.type} onChange={this.handleChange}>
|
|
<Option value="string">string</Option>
|
|
<Option value="string">string</Option>
|
|
<Option value="hash">hash</Option>
|
|
<Option value="hash">hash</Option>
|
|
<Option value="list">list</Option>
|
|
<Option value="list">list</Option>
|
|
@@ -247,6 +252,9 @@ class SummaryList extends React.PureComponent {
|
|
</Select>
|
|
</Select>
|
|
<Button type="primary" onClick={this.getredis}>获取</Button>
|
|
<Button type="primary" onClick={this.getredis}>获取</Button>
|
|
</div>
|
|
</div>
|
|
|
|
+ {/*<input type="checkbox" style={{ "margin-left":167 }} name="vehicle" value="1" />是否不带wx_前缀*/}
|
|
|
|
+ <Checkbox style={{ "margin-left":167 }} value={this.state.isCheck} onChange={(e)=>{this.setState({isCheck: e.target.checked})}}/>是否不带wx_前缀
|
|
|
|
+ <br/>
|
|
{ remaintime > -2 && "过期时间:" + this.state.endTimedate}<br/>
|
|
{ remaintime > -2 && "过期时间:" + this.state.endTimedate}<br/>
|
|
{ remaintime > -2 && "过期时间戳:" + this.state.endTime}<br/>
|
|
{ remaintime > -2 && "过期时间戳:" + this.state.endTime}<br/>
|
|
{ remaintime > -2 && "剩余秒数:" + this.state.remaintime}<br/>
|
|
{ remaintime > -2 && "剩余秒数:" + this.state.remaintime}<br/>
|