Commit 4f5e7cf7d2a53f13526475eb7ef03395b59cc0e9
1 parent
74a3e8cd
1.询价状态增加/,现在三种状态 √,x号, /号
Showing
2 changed files
with
30 additions
and
5 deletions
src/components/Common/CommonTable/index.js
| @@ -2184,12 +2184,12 @@ class CommonTableRc extends React.Component { | @@ -2184,12 +2184,12 @@ class CommonTableRc extends React.Component { | ||
| 2184 | if (!bEnabled) return; | 2184 | if (!bEnabled) return; |
| 2185 | 2185 | ||
| 2186 | let newValue = ""; | 2186 | let newValue = ""; |
| 2187 | - if (!value) { | 2187 | + if (!value || value ==='/') { |
| 2188 | newValue = "✓"; | 2188 | newValue = "✓"; |
| 2189 | } else if (["1", "✓"].includes(value)) { | 2189 | } else if (["1", "✓"].includes(value)) { |
| 2190 | newValue = "✗"; | 2190 | newValue = "✗"; |
| 2191 | - } else { | ||
| 2192 | - newValue = "✓"; | 2191 | + }else if (["0", "✗"].includes(value)) { |
| 2192 | + newValue = "/"; | ||
| 2193 | } | 2193 | } |
| 2194 | 2194 | ||
| 2195 | const dataNew = [...this.props.data]; | 2195 | const dataNew = [...this.props.data]; |
| @@ -2260,6 +2260,22 @@ class CommonTableRc extends React.Component { | @@ -2260,6 +2260,22 @@ class CommonTableRc extends React.Component { | ||
| 2260 | ✗ | 2260 | ✗ |
| 2261 | </div> | 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 | } else { | 2279 | } else { |
| 2264 | return ( | 2280 | return ( |
| 2265 | <div | 2281 | <div |
src/components/Common/CommonTable/index.less
| @@ -673,6 +673,15 @@ button.mesSave { | @@ -673,6 +673,15 @@ button.mesSave { | ||
| 673 | cursor: default; | 673 | cursor: default; |
| 674 | user-select: none | 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 | .xunjianEnabled { | 686 | .xunjianEnabled { |
| 678 | text-decoration: underline; | 687 | text-decoration: underline; |
| @@ -766,5 +775,5 @@ button.mesSave { | @@ -766,5 +775,5 @@ button.mesSave { | ||
| 766 | .btnIcon { | 775 | .btnIcon { |
| 767 | width: 24px; | 776 | width: 24px; |
| 768 | height: 24px; | 777 | height: 24px; |
| 769 | - | ||
| 770 | -} | ||
| 771 | \ No newline at end of file | 778 | \ No newline at end of file |
| 779 | + | ||
| 780 | +} |