Commit 26a68a96 authored by “yiyousong”'s avatar “yiyousong”

fix:修改事项来源显示

parent 20f939e3
...@@ -99,7 +99,8 @@ ...@@ -99,7 +99,8 @@
width="80" width="80"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.source === 0 ? "手动添加" : "站点事项" }} <span v-if="scope.row.source === 1">手动添加</span>
<span v-else-if="scope.row.source === 0">站点事项</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -370,6 +371,7 @@ export default { ...@@ -370,6 +371,7 @@ export default {
this.leftTotal = total; this.leftTotal = total;
this.recommendCount = recommendCount; this.recommendCount = recommendCount;
this.$refs.leftTable.bodyWrapper.scrollTop = 0; this.$refs.leftTable.bodyWrapper.scrollTop = 0;
console.log(data);
} }
}, },
// 新增事项 // 新增事项
...@@ -480,6 +482,7 @@ export default { ...@@ -480,6 +482,7 @@ export default {
this.$message.success(msg); this.$message.success(msg);
this.rightSelectedRowKeys = []; this.rightSelectedRowKeys = [];
this.$refs.rightTable.clearSelection(); this.$refs.rightTable.clearSelection();
this.getMatterList();
this.getWriteMatterList(); this.getWriteMatterList();
} }
}, },
......
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
siteId: local.getLocal("writeSiteId") siteId: local.getLocal("writeSiteId")
? local.getLocal("writeSiteId") ? local.getLocal("writeSiteId")
: "", : "",
source: 0, source: 1, // 1为手动添加,
deptName: "", deptName: "",
}, },
rules: { rules: {
......
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