八大中心问题

init
zhusiyu 3 years ago
parent 836f022d7d
commit 6a306f2348

@ -118,7 +118,7 @@
type: Boolean,
default: true
},
canViewDownload:{
canViewDownload: {
type: Boolean,
default: true
},
@ -334,9 +334,9 @@
}
let url = "";
if (this.BaseConfig.isSZUpload) {
if(this.BaseConfig.isCloud){
if (this.BaseConfig.isCloud) {
url = "res/insert_resource_base_info";
}else {
} else {
url = "intellioa/java/sys/cloudPlatform/insert_resource_base_info";
}
} else {
@ -516,44 +516,44 @@
align-content: center;
align-items: center;
&
:hover {
&
:hover {
.delete-icon-style {
display: inline-block;
}
.delete-icon-style {
display: inline-block;
}
}
/*justify-items: center;*/
/*justify-content: center;*/
.file-name-style {
display: inline-block;
color: #31a8fa;
width: 10rem;
margin-right: 0.5rem;
height: 1.2rem;
}
/*justify-items: center;*/
/*justify-content: center;*/
.file-name-style {
display: inline-block;
color: #31a8fa;
width: 10rem;
margin-right: 0.5rem;
height: 1.2rem;
span {
max-width: 10rem;
overflow: hidden;
word-break: keep-all;
white-space: nowrap;
text-overflow: ellipsis;
cursor: pointer;
display: inline-block;
}
span {
max-width: 10rem;
overflow: hidden;
word-break: keep-all;
white-space: nowrap;
text-overflow: ellipsis;
cursor: pointer;
display: inline-block;
}
}
.delete-icon-style {
font-size: 1rem;
cursor: pointer;
color: red;
display: none;
}
}
.delete-icon-style {
font-size: 1rem;
cursor: pointer;
color: red;
display: none;
}
.progress-style {
max-width: calc(100% - 13rem);
}
.progress-style {
max-width: calc(100% - 13rem);
}
}
@ -571,24 +571,24 @@
justify-items: center;
position: relative;
.delete-style {
position: absolute;
bottom: 0.2rem;
right: 0.2rem;
font-size: 1rem;
cursor: pointer;
color: red;
display: none;
}
.delete-style {
position: absolute;
bottom: 0.2rem;
right: 0.2rem;
font-size: 1rem;
cursor: pointer;
color: red;
display: block;
}
&
:hover {
&
:hover {
.delete-style {
display: inline;
}
.delete-style {
display: inline;
}
}
}
}
.upload-Image-style {
@ -603,16 +603,16 @@
justify-content: center;
cursor: pointer;
.icon-style {
color: #999;
font-size: 1.5rem;
}
.icon-style {
color: #999;
font-size: 1.5rem;
}
.ant-upload-text {
color: #999;
font-size: 1rem;
margin-top: 0.5rem;
}
.ant-upload-text {
color: #999;
font-size: 1rem;
margin-top: 0.5rem;
}
}
</style>

