diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/absenceInfo.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/absenceInfo.vue index b467b72..366c100 100644 --- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/absenceInfo.vue +++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/absenceInfo.vue @@ -24,7 +24,7 @@ v-model="timeAry" :show-time="{ format: 'HH:mm' }" format="YYYY-MM-DD HH:mm" - :placeholder="['Start Time', 'End Time']" + :placeholder="['开始时间', '结束时间']" @change="onRangeChange" @ok="onRangeOk" /> @@ -55,48 +55,60 @@ @@ -253,6 +279,21 @@ text-align: right; } + .liList { + width: 60% !important; + + .name { + display: inline-block; + width: 80px; + } + + .delete { + cursor: pointer; + color: #1990FF; + } + + } + .li-right { width: 85%; diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/meetingInfo.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/meetingInfo.vue index fccff81..2762d42 100644 --- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/meetingInfo.vue +++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/meetingInfo.vue @@ -20,13 +20,13 @@
*开始时间:
- +
-
*结束时间:
+
结束时间:
- +
@@ -36,7 +36,7 @@
-
*教师名单:
+
*与会成员:
@@ -57,37 +57,51 @@
@@ -235,108 +250,134 @@ height: auto; font-size: 1rem; color: black; - .add-record-row-style { - width: 50%; - min-height: 3rem; - margin: 0.5rem auto; - display: flex; - .li-box { - min-height: 3rem; - line-height: 3rem; - .must-option-style { - color: red; - margin-right: 0.2rem; - } - } - .li-left { - width: 15%; - text-align: right; - } - .li-right { - width: 85%; - .person-list-content-style { - width: 700px; - height: 500px; - background-color: #ebebeb; - .list-content-style { - width: 100%; - height: 100%; - display: flex; - flex-wrap: wrap; - .honor-person-info { - width: auto; - height: 180px; - border: 1px solid #31a8fa; - margin: 0.5rem 0 0 0.5rem; - display: flex; - flex-direction: column; - justify-content: center; - .person-name { - width: 100%; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - text-align: center; - } - /deep/ .img-style { - margin-right: 0 !important; - } - } - } - } - .ant-select { - width: 100px; - } - .no-border-input-style { - border-top: 0 !important; - border-left: 0 !important; - border-right: 0 !important; - } - .photo-container-style { - display: flex; - align-items: center; - align-content: center; - justify-content: center; - justify-items: center; - width: 120px !important; - border: 1px solid #e5e5e5; - height: 160px; - background-color: white; - position: relative; - .operate-class { - position: absolute; - bottom: 0.1rem; - color: #31a8fa; - font-size: 1rem; - cursor: pointer; - display: none; - } - .photo-size-style { - display: flex; - align-items: center; - align-content: center; - justify-items: center; - justify-content: center; - } - } - .edit-style { - &:hover { - .operate-class { - display: inline-block; - } - } - } - } - } - .button-row-style { - width: 50%; - margin: auto; - display: flex; - justify-content: center; - align-items: center; - .button-style { - margin-left: 0.5rem; - } - } + + .add-record-row-style { + width: 50%; + min-height: 3rem; + margin: 0.5rem auto; + display: flex; + + .li-box { + min-height: 3rem; + line-height: 3rem; + + .must-option-style { + color: red; + margin-right: 0.2rem; + } + + } + .li-left { + width: 15%; + text-align: right; + } + + .li-right { + width: 85%; + + /deep/ .ant-calendar-picker-container { + padding-top: 80px !important; + } + + .person-list-content-style { + width: 700px; + height: 500px; + background-color: #ebebeb; + + .list-content-style { + width: 100%; + height: 100%; + display: flex; + flex-wrap: wrap; + + .honor-person-info { + width: auto; + height: 180px; + border: 1px solid #31a8fa; + margin: 0.5rem 0 0 0.5rem; + display: flex; + flex-direction: column; + justify-content: center; + + .person-name { + width: 100%; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + text-align: center; + } + + /deep/ .img-style { + margin-right: 0 !important; + } + + } + } + } + .ant-select { + width: 100px; + } + + .no-border-input-style { + border-top: 0 !important; + border-left: 0 !important; + border-right: 0 !important; + } + + .photo-container-style { + display: flex; + align-items: center; + align-content: center; + justify-content: center; + justify-items: center; + width: 120px !important; + border: 1px solid #e5e5e5; + height: 160px; + background-color: white; + position: relative; + + .operate-class { + position: absolute; + bottom: 0.1rem; + color: #31a8fa; + font-size: 1rem; + cursor: pointer; + display: none; + } + + .photo-size-style { + display: flex; + align-items: center; + align-content: center; + justify-items: center; + justify-content: center; + } + + } + .edit-style { + + & + :hover { + + .operate-class { + display: inline-block; + } + + } + } + } + } + .button-row-style { + width: 50%; + margin: auto; + display: flex; + justify-content: center; + align-items: center; + + .button-style { + margin-left: 0.5rem; + } + + } } \ No newline at end of file diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/physicalList.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/physicalList.vue index 5a848be..cbc6e2d 100644 --- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/physicalList.vue +++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/physicalList.vue @@ -4,23 +4,47 @@
学段名称 - + + + {{ item }} + + + 年级名称 - + + + {{ item }} + + + 班级名称 - + + + {{ item }} + + + 学生姓名 测试结果 - + + + {{ item }} + + +
下载模板 - 导入 - 新增 - 清空 + + 导入 + + 新增 + + 清空 +
@@ -44,7 +68,7 @@ @@ -54,6 +78,7 @@ import PhysicalInfo from './physicalInfo.vue'; import ImportExcel from '../../../../../../components/common/importExcel/importExcel.vue'; import axios from 'axios'; + const tableColumn = [ { dataIndex: 'index', @@ -105,16 +130,12 @@ scopedSlots: {customRender: 'action'}, } ] - export default{ + export default { props: ["menuId"], - data(){ + data() { return { pageType: 0,//0 列表页面 1 新增页面 - stageName: "",//学段名称 - gradeName: "",//年级名称 - className: "",//班级名称 studentName: "",//学生姓名 - testResult: "",//测试结果 tableColumn: tableColumn, dataList: [], loading: false, @@ -124,14 +145,22 @@ pageSize: 10, totalPage: 0, totalNum: 0, - isClear:false,//false 仅仅删除数据 true 清除全部数据 - showImport:false,//是否显示导入框 + isClear: false,//false 仅仅删除数据 true 清除全部数据 + showImport: false,//是否显示导入框 + stageNameList: [],//学段名称 + stageValue: '',//学段名称 + gradeNameList: [],//年级名称 + gradeNameValue: '',//年级名称 + classNameList: [],//班级名称 + classNameValue: '',//班级名称 + testResultList: [],//测试结果 + testResultValue: '',//测试结果 } }, - created(){ + created() { this.getPhysicalList(); }, - mounted(){ + mounted() { }, methods: { @@ -166,6 +195,7 @@ this.dataList = dataList; this.totalNum = resData.data.total_row; this.totalPage = resData.data.total_page; + console.log('dddddd', this.dataList) } }) }, @@ -190,41 +220,41 @@ this.pageType = 0; this.getPhysicalList(); }, - toClear:function () { + toClear: function () { this.isClear = true; this.visible = true; }, //下载模板 - toDownload:function () { + toDownload: function () { //window.location.href = window.location.protocol + "//" + window.location.host + "/dsideal_yy/pro_integration/reactProject/screenAdaptation/template/centerStudentPhysicalTemplate.xls"; //BaseConfig._action_path - window.location.href = window.location.protocol + "//" + "10.10.14.199"+ "/dsideal_yy/pro_integration/reactProject/screenAdaptation/template/centerStudentPhysicalTemplate.xls" + window.location.href = window.location.protocol + "//" + "10.10.14.199" + "/dsideal_yy/pro_integration/reactProject/screenAdaptation/template/学生体质监测数据模板.xls" }, //弹出导入 - toImport:function () { + toImport: function () { this.showImport = true; }, //开始导入 - startImport:function (file) { + startImport: function (file) { var formDatas = new FormData(); formDatas.append("file", file); this.showImport = false; this.loading = true; - let url = this.BaseConfig._action_path+"/dsideal_yy/ypt/intellioa/java/center/importPhysicalData?" + - "person_id="+this.BaseConfig.userInfo.person_id+ - "&identity_id="+this.BaseConfig.userInfo.identity_id+ - "&bureau_id="+this.BaseConfig.person_info_my.bureau_id; - axios.post(url,formDatas).then((res)=>{ + let url = this.BaseConfig._action_path + "/dsideal_yy/ypt/intellioa/java/center/importPhysicalData?" + + "person_id=" + this.BaseConfig.userInfo.person_id + + "&identity_id=" + this.BaseConfig.userInfo.identity_id + + "&bureau_id=" + this.BaseConfig.person_info_my.bureau_id; + axios.post(url, formDatas).then((res) => { this.loading = false; let resData = res.data; - if(resData.code === 200){ + if (resData.code === 200) { Modal.success({ title: "导入成功", content: "", centered: true }); this.getPhysicalList(); - }else { + } else { let errtips = resData.msg; Modal.error({ title: "导入失败", @@ -235,7 +265,7 @@ }) }, //取消导入 - cancelImport:function () { + cancelImport: function () { this.showImport = false; }, //确定删除 @@ -246,11 +276,11 @@ let url = ""; let method = ""; let isTestLogin = ""; - if(this.isClear){ + if (this.isClear) { url = InterConfig.clearPhysical.url; method = InterConfig.clearPhysical.method; isTestLogin = InterConfig.clearPhysical.method; - }else { + } else { param.monitor_ids = this.monitorId; url = InterConfig.deletePhysical.url; method = InterConfig.deletePhysical.method; @@ -278,6 +308,22 @@ handleCancel: function () { this.monitorId = ""; this.visible = false; + }, + //学段名称 + stageNameChange(value) { + this.stageValue = value + }, + //年级名称 + gradeNameChange(value) { + this.gradeNameValue = value + }, + //班级名称 + classNameChange(value) { + this.classNameValue = value + }, + //测试结果 + testResultChange(value) { + this.testResultValue = value } }, components: { @@ -301,35 +347,43 @@ width: 100%; height: auto; padding: 0.5rem; - .search-and-add-style { - width: 100%; - height: 3.5rem; - background-color: white; - margin-bottom: 0.5rem; - display: flex; - justify-content: space-between; - align-items: center; - padding: 0 0.5rem; - .ant-select { - width: 150px; - } - .ant-input { - width: 150px; - } - .add-button-style { - float: right; - } - } - .ant-table-wrapper { - /deep/ .upload-container-style { - display: flex; - justify-content: center; - align-items: center; - } - } - .ant-pagination { - margin-top: 0.5rem; - text-align: right; - } + + .search-and-add-style { + width: 100%; + height: 3.5rem; + background-color: white; + margin-bottom: 0.5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 0.5rem; + + .ant-select { + width: 150px; + } + + .ant-input { + width: 150px; + } + + .add-button-style { + float: right; + } + + } + .ant-table-wrapper { + + /deep/ .upload-container-style { + display: flex; + justify-content: center; + align-items: center; + } + + } + .ant-pagination { + margin-top: 0.5rem; + text-align: right; + } + } diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentAbsenceList.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentAbsenceList.vue index c13632f..c75a3e8 100644 --- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentAbsenceList.vue +++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentAbsenceList.vue @@ -5,11 +5,11 @@
班级 - + {{ item.class_name }} diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentHonor.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentHonor.vue index ef677dd..1e1097e 100644 --- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentHonor.vue +++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentHonor.vue @@ -4,25 +4,26 @@
班级 - + {{ item.class_name }} 等级 - + {{ item.level_name }} 荣誉名称 - +
新增
@@ -52,9 +53,10 @@ @@ -311,35 +314,43 @@ width: 100%; height: auto; padding: 0.5rem; - .search-and-add-style { - width: 100%; - height: 3.5rem; - background-color: white; - margin-bottom: 0.5rem; - display: flex; - justify-content: space-between; - align-items: center; - padding: 0 0.5rem; - .ant-select { - width: 100px; - } - .ant-input { - width: 150px; - } - .add-button-style { - float: right; - } - } - .ant-table-wrapper { - /deep/ .upload-container-style { - display: flex; - justify-content: center; - align-items: center; - } - } - .ant-pagination { - margin-top: 0.5rem; - text-align: right; - } + + .search-and-add-style { + width: 100%; + height: 3.5rem; + background-color: white; + margin-bottom: 0.5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 0.5rem; + + .ant-select { + width: 100px; + } + + .ant-input { + width: 150px; + } + + .add-button-style { + float: right; + } + + } + .ant-table-wrapper { + + /deep/ .upload-container-style { + display: flex; + justify-content: center; + align-items: center; + } + + } + .ant-pagination { + margin-top: 0.5rem; + text-align: right; + } + } \ No newline at end of file diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentInfo.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentInfo.vue index e8a09cb..83a7a74 100644 --- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentInfo.vue +++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentInfo.vue @@ -76,7 +76,7 @@ selectedPerson:[], levelId: "", levelList: [ - {level_id: "", level_name: "全部"}, + {level_id: "", level_name: ""}, {level_id: 0, level_name: "特等奖"}, {level_id: 1, level_name: "一等奖"}, {level_id: 2, level_name: "二等奖"}, diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentNotice.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentNotice.vue index fcca437..9372213 100644 --- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentNotice.vue +++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/studentNotice.vue @@ -7,7 +7,7 @@ 通报日期 diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/visionList.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/visionList.vue index 300d61f..5638a52 100644 --- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/visionList.vue +++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/moralEducation/visionList.vue @@ -4,23 +4,47 @@
学段名称 - + + + {{ item }} + + + 年级名称 - + + + {{ item }} + + + 班级名称 - + + + {{ item }} + + + 学生姓名 测试结果 - + + + {{ item }} + + +
下载模板 - 导入 - 新增 - 清空 + + 导入 + + 新增 + + 清空 +
@@ -54,6 +78,7 @@ import VisionInfo from './visionInfo.vue'; import ImportExcel from '../../../../../../components/common/importExcel/importExcel.vue'; import axios from 'axios'; + const tableColumn = [ { dataIndex: 'index', @@ -105,16 +130,20 @@ scopedSlots: {customRender: 'action'}, } ] - export default{ + export default { props: ["menuId"], - data(){ + data() { return { pageType: 0,//0 列表页面 1 新增页面 - stageName: "",//学段名称 - gradeName: "",//年级名称 - className: "",//班级名称 + stageNameList: [],//学段名称 + stageValue: '',//学段名称 + gradeNameList: [],//年级名称 + gradeNameValue: '',//年级名称 + classNameList: [],//班级名称 + classNameValue: '',//班级名称 + testResultList: [],//测试结果 + testResultValue: '',//测试结果 studentName: "",//学生姓名 - testResult: "",//测试结果 tableColumn: tableColumn, dataList: [], loading: false, @@ -124,14 +153,14 @@ pageSize: 10, totalPage: 0, totalNum: 0, - isClear:false,//false 仅仅删除数据 true 清除全部数据 - showImport:false,//是否显示导入框 + isClear: false,//false 仅仅删除数据 true 清除全部数据 + showImport: false,//是否显示导入框 } }, - created(){ + created() { this.getVisionList(); }, - mounted(){ + mounted() { }, methods: { @@ -190,41 +219,41 @@ this.pageType = 0; this.getVisionList(); }, - toClear:function () { + toClear: function () { this.isClear = true; this.visible = true; }, //下载模板 - toDownload:function () { + toDownload: function () { //window.location.href = window.location.protocol + "//" + window.location.host + "/dsideal_yy/pro_integration/reactProject/screenAdaptation/template/centerStudentPhysicalTemplate.xls"; //BaseConfig._action_path - window.location.href = window.location.protocol + "//" + "10.10.14.199"+ "/dsideal_yy/pro_integration/reactProject/screenAdaptation/template/centerStudentVisionTemplate.xls" + window.location.href = window.location.protocol + "//" + "10.10.14.199" + "/dsideal_yy/pro_integration/reactProject/screenAdaptation/template/学生近视眼监测数据模板.xls" }, //弹出导入 - toImport:function () { + toImport: function () { this.showImport = true; }, //开始导入 - startImport:function (file) { + startImport: function (file) { var formDatas = new FormData(); formDatas.append("file", file); this.showImport = false; this.loading = true; - let url = this.BaseConfig._action_path+"/dsideal_yy/ypt/intellioa/java/center/importVisionData?" + - "person_id="+this.BaseConfig.userInfo.person_id+ - "&identity_id="+this.BaseConfig.userInfo.identity_id+ - "&bureau_id="+this.BaseConfig.person_info_my.bureau_id; - axios.post(url,formDatas).then((res)=>{ + let url = this.BaseConfig._action_path + "/dsideal_yy/ypt/intellioa/java/center/importVisionData?" + + "person_id=" + this.BaseConfig.userInfo.person_id + + "&identity_id=" + this.BaseConfig.userInfo.identity_id + + "&bureau_id=" + this.BaseConfig.person_info_my.bureau_id; + axios.post(url, formDatas).then((res) => { this.loading = false; let resData = res.data; - if(resData.code === 200){ + if (resData.code === 200) { Modal.success({ title: "导入成功", content: "", centered: true }); this.getVisionList(); - }else { + } else { let errtips = resData.msg; Modal.error({ title: "导入失败", @@ -235,7 +264,7 @@ }) }, //取消导入 - cancelImport:function () { + cancelImport: function () { this.showImport = false; }, //确定删除 @@ -246,11 +275,11 @@ let url = ""; let method = ""; let isTestLogin = ""; - if(this.isClear){ + if (this.isClear) { url = InterConfig.clearVision.url; method = InterConfig.clearVision.method; isTestLogin = InterConfig.clearVision.method; - }else { + } else { param.monitor_ids = this.monitorId; url = InterConfig.deleteVision.url; method = InterConfig.deleteVision.method; @@ -278,11 +307,29 @@ handleCancel: function () { this.monitorId = ""; this.visible = false; + }, + //学段名称 + stageNameChange(value) { + this.stageValue = value + }, + //年级名称 + gradeNameChange(value) { + this.gradeNameValue = value + }, + //班级名称 + classNameChange(value) { + this.classNameValue = value + }, + //测试结果 + testResultChange(value) { + this.testResultValue = value } }, components: { ATable: Table, AButton: Button, + ASelect: Select, + ASelectOption: Select.Option, AModal: Modal, ADivider: Divider, AIcon: Icon, @@ -298,35 +345,43 @@ width: 100%; height: auto; padding: 0.5rem; - .search-and-add-style { - width: 100%; - height: 3.5rem; - background-color: white; - margin-bottom: 0.5rem; - display: flex; - justify-content: space-between; - align-items: center; - padding: 0 0.5rem; - .ant-select { - width: 150px; - } - .ant-input { - width: 150px; - } - .add-button-style { - float: right; - } - } - .ant-table-wrapper { - /deep/ .upload-container-style { - display: flex; - justify-content: center; - align-items: center; - } - } - .ant-pagination { - margin-top: 0.5rem; - text-align: right; - } + + .search-and-add-style { + width: 100%; + height: 3.5rem; + background-color: white; + margin-bottom: 0.5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 0.5rem; + + .ant-select { + width: 150px; + } + + .ant-input { + width: 150px; + } + + .add-button-style { + float: right; + } + + } + .ant-table-wrapper { + + /deep/ .upload-container-style { + display: flex; + justify-content: center; + align-items: center; + } + + } + .ant-pagination { + margin-top: 0.5rem; + text-align: right; + } + } diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/servicePlatform.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/servicePlatform.vue index ad35cbf..f28127d 100644 --- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/servicePlatform.vue +++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/servicePlatform.vue @@ -5,27 +5,29 @@ - - + @@ -40,7 +42,8 @@ import {Layout, Menu, Icon} from 'ant-design-vue'; import {systemCenterConfig} from '../systemConfig'; import _ from "lodash"; - export default{ + + export default { props: { id: { type: String @@ -49,7 +52,7 @@ type: String } }, - data(){ + data() { return { collapsed: false, menuAry: [], @@ -57,42 +60,54 @@ currentName: "",//当前路由 systemId: this.$props.id, title: this.$props.name, - systemCenterList:_.cloneDeep(systemCenterConfig), - openKeys:[], + systemCenterList: _.cloneDeep(systemCenterConfig), + openKeys: [], listScroll: this.StaticParams.scrollOption, + selectedKeys: []//当前选中的菜单项 key 数组 } }, - watch:{ - id:function (val) { + watch: { + id: function (val) { this.systemId = val; this.buildMenuAry(); }, - name:function (val) { + name: function (val) { this.title = val; } }, - mounted(){ + mounted() { this.buildMenuAry(); }, methods: { - onOpenChange:function (openKeys) { + onOpenChange: function (openKeys) { const latestOpenKey = openKeys.find(key => this.openKeys.indexOf(key) === -1); this.openKeys = latestOpenKey ? [latestOpenKey] : []; }, //菜单点击事件 menuClick: function (menu) { - this.$router.replace({name: menu.name, params: {id: this.systemId, name: this.title, menuId: menu.name}}) + this.$router.replace({ + name: menu.name, + params: {id: this.systemId, name: this.title, menuId: menu.name} + }) }, //构造左侧菜单和当前路由 buildMenuAry: function () { this.menuAry = []; let systemType = this.systemId; - for(let i = 0,len = this.systemCenterList.length;i < len;i ++){ - if(this.systemCenterList[i].id === systemType){ + for (let i = 0, len = this.systemCenterList.length; i < len; i++) { + if (this.systemCenterList[i].id === systemType) { this.menuAry = this.systemCenterList[i].menus; break; } } + this.selectedKeys = [] + if (this.menuAry[0].children) { + this.selectedKeys.push(this.menuAry[0].children[0].id) + } else { + this.selectedKeys.push(this.menuAry[0].id) + } + + // console.log('导航菜单id',this.menuAry[0].id) let item = this.buildDefaultKeys(this.menuAry); this.defaultKeys.push(item.id); this.openKeys.push("sub-0"); @@ -136,10 +151,13 @@ height: calc(100% - 100px); background-color: white; display: flex; - .ant-layout { - .ant-layout-header { - color: #31a8fa; - } - } + + .ant-layout { + + .ant-layout-header { + color: #31a8fa; + } + + } } \ No newline at end of file diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/coursePlan.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/coursePlan.vue index c983a33..ab6f24f 100644 --- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/coursePlan.vue +++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/coursePlan.vue @@ -10,7 +10,7 @@ 新增
+ :scroll="{ y: 500 }" :locale="locale"> @@ -45,6 +45,7 @@ import _ from 'lodash'; import Upload from '../../../../../../components/common/uploader/Upload.vue'; import CourseInfo from './courseInfo.vue'; + const tableColumn = [ { dataIndex: 'index', @@ -91,10 +92,11 @@ scopedSlots: {customRender: 'action'}, } ] - export default{ + export default { props: ["menuId"], - data(){ + data() { return { + locale: {emptyText: '暂无相关数据'}, pageType: 0,//0 列表页面 1 新增页面 stageId: "", stageList: [], @@ -107,10 +109,10 @@ visible: false, } }, - created(){ + created() { this.getStageList(); }, - mounted(){ + mounted() { }, methods: { @@ -190,7 +192,7 @@ this.planInfo = {}; this.pageType = 1; }, - toEdit:function (record) { + toEdit: function (record) { this.pageType = 1; this.planInfo = record; }, @@ -276,32 +278,39 @@ width: 100%; height: auto; padding: 0.5rem; - .search-and-add-style { - width: 100%; - height: 3.5rem; - background-color: white; - margin-bottom: 0.5rem; - display: flex; - justify-content: space-between; - align-items: center; - padding: 0 0.5rem; - .ant-select { - width: 100px; - } - .add-button-style { - float: right; - } - } - .ant-table-wrapper { - /deep/ .upload-container-style { - display: flex; - justify-content: center; - align-items: center; - } - } - .ant-pagination { - margin-top: 0.5rem; - text-align: right; - } + + .search-and-add-style { + width: 100%; + height: 3.5rem; + background-color: white; + margin-bottom: 0.5rem; + display: flex; + justify-content: space-between; + align-items: center; + padding: 0 0.5rem; + + .ant-select { + width: 100px; + } + + .add-button-style { + float: right; + } + + } + .ant-table-wrapper { + + /deep/ .upload-container-style { + display: flex; + justify-content: center; + align-items: center; + } + + } + .ant-pagination { + margin-top: 0.5rem; + text-align: right; + } + } \ No newline at end of file diff --git a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/scienceActivity.vue b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/scienceActivity.vue index 56dee8d..35aaad8 100644 --- a/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/scienceActivity.vue +++ b/src/views/screenAdaptation/pages/adminCenter/servicePlatform/teachingAdmin/scienceActivity.vue @@ -19,7 +19,8 @@ 获奖人员 - + 新增 @@ -49,58 +50,65 @@