BUG修改

This commit is contained in:
a0049873 2022-11-24 17:34:45 +08:00
parent 32573971ae
commit 4ba21bd41e
2 changed files with 15 additions and 9 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua * @Author: hisense.liangjunhua
* @Date: 2022-06-29 15:59:51 * @Date: 2022-06-29 15:59:51
* @LastEditors: Light * @LastEditors: Light
* @LastEditTime: 2022-11-17 17:39:31 * @LastEditTime: 2022-11-24 17:22:23
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
--> -->
<!-- 流程业务表单 --> <!-- 流程业务表单 -->
@ -180,7 +180,7 @@ export default {
}) })
}) })
// KEY // KEY
console.log('params=================>', this.$route, this.$route.params) console.log('params=================>', this.$route, this.$route.params, this.dataForm)
this.dataForm.taskId = this.$route.params.taskId this.dataForm.taskId = this.$route.params.taskId
this.dataForm.instanceId = this.$route.params.processInstanceId this.dataForm.instanceId = this.$route.params.processInstanceId
this.init() this.init()
@ -262,6 +262,7 @@ export default {
getInfo () { getInfo () {
let params = '' let params = ''
if (this.dataForm.taskId) { if (this.dataForm.taskId) {
console.log('获取信息')
params = `taskId=${this.dataForm.taskId}` params = `taskId=${this.dataForm.taskId}`
this.$http this.$http
.get( .get(
@ -277,7 +278,9 @@ export default {
this.dataForm, this.dataForm,
'elas============================' 'elas============================'
) )
this.deptName = res.data.tAbilityApplicationDTOList[0].resourceOwnerDept.name if (res.data.tAbilityApplicationDTOList[0].resourceOwnerDept) {
this.deptName = res.data.tAbilityApplicationDTOList[0].resourceOwnerDept.name
}
this.$http this.$http
.get( .get(
`/act/task/getTaskVariables?${params}&variableName=allowEntrust` `/act/task/getTaskVariables?${params}&variableName=allowEntrust`
@ -297,6 +300,7 @@ export default {
} }
} }
}) })
console.log('获取信息', res.data)
if (res.data.tAbilityApplicationDTOList[0].applicationScene) { if (res.data.tAbilityApplicationDTOList[0].applicationScene) {
res.data.tAbilityApplicationDTOList[0].applicationSceneStr = '' res.data.tAbilityApplicationDTOList[0].applicationSceneStr = ''
res.data.tAbilityApplicationDTOList[0].applicationScene.map( res.data.tAbilityApplicationDTOList[0].applicationScene.map(
@ -359,6 +363,7 @@ export default {
this.dataForm, this.dataForm,
'elas============================' 'elas============================'
) )
console.log('获取信息2', res.data)
if (res.data[0].applicationScene) { if (res.data[0].applicationScene) {
res.data[0].applicationSceneStr = '' res.data[0].applicationSceneStr = ''
res.data[0].applicationScene.map((val, index) => { res.data[0].applicationScene.map((val, index) => {
@ -416,7 +421,6 @@ export default {
agreeOrNot: debounce( agreeOrNot: debounce(
function (data, type) { function (data, type) {
if (type === '同意') { if (type === '同意') {
const params = qs.stringify({ const params = qs.stringify({
taskId: this.dataForm.taskId, taskId: this.dataForm.taskId,
comment: this.input || '同意' comment: this.input || '同意'

View File

@ -36,7 +36,7 @@
</div> </div>
<div class="footer-button" v-if="showFlag"> <div class="footer-button" v-if="showFlag">
<a-button type="primary" @click="applyNow(cameraDataList[defaultIndex])">立即申请</a-button> <a-button type="primary" @click="applyNow(cameraDataList[defaultIndex])">立即申请</a-button>
<a-button type="primary" style="margin-left:20px" @click="addIntoCart(cameraDataList[defaultIndex])">加入申购车</a-button> <a-button type="primary" style="margin-left:20px" @click="addIntoCart(cameraDataList[defaultIndex])">加入申请列表</a-button>
</div> </div>
</div> </div>
</div> </div>
@ -337,10 +337,12 @@
padding: 5px; padding: 5px;
} }
.footer-button{ .footer-button{
width: 750px; display: flex;
//height:50px; justify-content: center;
text-align: center; // width: 750px;
padding-top:5px; //height:50px;
text-align: center;
padding-top:5px;
} }
} }
.ant-carousel { .ant-carousel {