@ -9,7 +9,7 @@
</a-select-option>
</a-select>
<span style="margin-right: 0.5rem">课程分类</span>
<a-select :value="courseId" @change="courseChange">
<a-select :value="courseId" @change="courseChange" style="width: auto !important;">
<a-select-option v-for="item in courseList" :key="'course_'+item.course_id" :value="item.course_id">
{{ item.course_name }}
</a-select-option>
@ -28,7 +28,8 @@
<a @click="toDelete(record)"></a>
</span>
</a-table>
<a-pagination v-if="totalPage > 1" v-model:current="pageNumber" :pageSize="pageSize" :total="totolNum" show-less-items @change="pageChange"></a-pagination>
<a-pagination v-if="totalPage > 1" v-model:current="pageNumber" :pageSize="pageSize" :total="totolNum"
show-less-items @change="pageChange"></a-pagination>
</template>
<a-modal title="提示"
:visible="visible"
@ -46,8 +47,9 @@
</template>
<script>
import InterConfig from '../interConfig';
import {Select, Input, Icon, Button, Table, Divider,Modal,Pagination} from 'ant-design-vue';
import {Select, Input, Icon, Button, Table, Divider, Modal, Pagination} from 'ant-design-vue';
import ShoolBaseCourseInfo from './shoolBaseCourseInfo.vue';
const tableColumn = [
{
dataIndex: 'index',
@ -81,18 +83,27 @@
locale: {emptyText: '暂无相关数据'},
pageType: 0,//0 1 ,
typeId: 1,//
typeList: [{type_id: 1, type_name: "特色课程"}, {
type_id: 2,
type_name: "劳动课程"
}, {type_id: 3, type_name: "思政课程"}],
typeList: [
{type_id: 1, type_name: "特色课程"},
{type_id: 2, type_name: "劳动课程"},
{type_id: 3, type_name: "思政课程"}
],
courseId: 11,//
courseList: [{course_id: 11, course_name: "科技社团"}, {course_id: 12, course_name: "艺术社团"}, {
course_id: 13,
course_name: "体育社团"
}, {course_id: 21, course_name: "体会劳动光荣"}, {course_id: 22, course_name: "提高劳动能力"}, {
course_id: 23,
course_name: "启蒙劳动意识"
}, {course_id: 24, course_name: "养成劳动习惯"}, {course_id: 31, course_name: "思政课程"}],
courseListBase: [
{course_id: 11, course_name: "科技社团"},
{course_id: 12, course_name: "艺术社团"},
{course_id: 13, course_name: "体育社团"},
{course_id: 21, course_name: "体会劳动光荣"},
{course_id: 22, course_name: "提高劳动能力"},
{course_id: 23, course_name: "启蒙劳动意识"},
{course_id: 24, course_name: "养成劳动习惯"},
{course_id: 31, course_name: "思政课程"}
],
courseList: [
{course_id: 11, course_name: "科技社团"},
{course_id: 12, course_name: "艺术社团"},
{course_id: 13, course_name: "体育社团"},
],
courseName: "",
visible: false,
pageNumber: 1,
@ -102,7 +113,7 @@
tableColumn: tableColumn,
dataList: [],
loading: false,
planId:""
planId: ""
}
},
created() {
@ -110,7 +121,7 @@
},
methods: {
//
pageChange:function (page, pageSize) {
pageChange: function (page, pageSize) {
this.pageNumber = page;
this.getSchoolCourseList();
},
@ -145,6 +156,13 @@
})
},
typeChange: function (value) {
let midArr = []
this.courseList = []
midArr = this.courseListBase.filter(item => {
return item.course_id.toString()[0] == value
})
this.courseId = midArr[0].course_id
this.courseList = midArr
if (this.typeId !== value) {
this.typeId = value;
}
@ -201,7 +219,7 @@
this.pageType = 0;
this.getSchoolCourseList();
},
toListPage:function () {
toListPage: function () {
this.pageType = 0;
this.getSchoolCourseList();
},
@ -214,9 +232,9 @@
AButton: Button,
ATable: Table,
ADivider: Divider,
AModal:Modal,
AModal: Modal,
ShoolBaseCourseInfo,
APagination:Pagination
APagination: Pagination
}
}
</script>

