编目问题BUG修改 以及转办判断完善

This commit is contained in:
a0049873 2022-11-17 17:14:44 +08:00
parent 51271131b6
commit 8939f054df
3 changed files with 19 additions and 19 deletions

View File

@ -156,7 +156,7 @@ export default {
type: Array
}
},
data() {
data () {
return {
dataList: [],
dataView: [],
@ -171,16 +171,16 @@ export default {
}
},
watch: {
dataList(item) {
dataList (item) {
if (item) {
this.dataList = item
}
},
insertList(val) {
insertList (val) {
if (val) {
if (this.dataForm.type === '应用资源') {
this.dataView = val.filter(
(item) => item.name === this.dataForm.type + '一'
(item) => item.name === this.dataForm.type
)[0]
this.dataForm.infoList.map((item, index) => {
this.dataView.children.map((itemView, indexView) => {
@ -253,7 +253,7 @@ export default {
(item) => item.attrType === '组件类型'
)
this.dataView = val.filter(
(item) => item.name === this.dataForm.type + '一'
(item) => item.name === this.dataForm.type
)[0]
this.dataView = this.dataView.children.filter(
(item) => item.name === componentType[0].attrValue
@ -366,7 +366,7 @@ export default {
},
computed: {},
methods: {
videoAndImg(link) {
videoAndImg (link) {
if (link) {
window.open(link)
} else {
@ -376,7 +376,7 @@ export default {
})
}
},
deptName() {
deptName () {
console.log(this.dataForm.deptId)
this.$http
.get(`/sys/dept/${this.dataForm.deptId}`)
@ -385,7 +385,7 @@ export default {
this.unit = res.data.name
})
},
queryPartAppByKeyIdFunction(index, indexSon, indexSonSon) {
queryPartAppByKeyIdFunction (index, indexSon, indexSonSon) {
if (this.dataForm.type === '组件服务') {
this.$http
.get(
@ -424,8 +424,8 @@ export default {
}
}
},
created() { },
mounted() {
created () { },
mounted () {
this.deptName()
}
}

View File

@ -155,7 +155,7 @@ export default {
'/act/task/getTaskVariables?taskId=' + this.$route.params.taskId + '&variableName=allowEntrust'
).then(entrust => {
console.log('11111111111111', entrust, this.dataForm)
if (entrust.data.data.allowEntrust === true) {
if (entrust.data.data && entrust.data.data.allowEntrust === true) {
this.taskEntrustFlag2 = true
if (this.taskEntrustFlag && this.taskEntrustFlag2) {
this.$alert('当前审核部门为' + this.dataForm.deptName + ',该部门未配置审核人,请联系运维工程师配置完成后进行流程转办!', '流程提醒', {
@ -249,7 +249,7 @@ export default {
},
// 退
agreeOrNot: debounce(
function (data,type) {
function (data, type) {
if (type === '同意') {
if (this.input !== '') {
console.log('this.dataForm', this.dataForm)

View File

@ -2,7 +2,7 @@
* @Author: hisense.liangjunhua
* @Date: 2022-06-29 15:59:51
* @LastEditors: Light
* @LastEditTime: 2022-11-01 15:00:19
* @LastEditTime: 2022-11-17 17:09:03
* @Description: 告诉大家这是什么
-->
<!-- 流程业务表单 -->
@ -172,7 +172,7 @@ export default {
this.$http.get('/sys/user/info').then(({ data: res }) => {
res.data.roleIdList.map(val => {
this.$http.get('/sys/role/' + val).then(role => {
console.log('role',role);
console.log('role', role)
if (role.data.data.name === '流程管理员') {
this.taskEntrustFlag = true
}
@ -194,7 +194,7 @@ export default {
formSaveErrorCallback: null
}
//
this.initProcessMultiple(callbacks);
this.initProcessMultiple(callbacks)
},
computed: {
// dataRule () {
@ -282,7 +282,7 @@ export default {
.get(
`/act/task/getTaskVariables?${params}&variableName=allowEntrust`
).then(entrust => {
if (entrust.data.data.allowEntrust === true) {
if (entrust.data.data && entrust.data.data.allowEntrust === true) {
this.taskEntrustFlag2 = true
if (this.taskEntrustFlag && this.taskEntrustFlag2) {
this.$alert('当前审核部门为' + res.data.tAbilityApplicationDTOList[0].resourceOwnerDept.name + ',该部门未配置审核人,请联系运维工程师配置完成后进行流程转办!', '流程提醒', {
@ -414,9 +414,9 @@ export default {
},
// 退
agreeOrNot: debounce(
function (data,type) {
//console.log('datadata',data);
//console.log('tttttt',type);
function (data, type) {
// console.log('datadata',data);
// console.log('tttttt',type);
if (type === '同意') {
if (this.input !== '') {
console.log('this.dataForm', this.dataForm)