flx:修改样式问题

This commit is contained in:
X_Rian 2024-09-05 18:03:33 +08:00
parent 745a187fde
commit 7714969fed
4 changed files with 34 additions and 8 deletions

View File

@ -387,7 +387,7 @@ export default {
// height: 200px;
// border-radius: 3px;
box-shadow: 0 4px 6px 0px #606e9a;
z-index: 2;
z-index: 99;
background-color: #343d5f;
ul {
margin: 8px 15px;

View File

@ -2754,6 +2754,13 @@ const routes2 = [{
component: () =>
import ("@/views/projectFront/carViolation/warningList.vue"),
},
// 违章再教育
{
path: "/project/carViolation/violationReeducation",
name: "车辆违规管理_违章再教育",
component: () =>
import ("@/views/projectFront/carViolation/violationReeducation.vue"),
},
{
path: "/project/aiAnalysis/warningList",
name: "AI预警中心_预警列表",

View File

@ -615,11 +615,6 @@ export default {
workerInfo: {},
}
},
watch: {
classificationName(val) {
this.$refs.tree.filter(val)
}
},
created() {
this.projectSn = this.$store.state.projectSn;
this.projectInfo = isJSON(localStorage.getItem("projectInfo")) ? JSON.parse(localStorage.getItem("projectInfo")) : {};
@ -651,7 +646,17 @@ export default {
getOrganizationConstructionTreeApi(data).then((res) => {
if (res.code == 200) {
if (res.result.length > 0) {
this.listData = res.result
if (this.classificationName) {
this.listData = res.result;
this.getCheckedNode(this.listData[0]);
} else {
this.listData = [{
id: "",
children: [],
classificationName: "全部",
}, ...res.result];
this.getCheckedNode(this.listData[0]);
}
} else {
this.listData = []
}
@ -681,6 +686,7 @@ export default {
},
//
filterNode(value, data) {
console.log(value, data);
if (!value) return true
return data.classificationName.indexOf(value) !== -1
},
@ -1050,6 +1056,9 @@ export default {
this.getWorkerInfo();
},
// immediate: true
},
classificationName(val) {
this.$refs.tree.filter(val)
}
},
computed: {

View File

@ -288,7 +288,17 @@ export default {
getQualityCommonProblemLibraryTreeApi(data).then((res) => {
if (res.code == 200) {
if (res.result.length > 0) {
this.listData = res.result
if (this.qualityCommonProblemName) {
this.listData = res.result;
this.getCheckedNode(this.listData[0]);
} else {
this.listData = [{
id: "",
children: [],
qualityCommonProblemName: "全部",
}, ...res.result];
this.getCheckedNode(this.listData[0]);
}
} else {
this.listData = []
}