@ -26,8 +26,9 @@
<div class="add-record-row-style">
<div class="li-box li-left"><span class="must-option-style">*</span>课程分类</div>
<div class="li-box li-right">
<a-select :value="courseId" @change="courseChange">
<a-select-option v-for="item in courseList" :key="'course_'+item.course_id" :value="item.course_id">
<a-select :value="courseId" @change="courseChange" style="width: auto !important;">
<a-select-option v-for="item in courseList" :key="'course_'+item.course_id"
:value="item.course_id">
{{ item.course_name }}
</a-select-option>
</a-select>
@ -82,14 +83,16 @@
</div>
</template>
<script>
import {Spin, Button, Cascader, Input, InputNumber, Modal,Select,DatePicker,TimePicker} from 'ant-design-vue';
import {Spin, Button, Cascader, Input, InputNumber, Modal, Select, DatePicker, TimePicker} from 'ant-design-vue';
import InterConfig from '../interConfig';
import ATextarea from "ant-design-vue/es/input/TextArea";
import Upload from '../../../../../../components/common/uploader/Upload.vue';
import moment from 'moment';
import 'moment/locale/zh-cn';
moment.locale('zh-cn')
import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN';
export default {
props: {
planId: {
@ -103,32 +106,41 @@
dateFormat: "YYYY-MM-DD HH:mm",
pageLoading: false,
courseName: "",//
courseSynopsis:"",//
courseSynopsis: "",//
planNumber: "",//
realNumber: "",//
typeId: 1,//
typeList: [{type_id: 1, type_name: "特色课程"}, {
type_id: 2,
type_name: "劳动课程"
}, {type_id: 3, type_name: "思政课程"}],
typeList: [
{type_id: 1, type_name: "特色课程"},
{type_id: 2, type_name: "劳动课程"},
{type_id: 3, type_name: "思政课程"}
],
courseId: 11,//
courseList: [{course_id: 11, course_name: "科技社团"}, {course_id: 12, course_name: "艺术社团"}, {
course_id: 13,
course_name: "体育社团"
}, {course_id: 21, course_name: "体会劳动光荣"}, {course_id: 22, course_name: "提高劳动能力"}, {
course_id: 23,
course_name: "启蒙劳动意识"
}, {course_id: 24, course_name: "养成劳动习惯"}, {course_id: 31, course_name: "思政课程"}],
courseListBase: [
{course_id: 11, course_name: "科技社团"},
{course_id: 12, course_name: "艺术社团"},
{course_id: 13, course_name: "体育社团"},
{course_id: 21, course_name: "体会劳动光荣"},
{course_id: 22, course_name: "提高劳动能力"},
{course_id: 23, course_name: "启蒙劳动意识"},
{course_id: 24, course_name: "养成劳动习惯"},
{course_id: 31, course_name: "思政课程"}
],
courseList: [
{course_id: 11, course_name: "科技社团"},
{course_id: 12, course_name: "艺术社团"},
{course_id: 13, course_name: "体育社团"},
],
attachmentJson: [],//
courseTeacher:"",//
courseTeachingTime:"",//
courseTeachingPlace:"",//
courseTeachingObject :"",//
courseTeacher: "",//
courseTeachingTime: "",//
courseTeachingPlace: "",//
courseTeachingObject: "",//
}
},
created() {
//this.getStageList();
if(this.$props.planId && this.$props.planId !== ""){
if (this.$props.planId && this.$props.planId !== "") {
//
this.getSchoolCourseInfo();
}
@ -137,7 +149,7 @@
},
methods: {
getSchoolCourseInfo:function () {
getSchoolCourseInfo: function () {
let param = {
id: this.$props.planId,
}
@ -163,6 +175,14 @@
})
},
typeChange: function (value) {
let midArr = []
this.courseList = []
midArr = this.courseListBase.filter(item => {
return item.course_id.toString()[0] == value
})
this.courseId = midArr[0].course_id
this.courseList = midArr
// console.log('midArr', midArr)
if (this.typeId !== value) {
this.typeId = value;
}
@ -192,19 +212,19 @@
return;
}
let param = {
course_name: this.courseName ,
course_name: this.courseName,
course_synopsis: this.courseSynopsis,
type_id: this.typeId,
course_type:this.courseId,
course_cover:JSON.stringify(this.attachmentJson),
course_teacher:this.courseTeacher,
course_teaching_time:this.courseTeachingTime,
course_teaching_place:this.courseTeachingPlace,
course_teaching_object:this.courseTeachingObject,
course_type: this.courseId,
course_cover: JSON.stringify(this.attachmentJson),
course_teacher: this.courseTeacher,
course_teaching_time: this.courseTeachingTime,
course_teaching_place: this.courseTeachingPlace,
course_teaching_object: this.courseTeachingObject,
create_person_id: this.BaseConfig.userInfo.person_id,
org_id: this.BaseConfig.person_info_my.bureau_id,
}
if(this.$props.planId && this.$props.planId !== ""){
if (this.$props.planId && this.$props.planId !== "") {
param.id = this.$props.planId;
}
this.InterfaceConfig.callInterface([{
@ -252,129 +272,129 @@
font-size: 1rem;
color: black;
.add-record-row-style {
width: 50%;
min-height: 3rem;
margin: 0.5rem auto;
display: flex;
.add-record-row-style {
width: 50%;
min-height: 3rem;
margin: 0.5rem auto;
display: flex;
.li-box {
min-height: 3rem;
line-height: 3rem;
.li-box {
min-height: 3rem;
line-height: 3rem;
.must-option-style {
color: red;
margin-right: 0.2rem;
}
.must-option-style {
color: red;
margin-right: 0.2rem;
}
}
.li-left {
width: 20%;
text-align: right;
}
}
.li-left {
width: 20%;
text-align: right;
}
.li-right {
width: 80%;
.li-right {
width: 80%;
.person-list-content-style {
width: 700px;
height: 500px;
background-color: #ebebeb;
.person-list-content-style {
width: 700px;
height: 500px;
background-color: #ebebeb;
.list-content-style {
width: 100%;
height: 100%;
display: flex;
flex-wrap: wrap;
.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;
.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;
}
.person-name {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: center;
}
/deep/ .img-style {
margin-right: 0 !important;
}
/deep/ .img-style {
margin-right: 0 !important;
}
}
}
}
.ant-select {
width: 100px;
}
}
}
}
.ant-select {
width: 100px;
}
.no-border-input-style {
border-top: 0 !important;
border-left: 0 !important;
border-right: 0 !important;
}
.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;
.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;
}
.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;
}
.photo-size-style {
display: flex;
align-items: center;
align-content: center;
justify-items: center;
justify-content: center;
}
}
.edit-style {
}
.edit-style {
&
:hover {
&
:hover {
.operate-class {
display: inline-block;
}
.operate-class {
display: inline-block;
}
}
}
}
}
.button-row-style {
width: 50%;
margin: auto;
display: flex;
justify-content: center;
align-items: center;
}
}
}
}
.button-row-style {
width: 50%;
margin: auto;
display: flex;
justify-content: center;
align-items: center;
.button-style {
margin-left: 0.5rem;
}
.button-style {
margin-left: 0.5rem;
}
}
}
}
</style>

