|
@@ -179,7 +179,7 @@ export default {
|
|
|
this.taskReTaskStateCount()
|
|
|
},
|
|
|
getCount(id, node) {
|
|
|
- console.log(this.sourceData,id,node);
|
|
|
+ //console.log(this.sourceData,id,node);
|
|
|
if (!this.sourceData[id]) {
|
|
|
return 0;
|
|
|
}
|
|
@@ -191,18 +191,18 @@ export default {
|
|
|
},
|
|
|
//模糊查询,每个面板中查询自定义字段的选项
|
|
|
handleSearch(item) {
|
|
|
- console.log(item, this.sourceData, this.sourceQuery);
|
|
|
+ //console.log(item, this.sourceData, this.sourceQuery);
|
|
|
this.sourceData[item.id] = []
|
|
|
this.sourceQuery[item.id].checked = []
|
|
|
this.sourceQuery[item.id].current = 1
|
|
|
- // console.log(item);
|
|
|
+ // //console.log(item);
|
|
|
let sourceQueryName = this.sourceQuery[item.id].name
|
|
|
let a = {
|
|
|
fieldId: item.id,
|
|
|
name: sourceQueryName,
|
|
|
}
|
|
|
this.$api.getPatentField(a).then(res => {
|
|
|
- console.log("查询成功", res);
|
|
|
+ //console.log("查询成功", res);
|
|
|
res.data.map(item => {
|
|
|
item.label = item.name
|
|
|
// item.key = item.id
|
|
@@ -213,7 +213,7 @@ export default {
|
|
|
|
|
|
},
|
|
|
onChangeTree1(a,b){
|
|
|
- console.log(a,b)
|
|
|
+ //console.log(a,b)
|
|
|
// var c = this.taskSources1.findIndex(ele=>{
|
|
|
// return ele.taskTypeId == b.halfCheckedNodes[0].taskTypeId
|
|
|
// })
|
|
@@ -234,13 +234,13 @@ export default {
|
|
|
|
|
|
this.taskSources1 = this.taskSources1.filter(item=>{
|
|
|
var c = b.halfCheckedNodes.length>0?b.halfCheckedNodes[0].taskTypeId:a.taskTypeId
|
|
|
- console.log(item.taskTypeId,c,item.taskTypeId != c)
|
|
|
+ //console.log(item.taskTypeId,c,item.taskTypeId != c)
|
|
|
return item.taskTypeId != c
|
|
|
})
|
|
|
- console.log(this.taskSources1)
|
|
|
+ //console.log(this.taskSources1)
|
|
|
// this.taskSources1.forEach((item,index)=>{
|
|
|
// if(item.taskTypeId == b.halfCheckedNodes.length>0?b.halfCheckedNodes[0].taskTypeId:a.taskTypeId){
|
|
|
- // console.log(index)
|
|
|
+ // //console.log(index)
|
|
|
// this.taskSources1.splice(index,1)
|
|
|
// }
|
|
|
// })
|
|
@@ -263,19 +263,19 @@ export default {
|
|
|
taskSources:this.taskSources1,
|
|
|
notAssignTypes:this.notAssignTypes
|
|
|
}
|
|
|
- console.log(c)
|
|
|
+ //console.log(c)
|
|
|
this.$emit('search',c)
|
|
|
},
|
|
|
// 树类型勾选后进行筛选
|
|
|
onChangeTree(a, b) {
|
|
|
- console.log(a,b);
|
|
|
+ //console.log(a,b);
|
|
|
if (b) {
|
|
|
this.sourceQuery[a.fieldId].checked.push(a.id);
|
|
|
if (a.children) {
|
|
|
this.onTree(a.children)
|
|
|
}
|
|
|
} else {
|
|
|
- console.log(this.sourceQuery[a.fieldId].checked);
|
|
|
+ //console.log(this.sourceQuery[a.fieldId].checked);
|
|
|
let aId=this.sourceQuery[a.fieldId].checked.findIndex(item => {
|
|
|
return item==a.id
|
|
|
})
|
|
@@ -289,18 +289,18 @@ export default {
|
|
|
this.onChange();
|
|
|
},
|
|
|
onTree2(data) {
|
|
|
- console.log(data,"进来");
|
|
|
+ //console.log(data,"进来");
|
|
|
for (let i = 0; i < data.length; i++){
|
|
|
let aId=this.sourceQuery[data[i].fieldId].checked.findIndex(item => {
|
|
|
return item==data[i].id
|
|
|
})
|
|
|
- console.log(aId);
|
|
|
+ //console.log(aId);
|
|
|
if (aId!=-1) {
|
|
|
this.sourceQuery[data[i].fieldId].checked.splice(aId, 1)
|
|
|
- console.log(this.sourceQuery[data[i].fieldId].checked);
|
|
|
+ //console.log(this.sourceQuery[data[i].fieldId].checked);
|
|
|
}
|
|
|
if (this.sourceQuery[data[i].fieldId].checked.length>0) {
|
|
|
- console.log("进来子节点");
|
|
|
+ //console.log("进来子节点");
|
|
|
if (data[i].children) {
|
|
|
this.onTree2(data[i].children)
|
|
|
}
|
|
@@ -308,7 +308,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onTree(data) {
|
|
|
- console.log(data);
|
|
|
+ //console.log(data);
|
|
|
data.forEach(item => {
|
|
|
this.sourceQuery[item.fieldId].checked.push(item.id)
|
|
|
if (item.children) {
|
|
@@ -319,11 +319,11 @@ export default {
|
|
|
//勾选后进行筛选
|
|
|
onChange(id) {
|
|
|
let field = []
|
|
|
- console.log(this.sourceQuery);
|
|
|
+ //console.log(this.sourceQuery);
|
|
|
let k = this.sourceQuery.filter(item => {
|
|
|
return item.checked.length>0
|
|
|
})
|
|
|
- console.log(k,id);
|
|
|
+ //console.log(k,id);
|
|
|
k.forEach(item => {
|
|
|
for (let i = 0; i < item.checked.length; i++){
|
|
|
field.push({
|
|
@@ -333,13 +333,13 @@ export default {
|
|
|
}
|
|
|
|
|
|
})
|
|
|
- console.log(field);
|
|
|
+ //console.log(field);
|
|
|
|
|
|
this.$emit("onChange",field)
|
|
|
},
|
|
|
//全选,点击勾选全部的自定义选项并查找相关专利
|
|
|
handleSelectAll(item) {//全选
|
|
|
- // console.log(item);
|
|
|
+ // //console.log(item);
|
|
|
const key = item.id
|
|
|
let params = {
|
|
|
// projectId: this.sourceQuery[key].projectId,
|
|
@@ -355,7 +355,7 @@ export default {
|
|
|
this.sourceQuery[key].loading = true
|
|
|
// 查询源接口(返回的数据是自定义选项)
|
|
|
this.$api.sourceQueryPatentField(params).then(response => {
|
|
|
- // console.log(response.data);
|
|
|
+ // //console.log(response.data);
|
|
|
const records = response.data
|
|
|
this.sourceQuery[key].checked = records.map(item => item.key)
|
|
|
this.onChange(key)
|
|
@@ -395,7 +395,7 @@ export default {
|
|
|
datePicker: ['', '']
|
|
|
})
|
|
|
}
|
|
|
- console.log(this.sourceQuery);
|
|
|
+ //console.log(this.sourceQuery);
|
|
|
})
|
|
|
this.handleChange([this.form[0].id])
|
|
|
},
|
|
@@ -474,13 +474,13 @@ export default {
|
|
|
},
|
|
|
//将自定义字段全部数据给field
|
|
|
initFieldData(data) {
|
|
|
- // console.log("initFieldData",data);
|
|
|
+ // //console.log("initFieldData",data);
|
|
|
this.field = data
|
|
|
this.form = JSON.parse(JSON.stringify(data))
|
|
|
},
|
|
|
// 请求自定义选项列表
|
|
|
getPatentQueryFieldSource(id, refresh = false) {//(key, refresh = false)
|
|
|
- // console.log(this.params);
|
|
|
+ // //console.log(this.params);
|
|
|
// let data = JSON.parse(JSON.stringify(this.params))
|
|
|
let value = {
|
|
|
fieldId: id,
|
|
@@ -498,14 +498,14 @@ export default {
|
|
|
refresh: false,
|
|
|
}
|
|
|
this.$api.sourceQueryPatentField(value).then(response => {
|
|
|
- // console.log(response.data);
|
|
|
+ // //console.log(response.data);
|
|
|
if (response.code == 200) {
|
|
|
- // console.log("每一项自定义字段数据中的值", response.data);
|
|
|
+ // //console.log("每一项自定义字段数据中的值", response.data);
|
|
|
// if (response.data.type==1) {
|
|
|
// response.data
|
|
|
// }
|
|
|
const records = response.data
|
|
|
- console.log(response.data);
|
|
|
+ //console.log(response.data);
|
|
|
let temp = this.sourceData[id]
|
|
|
|
|
|
if (!temp || refresh) {
|
|
@@ -513,7 +513,7 @@ export default {
|
|
|
} else {
|
|
|
temp.push(...records)
|
|
|
}
|
|
|
- console.log(temp);
|
|
|
+ //console.log(temp);
|
|
|
this.sourceQuery[id].isEnd = temp.length >= response.data.length
|
|
|
this.$set(this.sourceData, id, temp)
|
|
|
}
|
|
@@ -521,7 +521,7 @@ export default {
|
|
|
},
|
|
|
// 每一行事件,每点击一次调用一次接口,传入自定义字段id
|
|
|
handleChange(data) {
|
|
|
- // console.log("每一项自定义字段数据", this.data);
|
|
|
+ // //console.log("每一项自定义字段数据", this.data);
|
|
|
const val = data[data.length - 1];
|
|
|
if (val && this.hasSource.indexOf(val) === -1) {
|
|
|
this.hasSource.push(val)
|
|
@@ -530,7 +530,7 @@ export default {
|
|
|
},
|
|
|
// 自定义头部事件(全部/已读/未读)
|
|
|
handleReadQuery(type) {
|
|
|
- console.log(type);
|
|
|
+ //console.log(type);
|
|
|
//all read unread
|
|
|
this.taskStatus = type
|
|
|
this.returnData.read = type
|
|
@@ -557,14 +557,14 @@ export default {
|
|
|
}
|
|
|
if(this.taskId){
|
|
|
a.taskId = this.taskId
|
|
|
- console.log(this.taskId);
|
|
|
+ //console.log(this.taskId);
|
|
|
this.$api.taskReTaskStateCount(a).then(res => {
|
|
|
- console.log(res);
|
|
|
+ //console.log(res);
|
|
|
this.readList=res.data
|
|
|
})
|
|
|
}else {
|
|
|
this.$api.ReStateCount(a).then(res => {
|
|
|
- console.log(res);
|
|
|
+ //console.log(res);
|
|
|
this.readList=res.data
|
|
|
})
|
|
|
}
|