Commit 4f5e7cf7d2a53f13526475eb7ef03395b59cc0e9

Authored by Min
1 parent 74a3e8cd

1.询价状态增加/,现在三种状态 √,x号, /号

src/components/Common/CommonTable/index.js
... ... @@ -2184,12 +2184,12 @@ class CommonTableRc extends React.Component {
2184 2184 if (!bEnabled) return;
2185 2185  
2186 2186 let newValue = "";
2187   - if (!value) {
  2187 + if (!value || value ==='/') {
2188 2188 newValue = "✓";
2189 2189 } else if (["1", "✓"].includes(value)) {
2190 2190 newValue = "✗";
2191   - } else {
2192   - newValue = "✓";
  2191 + }else if (["0", "✗"].includes(value)) {
  2192 + newValue = "/";
2193 2193 }
2194 2194  
2195 2195 const dataNew = [...this.props.data];
... ... @@ -2260,6 +2260,22 @@ class CommonTableRc extends React.Component {
2260 2260
2261 2261 </div>
2262 2262 );
  2263 + } else if (value === "3" || value === '/') {
  2264 + return (
  2265 + <div
  2266 + className={`${styles.xunjianNone} ${false ? styles.xunjianEnabled : ""
  2267 + }`}
  2268 + onClick={xunjianClick.bind(this, {
  2269 + bEnabled,
  2270 + value,
  2271 + record,
  2272 + index,
  2273 + sName: column.dataIndex
  2274 + })}
  2275 + >
  2276 + /
  2277 + </div>
  2278 + );
2263 2279 } else {
2264 2280 return (
2265 2281 <div
... ...
src/components/Common/CommonTable/index.less
... ... @@ -673,6 +673,15 @@ button.mesSave {
673 673 cursor: default;
674 674 user-select: none
675 675 }
  676 +.xunjianNone{
  677 + .flex(center, center);
  678 + .size();
  679 + color: #efb700;
  680 + font-size: 24px;
  681 + cursor: default;
  682 + user-select: none
  683 +
  684 +}
676 685  
677 686 .xunjianEnabled {
678 687 text-decoration: underline;
... ... @@ -766,5 +775,5 @@ button.mesSave {
766 775 .btnIcon {
767 776 width: 24px;
768 777 height: 24px;
769   -
770   -}
771 778 \ No newline at end of file
  779 +
  780 +}
... ...