@ -69,12 +69,13 @@
isTestLogin: true
}], (result) => {
if (result[0].data.success) {
// console.log('', result[0].data.table_List)
let res = result[0].data.table_List
this.login_name = res.login_name
this.person_name = res.person_name
this.bureau_name = res.bureau_name
this.district_name = res.district_name
//this.id_number = res.district_name//
this.id_number = res.identity_num//
this.TEL = res.TEL
if (res.identity_id === 5) {
this.identity = '老师'

@ -57,7 +57,7 @@
</div>
<a-upload maxCount="1" accept=".jpg,.jpeg,.png,.bmp"
list-type="picture" class="Uploader"
@change="savePersonIDPhoto" v-show="saveModifyPhotoSuc">修改证件照
@change="savePersonIDPhoto">修改证件照
</a-upload>
<!--<Uploader :type="2" :canUpload="true" :option="{}" :multiple="false" title="修改证件照"-->
<!--@uploadComplete="uploadComplete" class="Uploader" :fileData="fileList"-->
@ -97,7 +97,6 @@
imgSrc: '',
modifyPhotoObj: {},
idPhotoJson: {},
saveModifyPhotoSuc: true,
}
},
components: {
@ -167,7 +166,7 @@
method: InterConfig.getModifyPhoto.method,
isTestLogin: InterConfig.getModifyPhoto.isTestLogin,
}], (result) => {
console.log('获取证件照', result)
console.log('获取证件照', result)//" "
if (result[0].data.code === 2000 && result[0].data.id_photo_json !== "") {
this.modifyPhotoObj = JSON.parse(result[0].data.id_photo_json)
}
@ -175,6 +174,8 @@
},
//
savePersonIDPhoto(val) {
// console.log('val', val)
// console.log('fileIDPhoto', this.fileIDPhoto)
// let param = {
// name: this.name,
// key: this.key,
@ -197,10 +198,9 @@
isTestLogin: InterConfig.savePersonIDPhoto.isTestLogin,
}], (result) => {
// console.log('', result)
if (result[0].data.code === 2000) {
if (result[0].data.code === 2000 && val.file.percent === 100 && !val.event) {
message.success('修改成功')
this.saveModifyPhotoSuc = false
} else {
} else if (result[0].data.code !== 2000) {
message.error('修改失败')
}
})

Loading…
Cancel
Save