Commit 69b8f368 by wufan

feat:iconfont-font-class的方式引入

parent b0299f20
/*
* @Author: sunbingqing
* @Date: 2019-07-24 17:21:00
* @Last Modified by: 孙冰清
* @Last Modified time: 2019-07-25 16:50:53
*/
import React from 'react';
import {Checkbox} from 'antd';
import './CheckBox.less';
......
......@@ -1102,9 +1102,9 @@ table .ant-btn {
height: 24px;
}
.ant-input {
padding: 0 12px !important;
}
// .ant-input {
// padding: 0 12px !important;
// }
.dataBar {
background-color: #FFEEE4;
......
......@@ -2,7 +2,7 @@
* @Author: wufan
* @Date: 2020-07-09 14:03:09
* @Last Modified by: mikey.zhaopeng
* @Last Modified time: 2020-11-26 14:52:43
* @Last Modified time: 2020-11-26 16:22:44
* 店铺管理-员工管理
*/
import React, { useEffect, useState } from "react";
......@@ -10,7 +10,7 @@ import { withRouter } from "react-router-dom";
import _ from "underscore";
import PageControl from "@/components/PageControl";
import SearchBar from "@/components/SearchBar";
import {CheckBox} from "@/components";
import { CheckBox } from "@/components";
import { Button, Table, Tooltip, Modal, message, Row, Col, Input } from "antd";
import { storeRoleEnum } from "@/domains/store-domain/constants";
import StoreService from "@/domains/store-domain/storeService";
......@@ -34,11 +34,13 @@ function EmployeesManagePage() {
size: 10,
name: "",
phone: "",
identity: "",
identity: "ALL",
instId: "1837447" || window.currentUserInstInfo.instId,
});
const [total, setTotal] = useState(0);
const [model, setModel] = useState(null);
const [isManager, setIsManager] = useState(true);
const [isNormal, setIsNormal] = useState(true);
useEffect(() => {
getEmployeeList();
......@@ -87,7 +89,7 @@ function EmployeesManagePage() {
title: "操作",
dataIndex: "operation",
render: (val: string, record: { identity: string }) => {
return record.identity === "0" || record.identity === "1" ? (
return record.identity === "" || record.identity === "1" ? (
<div className="no-operate">-</div>
) : (
<div className="operation">
......@@ -167,7 +169,6 @@ function EmployeesManagePage() {
onChange={(event) => {
const val = event.target.value;
const _query = { ...query };
_query.name = val;
setQuery(_query);
}}
......@@ -179,16 +180,37 @@ function EmployeesManagePage() {
身份:
<CheckBox
text="普通讲师"
onChange={(e:any) => {
onChange={(e: any) => {
const { checked } = e.target;
;
setIsNormal(checked);
const _query = { ...query };
_query.identity = checked
? isManager
? "ALL"
: "NORMAL"
: isManager
? "MANAGE"
: "NONE";
setQuery(_query);
}}
defaultChecked={isNormal}
/>
<CheckBox
text="管理员"
onChange={(e:any) => {
onChange={(e: any) => {
const { checked } = e.target;
setIsManager(checked);
const _query = { ...query };
_query.identity = checked
? isNormal
? "ALL"
: "MANAGE"
: isNormal
? "NORMAL"
: "NONE";
setQuery(_query);
}}
defaultChecked={isManager}
/>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment