Compare commits
3 Commits
ba8dc41c83
...
9aed740388
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9aed740388 | ||
|
|
8a20db021a | ||
|
|
8daf15cf3f |
@@ -34,9 +34,9 @@ export default {
|
|||||||
},
|
},
|
||||||
getDetail() {
|
getDetail() {
|
||||||
const {id} = this.$route.query
|
const {id} = this.$route.query
|
||||||
return id && this.instance.post("/api/breed/death/page", null, {params: {id}}).then(res => {
|
return id && this.instance.post("/api/breed/death/getAuditPage", null, {params: {id}}).then(res => {
|
||||||
if (res?.data?.records) {
|
if (res?.data) {
|
||||||
const detail = res.data.records[0] || {}
|
const detail = res.data || {}
|
||||||
if (detail.picture) {
|
if (detail.picture) {
|
||||||
Object.entries(JSON.parse(detail.picture)).forEach(([key, value]) => {
|
Object.entries(JSON.parse(detail.picture)).forEach(([key, value]) => {
|
||||||
detail[key] = value
|
detail[key] = value
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ export default {
|
|||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<ai-search-bar>
|
<ai-search-bar>
|
||||||
<template #left>
|
<template #left>
|
||||||
<ai-download :instance="instance" url="/api/breed/death/export" :params="{...search,...page}" :fileName="`${pageTitle}导出表-${Date.now()}`"/>
|
<ai-download :instance="instance" url="/api/breed/death/exportAudit" :params="{...search,...page}" :fileName="`${pageTitle}导出表-${Date.now()}`"/>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<ai-table :tableData="tableData" :colConfigs="columns" :dict="dict" @getList="getTableData"
|
<ai-table :tableData="tableData" :colConfigs="columns" :dict="dict" @getList="getTableData"
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getDetail() {
|
getDetail() {
|
||||||
const {id} = this.$route.query
|
const {id} = this.$route.query
|
||||||
return id && this.instance.post("/api/breed/out/getAuditInfo", null, {params: {id}}).then(res => {
|
return id && this.instance.post("/api/breed/out/getAuditPage", null, {params: {id}}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
const detail = res.data
|
const detail = res.data
|
||||||
return this.detail = {...detail}
|
return this.detail = {...detail}
|
||||||
|
|||||||
Reference in New Issue
Block a user