Commit 139805e5 authored by 赵啸非's avatar 赵啸非

添加公共庫

parent 1312f0d3
...@@ -22,41 +22,3 @@ export const delPubdatum = (params) => { ...@@ -22,41 +22,3 @@ export const delPubdatum = (params) => {
params, params,
}); });
}; };
// 加入样表事项
export const createMatter = (params) => {
return request({
url: `/sampleform/matter/createMatter`,
method: "get",
params,
});
};
// 查询样表系统事项列表
export const getWriteMatterList = (data) => {
return request({
url: `/sampleform/pubdatum/list`,
method: "post",
data,
});
};
// 保存新增样表事项
export const addMatter = (data) => {
return request({
url: `/sampleform/matter/save`,
method: "post",
data,
});
};
// 推荐事项
export const recommendMatter = (params) => {
return request({
url: `/sampleform/matter/recommend`,
method: "get",
params,
});
};
\ No newline at end of file
...@@ -119,11 +119,11 @@ ...@@ -119,11 +119,11 @@
</div> </div>
</el-card> </el-card>
<!-- 添加材料 --> <!-- 添加材料 -->
<AddMaterals <!-- <AddMaterals
ref="AddMaterals" ref="AddMaterals"
:depList="depList" :depList="depList"
:libVisible.sync="libVisible" :libVisible.sync="libVisible"
></AddMaterals> ></AddMaterals>-->
<!-- 材料预览 --> <!-- 材料预览 -->
<PreviewMaterals <PreviewMaterals
:materialsInfo="materalsInfo" :materialsInfo="materalsInfo"
......
...@@ -331,7 +331,7 @@ export default { ...@@ -331,7 +331,7 @@ export default {
this.getMaterialsList(); this.getMaterialsList();
}, },
computed: { computed: {
...mapGetters(["deptList"]), //...mapGetters(["deptList"]),
}, },
methods: { methods: {
// 系统事项列表 // 系统事项列表
...@@ -358,9 +358,10 @@ export default { ...@@ -358,9 +358,10 @@ export default {
let res = await getMaterialsList({ let res = await getMaterialsList({
page: this.rightCurrent, page: this.rightCurrent,
size: this.rightSize, size: this.rightSize,
materiaFullName: this.rightSearch, materialName: this.rightSearch,
matterId: this.activeDep.id, matterId: this.activeDep.id,
deptId: this.departmentRight, // deptId: this.departmentRight,
siteId: parseInt(this.siteId),
}); });
let { data, total, recommendCount } = res.data.data; let { data, total, recommendCount } = res.data.data;
if (!data.length && this.rightCurrent > 1) { if (!data.length && this.rightCurrent > 1) {
......
...@@ -118,15 +118,14 @@ export default { ...@@ -118,15 +118,14 @@ export default {
data() { data() {
return { return {
api: process.env.VUE_APP_API_BASE_URL + "/", api: process.env.VUE_APP_API_BASE_URL + "/",
siteId: local.getLocal("sampleSiteId")
? local.getLocal("sampleSiteId")
: "",
form: { form: {
materialName: "", // 材料名称 materialName: "", // 材料名称
materiaFullName: "", // 材料全名 materiaFullName: "", // 材料全名
source: 1, // 来源 source: 1, // 来源
matterId: "", // 事项id matterId: "", // 事项id
siteId: this.siteId, // 站點id siteId: local.getLocal("sampleSiteId")
? local.getLocal("sampleSiteId")
: "",
matterNo: "", // 事项编号 matterNo: "", // 事项编号
fileName: "", // 附件名称 fileName: "", // 附件名称
fileUrl: "", // 附件地址 fileUrl: "", // 附件地址
......
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