Merge branch 'master-dev' into feature-Beta-dev-renpy
This commit is contained in:
commit
50f6d30316
|
@ -195,6 +195,13 @@
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</custom-modal>
|
</custom-modal>
|
||||||
<!-- 增加/编辑排班弹窗结束 -->
|
<!-- 增加/编辑排班弹窗结束 -->
|
||||||
|
<custom-modal title="Failure record" v-model="visibleRes" :footer="null">
|
||||||
|
<custom-table size="middle" :columns="columns" :list="dataSource">
|
||||||
|
<template slot="index" slot-scope="{ index }">
|
||||||
|
{{ index + 1 }}
|
||||||
|
</template>
|
||||||
|
</custom-table>
|
||||||
|
</custom-modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -250,6 +257,41 @@ export default {
|
||||||
dragItem: null,
|
dragItem: null,
|
||||||
fromUserId: '',
|
fromUserId: '',
|
||||||
stationName: '',
|
stationName: '',
|
||||||
|
visibleRes: false,
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
title: 'NO',
|
||||||
|
align: 'left',
|
||||||
|
scopedSlots: {
|
||||||
|
customRender: 'index',
|
||||||
|
},
|
||||||
|
customHeaderCell: () => {
|
||||||
|
return {
|
||||||
|
style: {
|
||||||
|
'padding-left': '60px !important',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
customCell: () => {
|
||||||
|
return {
|
||||||
|
style: {
|
||||||
|
'padding-left': '60px !important',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'LINE',
|
||||||
|
align: 'left',
|
||||||
|
dataIndex: 'line',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'RESULT',
|
||||||
|
align: 'left',
|
||||||
|
dataIndex: 'result',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
dataSource: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -421,8 +463,10 @@ export default {
|
||||||
try {
|
try {
|
||||||
const formData = new FormData()
|
const formData = new FormData()
|
||||||
formData.append('file', file)
|
formData.append('file', file)
|
||||||
const { success, failure } = await postAction('/sysTask/importExcel', formData)
|
const { success, failure, detailList } = await postAction('/sysTask/importExcel', formData)
|
||||||
this.$message.success(`${success} Success, ${failure} Fail`)
|
this.$message.success(`${success} Success, ${failure} Fail`)
|
||||||
|
this.dataSource = detailList
|
||||||
|
this.visibleRes = true
|
||||||
this.isImport = false
|
this.isImport = false
|
||||||
this.getList()
|
this.getList()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user