|
@@ -82,7 +82,7 @@ const header = props => {
|
82
|
82
|
function updateOnCancel(e) {
|
83
|
83
|
console.log(e, 'cancel')
|
84
|
84
|
setUpdateSeal(e);
|
85
|
|
- getCompanyData({companyId: e.companyId})
|
|
85
|
+ // getCompanyData({companyId: e.companyId
|
86
|
86
|
}
|
87
|
87
|
|
88
|
88
|
const delSealInfo = (row) => {
|
|
@@ -100,7 +100,18 @@ const header = props => {
|
100
|
100
|
})
|
101
|
101
|
},
|
102
|
102
|
});
|
103
|
|
- }
|
|
103
|
+ }
|
|
104
|
+
|
|
105
|
+ const defaultSeal = (row) => {
|
|
106
|
+ request({ ...apis.seal.setDefaultSealById, urlData:{id: row.sealId} }).then((data) => {
|
|
107
|
+ message.info('操作成功!')
|
|
108
|
+ getCompanyData({ pageNum: 1, pageSize: 10, companyId: companyId })
|
|
109
|
+ }).catch((err) => {
|
|
110
|
+ console.log(err)
|
|
111
|
+ message.info(err.msg || err.message)
|
|
112
|
+ })
|
|
113
|
+ }
|
|
114
|
+
|
104
|
115
|
|
105
|
116
|
|
106
|
117
|
|
|
@@ -131,6 +142,13 @@ const header = props => {
|
131
|
142
|
align: 'center',
|
132
|
143
|
render: (x, row) => <><span>{row.createDate != null ? `${moment(row.createDate).format('YYYY-MM-DD HH:mm:ss')}` : ''}</span></>,
|
133
|
144
|
},
|
|
145
|
+ {
|
|
146
|
+ title: '默认章',
|
|
147
|
+ dataIndex: 'defaultSeal',
|
|
148
|
+ key: 'defaultSeal',
|
|
149
|
+ align: 'center',
|
|
150
|
+ render: (_, record) => <><span>{record.defaultSeal === 1 ? "是":"否"}</span></>,
|
|
151
|
+ },
|
134
|
152
|
{
|
135
|
153
|
title: '操作',
|
136
|
154
|
dataIndex: '',
|
|
@@ -140,6 +158,7 @@ const header = props => {
|
140
|
158
|
<>
|
141
|
159
|
<a style={{ color: '#66B3FF' }} onClick={() => updateSealInfo({visable:true, companyId: record.companyId, sealId: record.sealId})} ><span>修改</span></a>
|
142
|
160
|
<a style={{ color: '#66B3FF', marginLeft:'20px' }} onClick={() => delSealInfo(record)} ><span>删除</span></a>
|
|
161
|
+ <a style={{ color: '#66B3FF', marginLeft:'20px' }} onClick={() => defaultSeal(record)} ><span>默认章</span></a>
|
143
|
162
|
</>
|
144
|
163
|
),
|
145
|
164
|
},
|