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

fix:修改事项列表

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