Commit 1ca11816 authored by daniel's avatar daniel

fix(gunRule): 发枪预约

parent 6d8b3496
package com.dlbridge.jadp.plugins.cmpt.web;
import com.dlbridge.jadp.common.interceptor.PageView;
import com.dlbridge.jadp.plugins.cmpt.dao.model.Cmpt;
import com.dlbridge.jadp.plugins.cmpt.service.CmptService;
import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
import springfox.documentation.annotations.ApiIgnore;
import javax.annotation.Resource;
@RequestMapping(value = "/gk/gunRule/")
@RestController
@ApiIgnore
@Log4j2
public class GunRolueController {
@Resource
private CmptService cmptService;
@RequestMapping("index/{cmptId}")
@PageView
public ModelAndView index(@PathVariable("cmptId") Integer cmptId, ModelAndView mv) {
Cmpt cmpt = cmptService.queryCmptBycmptId(cmptId);
mv.setViewName("cmpt/gunRule");
mv.addObject("cmpt", cmpt);
return mv;
}
}
......@@ -16,7 +16,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>后台管理系统</title>
<title>赛事反馈</title>
<!-- ... 保留原有的 Vue 引入 ... -->
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
<!-- 添加 Naive UI 的引入 -->
......@@ -104,12 +104,9 @@
</n-tabs>
</div>
<div class="ml-auto"><n-input v-model:value="keyword" placeholder="请输入搜索内容" /></div>
<n-button type="primary">
<n-button type="primary" @click="getFeedBacks">
搜索
</n-button>
<n-button type="primary" @click="addFeedBack">
新增测试
</n-button>
</div>
</n-card>
<!-- 搜索框 -->
......
This diff is collapsed.
......@@ -16,7 +16,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>后台管理系统</title>
<title>自选号规则</title>
<!-- ... 保留原有的 Vue 引入 ... -->
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
<!-- 添加 Naive UI 的引入 -->
......@@ -618,7 +618,7 @@
// 新增规则
const onAddMarkNoRule = () => {
markNoRuleValue.value = initialValue
ruleIndex = -1
ruleIndex.value = -1
}
// 删除规则
const deleteMarkNoRule = async () => {
......@@ -661,13 +661,13 @@
min: 1,
max: 100,
onUpdateValue(v) {
data.value[index].waveNumber = v
markNoRuleValue.value[index].waveNumber = v
}
})
}
},
{
title: '最快配速',
title: '最快成绩',
key: 'scoreFrom',
align: 'center',
render(row, index) {
......@@ -681,7 +681,7 @@
}
},
{
title: '最慢配速',
title: '最慢成绩',
key: 'scoreTo',
align: 'center',
render(row, index) {
......
......@@ -383,6 +383,13 @@
<span class="menu-txt">赛事反馈</span>
</a>
</li>
<li class="gunRule menu-sub-item">
<a
href="/gk/gunRule/index/${cmpt.cmptId}?uId=${uId}&cId=${cId}&timestamp=${timestamp}&sign=${sign}">
<span class="left-arrow"></span>
<span class="menu-txt">发枪预约</span>
</a>
</li>
</ul>
</li>
</ul>
......@@ -445,7 +452,7 @@
var classes = ['cmptSetting', 'nameList', 'manual', 'contact', 'manage',
'route', 'road', 'equip', 'photo', 'news', 'cert', 'data',
'banner', 'score', 'auto', 'scan', 'review', 'customer', 'rule',
'outter-link', 'sure-letter', 'rankSetting', 'service', "module", "swiper", "bag", "invoice", "markNoSelect", "feedback", "markNoRule"];
'outter-link', 'sure-letter', 'rankSetting', 'service', "module", "swiper", "bag", "invoice", "markNoSelect", "feedback", "markNoRule", "gunRule"];
let url = document.location.href;
var done = false;
for (var i in classes) {
......
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