majorPlanQuery.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>广西自学考试网上系统</title>
  5. <meta charset="UTF-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <!-- import CSS -->
  8. <!-- <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"> -->
  9. <!--<link rel="stylesheet" href="https://unpkg.com/element-ui@2.4.11/lib/theme-chalk/index.css">-->
  10. <link rel="stylesheet" href="https://lib.baomitu.com/element-ui/2.12.0/theme-chalk/index.css">
  11. <!-- <link rel="stylesheet" href="./vendor/element/element-ui-2.4.11.css"> -->
  12. <link rel="stylesheet" href="./css/icons.css">
  13. <!--
  14. <link href="./vendor/step/bootstrap.min.css" rel="stylesheet">
  15. <link href="./vendor/step/gloab.css" rel="stylesheet"> -->
  16. <script src="./vendor/md5/md5.js" type="text/javascript"></script>
  17. <!--<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>-->
  18. </head>
  19. <body>
  20. <div id="app" style="width:60%;left:20%;position:absolute;margin: 10px 10px;display: none;">
  21. <el-card class="box-card" v-loading="loading" element-loading-text="初始化数据加载中...">
  22. <div slot="header" class="clearfix">
  23. <a style="color:blue;position: absolute;right: 20px;top: 15px;font-size: 14px;" href="http://www.gxeea.cn/view/content_1013_24985.htm?from=singlemessage" target="_new">关于设置与调整自考专业的通知</a>
  24. <!-- <a style="color:blue;position: absolute;right: 20px;top: 50px;font-size: 14px;" href="https://www.gxeea.cn/view/content_633_15806.htm" target="_new">《关于高等教育自学考试英语和数学等课程由必考课改为选考课有关事项的通知》(桂考委办[2010]21号文件)</a>
  25. -->
  26. <a style="text-align:left;color:blue;position: absolute;top: 50px;font-size: 14px;" href="https://www.gxeea.cn/view/content_1148_30196.htm" target="_new">关于调整广西高等教育自学考试专业的公告</a>
  27. <a style="color:blue;position: absolute;right: 20px;top: 50px;font-size: 14px;" href="https://www.gxeea.cn/view/content_1148_15806.htm" target="_new">我区高等教育自学考试英语和数学等课程由必考课改为选考课</a>
  28. <div style="text-align: center;font-size: 20px;">
  29. 专业计划查询
  30. </div>
  31. </div>
  32. <div style="padding-top:15px;">
  33. 专业层次:
  34. <!-- @change="major_level_change()" -->
  35. <el-select @change="query()" size="medium" v-model="item.major_level" filterable clearable placeholder="专科/本科">
  36. <el-option label="专科" value="0"></el-option>
  37. <el-option label="本科" value="1"></el-option>
  38. </el-select>
  39. <!--
  40. &nbsp;&nbsp;
  41. 是否新专业:
  42. <el-select size="medium" v-model="item.is_new_major" filterable clearable placeholder="是否新专业">
  43. <el-option label="是" value="1"></el-option>
  44. <el-option label="否" value="0"></el-option>
  45. </el-select>
  46. &nbsp;&nbsp;
  47. <el-button @click="query()" type="primary" size="small" plain>查询</el-button>
  48. <br>
  49. <br>
  50. -->
  51. </div>
  52. <div class="majorDiv" style="width: 100%;margin-bottom: 20px">
  53. <el-col :span="8" v-for="(item,index) in majorList" :key="item.id" >
  54. <div style="height: 35px;vertical-align: middle;margin-left: 4px;font-size:14px;cursor:pointer;margin-top: 6px;padding-top: 8px;padding-left: 6px;" class="cell_" @click="goShowCourseList(item)">
  55. {{index + 1}}. {{item.major_code}} - {{item.major_name}}
  56. </div>
  57. </el-col>
  58. <center>
  59. <el-button @click="goLogin">返回登录页面</el-button>
  60. </center>
  61. </div>
  62. <div style="height: 35px;">
  63. &nbsp;
  64. </div>
  65. </el-card>
  66. <el-dialog width="900px" title="专业课程列表" :visible.sync="courseDialogVisible">
  67. <el-row>
  68. <el-col :span="24">
  69. <div v-if="selectedMajor" style="width:90%;height:100%;margin-left: 14px;;padding: 8px 16px;background-color: #ecf8ff;border-radius: 4px;margin: 0px 0;">
  70. <!-- <div style="font-size:17px;font-weight:400;margin-top: 8px 0"><center></center></div>
  71. <div style="font-size:17px;font-weight:400;margin-top: 8px 0"><center>主考院校</center></div> -->
  72. <table>
  73. <tr>
  74. <td style="width:120px;"><div style="font-size:17px;font-weight:400;margin-top: 8px 0">专业说明:</div>
  75. </td>
  76. <td colspan="3">{{selectedMajor.remark?selectedMajor.remark:""}}
  77. </td>
  78. </tr>
  79. <tr>
  80. <td colspan="4">
  81. <hr style=" height:2px;border:none;border-top:2px dotted #185598;" />
  82. </td>
  83. </tr>
  84. <tr>
  85. <td style="width:120px;"><div style="font-size:17px;font-weight:400;margin-top: 8px 0">专业名称:</div></td>
  86. <td>{{selectedMajor.major_code}}-{{selectedMajor.major_name}}</td>
  87. <td style="width:120px;"><div style="font-size:17px;font-weight:400;margin-top: 8px 0">主考院校:</div></td>
  88. <td>{{school_name}}</td>
  89. </tr>
  90. </table>
  91. </div>
  92. <br>
  93. </el-col>
  94. </el-row>
  95. <el-row>
  96. <el-col :span="24">
  97. <el-table
  98. v-loading="courseLoading"
  99. :data="courseList"
  100. style="width: 100%">
  101. <el-table-column
  102. type="index"
  103. label="序号"
  104. width="60">
  105. </el-table-column>
  106. <el-table-column
  107. prop="course_name"
  108. label="课程名称"
  109. width="250">
  110. </el-table-column>
  111. <el-table-column
  112. prop="course_code"
  113. label="课程代码"
  114. width="120">
  115. </el-table-column>
  116. <el-table-column
  117. prop="course_nature"
  118. label="课程类型"
  119. width="120">
  120. </el-table-column>
  121. <el-table-column
  122. prop="course_score"
  123. label="学分"
  124. width="120"
  125. >
  126. </el-table-column>
  127. <!-- <el-table-column v-if="item.is_new_major == '0'"
  128. prop="repl_course_name"
  129. label="课程顶替名称"
  130. width="150">
  131. </el-table-column> -->
  132. <el-table-column
  133. prop=""
  134. label="课程教材"
  135. width="150">
  136. <template slot-scope="scope">
  137. <el-button @click="showCourseTextBook(scope.row)" type="primary" size="small" plain>查看</el-button>
  138. </template>
  139. </el-table-column>
  140. </el-table>
  141. </el-col>
  142. <!-- <el-col :span="9">
  143. <div v-if="selectedMajor" style="width:85%;heigth:100%;margin-left: 14px;;padding: 8px 16px;background-color: #ecf8ff;border-radius: 4px;margin: 0px 0;">
  144. <div style="font-size:17px;font-weight:400;margin-top: 8px 0"><center>专业说明</center></div>
  145. {{selectedMajor.remark}}
  146. </div>
  147. </el-col> -->
  148. </el-row>
  149. <center>
  150. <el-button type="alert" @click="courseDialogVisible=false;">关闭</el-button>
  151. </center>
  152. </el-dialog>
  153. <el-dialog width="1000px" title="课程教材列表" :visible.sync="textBookDialogVisible">
  154. <el-table
  155. v-loading="textBookLoading"
  156. :data="textBookList"
  157. style="width: 100%">
  158. <el-table-column
  159. prop="exam_year_month"
  160. label="考试批次"
  161. width="120">
  162. </el-table-column>
  163. <el-table-column
  164. prop="textbook_outline"
  165. label="教材大纲"
  166. width="220">
  167. </el-table-column>
  168. <el-table-column
  169. prop="textbook_name"
  170. label="教材名称"
  171. width="220">
  172. </el-table-column>
  173. <el-table-column
  174. prop="textbook_code"
  175. label="教材编码"
  176. width="80">
  177. </el-table-column>
  178. <el-table-column
  179. prop="textbook_writer"
  180. label="编著"
  181. width="120">
  182. </el-table-column>
  183. <el-table-column
  184. prop="textbook_publisher"
  185. label="出版社">
  186. </el-table-column>
  187. <el-table-column
  188. prop="textbook_revision"
  189. label="版次">
  190. </el-table-column>
  191. </el-table>
  192. </el-dialog>
  193. </div>
  194. </body>
  195. <!-- import Vue before Element -->
  196. <!-- <script src="https://unpkg.com/vue/dist/vue.js"></script> -->
  197. <script src="https://lib.baomitu.com/vue/2.5.17/vue.min.js"></script>
  198. <!-- import JavaScript -->
  199. <!-- <script src="https://unpkg.com/element-ui/lib/index.js"></script> -->
  200. <script src="https://lib.baomitu.com/element-ui/2.4.11/index.js"></script>
  201. <script src="https://lib.baomitu.com/jquery/1.12.4/jquery.min.js"></script>
  202. <script src="./vendor/jqueryPlugPop/plug-in.min.js"></script>
  203. <script src="./js/tool.js"></script>
  204. <script>
  205. new Vue({
  206. el: '#app',
  207. data: function () {
  208. return {
  209. loading: false,
  210. item:{
  211. major_level: "1",
  212. is_new_major: "1"
  213. },
  214. majorList: null,
  215. selectedMajor: null,
  216. courseLoading: false,
  217. school_name:"",
  218. courseList: null,
  219. courseDialogVisible: false,
  220. textBookDialogVisible: false,
  221. textBookList:[],
  222. textBookLoading:false
  223. };
  224. },
  225. mounted: function() {
  226. window['Vue'] = this;
  227. let _this = this;
  228. this.item.is_new_major = "1";
  229. this.query();
  230. },
  231. created: function() {
  232. setTimeout(function() {
  233. document.getElementById("app").style.display="block";
  234. }, 500);
  235. },
  236. methods: {
  237. query: function(){
  238. // let loading = this.showLoading();
  239. this.loading = true;
  240. let this_ = window['Vue'];
  241. ajaxRequest("", '/pl/plMajor/listByMajorLevel.htm', {
  242. major_level: this_.item.major_level,
  243. is_new_major:this_.item.is_new_major
  244. }, function (res) {
  245. if(res.success){
  246. this_.majorList = res.array;
  247. }else{
  248. $.Pop(resp.errorMsg, 'alert', function () {});
  249. }
  250. this_.loading = false;
  251. })
  252. // let res = await this.$http.post("/pl/plMajor/listByMajorLevel.htm",
  253. // this.Qs.stringify({
  254. // major_level: this.item.major_level,
  255. // is_new_major:this.item.is_new_major
  256. // })
  257. // )
  258. // this.majorList = res.data.array;
  259. // this.hideLoading(loading);
  260. },
  261. goShowCourseList: function(major){
  262. this.selectedMajor = major;
  263. this.courseLoading = true;
  264. let this_ = window['Vue'];
  265. ajaxRequest("", '/std/cfOrganization/querySchoolListByMajorId.htm', {
  266. major_id: major.id
  267. }, function (res) {
  268. if(res.success){
  269. let orgArray = res.array;
  270. if(orgArray.length >0){
  271. this_.school_name = orgArray[0].org_code + "-" + orgArray[0].org_name;
  272. }
  273. ajaxRequest("", '/pl/plMajor/listCourseByMajor.htm', {
  274. major_id: major.id
  275. }, function (res) {
  276. if(res.success){
  277. this_.courseList = res.array;
  278. this_.courseDialogVisible = true;
  279. this_.courseLoading = false;
  280. }
  281. this_.courseLoading = false;
  282. });
  283. }else{
  284. $.Pop(resp.errorMsg, 'alert', function () {});
  285. }
  286. })
  287. },
  288. showCourseTextBook: function(item){
  289. this.textBookLoading = true;
  290. let this_ = window['Vue'];
  291. this_.textBookList = [];
  292. ajaxRequest("", '/pl/plMajorCourse/textBookListByCourse.htm', {
  293. course_id: item.id
  294. }, function (res) {
  295. if(res.success){
  296. for (let index = 0; index < res.array.length; index++) {
  297. const element = res.array[index];
  298. if(index<=1){
  299. this_.textBookList.push(element);
  300. }else{
  301. break;
  302. }
  303. }
  304. // this_.textBookList = res.array;
  305. this_.textBookDialogVisible = true;
  306. }
  307. this_.textBookLoading = false;
  308. this_.courseLoading = false;
  309. });
  310. },
  311. goLogin: function() {
  312. window.location.href = "./login.html";
  313. },
  314. }
  315. });
  316. </script>
  317. <style scoped>
  318. .footer {
  319. height: 30px;
  320. }
  321. .abs-bottom {
  322. width: 100%;
  323. position: absolute;
  324. bottom: 0;
  325. left: 0;
  326. right: 0;
  327. margin-bottom: 5px
  328. }
  329. #particles-js {
  330. position: absolute;
  331. top: 0;
  332. left: 0;
  333. right: 0;
  334. bottom: 0;
  335. }
  336. .particles-js-canvas-el {
  337. background-color: aliceblue
  338. }
  339. .btn-long {
  340. width: 100%;
  341. }
  342. .el-card__header {
  343. padding: 8px 8px !important;
  344. }
  345. body {
  346. background-color: #F3F3F3;
  347. }
  348. .el-checkbox__inner{
  349. vertical-align: text-top !important;
  350. }
  351. .el-checkbox__input{
  352. margin-bottom: 6px !important;
  353. }
  354. .el-alert--warning {
  355. background-color: #fdf6ec !important;
  356. color: #e6a23c;
  357. }
  358. .el-alert {
  359. margin: 20px 0 0;
  360. }
  361. .el-alert {
  362. width: 100%;
  363. padding: 8px 16px;
  364. margin: 0;
  365. box-sizing: border-box;
  366. border-radius: 4px;
  367. position: relative;
  368. background-color: #fff;
  369. overflow: hidden;
  370. opacity: 1;
  371. display: flex;
  372. align-items: center;
  373. transition: opacity .2s;
  374. }
  375. .el-tabs__nav{
  376. width: 100% !important
  377. }
  378. .el-tabs__item{
  379. width: 50% !important
  380. }
  381. .cell_:hover{
  382. background-color: #b3d8ff
  383. }
  384. </style>
  385. </html>