zhoulisen 5 年之前
父節點
當前提交
87400b758c
共有 2 個檔案被更改,包括 4 行新增4 行删除
  1. 2
    2
      src/pages/qrcode/qrcodelist/index.jsx
  2. 2
    2
      src/pages/qrcode/qrcodelist/table/index.jsx

+ 2
- 2
src/pages/qrcode/qrcodelist/index.jsx 查看文件

@@ -234,8 +234,8 @@ const qrcodelist = props => {
234 234
                 <Button type="danger" onClick={() => toAdd()}>新增</Button>
235 235
             </AuthButton>
236 236
             <AuthButton name="admin.qrcode.delete" noRight={null}>
237
-                <ConfirmButton type="link" title="确认删除选中数据?" beforeCheck={beforeCheck} onClick={() => batchDelete()}>
238
-                    <Button type="primary" style={{ marginLeft: '30px' }}>删除</Button>
237
+                <ConfirmButton type="link" title="确认删除选中数据?" beforeCheck={beforeCheck} onClick={() => batchDelete()} style={{ marginLeft: '30px' }}>
238
+                    <Button type="primary" >删除</Button>
239 239
                 </ConfirmButton>
240 240
             </AuthButton>
241 241
             <Icon type="question-circle" theme="filled" style={{ fontSize: '25px', color: '#F00', marginLeft: '30px' }} onClick={() => setShowHelp(true)} />

+ 2
- 2
src/pages/qrcode/qrcodelist/table/index.jsx 查看文件

@@ -87,9 +87,9 @@ const table = props => {
87 87
         const link = document.createElement('a')
88 88
         link.style.display = 'none'
89 89
         link.href = url
90
-        if (type === 1) {
90
+        if (type === '1') {
91 91
             link.setAttribute('download', '访问人数.xlsx')
92
-        } else if (type === 2) {
92
+        } else if (type === '2') {
93 93
             link.setAttribute('download', '访问次数.xlsx')
94 94
         } else {
95 95
             link.setAttribute('download', '新增注册用户.xlsx')