diff --git a/jero-web/src/views/toDoCenter/projectParameterTasks/index.vue b/jero-web/src/views/toDoCenter/projectParameterTasks/index.vue index 8e90ee156..04e2eb151 100644 --- a/jero-web/src/views/toDoCenter/projectParameterTasks/index.vue +++ b/jero-web/src/views/toDoCenter/projectParameterTasks/index.vue @@ -50,17 +50,17 @@ {{text}} - {{'--'}} + {{'--'}} {{text}} - {{'--'}} + {{'--'}} {{text}} - {{'--'}} + {{'--'}}
@@ -86,7 +86,7 @@ export default { name: 'index', components: {}, - mixins:[ResizeHeader, ResizeColumnProvide], + mixins: [ResizeHeader, ResizeColumnProvide], data() { return { queryParam: {}, @@ -98,8 +98,8 @@ pageNo: 1, total: 0, loading: false, - url:{ - list:'', + url: { + list: '' }, columns: [ { @@ -178,27 +178,27 @@ let userType = '' let valueList = [] getAction('params/collectManifest/getLoginUserType', query).then((res) => { - if(res.result){ - res.result.find((item,index) => { - if(item.value){ + 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 flag = valueList.find((item, index) => { + return item == 'dre' + }) let _this = this item.type = '1' - item.statusFlag = '4' - item.userType = flag == undefined ? valueList[0] : 'dre' + item.statusFlag = '4,7' + item.userType = flag == undefined ? valueList[0] : 'dre' this.loading = false let newUrl = _this.$router.resolve({ path: '/ParameterItemCollection', - query: item + query: item // projectName:this.$route.query.projectName }) window.open(newUrl.href, '_blank') - }else{ + } else { this.loading = false } }) @@ -213,27 +213,27 @@ let userType = '' let valueList = [] getAction('params/collectManifest/getLoginUserType', query).then((res) => { - if(res.result){ - res.result.find((item,index) => { - if(item.value){ + if (res.result) { + res.result.find((item, index) => { + if (item.value) { valueList.push(item.value) } }) - let flag = valueList.find((item,index) => { + let flag = valueList.find((item, index) => { return item == 'sdt' }) let _this = this item.type = '1' - item.statusFlag = '2' - item.userType = flag == undefined ? valueList[0] : 'sdt' + item.statusFlag = '2,5' + item.userType = flag == undefined ? valueList[0] : 'sdt' this.loading = false let newUrl = _this.$router.resolve({ path: '/ParameterItemCollection', - query: item + query: item // projectName:this.$route.query.projectName }) window.open(newUrl.href, '_blank') - }else{ + } else { this.loading = false } }) @@ -241,6 +241,9 @@ }, //参数待发起数量 waitCollectClick(item) { + if (item.flag == '1') { + return + } let query = { paramsManifestId: item.id, projectId: item.projectId @@ -249,27 +252,27 @@ let userType = '' let valueList = [] getAction('params/collectManifest/getLoginUserType', query).then((res) => { - if(res.result){ - res.result.find((item,index) => { - if(item.value){ + if (res.result) { + res.result.find((item, index) => { + if (item.value) { valueList.push(item.value) } }) - let flag = valueList.find((item,index) => { + let flag = valueList.find((item, index) => { return item == 'homo' }) let _this = this item.type = '1' - item.statusFlag = '1' - item.userType = flag == undefined ? valueList[0] : 'homo' + item.statusFlag = '1,3' + item.userType = flag == undefined ? valueList[0] : 'homo' this.loading = false let newUrl = _this.$router.resolve({ path: '/ParameterItemCollection', - query: item + query: item // projectName:this.$route.query.projectName }) window.open(newUrl.href, '_blank') - }else{ + } else { this.loading = false } }) @@ -312,7 +315,7 @@ \ No newline at end of file