Merge remote-tracking branch 'origin/master'

This commit is contained in:
duxp 2023-10-08 17:07:36 +08:00
commit 874c814188
6 changed files with 80 additions and 12 deletions

View File

@ -109,9 +109,9 @@
<div class="col-sm-6"> <div class="col-sm-6">
<select name="unit" id="unit" class="form-control m-b"> <select name="unit" id="unit" class="form-control m-b">
<option value="">请选择</option> <option value="">请选择</option>
<option value="工程建设项目"></option> <option value="1"></option>
<option value="政府采购"></option> <option value="2"></option>
<option value="国有产权交易">季度</option> <option value="3">季度</option>
</select> </select>
</div> </div>
</div> </div>
@ -241,7 +241,7 @@
target[0].innerHTML = '考核内容:' target[0].innerHTML = '考核内容:'
demand[0].innerHTML = '考核目标:' demand[0].innerHTML = '考核目标:'
detailed[0].innerHTML = '工作任务:' detailed[0].innerHTML = '工作任务:'
score[0].innerHTML = '分' score[0].innerHTML = '达标分:'
break; break;
case "季度考核指标": case "季度考核指标":
$("#dw").hide() $("#dw").hide()
@ -249,7 +249,7 @@
target[0].innerHTML = '考核内容:' target[0].innerHTML = '考核内容:'
demand[0].innerHTML = '考核目标:' demand[0].innerHTML = '考核目标:'
detailed[0].innerHTML = '评分办法:' detailed[0].innerHTML = '评分办法:'
score[0].innerHTML = '分' score[0].innerHTML = '达标分:'
break; break;
} }
}); });

View File

@ -214,7 +214,7 @@
target[0].innerHTML = '考核内容:' target[0].innerHTML = '考核内容:'
demand[0].innerHTML = '考核目标:' demand[0].innerHTML = '考核目标:'
detailed[0].innerHTML = '工作任务:' detailed[0].innerHTML = '工作任务:'
score[0].innerHTML = '分' score[0].innerHTML = '达标分:'
break; break;
case "季度考核指标": case "季度考核指标":
$("#dw").hide() $("#dw").hide()
@ -222,7 +222,7 @@
target[0].innerHTML = '考核内容:' target[0].innerHTML = '考核内容:'
demand[0].innerHTML = '考核目标:' demand[0].innerHTML = '考核目标:'
detailed[0].innerHTML = '评分办法:' detailed[0].innerHTML = '评分办法:'
score[0].innerHTML = '分' score[0].innerHTML = '达标分:'
break; break;
} }
}); });

View File

@ -96,6 +96,8 @@
removeUrl: prefix + "/remove", removeUrl: prefix + "/remove",
exportUrl: prefix + "/export", exportUrl: prefix + "/export",
modalName: "党务", modalName: "党务",
showFooter: false,
footerStyle: footerStyle,
columns: [{ columns: [{
checkbox: true checkbox: true
}, },
@ -131,7 +133,14 @@
}, },
{ {
field: 'score', field: 'score',
title: '总分值' title: '达标分',
footerFormatter:function (value) {
var sumBalance = 0;
for (var i in value) {
sumBalance += parseFloat(value[i].score);
}
return "总分值:" + sumBalance;
}
}, },
{ {
field: 'nowScore', field: 'nowScore',
@ -191,6 +200,14 @@
}; };
$.table.init(options); $.table.init(options);
}); });
function footerStyle(column) {
return {
userBalance: {
css: { color: 'red', 'font-weight': 'normal' }
}
}[column.field]
}
</script> </script>
</body> </body>
</html> </html>

View File

@ -127,6 +127,35 @@
return $.table.tooltip(value); return $.table.tooltip(value);
} }
}, },
{
field: 'demand',
title: '目标要求/考核目标',
width:180,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'method',
title: '标准要求',
width:180,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'detailed',
title: '工作任务',
width:180,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{ {
field: 'commitTime', field: 'commitTime',
title: '提交时间', title: '提交时间',

View File

@ -200,7 +200,7 @@
}, },
{ {
field: 'score', field: 'score',
title: '分' title: '达标分'
}, },
{ {
field: 'nowScore', field: 'nowScore',

View File

@ -342,10 +342,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="finishedstaticList" resultType="map"> <select id="finishedstaticList" resultType="map">
SELECT SELECT
a.*, a.id,
ROUND( a.now_score / a.score *100) percent, d.mphone phone,
a.type,
a.examine_type,
a.files,
a.unit,
a.target,
a.`status`,
a.demand,
a.detailed,
a.degree,
SUM( a.score ) score,
SUM( a.now_score ) nowScore,
a.method,
a.head,
a.reviewed,
a.finish_date,
a.per_id,
a.dept_id,
a.branch_id,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
ROUND( a.now_score / a.score * 100 ) percent,
a.shot_name shotName, a.shot_name shotName,
a.now_score nowScore,
b.`name` oprator, b.`name` oprator,
c.`name` reviewer, c.`name` reviewer,
d.`name` header, d.`name` header,