Commit 2b6945b6 authored by 赵啸非's avatar 赵啸非

添加材料数量统计

parent e1201d57
......@@ -13,8 +13,8 @@ export const getBaseSetInfo = (data) => {
// 保存基础设置
export const saveBaseSet = (data) => {
return request({
url: "/sampleform/hotword/save",
url: "/sampleform/baseset/save",
method: "post",
data,
});
};
\ No newline at end of file
};
......@@ -70,7 +70,7 @@
</div>
<div class="mt20">
<!-- <div class="mt20">
<p class="title mb20">新闻来源</p>
<el-radio-group v-model="baseSetInfo.newsSource" size="medium">
......@@ -82,7 +82,7 @@
</el-radio>
</el-radio-group>
</div>
</div>-->
<div class="mt50">
......
......@@ -291,6 +291,7 @@ import {
getWriteMatterList,
delMatter,
recommendMatter,
getMatterSubList
} from "@/api/matter";
import local from "@/utils/local";
export default {
......
......@@ -3,7 +3,6 @@ package com.mortals.xhx.module.baseset.web;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.common.code.NewsSourceEnum;
import com.mortals.xhx.module.baseset.model.BasesetEntity;
import com.mortals.xhx.module.baseset.model.BasesetQuery;
import com.mortals.xhx.module.baseset.service.BasesetService;
......@@ -12,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
......@@ -30,7 +30,7 @@ public class BasesetController extends BaseCRUDJsonBodyMappingController<Baseset
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "newsSource", NewsSourceEnum.getEnumMap());
this.addDict(model, "newsSource", new HashMap<>());
super.init(model, context);
}
......
......@@ -78,11 +78,10 @@ public class MatterDatumController extends BaseCRUDJsonBodyMappingController<Mat
try {
Rest<String> rest = this.service.addPubdatum(ids, matterId, siteId, getContext());
model.put(MESSAGE_INFO, rest.getMsg());
this.recordSysLog(this.request, rest.getMsg());
} catch (Exception var7) {
} catch (Exception e) {
code = VALUE_RESULT_FAILURE;
this.doException(this.request, busiDesc, model, var7);
this.doException(this.request, busiDesc, model, e);
}
JSONObject ret = new JSONObject();
......
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