|
@@ -3,17 +3,21 @@
|
|
|
<div class="detail-header">
|
|
|
<span>{{ detail.createby }}-{{ detail.reportname }}</span>
|
|
|
<span>{{ detail.createdate }}</span>
|
|
|
+ <customBtn
|
|
|
+ class="inline-16"
|
|
|
+ btnName="删 除"
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ style="position:absolute;left:0;top:0"
|
|
|
+ message="确定删除当前汇报吗?"
|
|
|
+ idName="20230602105902"
|
|
|
+ keyName="sys_workreportid"
|
|
|
+ :id="id"
|
|
|
+ @onSuccess="$emit('deleteSuccess',id);id=''"
|
|
|
+ v-if="tool.checkAuth($route.name,'delete') && id"
|
|
|
+ />
|
|
|
</div>
|
|
|
<div class="detail-content" v-if="detail.items">
|
|
|
- <!-- <div class="content-item" v-for="item in detail.items">
|
|
|
- <p class="normal-title" style="margin-bottom:10px">{{ item.title }}</p>
|
|
|
- <div v-if="item.content[0]">
|
|
|
- <div v-for="(item2,index) in item.content[0].content" style="font-size:12px">
|
|
|
- <span v-if="item2">{{ item2 }}</span>
|
|
|
- <span style="font-size:12px;color:#cccccc" v-else>暂无</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
<div class="content-box"></div>
|
|
|
<div class="kong"></div>
|
|
|
<file-item
|
|
@@ -30,18 +34,18 @@
|
|
|
|
|
|
<script>
|
|
|
import FileItem from '@/SManagement/orderclue/components/file/index2'
|
|
|
-import { P } from '@antv/g2plot'
|
|
|
-import { log } from '@antv/g2plot/lib/utils'
|
|
|
export default {
|
|
|
components:{FileItem},
|
|
|
data () {
|
|
|
return {
|
|
|
- detail:{}
|
|
|
+ detail:{},
|
|
|
+ id:''
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
async getDetail (id) {
|
|
|
if (!id) return
|
|
|
+ this.id = id
|
|
|
let res = await this.$api.requested({
|
|
|
"id": "20230524092002",
|
|
|
"content": {
|
|
@@ -118,6 +122,7 @@ export default {
|
|
|
.detail .detail-header {
|
|
|
text-align: center;
|
|
|
margin-bottom: 20px;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
.detail .detail-header span:nth-of-type(2) {
|
|
|
font-size: 12px;
|
|
@@ -131,6 +136,6 @@ export default {
|
|
|
}
|
|
|
.normal-title{
|
|
|
font-size: 14px;
|
|
|
- margin-bottom:10px
|
|
|
+ margin-bottom:10px;
|
|
|
}
|
|
|
</style>
|