Commit dfc2772c authored by “yiyousong”'s avatar “yiyousong”

fix:修改事项列表

parent e5122bbf
......@@ -247,6 +247,12 @@ export default {
handleClick(e) {
if (e.target.className === "hot-search-item") {
this.search = e.target.dataset.value;
this.$router.push({
path: "/searchpage",
query: {
val: this.search,
},
});
}
},
},
......
......@@ -98,6 +98,7 @@ export default {
watch: {
searchVal(newVal) {
if (newVal === "") {
this.current = 1;
this.getWriteMatterList();
}
},
......@@ -122,7 +123,7 @@ export default {
this.matterList = data;
this.matterTotal = total;
},
// 获取所有材料
// 获取材料
async getAllmaterials() {
this.materals = await this.getMaterialsList(1, 3, null);
},
......@@ -143,6 +144,7 @@ export default {
// 切换部门
changeDept(id) {
this.deptId = id;
this.current = 1;
this.getWriteMatterList();
this.getAllmaterials();
},
......@@ -179,7 +181,7 @@ export default {
}
.matter-box {
height: 100%;
padding: 30px;
padding: 20px;
background: #ffffff;
border-radius: 16px;
.matter-list {
......@@ -194,9 +196,9 @@ export default {
}
.matter-item {
width: 460px;
height: 142px;
margin-bottom: 32px;
padding: 20px 16px;
height: 150px;
margin-bottom: 30px;
padding: 10px;
background: #edf6fe;
border-radius: 16px;
cursor: pointer;
......@@ -204,7 +206,7 @@ export default {
margin-bottom: 10px;
font-size: 24px;
font-weight: 500;
line-height: 26px;
line-height: 36px;
color: #333333;
display: -webkit-box;
-webkit-box-orient: vertical;
......@@ -232,13 +234,13 @@ export default {
}
}
}
/deep/.btn-prev {
:deep(.btn-prev) {
margin-right: 80px;
}
}
}
/deep/.btn-prev,
/deep/ .btn-next {
:deep(.btn-prev),
:deep(.btn-next) {
width: 78px;
height: 25px;
font-family: Source Han Sans CN;
......
......@@ -136,10 +136,6 @@ export default {
matterId: this.matterInfo.matterId,
});
let { data } = res.data.data;
data.forEach((v) => {
v.formContent = JSON.parse(v.formContent);
v.form = {};
});
this.materailsList = data;
},
......@@ -149,7 +145,6 @@ export default {
if (this.scale > 200) {
this.scale = 200;
}
console.log(this.width * (this.scale / 100));
},
// 缩小
......
......@@ -54,22 +54,21 @@ export default {
}
.dept-list {
width: 100%;
height: calc(100vh - 100px);
height: calc(100vh - 110px);
padding: 15px 0px;
overflow-y: auto;
}
.dept-item {
height: 70px;
text-align: center;
font-size: 26px;
line-height: 70px;
color: #333333;
cursor: pointer;
.dept-name {
padding: 0px 6px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 20px 6px;
line-height: 40px;
// overflow: hidden;
// text-overflow: ellipsis;
// white-space: nowrap;
}
}
.line {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment