参数收集待办任务跳转修改
This commit is contained in:
@@ -670,12 +670,11 @@
|
|||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.$route.query)
|
this.GetgetLoginUserType()
|
||||||
|
console.log(this.currentPersonRole)
|
||||||
if(this.$route.query.type == '1'){
|
if(this.$route.query.type == '1'){
|
||||||
this.handleOkRoleSwitching()
|
this.handleOkRoleSwitching()
|
||||||
}
|
}
|
||||||
this.GetgetLoginUserType()
|
|
||||||
console.log(this.currentPersonRole)
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (this.currentPersonRole == 'dre') {
|
if (this.currentPersonRole == 'dre') {
|
||||||
this.handlePreservation()
|
this.handlePreservation()
|
||||||
@@ -710,7 +709,7 @@
|
|||||||
handleOkRoleSwitching() {
|
handleOkRoleSwitching() {
|
||||||
if(this.$route.query.type == '1'){
|
if(this.$route.query.type == '1'){
|
||||||
let query = {
|
let query = {
|
||||||
userType:this.$route.query.userType,
|
userType:this.formInlineRoleSwitching.roleSwitchingCode ? this.formInlineRoleSwitching.roleSwitchingCode : this.$route.query.userType,
|
||||||
paramsManifestId: this.$route.query.id,
|
paramsManifestId: this.$route.query.id,
|
||||||
projectId: this.$route.query.projectId,
|
projectId: this.$route.query.projectId,
|
||||||
userId: this.userInfo().id
|
userId: this.userInfo().id
|
||||||
@@ -718,10 +717,10 @@
|
|||||||
this.confirmLoadingRoleSwitching = true
|
this.confirmLoadingRoleSwitching = true
|
||||||
postAction('/params/userTypeLog/edit', query).then((res) => {
|
postAction('/params/userTypeLog/edit', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.currentPersonRole = this.$route.query.userType
|
this.currentPersonRole = this.formInlineRoleSwitching.roleSwitchingCode ? this.formInlineRoleSwitching.roleSwitchingCode : this.$route.query.userType
|
||||||
this.visibleRoleSwitching = false
|
this.visibleRoleSwitching = false
|
||||||
this.confirmLoadingRoleSwitching = false
|
this.confirmLoadingRoleSwitching = false
|
||||||
localStorage.setItem('currentPersonRole', JSON.stringify(this.$route.query.userType))
|
localStorage.setItem('currentPersonRole', JSON.stringify(this.formInlineRoleSwitching.roleSwitchingCode ? this.formInlineRoleSwitching.roleSwitchingCode : this.$route.query.userType))
|
||||||
this.RoleType.forEach((item,index) => {
|
this.RoleType.forEach((item,index) => {
|
||||||
if(item.value == this.currentPersonRole){
|
if(item.value == this.currentPersonRole){
|
||||||
this.rolename = item.label
|
this.rolename = item.label
|
||||||
|
|||||||
@@ -167,42 +167,97 @@
|
|||||||
},
|
},
|
||||||
//待填写数量
|
//待填写数量
|
||||||
waitFillClick(item) {
|
waitFillClick(item) {
|
||||||
let _this = this
|
let query = {
|
||||||
item.type = '1'
|
paramsManifestId: item.id,
|
||||||
item.userType = 'dre'
|
projectId: item.projectId
|
||||||
console.log(item)
|
}
|
||||||
let newUrl = _this.$router.resolve({
|
this.loading = true
|
||||||
path: '/ParameterItemCollection',
|
let userType = ''
|
||||||
query: item
|
let valueList = []
|
||||||
// projectName:this.$route.query.projectName
|
getAction('params/collectManifest/getLoginUserType', query).then((res) => {
|
||||||
|
if(res.result){
|
||||||
|
res.result.find((item,index) => {
|
||||||
|
if(item.value){
|
||||||
|
valueList.push(item.value)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
let flag = valueList.find((item,index) => {
|
||||||
|
return item == 'dre'
|
||||||
|
})
|
||||||
|
let _this = this
|
||||||
|
item.type = '1'
|
||||||
|
item.userType = _this.flag == undefined ? valueList[0] : 'dre'
|
||||||
|
let newUrl = _this.$router.resolve({
|
||||||
|
path: '/ParameterItemCollection',
|
||||||
|
query: item
|
||||||
|
// projectName:this.$route.query.projectName
|
||||||
|
})
|
||||||
|
window.open(newUrl.href, '_blank')
|
||||||
|
}
|
||||||
})
|
})
|
||||||
window.open(newUrl.href, '_blank')
|
|
||||||
},
|
},
|
||||||
//待分配填写人数量
|
//待分配填写人数量
|
||||||
waitSdtClick(item) {
|
waitSdtClick(item) {
|
||||||
let _this = this
|
let query = {
|
||||||
item.type = '1'
|
paramsManifestId: item.id,
|
||||||
item.userType = 'sdt'
|
projectId: item.projectId
|
||||||
console.log(item)
|
}
|
||||||
let newUrl = _this.$router.resolve({
|
this.loading = true
|
||||||
path: '/ParameterItemCollection',
|
let userType = ''
|
||||||
query: item
|
let valueList = []
|
||||||
// projectName:this.$route.query.projectName
|
getAction('params/collectManifest/getLoginUserType', query).then((res) => {
|
||||||
|
if(res.result){
|
||||||
|
res.result.find((item,index) => {
|
||||||
|
if(item.value){
|
||||||
|
valueList.push(item.value)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
let flag = valueList.find((item,index) => {
|
||||||
|
return item == 'sdt'
|
||||||
|
})
|
||||||
|
let _this = this
|
||||||
|
item.type = '1'
|
||||||
|
item.userType = _this.flag == undefined ? valueList[0] : 'sdt'
|
||||||
|
let newUrl = _this.$router.resolve({
|
||||||
|
path: '/ParameterItemCollection',
|
||||||
|
query: item
|
||||||
|
// projectName:this.$route.query.projectName
|
||||||
|
})
|
||||||
|
window.open(newUrl.href, '_blank')
|
||||||
|
}
|
||||||
})
|
})
|
||||||
window.open(newUrl.href, '_blank')
|
|
||||||
},
|
},
|
||||||
//参数待发起数量
|
//参数待发起数量
|
||||||
waitCollectClick(item) {
|
waitCollectClick(item) {
|
||||||
let _this = this
|
let query = {
|
||||||
item.type = '1'
|
paramsManifestId: item.id,
|
||||||
item.userType = 'homo'
|
projectId: item.projectId
|
||||||
console.log(item)
|
}
|
||||||
let newUrl = _this.$router.resolve({
|
this.loading = true
|
||||||
path: '/ParameterItemCollection',
|
let userType = ''
|
||||||
query: item
|
let valueList = []
|
||||||
// projectName:this.$route.query.projectName
|
getAction('params/collectManifest/getLoginUserType', query).then((res) => {
|
||||||
|
if(res.result){
|
||||||
|
res.result.find((item,index) => {
|
||||||
|
if(item.value){
|
||||||
|
valueList.push(item.value)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
let flag = valueList.find((item,index) => {
|
||||||
|
return item == 'homo'
|
||||||
|
})
|
||||||
|
let _this = this
|
||||||
|
item.type = '1'
|
||||||
|
item.userType = _this.flag == undefined ? valueList[0] : 'homo'
|
||||||
|
let newUrl = _this.$router.resolve({
|
||||||
|
path: '/ParameterItemCollection',
|
||||||
|
query: item
|
||||||
|
// projectName:this.$route.query.projectName
|
||||||
|
})
|
||||||
|
window.open(newUrl.href, '_blank')
|
||||||
|
}
|
||||||
})
|
})
|
||||||
window.open(newUrl.href, '_blank')
|
|
||||||
},
|
},
|
||||||
SizeChange(page, pageSize) {
|
SizeChange(page, pageSize) {
|
||||||
this.pageNo = 1
|
this.pageNo = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user