参数收集待办任务跳转修改
This commit is contained in:
@@ -167,42 +167,97 @@
|
||||
},
|
||||
//待填写数量
|
||||
waitFillClick(item) {
|
||||
let _this = this
|
||||
item.type = '1'
|
||||
item.userType = 'dre'
|
||||
console.log(item)
|
||||
let newUrl = _this.$router.resolve({
|
||||
path: '/ParameterItemCollection',
|
||||
query: item
|
||||
// projectName:this.$route.query.projectName
|
||||
let query = {
|
||||
paramsManifestId: item.id,
|
||||
projectId: item.projectId
|
||||
}
|
||||
this.loading = true
|
||||
let userType = ''
|
||||
let valueList = []
|
||||
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) {
|
||||
let _this = this
|
||||
item.type = '1'
|
||||
item.userType = 'sdt'
|
||||
console.log(item)
|
||||
let newUrl = _this.$router.resolve({
|
||||
path: '/ParameterItemCollection',
|
||||
query: item
|
||||
// projectName:this.$route.query.projectName
|
||||
let query = {
|
||||
paramsManifestId: item.id,
|
||||
projectId: item.projectId
|
||||
}
|
||||
this.loading = true
|
||||
let userType = ''
|
||||
let valueList = []
|
||||
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) {
|
||||
let _this = this
|
||||
item.type = '1'
|
||||
item.userType = 'homo'
|
||||
console.log(item)
|
||||
let newUrl = _this.$router.resolve({
|
||||
path: '/ParameterItemCollection',
|
||||
query: item
|
||||
// projectName:this.$route.query.projectName
|
||||
let query = {
|
||||
paramsManifestId: item.id,
|
||||
projectId: item.projectId
|
||||
}
|
||||
this.loading = true
|
||||
let userType = ''
|
||||
let valueList = []
|
||||
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) {
|
||||
this.pageNo = 1
|
||||
|
||||
Reference in New Issue
Block a user