|
@ -48,11 +48,12 @@ |
|
|
|
|
|
|
|
|
<script lang="jsx"> |
|
|
<script lang="jsx"> |
|
|
import { taskListApi, delExcelByTaskIdApi, delTaskApi } from '@/api/task' |
|
|
import { taskListApi, delExcelByTaskIdApi, delTaskApi } from '@/api/task' |
|
|
import { useAccountStore, useTaskStore } from '@/store' |
|
|
|
|
|
|
|
|
import { useAccountStore, useTaskStore, useImageStore } from '@/store' |
|
|
import moment from 'moment' |
|
|
import moment from 'moment' |
|
|
import Cookie from '@/utils/cookie' |
|
|
import Cookie from '@/utils/cookie' |
|
|
const accountStore = useAccountStore() |
|
|
const accountStore = useAccountStore() |
|
|
const taskStore = useTaskStore() |
|
|
const taskStore = useTaskStore() |
|
|
|
|
|
const imageStore = useImageStore() |
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -128,7 +129,9 @@ export default { |
|
|
> |
|
|
> |
|
|
上传Excel |
|
|
上传Excel |
|
|
</t-button> |
|
|
</t-button> |
|
|
<t-button onClick={() => this.viewDetail(row.id)}> |
|
|
|
|
|
|
|
|
<t-button |
|
|
|
|
|
onClick={() => this.viewDetail(row.id, row.nuclearCoreName)} |
|
|
|
|
|
> |
|
|
查看详情 |
|
|
查看详情 |
|
|
</t-button> |
|
|
</t-button> |
|
|
</div> |
|
|
</div> |
|
@ -148,7 +151,9 @@ export default { |
|
|
taskStore.getExcelList(taskId) |
|
|
taskStore.getExcelList(taskId) |
|
|
taskStore.updateCurrentTaskId(taskId) |
|
|
taskStore.updateCurrentTaskId(taskId) |
|
|
}, |
|
|
}, |
|
|
viewDetail(taskId) { |
|
|
|
|
|
|
|
|
viewDetail(taskId, nuclearCoreName) { |
|
|
|
|
|
imageStore.updateNuclearCoreName(nuclearCoreName) |
|
|
|
|
|
taskStore.updateCurrentDetailTaskId(taskId) |
|
|
accountStore.changePage(0) |
|
|
accountStore.changePage(0) |
|
|
taskStore.getExcelList(taskId) |
|
|
taskStore.getExcelList(taskId) |
|
|
}, |
|
|
}, |
|
|