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

添加公共庫

parent 1312f0d3
......@@ -22,41 +22,3 @@ export const delPubdatum = (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 @@
</div>
</el-card>
<!-- 添加材料 -->
<AddMaterals
<!-- <AddMaterals
ref="AddMaterals"
:depList="depList"
:libVisible.sync="libVisible"
></AddMaterals>
></AddMaterals>-->
<!-- 材料预览 -->
<PreviewMaterals
:materialsInfo="materalsInfo"
......
......@@ -331,7 +331,7 @@ export default {
this.getMaterialsList();
},
computed: {
...mapGetters(["deptList"]),
//...mapGetters(["deptList"]),
},
methods: {
// 系统事项列表
......@@ -358,9 +358,10 @@ export default {
let res = await getMaterialsList({
page: this.rightCurrent,
size: this.rightSize,
materiaFullName: this.rightSearch,
materialName: this.rightSearch,
matterId: this.activeDep.id,
deptId: this.departmentRight,
// deptId: this.departmentRight,
siteId: parseInt(this.siteId),
});
let { data, total, recommendCount } = res.data.data;
if (!data.length && this.rightCurrent > 1) {
......
......@@ -118,15 +118,14 @@ export default {
data() {
return {
api: process.env.VUE_APP_API_BASE_URL + "/",
siteId: local.getLocal("sampleSiteId")
? local.getLocal("sampleSiteId")
: "",
form: {
materialName: "", // 材料名称
materiaFullName: "", // 材料全名
source: 1, // 来源
matterId: "", // 事项id
siteId: this.siteId, // 站點id
siteId: local.getLocal("sampleSiteId")
? local.getLocal("sampleSiteId")
: "",
matterNo: "", // 事项编号
fileName: "", // 附件名称
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