|
|
@@ -3,7 +3,7 @@
|
|
|
<div>
|
|
|
<el-dropdown @command="handleCommand">
|
|
|
<el-button type="primary" size="mini">
|
|
|
- 创建汇报
|
|
|
+ 开始汇报
|
|
|
</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item :command="{name:item.reportname,id:item.sys_workreportmodelid}" v-for="(item,index) in modelList" :key="index">{{ item.reportname }}</el-dropdown-item>
|
|
|
@@ -45,7 +45,6 @@
|
|
|
|
|
|
<script>
|
|
|
import upload from '@/SManagement/orderclue/components/upload'
|
|
|
-import { log } from '@antv/g2plot/lib/utils'
|
|
|
export default {
|
|
|
components:{upload},
|
|
|
data () {
|
|
|
@@ -82,6 +81,7 @@ export default {
|
|
|
this.detail = res.data
|
|
|
this.detail.forEach(item => {
|
|
|
item.content.forEach(item2 => {
|
|
|
+ if (item.title == '数据统计') return
|
|
|
item2.content = `${item2.rowindex}、${item2.content}`
|
|
|
})
|
|
|
})
|
|
|
@@ -97,7 +97,7 @@ export default {
|
|
|
let copyDetail = JSON.parse(JSON.stringify(this.detail))
|
|
|
copyDetail.forEach((item,index) => {
|
|
|
if (index >= result.length || !item.editable) return
|
|
|
- item.content = [result[index]]
|
|
|
+ item.content = [result[index-1]]
|
|
|
})
|
|
|
let res = await this.$api.requested({
|
|
|
"id": "20230523094702",
|
|
|
@@ -113,19 +113,24 @@ export default {
|
|
|
"ownerid": res.data.sys_workreportid,
|
|
|
"usetype": 'default',
|
|
|
}
|
|
|
- this.loading = true
|
|
|
- let index = 0
|
|
|
- this.$refs['upload'].toUpload(() => {
|
|
|
- if (!index) this.uploadIndex = this.$refs.upload.fileList.length
|
|
|
- index++
|
|
|
- if (this.uploadIndex == index) {
|
|
|
- this.loading = false
|
|
|
- this.drawer = false
|
|
|
- res.data.name = res.data.createby
|
|
|
- this.$emit('onSuccess',res.data)
|
|
|
- }
|
|
|
-
|
|
|
- })
|
|
|
+ if (!this.$refs.upload.fileList.length) {
|
|
|
+ this.drawer = false
|
|
|
+ res.data.name = res.data.createby
|
|
|
+ this.$emit('onSuccess',res.data)
|
|
|
+ } else {
|
|
|
+ this.loading = true
|
|
|
+ let index = 0
|
|
|
+ this.$refs['upload'].toUpload(() => {
|
|
|
+ if (!index) this.uploadIndex = this.$refs.upload.fileList.length
|
|
|
+ index++
|
|
|
+ if (this.uploadIndex == index) {
|
|
|
+ this.loading = false
|
|
|
+ this.drawer = false
|
|
|
+ res.data.name = res.data.createby
|
|
|
+ this.$emit('onSuccess',res.data)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
console.log(res);
|
|
|
},
|