remove console

master
yujialong 3 years ago
parent 96321ead83
commit 96cd76b123
  1. 17
      src/views/Transaction.vue

@ -382,7 +382,6 @@ export default {
methods: { methods: {
getInfoData(lcId) { // getInfoData(lcId) { //
this.$get(`${this.api.queryJudgmentPointDetails}?lcId=${lcId}`).then(res => { this.$get(`${this.api.queryJudgmentPointDetails}?lcId=${lcId}`).then(res => {
console.log(res)
if (res.status === 200) { if (res.status === 200) {
let {judgmentPoint, judgmentRuleList} = res; let {judgmentPoint, judgmentRuleList} = res;
this.formData = { this.formData = {
@ -395,7 +394,6 @@ export default {
if (item.operationIds) { if (item.operationIds) {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs[`tree-${index}`].setCheckedKeys([item.operationIds]); this.$refs[`tree-${index}`].setCheckedKeys([item.operationIds]);
console.log(this.$refs[`tree-${index}`].getCheckedNodes(true))
for (var i=0;i<this.treeData.length;i++){ for (var i=0;i<this.treeData.length;i++){
if (this.treeData[i].children>0){ if (this.treeData[i].children>0){
let children = this.treeData[i].children let children = this.treeData[i].children
@ -478,8 +476,6 @@ export default {
}, },
getSubjectData(subjectId, index) { // getSubjectData(subjectId, index) { //
this.$get(`${this.api.getSubjectInfo}?subject_id=${subjectId}`).then(res => { this.$get(`${this.api.getSubjectInfo}?subject_id=${subjectId}`).then(res => {
console.log('getSubjectData')
console.log(res)
if (res.status === 200) { if (res.status === 200) {
let item = { let item = {
...this.tableData[index], ...this.tableData[index],
@ -487,10 +483,7 @@ export default {
items: res.items items: res.items
}; };
this.$set(this.tableData, index, item); this.$set(this.tableData, index, item);
// console.log(JSON.stringify(this.tableData))
} }
console.log('---')
console.log(res)
}).catch(err => { }).catch(err => {
console.log(err); console.log(err);
}); });
@ -517,24 +510,16 @@ export default {
} }
}, },
getTreeData() { // getTreeData() { //
console.log('getTreeData')
this.$get(this.api.getLcRecord).then(res => { this.$get(this.api.getLcRecord).then(res => {
console.log(res)
if (res.status == 200 && res.list.length>0) { if (res.status == 200 && res.list.length>0) {
if (res.list.length>0) { if (res.list.length>0) {
this.treeData = this.toTreeId(res.list, res.list[0].parentId); this.treeData = this.toTreeId(res.list, res.list[0].parentId);
<<<<<<< HEAD
console.log('---this.treeData')
console.log(this.treeData)
=======
if (this.$route.query.lcId) { if (this.$route.query.lcId) {
this.lcId = this.$route.query.lcId; this.lcId = this.$route.query.lcId;
this.getInfoData(this.$route.query.lcId); this.getInfoData(this.$route.query.lcId);
} }
>>>>>>> ec22a93db6e0a2fc0e096d7988bd1adb8413af1a
} }
} else { } else {
console.log('---this.treeData拿取失败')
this.$message.warning(res.message); this.$message.warning(res.message);
} }
}).catch(err => { }).catch(err => {
@ -644,7 +629,6 @@ export default {
tempArr.push(obj); tempArr.push(obj);
} }
}); });
console.log(tempArr)
this.formData.lcJudgmentRuleList = tempArr; this.formData.lcJudgmentRuleList = tempArr;
if (this.isAdd) { // if (this.isAdd) { //
this.$post(this.api.addJudgmentPoint, this.formData).then(res => { this.$post(this.api.addJudgmentPoint, this.formData).then(res => {
@ -708,7 +692,6 @@ export default {
value5: "" value5: ""
}); });
} }
console.log(this.tableData)
// anewPosttingData(judgmentRuleList) // anewPosttingData(judgmentRuleList)
}, },
changeResult(row) { // (0 1 0) changeResult(row) { // (0 1 0)

Loading…
Cancel
Save