majorPlanQuery.html 14 KB

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