|
|
|
@ -39,18 +39,14 @@
|
|
|
|
<el-col :span="10" >
|
|
|
|
<el-col :span="10" >
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
<div class="el-descriptions__header el-descriptions__title">资产历史</div>
|
|
|
|
<div class="el-descriptions__header el-descriptions__title">资产历史</div>
|
|
|
|
<el-timeline>
|
|
|
|
<Timeline>
|
|
|
|
<el-timeline-item
|
|
|
|
<TimelineItem v-for="(item,index) in histories" :key="item.id">
|
|
|
|
v-for="(activity, index) in activities"
|
|
|
|
<p>{{ item.riqi }}</p>
|
|
|
|
:key="index"
|
|
|
|
<div v-html="item.neirong"></div>
|
|
|
|
:icon="activity.icon"
|
|
|
|
<el-image style="width: 78%;height: 160px;" v-for="img in item.id_his_tupian_files_asset_history_id_relation" :src="img.url" fit="contain"></el-image>
|
|
|
|
:type="activity.type"
|
|
|
|
</TimelineItem>
|
|
|
|
:color="activity.color"
|
|
|
|
|
|
|
|
:size="activity.size"
|
|
|
|
</Timeline>
|
|
|
|
:timestamp="activity.timestamp">
|
|
|
|
|
|
|
|
{{activity.content}}
|
|
|
|
|
|
|
|
</el-timeline-item>
|
|
|
|
|
|
|
|
</el-timeline>
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
@ -58,13 +54,14 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { show } from "@/api/system/baseForm"
|
|
|
|
import { show, index } from "@/api/system/baseForm";
|
|
|
|
import { show as formShow } from "@/api/system/customForm";
|
|
|
|
import { show as formShow } from "@/api/system/customForm";
|
|
|
|
import { getparameter } from '@/api/system/dictionary'
|
|
|
|
import { getparameter } from '@/api/system/dictionary'
|
|
|
|
import { listdept } from '@/api/system/department'
|
|
|
|
import { listdept } from '@/api/system/department'
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
histories: [],
|
|
|
|
picList: [],
|
|
|
|
picList: [],
|
|
|
|
detail: {},
|
|
|
|
detail: {},
|
|
|
|
fields: [],
|
|
|
|
fields: [],
|
|
|
|
@ -74,24 +71,7 @@ export default {
|
|
|
|
tableName: "",
|
|
|
|
tableName: "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
activities: [{
|
|
|
|
|
|
|
|
content: '支持使用图标',
|
|
|
|
|
|
|
|
timestamp: '2018-04-12 20:46',
|
|
|
|
|
|
|
|
size: 'large',
|
|
|
|
|
|
|
|
type: 'primary',
|
|
|
|
|
|
|
|
icon: 'el-icon-more'
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
content: '支持自定义颜色',
|
|
|
|
|
|
|
|
timestamp: '2018-04-03 20:46',
|
|
|
|
|
|
|
|
color: '#0bbd87'
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
content: '支持自定义尺寸',
|
|
|
|
|
|
|
|
timestamp: '2018-04-03 20:46',
|
|
|
|
|
|
|
|
size: 'large'
|
|
|
|
|
|
|
|
}, {
|
|
|
|
|
|
|
|
content: '默认样式的节点',
|
|
|
|
|
|
|
|
timestamp: '2018-04-03 20:46'
|
|
|
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
@ -180,6 +160,22 @@ export default {
|
|
|
|
this.detail = detail
|
|
|
|
this.detail = detail
|
|
|
|
|
|
|
|
|
|
|
|
this.picList = detail?.id_assets_picture_files_file_id_relation?.map(i => i.url)
|
|
|
|
this.picList = detail?.id_assets_picture_files_file_id_relation?.map(i => i.url)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async getHistory () {
|
|
|
|
|
|
|
|
const res = await index({
|
|
|
|
|
|
|
|
page: 1,
|
|
|
|
|
|
|
|
page_size: 999,
|
|
|
|
|
|
|
|
table_name: "asset_histories",
|
|
|
|
|
|
|
|
filter: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
key: 'asset_id',
|
|
|
|
|
|
|
|
op: 'eq',
|
|
|
|
|
|
|
|
value: this.detail.id
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.histories = res.data
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
@ -211,7 +207,9 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getFields()
|
|
|
|
this.getFields().then(res => {
|
|
|
|
|
|
|
|
this.getHistory()
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|