组委会只能查特定项目下的题目

main
王家东 4 months ago
parent fa735ebd3c
commit 9ca644f016
  1. 3
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/topic/controller/TopicController.java
  2. 2
      jeecgboot-vue3-master/src/views/annualCompPoint/committee/AnnualCompPointList.vue
  3. 4
      jeecgboot-vue3-master/src/views/topic/TopicList.vue

@ -77,9 +77,10 @@ public class TopicController extends JeecgController<Topic, ITopicService> {
public Result<IPage<Topic>> queryPageList(Topic topic,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
HttpServletRequest req,@RequestParam(name="annualCompid",required=true) String annualCompid) {
LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
String orgCode = user.getOrgCode();
System.out.println(annualCompid);
topic.setSysOrgCode(orgCode);
QueryWrapper<Topic> queryWrapper = QueryGenerator.initQueryWrapper(topic, req.getParameterMap());
Page<Topic> page = new Page<Topic>(pageNo, pageSize);

@ -191,7 +191,7 @@
function handleEdittopic(record: Recordable) {
router.push({
path: '/compp/topic',
query: {id: record.id}
query: {annualCompid: record.id}
});
}

@ -119,6 +119,8 @@ import JSwitch from '/@/components/Form/src/jeecg/components/JSwitch.vue';
import JSearchSelect from '/@/components/Form/src/jeecg/components/JSearchSelect.vue';
import JInput from "/@/components/Form/src/jeecg/components/JInput.vue";
import TopicModal1 from "/@/views/topic/components/TopicModal1.vue";
import {useRoute} from "vue-router";
const route = useRoute();
const formRef = ref();
const queryParam = reactive<any>({});
@ -138,7 +140,7 @@ const {prefixCls, tableContext, onExportXls, onImportXls} = useListPage({
fixed: 'right',
},
beforeFetch: (params) => {
return Object.assign(params, queryParam);
return Object.assign(params, {annualCompid:route.query.annualCompid});
},
},
exportConfig: {

Loading…
Cancel
Save