修改html

This commit is contained in:
liuwu 2024-02-21 11:20:31 +08:00
parent f83959de93
commit 0f0ce60ef9
10 changed files with 145 additions and 52 deletions

View File

@ -22,6 +22,16 @@ public class TAmentPartyAffairs extends BaseEntity
private Long id; private Long id;
private String start; private String start;
private String year;
public String getYear() {
return year;
}
public void setYear(String year) {
this.year = year;
}
private String end; private String end;
public String getStart() { public String getStart() {

View File

@ -28,6 +28,16 @@ public class TAmentTrade extends BaseEntity
private String tradeType; private String tradeType;
private String year;
public String getYear() {
return year;
}
public void setYear(String year) {
this.year = year;
}
public String getTradeType() { public String getTradeType() {
return tradeType; return tradeType;
} }

View File

@ -35,11 +35,12 @@
<input type="hidden" id="zhiwu" name="zhiwu"> <input type="hidden" id="zhiwu" name="zhiwu">
<li> <li>
<label>年份:</label> <label>年份:</label>
<select name="year" id="year"> <input type="text" readonly name="year" id="year" placeholder="yyyy">
<option>2023</option> <!-- <select name="year" id="year">-->
<option selected>2024</option> <!-- <option>2023</option>-->
<option>2025</option> <!-- <option selected>2024</option>-->
</select> <!-- <option>2025</option>-->
<!-- </select>-->
</li> </li>
<li> <li>
<label>简写:</label> <label>简写:</label>
@ -89,6 +90,16 @@
var editFlag = [[${@permission.hasPermi('base:affairs:edit')}]]; var editFlag = [[${@permission.hasPermi('base:affairs:edit')}]];
var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]]; var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]];
var prefix = ctx + "base/affairs"; var prefix = ctx + "base/affairs";
var year = new Date().getFullYear();
$('#year').val(year)
layui.use('laydate', function() {
var laydate = layui.laydate;
laydate.render({
elem: '#year',
type: 'year',
// value: new Date()
});
})
if(window.parent.parent){ if(window.parent.parent){
$("#shotName").val(window.parent.parent._shotName) $("#shotName").val(window.parent.parent._shotName)
@ -153,7 +164,7 @@
{ {
field: 'target', field: 'target',
title: '目标项', title: '目标项',
width:150, width:120,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
@ -171,7 +182,7 @@
{ {
field: 'demand', field: 'demand',
title: '目标要求', title: '目标要求',
width:180, width:150,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
@ -180,7 +191,7 @@
{ {
field: 'detailed', field: 'detailed',
title: '工作任务', title: '工作任务',
width:180, width:150,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
@ -197,7 +208,7 @@
{ {
field: 'method', field: 'method',
title: '考核方式', title: '考核方式',
width:180, width:150,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);

View File

@ -34,11 +34,12 @@
<input type="hidden" name="type" value="日常考核指标"/> <input type="hidden" name="type" value="日常考核指标"/>
<li> <li>
<label>年份:</label> <label>年份:</label>
<select name="year" id="year"> <input type="text" readonly name="year" id="year" placeholder="yyyy">
<option>2023</option> <!-- <select name="year" id="year">-->
<option selected>2024</option> <!-- <option>2023</option>-->
<option>2025</option> <!-- <option selected>2024</option>-->
</select> <!-- <option>2025</option>-->
<!-- </select>-->
</li> </li>
<li> <li>
<label>简写:</label> <label>简写:</label>
@ -94,6 +95,16 @@
var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]]; var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]];
var prefix = ctx + "base/affairs"; var prefix = ctx + "base/affairs";
var year = new Date().getFullYear();
$('#year').val(year)
layui.use('laydate', function() {
var laydate = layui.laydate;
laydate.render({
elem: '#year',
type: 'year',
// value: new Date()
});
})
if(window.parent.parent){ if(window.parent.parent){
$("#shotName").val(window.parent.parent._shotName) $("#shotName").val(window.parent.parent._shotName)
}else { }else {
@ -170,7 +181,7 @@
{ {
field: 'target', field: 'target',
title: '考核内容', title: '考核内容',
width:150, width:120,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
@ -188,7 +199,7 @@
{ {
field: 'demand', field: 'demand',
title: '考核目标', title: '考核目标',
width:180, width:150,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);

View File

@ -80,6 +80,10 @@
$("#type0831").val('') $("#type0831").val('')
} }
var year = new Date().getFullYear();
var str = year+'-01-01'+' - '+year+'-12-31'
$('#laydate-demo-4').val(str)
layui.use('laydate', function() { layui.use('laydate', function() {
var laydate = layui.laydate; var laydate = layui.laydate;
laydate.render({ laydate.render({

View File

@ -35,11 +35,12 @@
<input type="hidden" name="type" value="党风廉政建设"/> <input type="hidden" name="type" value="党风廉政建设"/>
<li> <li>
<label>年份:</label> <label>年份:</label>
<select name="year" id="year"> <input type="text" readonly name="year" id="year" placeholder="yyyy">
<option>2023</option> <!-- <select name="year" id="year">-->
<option selected>2024</option> <!-- <option>2023</option>-->
<option>2025</option> <!-- <option selected>2024</option>-->
</select> <!-- <option>2025</option>-->
<!-- </select>-->
</li> </li>
<li> <li>
<label>简写:</label> <label>简写:</label>
@ -89,6 +90,16 @@
var editFlag = [[${@permission.hasPermi('base:affairs:edit')}]]; var editFlag = [[${@permission.hasPermi('base:affairs:edit')}]];
var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]]; var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]];
var prefix = ctx + "base/affairs"; var prefix = ctx + "base/affairs";
var year = new Date().getFullYear();
$('#year').val(year)
layui.use('laydate', function() {
var laydate = layui.laydate;
laydate.render({
elem: '#year',
type: 'year',
// value: new Date()
});
})
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
@ -147,7 +158,7 @@
{ {
field: 'target', field: 'target',
title: '责任类别', title: '责任类别',
width:150, width:120,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
@ -165,7 +176,7 @@
{ {
field: 'demand', field: 'demand',
title: '目标要求', title: '目标要求',
width:180, width:150,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
@ -174,7 +185,7 @@
{ {
field: 'detailed', field: 'detailed',
title: '工作任务', title: '工作任务',
width:180, width:150,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
@ -191,7 +202,7 @@
{ {
field: 'method', field: 'method',
title: '考核方式', title: '考核方式',
width:180, width:150,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);

View File

@ -12,11 +12,12 @@
<ul> <ul>
<li> <li>
<label>年份:</label> <label>年份:</label>
<select name="year" id="year"> <input type="text" readonly name="year" id="year" placeholder="yyyy">
<option>2023</option> <!-- <select name="year" id="year">-->
<option selected>2024</option> <!-- <option>2023</option>-->
<option>2025</option> <!-- <option selected>2024</option>-->
</select> <!-- <option>2025</option>-->
<!-- </select>-->
</li> </li>
<li> <li>
<label>考核类型:</label> <label>考核类型:</label>
@ -72,6 +73,16 @@
var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]]; var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]];
var prefix = ctx + "base/affairs"; var prefix = ctx + "base/affairs";
var year = new Date().getFullYear();
$('#year').val(year)
layui.use('laydate', function() {
var laydate = layui.laydate;
laydate.render({
elem: '#year',
type: 'year',
// value: new Date()
});
})
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
type: "post", type: "post",
@ -139,7 +150,7 @@
{ {
field: 'demand', field: 'demand',
title: '目标要求/考核目标', title: '目标要求/考核目标',
width:180, width:150,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
@ -148,7 +159,7 @@
{ {
field: 'method', field: 'method',
title: '标准要求', title: '标准要求',
width:180, width:150,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
@ -157,7 +168,7 @@
{ {
field: 'detailed', field: 'detailed',
title: '工作任务', title: '工作任务',
width:180, width:150,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);

View File

@ -34,11 +34,12 @@
<input type="hidden" name="type" value="季度考核指标"/> <input type="hidden" name="type" value="季度考核指标"/>
<li> <li>
<label>年份:</label> <label>年份:</label>
<select name="year" id="year"> <input type="text" readonly name="year" id="year" placeholder="yyyy">
<option>2023</option> <!-- <select name="year" id="year">-->
<option selected>2024</option> <!-- <option>2023</option>-->
<option>2025</option> <!-- <option selected>2024</option>-->
</select> <!-- <option>2025</option>-->
<!-- </select>-->
</li> </li>
<li> <li>
<label>简写:</label> <label>简写:</label>
@ -93,6 +94,16 @@
var editFlag = [[${@permission.hasPermi('base:affairs:edit')}]]; var editFlag = [[${@permission.hasPermi('base:affairs:edit')}]];
var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]]; var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]];
var prefix = ctx + "base/affairs"; var prefix = ctx + "base/affairs";
var year = new Date().getFullYear();
$('#year').val(year)
layui.use('laydate', function() {
var laydate = layui.laydate;
laydate.render({
elem: '#year',
type: 'year',
// value: new Date()
});
})
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
@ -164,7 +175,7 @@
{ {
field: 'target', field: 'target',
title: '考核内容', title: '考核内容',
width:150, width:120,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
@ -182,7 +193,7 @@
{ {
field: 'demand', field: 'demand',
title: '考核目标', title: '考核目标',
width:180, width:150,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
@ -191,7 +202,7 @@
{ {
field: 'method', field: 'method',
title: '标准要求', title: '标准要求',
width:180, width:150,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);
@ -200,7 +211,7 @@
{ {
field: 'detailed', field: 'detailed',
title: '评分办法', title: '评分办法',
width:180, width:150,
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
return $.table.tooltip(value); return $.table.tooltip(value);

View File

@ -80,20 +80,26 @@
</div> </div>
</div> </div>
</div> </div>
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<script th:inline="javascript"> <script th:inline="javascript">
var year = new Date().getFullYear();
var mon = new Date().getMonth() + 1;
var str = (year+'-')+(mon>9?mon:'0'+mon)
$('#laydate-demo-4').val(str)
var editFlag = [[${@permission.hasPermi('base:trade:edit')}]]; var editFlag = [[${@permission.hasPermi('base:trade:edit')}]];
var removeFlag = [[${@permission.hasPermi('base:trade:remove')}]]; var removeFlag = [[${@permission.hasPermi('base:trade:remove')}]];
var prefix = ctx + "base/trade"; var prefix = ctx + "base/trade";
layui.use('laydate', function() { layui.use('laydate', function() {
var laydate = layui.laydate; var laydate = layui.laydate;
laydate.render({ laydate.render({
elem: '#laydate-demo-4', elem: '#laydate-demo-4',
type: 'month' type: 'month',
// value: new Date()
}); });
}) })
$(function() { $(function() {
var options = { var options = {
url: prefix + "/list", url: prefix + "/list",

View File

@ -190,8 +190,9 @@
//加载左上角echarts //加载左上角echarts
function loadEchartsOne() { function loadEchartsOne() {
var year = new Date().getFullYear();
$.ajax({ $.ajax({
url:'/base/index/dwysxt', url:'/base/index/dwysxt?year='+year,
type:'post', type:'post',
dataType:'json', dataType:'json',
success(res){ success(res){
@ -258,8 +259,9 @@
//加载左边中间的echarts //加载左边中间的echarts
function loadEchartsTwo() { function loadEchartsTwo() {
var year = new Date().getFullYear();
$.ajax({ $.ajax({
url:'/base/index/dflzjs', url:'/base/index/dflzjs?year='+year,
type:'post', type:'post',
dataType:'json', dataType:'json',
success(res){ success(res){
@ -309,8 +311,9 @@
//加载左下角的echarts //加载左下角的echarts
function loadEchartsThree() { function loadEchartsThree() {
var year = new Date().getFullYear();
$.ajax({ $.ajax({
url:'/base/index/bmwcqk', url:'/base/index/bmwcqk?year='+year,
type:'post', type:'post',
dataType:'json', dataType:'json',
success(res){ success(res){
@ -403,8 +406,9 @@
//加载右上角的echarts //加载右上角的echarts
function loadEchartsFour(){ function loadEchartsFour(){
var year = new Date().getFullYear();
$.ajax({ $.ajax({
url:'/base/index/rckhzb', url:'/base/index/rckhzb?year='+year,
type:'post', type:'post',
dataType:'json', dataType:'json',
success(res){ success(res){
@ -472,8 +476,9 @@
//加载右下角的echarts //加载右下角的echarts
function loadEchartsFive(){ function loadEchartsFive(){
var year = new Date().getFullYear();
$.ajax({ $.ajax({
url:'/base/index/ndkhbz', url:'/base/index/ndkhbz?year='+year,
type:'post', type:'post',
dataType:'json', dataType:'json',
success(res){ success(res){
@ -642,8 +647,9 @@
//加载中间数据 //加载中间数据
function loadCenterData(){ function loadCenterData(){
var year = new Date().getFullYear();
$.ajax({ $.ajax({
url:'/base/index/groupAll', url:'/base/index/groupAll?year='+year,
type:'post', type:'post',
dataType:'json', dataType:'json',
success(res){ success(res){
@ -679,8 +685,9 @@
//加载重点工作进度数据 //加载重点工作进度数据
function loadPeopleData(){ function loadPeopleData(){
_peopleData = []; _peopleData = [];
var year = new Date().getFullYear();
$.ajax({ $.ajax({
url:'/base/affairs/importantWork', url:'/base/affairs/importantWork?year='+year,
type:'post', type:'post',
dataType:'json', dataType:'json',
success(res){ success(res){
@ -705,8 +712,9 @@
//加载资源交易数据 //加载资源交易数据
function loadDepData(){ function loadDepData(){
var year = new Date().getFullYear();
$.ajax({ $.ajax({
url:'/base/index/tradeEcharts', url:'/base/index/tradeEcharts?year='+year,
type:'post', type:'post',
dataType:'json', dataType:'json',
success(res){ success(res){