mps.html 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>分数线</title>
  6. <link rel="stylesheet" href="../mg/common.css">
  7. <style type="text/css">
  8. .container {
  9. margin: 0 10px 0 10px;
  10. font-size: 24px;
  11. justify-content: flex-start;
  12. }
  13. .panelTop{
  14. width:100%;
  15. height:50px;
  16. justify-content: flex-start;
  17. }
  18. .panelTop1{
  19. width:150px;
  20. justify-content: space-between;
  21. }
  22. .title{
  23. margin-left: 30px;
  24. }
  25. .title2{
  26. margin-left: 10px;
  27. }
  28. .select{
  29. font-size: 22px;
  30. }
  31. .select2{
  32. font-size: 18px;
  33. margin: 0 4px;
  34. }
  35. .font16{
  36. font-size: 16px;
  37. }
  38. table thead{
  39. width:100%;
  40. display: block;
  41. }
  42. table tbody{
  43. width:100%;
  44. display: block;
  45. height:800px;
  46. overflow-y:scroll;
  47. border-bottom: 1px solid #ddd;
  48. }
  49. th td {
  50. white-space:nowrap;
  51. overflow: hidden;
  52. }
  53. .mainHeight{
  54. margin: 0 10px;
  55. }
  56. .main{
  57. margin: 0 10px 20px 10px;
  58. }
  59. .list{
  60. font-size:16px;
  61. width:100%;
  62. table-layout:fixed;
  63. }
  64. .itemHeader{
  65. background-color: #999;
  66. color:#fff;
  67. font-weight: bold;
  68. }
  69. .item{
  70. padding: 0 0 0 3px;
  71. }
  72. .item0{
  73. width:60px;
  74. }
  75. .item1{
  76. width:350px;
  77. }
  78. .item2{
  79. width:110px;
  80. }
  81. .item2Center{
  82. text-align: center;
  83. }
  84. .item3{
  85. width:80px;
  86. }
  87. .item4{
  88. width:60px;
  89. }
  90. .item5{
  91. width:400px;
  92. }
  93. input{
  94. border:1px solid #ddd;
  95. border-color:-internal-light-dark(rgb(255, 255, 255), rgb(255, 255, 255));
  96. background-color:#fff;
  97. height:20px;
  98. }
  99. input[disabled]{
  100. color:rgb(255, 255, 255);
  101. background-color: rgb(255, 255, 255);
  102. border:1rpx solid rgb(255, 255, 255);
  103. }
  104. .input0{
  105. width:30px;
  106. }
  107. .input1{
  108. width:50px;
  109. }
  110. .input2{
  111. width:80px;
  112. }
  113. .input3{
  114. width:400px;
  115. }
  116. .mainNull{
  117. width:100%;
  118. text-align: center;
  119. margin-top: 100px;
  120. font-size: 24px;
  121. color:#aaa;
  122. }
  123. .trNull{
  124. width:100%;
  125. height:20px;
  126. }
  127. </style>
  128. <script src="js/jquery-1.6.4.min.js"></script>
  129. <script src="js/vue.js"></script>
  130. <script>
  131. var vm;
  132. var txtSchoolFullNameJunior="";
  133. var txtSchoolFullName="";
  134. var txtSchoolTargetRemark="";
  135. var selectPublicOrPrivate="";
  136. var selectSchoolType2Short="";
  137. $(document).ready(function () {
  138. vm = new Vue({
  139. el: '#app',
  140. data: {
  141. ListMain:[],
  142. ListSchool:[],
  143. ListSchoolJunior:[],
  144. ScoreYear:"2025",
  145. ScoreType:"自主招生",
  146. DistrictID:"全部",
  147. District:"",
  148. cbkPlan:true,
  149. cbkScore:true,
  150. },
  151. computed: {
  152. evenListMain: function () {
  153. return this.ListMain.filter(function (item) {
  154. var result=[1,1,1,1,1,1];
  155. if (txtSchoolFullNameJunior && IsChinese(txtSchoolFullNameJunior))
  156. result[0] = item.SchoolFullNameJunior.indexOf(txtSchoolFullNameJunior)>=0;
  157. if (txtSchoolFullName && IsChinese(txtSchoolFullName)) {
  158. if ($("#cbxSelected").prop("checked"))
  159. result[1] = item.SchoolFullName == txtSchoolFullName;
  160. else
  161. result[1] = item.SchoolFullName.indexOf(txtSchoolFullName) >= 0;
  162. }
  163. if (txtSchoolTargetRemark && IsChinese(txtSchoolTargetRemark))
  164. result[2] = item.SchoolTargetRemark.indexOf(txtSchoolTargetRemark)>=0;
  165. if (selectPublicOrPrivate)
  166. result[3] = item.PublicOrPrivate == selectPublicOrPrivate;
  167. if (selectSchoolType2Short)
  168. result[4] = item.SchoolType2Short == selectSchoolType2Short;
  169. return result[0] && result[1] && result[2] && result[3] && result[4];
  170. });
  171. }
  172. },
  173. methods: {
  174. getList: function (event,isClient) {
  175. vm.ScoreYear= $("#selectScoreYear").val();
  176. vm.ScoreType= $("#selectScoreType").val();
  177. vm.DistrictID= $("#selectDistrict").val();
  178. vm.District=getDistrict(vm.DistrictID);
  179. if (!isClient){
  180. txtSchoolFullNameJunior="";
  181. txtSchoolFullName="";
  182. txtSchoolTargetRemark="";
  183. selectPublicOrPrivate="";
  184. selectSchoolType2Short="";
  185. vm.ListMain =[];
  186. }
  187. $.get("/api/GetMPSScoreWeb?ScoreYear="+vm.ScoreYear+"&ScoreType="+vm.ScoreType+"&DistrictID="+vm.DistrictID, function (data) {
  188. vm.ListMain = data.result;
  189. for (var i=0;i<vm.ListMain.length;i++){
  190. if (i > 0) {
  191. vm.ListMain[i].TempSchoolFullNameJunior = vm.ListMain[i-1].SchoolFullNameJunior;
  192. }
  193. }
  194. vm.onCheckboxChange({currentTarget:{id:"cbkPlan"}});
  195. $(".list").css("background-color","#fff");
  196. $(".input1").css("background-color","#fff");
  197. $(".input2").css("background-color","#fff");
  198. $(".input3").css("background-color","#fff");
  199. $(".btnUpdate").attr("disabled",false);
  200. setTimeout(function () {
  201. var len=vm.ListMain.length;
  202. for(var i=0;i<len;i++){
  203. var obj=$("#btnUpdate_"+i)[0];
  204. if (obj && obj.tID)
  205. $("#tdID_"+i).text(obj.tID);
  206. }
  207. vm.resizeFunction();
  208. },800);
  209. });
  210. if(vm.DistrictID!="全部"){
  211. $.get("/api/GetMPSSchoolWeb?SchoolType1=初中&DistrictID="+vm.DistrictID, function (data) {
  212. vm.ListSchoolJunior = data.result;
  213. });
  214. setTimeout(function () {
  215. var num=vm.DistrictID;
  216. $('#selectDistrict2').val(num);
  217. },1000);
  218. }
  219. var url="/api/GetMPSSchoolWeb?SchoolType1=高中&DistrictID="+vm.DistrictID+"&ScoreType="+vm.ScoreType;
  220. if (vm.ScoreType=="名额到校")
  221. url+="&SchoolType2Short=市重点";
  222. $.get(url, function (data) {
  223. vm.ListSchool = data.result;
  224. });
  225. },
  226. btnFilter:function(event) {
  227. var obj = $("#"+event.currentTarget.id)[0];
  228. //console.log(str);
  229. var index = obj.selectedIndex;
  230. var selectID=obj.options[index].value;
  231. console.log(selectID);
  232. if (event.currentTarget.id=="selectPublicPrivate") {
  233. selectPublicOrPrivate = selectID;
  234. }
  235. else if (event.currentTarget.id=="selectSchoolType2Short") {
  236. selectSchoolType2Short = selectID;
  237. }
  238. this.getList(null,true);
  239. },
  240. btnFilter2:function(event) {
  241. var obj = $("#"+event.currentTarget.id)[0];
  242. //console.log(obj.value);
  243. if (event.currentTarget.id=="txtSchoolFullNameJunior") {
  244. txtSchoolFullNameJunior = obj.value;
  245. }
  246. else if (event.currentTarget.id=="txtSchoolFullName") {
  247. txtSchoolFullName = obj.value;
  248. }
  249. else if (event.currentTarget.id=="txtSchoolTargetRemark") {
  250. txtSchoolTargetRemark = obj.value;
  251. }
  252. this.getList(null,true);
  253. },
  254. changeDistrict:function(event) {
  255. var obj = $("#"+event.currentTarget.id)[0];
  256. //console.log(str);
  257. var index = obj.selectedIndex;
  258. var selectID=obj.options[index].value;
  259. console.log(selectID);
  260. $.get("/api/GetMPSSchoolWeb?SchoolType1=高中&DistrictID="+selectID, function (data) {
  261. vm.ListSchool = data.result;
  262. });
  263. },
  264. clearText:function(event) {
  265. var str=event.currentTarget.id.substr(3);
  266. var obj = $("#"+str)[0];
  267. obj.value="";
  268. if (str=="txtSchoolFullNameJunior") {
  269. txtSchoolFullNameJunior = "";
  270. }
  271. else if (str=="txtSchoolFullName") {
  272. txtSchoolFullName = "";
  273. }
  274. else if (str=="txtSchoolTargetRemark") {
  275. txtSchoolTargetRemark = "";
  276. }
  277. //console.log(obj);
  278. vm.ListMain =[];
  279. this.getList(null,true);
  280. },
  281. updateData:function(event){
  282. var index=$(event.currentTarget).attr("Index");
  283. var ID=$(event.currentTarget).attr("tID");
  284. var param={};
  285. param.ID=ID;
  286. if (vm.cbkPlan) {
  287. param.PlanNum = Trim($("#txtPlanNum_" + index).val());
  288. }
  289. if (vm.cbkScore) {
  290. param.ScoreTotal = Trim($("#txtScoreTotal_" + index).val());
  291. param.Score1 = Trim($("#txtScore1_" + index).val());
  292. param.Score2 = Trim($("#txtScore2_" + index).val());
  293. param.Score3 = Trim($("#txtScore3_" + index).val());
  294. param.Score4 = Trim($("#txtScore4_" + index).val());
  295. }
  296. if (ID==0){
  297. param.ScoreYear= $("#selectScoreYear").val();
  298. param.ScoreType= $("#selectScoreType").val();
  299. param.DistrictID= $(event.currentTarget).attr("DistrictID");
  300. param.SchoolOfGraduation=$(event.currentTarget).attr("SchoolOfGraduation");
  301. param.SchoolTarget=$(event.currentTarget).attr("SchoolTarget");
  302. }
  303. if (vm.ScoreType=="自主招生" || vm.ScoreType=="1-15志愿") {
  304. //console.log("txtSchoolTargetRemark2:"+$("#txtSchoolTargetRemark2_" + index).val());
  305. param.SchoolTargetRemark = Trim($("#txtSchoolTargetRemark_" + index).val());
  306. param.SchoolTargetRemark2 = Trim($("#txtSchoolTargetRemark2_" + index).val());
  307. }
  308. console.log(param);
  309. $.post("/api/UpdateMPSScore",param, function (data) {
  310. $("#btnUpdate_"+index).attr("disabled",true);
  311. $("#tr_"+index).css("background-color","rgb(153, 153, 153)");
  312. if ($("#tdID_"+index).text()=="0")
  313. $("#tdID_"+index).text(data.result);
  314. });
  315. },
  316. addData:function(event){
  317. var param={};
  318. param.ID=0;
  319. param.ScoreYear= "2025";
  320. param.ScoreType= vm.ScoreType;
  321. param.DistrictID=$("#selectDistrict2").val();
  322. param.SchoolOfGraduation=$("#selectSchoolJunior").val();
  323. param.SchoolTarget=$("#selectSchool1").val();
  324. console.log(param);
  325. $.post("/api/UpdateMPSScore",param, function (data) {
  326. vm.getList(null,true);
  327. $("#btnSaveAll").attr("disabled",true);
  328. setTimeout(function () {
  329. $("#btnSaveAll").attr("disabled",false);
  330. },2000);
  331. });
  332. },
  333. updateDataAll:function(){
  334. var len=vm.ListMain.length;
  335. var arr=[];
  336. for(var i=0;i<len;i++){
  337. var updated=$("#tr_"+i).attr("title");
  338. if (updated==1){
  339. arr.push(i);
  340. }
  341. }
  342. var index=0;
  343. var interval = setInterval(function () {
  344. var updated=$("#tr_"+arr[index]).attr("title");
  345. var obj=$("#btnUpdate_"+arr[index])[0];
  346. //console.log(obj.disabled);
  347. if (!obj.disabled) {
  348. var event = {};
  349. event.currentTarget = obj;
  350. vm.updateData(event);
  351. }
  352. index++;
  353. if (index>=arr.length){
  354. clearInterval(interval);
  355. $(".list").attr("title","0");
  356. }
  357. },200);
  358. },
  359. updateTextShow:function(event){
  360. var ID=event.currentTarget.id;
  361. var title = event.currentTarget.title;
  362. var val=$("#"+ID).val();
  363. if (val!=title) {
  364. $("#" + ID).css("background-color", "rgb(226, 255, 211)");
  365. var trid=event.currentTarget.parentNode.parentNode.id;
  366. $("#"+trid).attr("title","1");
  367. }
  368. else {
  369. $("#"+ID).css("background-color", "#fff");
  370. }
  371. },
  372. onFocus:function(event){
  373. $("tr").css("background-color","#fff");
  374. var ID=event.currentTarget.parentNode.parentNode.id;
  375. $("#"+ID).css("background-color","#eee");
  376. },
  377. onCheckboxChange:function(event){
  378. var str=event.currentTarget.id;
  379. var obj = $("#"+str)[0];
  380. if (str=="cbkPlan") {
  381. vm.cbkPlan=obj.checked;
  382. var TempSchoolFullNameJuniorIndex = 1;
  383. for (var i=0;i<vm.ListMain.length;i++){
  384. if (vm.ListMain[i].TempSchoolFullNameJunior == vm.ListMain[i].SchoolFullNameJunior) {
  385. TempSchoolFullNameJuniorIndex++;
  386. }
  387. else {
  388. TempSchoolFullNameJuniorIndex = 1
  389. }
  390. if (!vm.cbkPlan && vm.ListMain[i].PlanNum==0){
  391. TempSchoolFullNameJuniorIndex--;
  392. }
  393. vm.ListMain[i].TempSchoolFullNameJuniorIndex = TempSchoolFullNameJuniorIndex;
  394. }
  395. setTimeout(function () {
  396. if (!vm.cbkPlan){
  397. for (var i=0;i<vm.ListMain.length;i++){
  398. if (vm.ListMain[i].PlanNum==0){
  399. $("#tr_"+i).css("color","rgb(200, 200, 200)");
  400. $("#txtScoreTotal_"+i).prop("disabled",true);
  401. $("#txtScore1_"+i).prop("disabled",true);
  402. $("#txtScore2_"+i).prop("disabled",true);
  403. $("#txtScore3_"+i).prop("disabled",true);
  404. $("#txtScore4_"+i).prop("disabled",true);
  405. $("#btnUpdate_"+i).prop("disabled",true);
  406. }
  407. }
  408. }
  409. else{
  410. $(".input1").prop("disabled",false);
  411. $(".btnUpdate").prop("disabled",false);
  412. $(".list").css("color","#000");
  413. }
  414. },500);
  415. }
  416. else if (str=="cbkScore") {
  417. vm.cbkScore=obj.checked;
  418. }
  419. },
  420. resizeFunction:function(){
  421. var h = document.documentElement.clientHeight
  422. || window.innerHeight
  423. || document.body.clientHeight;
  424. // console.log("window.innerHeight:"+window.innerHeight);
  425. // console.log("document.documentElement.clientHeight:"+document.documentElement.clientHeight);
  426. // console.log("document.body.clientHeight:"+document.body.clientHeight);
  427. //
  428. // console.log("h:"+h);
  429. $("tbody").css("height",h-190);
  430. },
  431. }
  432. });
  433. });
  434. function IsChinese(temp) {
  435. var reg = /^[\u4e00-\u9fa5]|[\uFE30-\uFFA0]+$/; /*定义验证表达式*/
  436. return reg.test(temp); /*进行验证*/
  437. }
  438. function Trim(str) { //删除左右两端的空格
  439. if (str)
  440. return str.replace(/(^\s*)|(\s*$)/g, "");
  441. else
  442. return str;
  443. }
  444. function getDistrict(id) {
  445. switch (Number(id)){
  446. case 0:
  447. return "上海市";
  448. case 1:
  449. return "黄浦区";
  450. case 2:
  451. return "徐汇区";
  452. case 3:
  453. return "长宁区";
  454. case 4:
  455. return "静安区";
  456. case 5:
  457. return "普陀区";
  458. case 6:
  459. return "虹口区";
  460. case 7:
  461. return "杨浦区";
  462. case 8:
  463. return "闵行区";
  464. case 9:
  465. return "宝山区";
  466. case 10:
  467. return "嘉定区";
  468. case 11:
  469. return "浦东新区";
  470. case 12:
  471. return "金山区";
  472. case 13:
  473. return "松江区";
  474. case 14:
  475. return "青浦区";
  476. case 15:
  477. return "奉贤区";
  478. case 16:
  479. return "崇明区";
  480. case 17:
  481. return "梅山";
  482. case 18:
  483. return "大屯";
  484. case 19:
  485. return "鲁中矿(张家洼)";
  486. }
  487. }
  488. </script>
  489. </head>
  490. <body class="container FlexRow">
  491. <div id="app">
  492. <div class="panelTop FlexRow">
  493. <div class="title">年份:</div>
  494. <div>
  495. <select class="select" id="selectScoreYear" >
  496. <option value="2022">2022</option>
  497. <option value="2023">2023</option>
  498. <option value="2024">2024</option>
  499. <option value="2025">2025</option>
  500. </select>
  501. </div>
  502. <div class="title">类别:</div>
  503. <div>
  504. <select class="select" id="selectScoreType" >
  505. <option value="自主招生">自主招生</option>
  506. <option value="名额到区">名额到区</option>
  507. <option value="名额到校">名额到校</option>
  508. <option value="1-15志愿">1-15志愿</option>
  509. </select>
  510. </div>
  511. <div class="title">区选择:</div>
  512. <div>
  513. <select class="select" id="selectDistrict" >
  514. <option value="全部">--全部--</option>
  515. <option value="0">委属</option>
  516. <option value="1" selected="selected">黄浦区</option>
  517. <option value="2">徐汇区</option>
  518. <option value="3">长宁区</option>
  519. <option value="4">静安区</option>
  520. <option value="5">普陀区</option>
  521. <option value="6">虹口区</option>
  522. <option value="7">杨浦区</option>
  523. <option value="8">闵行区</option>
  524. <option value="9">宝山区</option>
  525. <option value="10">嘉定区</option>
  526. <option value="11">浦东新区</option>
  527. <option value="12">金山区</option>
  528. <option value="13">松江区</option>
  529. <option value="14">青浦区</option>
  530. <option value="15">奉贤区</option>
  531. <option value="16">崇明区</option>
  532. <option value="17">梅山</option>
  533. <option value="18">大屯</option>
  534. <option value="19">鲁中矿(张家洼)</option>
  535. </select>
  536. </div>
  537. <div class="title panelTop1 FlexRow">
  538. <div class="FlexRow">
  539. <div>计划</div>
  540. <input id="cbkPlan" type="checkbox" checked="checked" @change="onCheckboxChange" />
  541. </div>
  542. <div class="FlexRow">
  543. <div>分数</div>
  544. <input id="cbkScore" type="checkbox" checked="checked" @change="onCheckboxChange" />
  545. </div>
  546. </div>
  547. <button class="title" v-on:click="getList">查询</button>
  548. </div>
  549. <hr />
  550. <div class="scroll_table">
  551. <div class="mainNull" v-if="ListMain.length==0">无数据</div>
  552. <table class="mainHeight" v-if="ListMain.length>0">
  553. <thead>
  554. <tr class="list">
  555. <th class="itemHeader item0">编号</th>
  556. <th class="itemHeader item2" v-if=" ScoreType!='名额到区' && ScoreType!='名额到校' "><select class="font16" id="selectSchoolType2Short" @change='btnFilter'>
  557. <option value="">学校等级</option>
  558. <option value="市重点">市重点</option>
  559. <option value="区重点(特色)">区重点(特色)</option>
  560. <option value="区重点">区重点</option>
  561. <option value="一般高中">一般高中</option>
  562. </select></th>
  563. <th class="itemHeader item2" v-if=" ScoreType!='名额到区' && ScoreType!='名额到校' "><select class="font16" id="selectPublicPrivate" @change='btnFilter'>
  564. <option value="">公办民办</option>
  565. <option value="公办">公办</option>
  566. <option value="民办">民办</option>
  567. <option value="中外合作">中外合作</option>
  568. </select></th>
  569. <th class="itemHeader item1" v-if=" ScoreType=='名额到校' ">
  570. 初中校名
  571. <input id="txtSchoolFullNameJunior" class="input1 title2" type="text" value="" @keyup,enter="btnFilter2" @input="btnFilter2" />
  572. <button id="btntxtSchoolFullNameJunior" v-on:click="clearText">X</button>
  573. </th>
  574. <th class="itemHeader item2" v-if=" ScoreType=='名额到区'">高中所属区</th>
  575. <th class="itemHeader item1 FlexRow">
  576. 高中校名
  577. <input id="txtSchoolFullName" class="input1 title2" type="text" value="" @keyup,enter="btnFilter2" @input="btnFilter2" />
  578. <button id="btntxtSchoolFullName" v-on:click="clearText">X</button>
  579. <input type="checkbox" id="cbxSelected" value="" @change='btnFilter2' />
  580. </th>
  581. <th class="itemHeader item2" v-if=" ScoreType!='名额到校' && ScoreType!='1-15志愿' && cbkPlan">招生区名称</th>
  582. <th class="itemHeader item2" v-if=" ScoreType=='自主招生' ">住宿条件</th>
  583. <th class="itemHeader item4" v-if=" cbkPlan ">计划</th>
  584. <th class="itemHeader item4" v-if=" ScoreType!='自主招生' && cbkScore ">总分</th>
  585. <th class="itemHeader item4" v-if=" ScoreType!='自主招生' && cbkScore ">语数外</th>
  586. <th class="itemHeader item4" v-if=" ScoreType!='自主招生' && cbkScore ">数学</th>
  587. <th class="itemHeader item4" v-if=" ScoreType!='自主招生' && cbkScore ">语文</th>
  588. <th class="itemHeader item4" v-if=" ScoreType!='自主招生' && cbkScore ">理综</th>
  589. <th class="itemHeader item2" v-if=" ScoreType!='名额到区' && ScoreType!='名额到校' ">备注1<input id="txtSchoolTargetRemark" class="input0 title2" type="text" value="" @keyup,enter="btnFilter2" @input="btnFilter2" /><button id="btntxtSchoolTargetRemark" v-on:click="clearText">X</button></th>
  590. <th class="itemHeader item5" v-if=" ScoreType!='名额到区' && ScoreType!='名额到校' ">备注2</th>
  591. <th class="itemHeader item4">
  592. <button id="btnSaveAll" v-on:click="updateDataAll">全部存</button>
  593. </th>
  594. <th class="itemHeader item4" v-if=" ScoreType=='名额到校' ">序号</th>
  595. </tr>
  596. </thead>
  597. </table>
  598. <table class="main" v-if="ListMain.length>0">
  599. <tbody>
  600. <template v-for="(item, index) in evenListMain">
  601. <tr class="trNull" v-if=" ScoreType=='名额到校' && index>0 && item.SchoolFullNameJunior!=item.TempSchoolFullNameJunior"></tr>
  602. <tr :id=" 'tr_'+index " class="list" >
  603. <td class="tdID item0 item2Center" :id=" 'tdID_'+index ">{{item.ID}}</td>
  604. <td class="item2 item2Center" v-if=" ScoreType!='名额到区' && ScoreType!='名额到校' ">{{item.SchoolType2Short}}</td>
  605. <td class="item2 item2Center" v-if=" ScoreType!='名额到区' && ScoreType!='名额到校' ">{{item.PublicOrPrivate}}</td>
  606. <td class="item item1" v-if=" ScoreType=='名额到校' " >{{item.SchoolFullNameJunior}}</td>
  607. <td class="item2Center item2" v-if=" ScoreType=='名额到区'">{{item.DistrictName}}</td>
  608. <td class="item item1">{{item.SchoolFullName}}</td>
  609. <td class="item2Center item2" v-if=" ScoreType!='名额到校' && ScoreType!='1-15志愿' && cbkPlan ">{{item.District}}</td>
  610. <td class="item2Center item2" v-if=" ScoreType=='自主招生' ">{{item.Accommodation}}</td>
  611. <td class="item4" v-if=" cbkPlan "><input :id=" 'txtPlanNum_'+index " class="input1" type="text" :value="item.PlanNum" @keyup,enter="updateTextShow" @input="updateTextShow" :title="item.PlanNum" @focus="onFocus" /></td>
  612. <td class="item4" v-if=" ScoreType!='自主招生' && cbkScore "><input :id=" 'txtScoreTotal_'+index " class="input1" type="text" :value="item.ScoreTotal" @keyup,enter="updateTextShow" @input="updateTextShow" :title="item.ScoreTotal" @focus="onFocus" /></td>
  613. <td class="item4" v-if=" ScoreType!='自主招生' && cbkScore "><input :id=" 'txtScore1_'+index " class="input1" type="text" :value="item.Score1" @keyup,enter="updateTextShow" @input="updateTextShow" :title="item.Score1" @focus="onFocus" /></td>
  614. <td class="item4" v-if=" ScoreType!='自主招生' && cbkScore "><input :id=" 'txtScore2_'+index " class="input1" type="text" :value="item.Score2" @keyup,enter="updateTextShow" @input="updateTextShow" :title="item.Score2" @focus="onFocus" /></td>
  615. <td class="item4" v-if=" ScoreType!='自主招生' && cbkScore "><input :id=" 'txtScore3_'+index " class="input1" type="text" :value="item.Score3" @keyup,enter="updateTextShow" @input="updateTextShow" :title="item.Score3" @focus="onFocus" /></td>
  616. <td class="item4" v-if=" ScoreType!='自主招生' && cbkScore "><input :id=" 'txtScore4_'+index " class="input1" type="text" :value="item.Score4" @keyup,enter="updateTextShow" @input="updateTextShow" :title="item.Score4" @focus="onFocus" /></td>
  617. <td class="item2 item2Center" v-if=" ScoreType!='名额到区' && ScoreType!='名额到校' "><input :id=" 'txtSchoolTargetRemark_'+index " class="input2" type="text" :value="item.SchoolTargetRemark" @keyup,enter="updateTextShow" @input="updateTextShow" :title="item.SchoolTargetRemark" @focus="onFocus" /></td>
  618. <td class="item5" v-if=" ScoreType!='名额到区' && ScoreType!='名额到校' "><input :id=" 'txtSchoolTargetRemark2_'+index " class="input3" type="text" :value="item.SchoolTargetRemark2" @keyup,enter="updateTextShow" @input="updateTextShow" :title="item.SchoolTargetRemark2" @focus="onFocus" /></td>
  619. <td class="item4 item2Center"><button class="btnUpdate" :id=" 'btnUpdate_'+index " :tID="item.ID" :SchoolOfGraduation="item.SchoolOfGraduation" :SchoolTarget="item.SchoolTarget" :DistrictID="item.DistrictID" :Index="index" v-on:click="updateData">保存</button></td>
  620. <td class="item4 item2Center" v-if=" ScoreType=='名额到校' && (cbkPlan || (!cbkPlan && item.PlanNum>0))">{{item.TempSchoolFullNameJuniorIndex}}</td>
  621. </tr>
  622. </template>
  623. </tbody>
  624. </table>
  625. <div class="FlexRow" v-if="ListMain.length>0">
  626. <div class="select2">
  627. {{ScoreYear}}
  628. </div>
  629. <div class="select2">
  630. {{ScoreType}}
  631. </div>
  632. <div class="select2">
  633. <select class="select2 selectDistrict2" id="selectDistrict2">
  634. <option value="0">委属</option>
  635. <option value="1">黄浦区</option>
  636. <option value="2">徐汇区</option>
  637. <option value="3">长宁区</option>
  638. <option value="4">静安区</option>
  639. <option value="5">普陀区</option>
  640. <option value="6">虹口区</option>
  641. <option value="7">杨浦区</option>
  642. <option value="8">闵行区</option>
  643. <option value="9">宝山区</option>
  644. <option value="10">嘉定区</option>
  645. <option value="11">浦东新区</option>
  646. <option value="12">金山区</option>
  647. <option value="13">松江区</option>
  648. <option value="14">青浦区</option>
  649. <option value="15">奉贤区</option>
  650. <option value="16">崇明区</option>
  651. <option value="17">梅山</option>
  652. <option value="18">大屯</option>
  653. <option value="19">鲁中矿(张家洼)</option>
  654. </select>
  655. </div>
  656. <div v-if="ScoreType=='名额到校'">
  657. <select class="select2" id="selectSchoolJunior">
  658. <option :value="item.ID" v-for="(item, index) in ListSchoolJunior">{{item.SchoolFullName}}</option>
  659. </select>
  660. </div>
  661. <div>
  662. <select class="select2" id="selectSchool1">
  663. <option :value="item.ID" v-for="(item, index) in ListSchool">{{item.SchoolFullName}}</option>
  664. </select>
  665. </div>
  666. <div>
  667. <button class="" v-on:click="addData">新增</button>
  668. </div>
  669. </div>
  670. </div>
  671. </div>
  672. </body>
  673. </html>