修改禅道已知bug

This commit is contained in:
qq787203167
2022-05-07 16:40:42 +08:00
parent 63836c5c76
commit f85b94a84e
4 changed files with 116 additions and 5 deletions
@@ -145,7 +145,8 @@
@click="deleteLib(record)">
{{ $t('deleteLib') }}
</a>
<a @click="addProcess(record)">发起</a>
<!-- <a class="text-operation" @click="resultReportedClick(record)">{{$t('resultReported')}}</a>-->
<a @click="addProcess(record)">发起</a>
</span>
<span slot="titleName" slot-scope="text,record" :title="text">
{{ text && text.length > 10 ? text.slice(0, 9) + '...' : text }}
@@ -260,6 +261,7 @@
</span>
</a-table>
</a-modal>
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
</a-card>
</template>
@@ -267,6 +269,7 @@
import ImportFile from '@/components/ImportFile/index'
import listAddModel from './listAddModel'
import listEditModel from './listEditModel'
import uploadFile from '@/components/uploadFile/file'
import batSetting from './batSetting'
import transferList from './transferList'
import fixedPlate from './fixedPlateForm'
@@ -283,6 +286,7 @@
listAddModel,
listEditModel,
batSetting,
uploadFile,
transferList,
globalAdvancedQuery,
fixedPlate
@@ -492,7 +496,7 @@
title: this.$t('operation'),
align: 'center',
fixed: 'right',
width: 140,
width: 210,
scopedSlots: { customRender: 'operation' }
}
],
@@ -819,6 +823,7 @@
this.$message.warning(this.$t('selectLeastOne'))
}
},
initiateTaskConfirmationClick(name) {
this.timeName = name
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -846,6 +851,7 @@
this.$message.warning(this.$t('selectLeastOne'))
}
},
handleOk() {
this.$refs.ruleForm.validate(valid => {
if (valid) {
@@ -891,6 +897,7 @@
}
})
},
startProcess(value) {
let query = {
type: 1,
@@ -905,6 +912,7 @@
}
})
},
completeTask(value, taskId) {
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
value.handlingTime = handlingTime
@@ -926,6 +934,7 @@
}
})
},
getRowKeys(value, callBack) {
let isTrue = true
for (let i = 0; i < this.dataSource.length; i++) {
@@ -957,6 +966,7 @@
callBack()
}
},
updateStatusBatch(num, selectedRowKeys) {
let _this = this
let query = {
@@ -978,6 +988,7 @@
}
})
},
submitClick(num) {
let _this = this
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
@@ -994,13 +1005,16 @@
this.$message.warning(this.$t('selectLeastOne'))
}
},
handleCancel() {
this.formInline = {}
this.visible = false
},
dateChange(item) {
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
},
pdfPreview(fileQuery) {
let fileName = fileQuery.fileName
let index1 = fileName.lastIndexOf('.')
@@ -1018,6 +1032,7 @@
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
}
},
pdfPreviewClick(name, id) {
let fileName = name
let index1 = fileName.lastIndexOf('.')
@@ -1035,9 +1050,11 @@
downloadFile('/sys/common/downLoadFile', name, { id: id })
}
},
download(item) {
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id })
},
clickButtonToUpload(item) {
this.loading = true
this.visibleFile = true
@@ -1058,6 +1075,7 @@
}
})
},
bringInRelevantPersonnelClick() {
let _this = this
this.$confirm({
@@ -1074,14 +1092,16 @@
}
})
},
addProcess(val) {
let num = 2
// for (let i = 0; i < 3; i++) {
// setTimeout(() => {
this.startProcessDesign(val)
this.startProcessDesign(val)
// }, 500)
// }
},
startProcessDesign(value, num) {
let query = {
type: 2,
@@ -1093,6 +1113,7 @@
}
})
},
completeTaskDesign(value, taskId) {
let query = {
userid: this.userInfo().id,
@@ -1110,6 +1131,34 @@
this.$message.warning(this.$t('operationFailed'))
}
})
},
resultReportedClick(val) {
this.clickButtonToUploadFile()
},
clickButtonToUploadFile(item) {
this.$refs.uploadFile.perentHandleFunc()
this.$refs.uploadFile.visible = true
this.uploadName = item
getAction('sys/common/getFileInfos', { id: this.formInline[item] }).then((res) => {
if (res.success) {
this.$refs.uploadFile.perentHandleFunc(res.result)
} else {
this.$refs.uploadFile.perentHandleFunc()
}
})
},
/** 上传文件的回调 */
uploadSuccess(data) {
let attIdList = []
if (data && data.length > 0) {
data.map(item => {
attIdList.push(item.id || data.name)
})
}
/** 赋值给当前对应的表单文件 */
this.formInline[this.uploadName] = attIdList.join(',')
this.formInline = { ...this.formInline }
}
}
}