经穴检索

This commit is contained in:
@fawn-nine
2023-11-07 17:17:46 +08:00
parent dd66af1a20
commit 4c00a03fc9
9 changed files with 97 additions and 127 deletions

View File

@@ -146,7 +146,7 @@ export default {
},
methods: {
handleChange1(e){
console.log(e,'e')
// console.log(e,'e')
},
getCatTreeList() {
this.loading = true;
@@ -155,10 +155,10 @@ export default {
method: "post"
})
.then(({ data }) => {
console.log(data, "树形结构");
// console.log(data, "树形结构");
if (data.code == 0 && data.categorys.length > 0) {
this.treeList = data.categorys;
console.log("执行后的结果", this.cateList);
// console.log("执行后的结果", this.cateList);
//
} else {
this.treeList = [];
@@ -181,7 +181,7 @@ export default {
})
.then(({ data }) => {
if (data.code == 0) {
console.log("内容详情", data);
// console.log("内容详情", data);
this.form.alias = data.point.alias;
this.form.anatomy = data.point.anatomy;
this.form.compatibility = data.point.compatibility;
@@ -200,20 +200,20 @@ export default {
url: element
});
});
console.log("图片列表格式", this.fileList);
// console.log("图片列表格式", this.fileList);
}
} else {
}
})
.catch(({ e }) => {
console.log(e, "e");
// console.log(e, "e");
});
} else {
}
},
handleRemoveNovel(file) {
console.log(file, this.fileList);
// console.log(file, this.fileList);
if (this.form.imageList.length > 0) {
this.form.imageList.forEach((element, index) => {
{
@@ -222,12 +222,12 @@ export default {
}
}
});
console.log("删除后", this.form.imageList);
// console.log("删除后", this.form.imageList);
}
// this.dataForm.images = [];
},
handleSuccess(file, fileList) {
console.log(file, fileList);
// console.log(file, fileList);
// this.fileList.push();
this.form.imageList.push(file.url);
// console.log(this.fileList, 66);

View File

@@ -246,7 +246,7 @@ export default {
})
.then(({ data }) => {
if (data.code == 0) {
console.log("内容详情", data);
// console.log("内容详情", data);
this.form.alias = data.point.alias;
this.form.anatomy = data.point.anatomy;
this.form.compatibility = data.point.compatibility;
@@ -276,7 +276,7 @@ export default {
}
},
handleRemoveNovel(file) {
console.log(file, this.fileList);
// console.log(file, this.fileList);
if (this.form.imageList.length > 0) {
this.form.imageList.forEach((element, index) => {
{
@@ -285,12 +285,12 @@ export default {
}
}
});
console.log("删除后", this.form.imageList);
// console.log("删除后", this.form.imageList);
}
// this.dataForm.images = [];
},
handleSuccess(file, fileList) {
console.log(file, fileList);
// console.log(file, fileList);
// this.fileList.push();
this.form.imageList.push(file.url);
// console.log(this.fileList, 66);
@@ -300,19 +300,19 @@ export default {
this.$message.warning(`当前限制选择 3 个文件`);
},
handleClose() {
console.log("关闭了");
// console.log("关闭了");
this.$nextTick(() => {
this.$refs["form"].resetFields();
// this.$refs["form"].clearValidate()
this.form.id = null
});
console.log("form", this.form);
// console.log("form", this.form);
this.fileList = [];
this.dialogVisible = false;
},
handleChange1(e) {
this.cateId = e[e.length - 1];
console.log("e", e, this.cateId);
// console.log("e", e, this.cateId);
this.getDataList();
},
getCatTreeList() {

View File

@@ -129,7 +129,7 @@ export default {
this.getCatTreeList();
},
activated() {
console.log("激活了");
// console.log("激活了");
},
methods: {
edit(data){
@@ -154,14 +154,14 @@ export default {
this.cateForm.pid = data.id
// this.cateForm.showStatus = data.showStatus
// this.cateForm.catLevel = data.catLevel*1 + 1
console.log('cateForm', this.cateForm.pid, data)
// console.log('cateForm', this.cateForm.pid, data)
},
handleNodeClick(data) {
// console.log(data);
},
// 点击查看更多,获取翻页内容
getMoreContent(row, index) {
console.log("加载更多", index, row);
// console.log("加载更多", index, row);
if (row.content.current + 1 <= row.content.pages) {
this.getContentList(row.id, row.content.current + 1, index);
} else {
@@ -170,7 +170,7 @@ export default {
},
// 获取二级分类下的内容
getContentList(cateId, pageIndex, index) {
console.log("收到的参数", cateId, pageIndex, index);
// console.log("收到的参数", cateId, pageIndex, index);
this.$http({
url: this.$http.adornUrl("/book/point/getPointList"),
method: "post",
@@ -183,7 +183,7 @@ export default {
.then(({ data }) => {
if (data.code == 0) {
this.contentChange = false;
console.log("date二级内容", data.page);
// console.log("date二级内容", data.page);
// 查找分类,并将新数据添加上
this.cateList.forEach(element => {
element.children.forEach(element1 => {
@@ -196,7 +196,7 @@ export default {
}
});
});
console.log("追加后的数据", this.cateList);
// console.log("追加后的数据", this.cateList);
}
})
.catch(({ e }) => {
@@ -279,7 +279,7 @@ export default {
})
})
.then(({ data }) => {
console.log(data, "提交");
// console.log(data, "提交");
if (data.code == 0) {
this.$message.success("操作成功");
this.getCatTreeList();
@@ -293,7 +293,7 @@ export default {
});
},
addCateClose() {
console.log("关闭了");
// console.log("关闭了");
this.addCateVisible = false;
this.cateForm = {
sort: 0,
@@ -313,41 +313,10 @@ export default {
method: "post"
})
.then(({ data }) => {
console.log(data, "树形结构");
// console.log(data, "树形结构");
if (data.code == 0 && data.categorys.length > 0) {
this.treeList[0].children = data.categorys;
this.cateList = data.categorys;
// this.cateList.forEach(element => {
// if (element.children && element.children.length > 0) {
// element.children.forEach(element1 => {
// let content = {};
// // content = this.getContentList(element1.id)
// this.$http({
// url: this.$http.adornUrl("/book/point/getPointList"),
// method: "post",
// data: this.$http.adornData({
// limit: 10,
// page: 1,
// pointCategoryId: element1.id //此项为非必选
// })
// })
// .then(({ data }) => {
// if (data.code == 0) {
// // console.log("date二级内容", data.page);
// element1.content = data.page;
// } else {
// element1.content = {};
// }
// })
// .catch(({ e }) => {
// console.log(e, "e");
// });
// // element1.content = content;
// });
// }
// });
// console.log("执行后的结果", this.cateList);
//
this.cateList = data.categorys;
} else {
this.treeList[0].children = [];
this.cateList = [];
@@ -367,7 +336,7 @@ export default {
});
},
deleteContent(item, index, row) {
console.log("删除内容");
// console.log("删除内容");
this.$confirm("确定要删除该内容?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
@@ -393,7 +362,7 @@ export default {
}
});
});
console.log("删除后", this.cateList);
// console.log("删除后", this.cateList);
// this.getCatTreeList()
}
});