八大中心问题

init
zhusiyu 3 years ago
parent 836f022d7d
commit 6a306f2348

@ -118,7 +118,7 @@
type: Boolean, type: Boolean,
default: true default: true
}, },
canViewDownload:{ canViewDownload: {
type: Boolean, type: Boolean,
default: true default: true
}, },
@ -334,9 +334,9 @@
} }
let url = ""; let url = "";
if (this.BaseConfig.isSZUpload) { if (this.BaseConfig.isSZUpload) {
if(this.BaseConfig.isCloud){ if (this.BaseConfig.isCloud) {
url = "res/insert_resource_base_info"; url = "res/insert_resource_base_info";
}else { } else {
url = "intellioa/java/sys/cloudPlatform/insert_resource_base_info"; url = "intellioa/java/sys/cloudPlatform/insert_resource_base_info";
} }
} else { } else {
@ -578,7 +578,7 @@
font-size: 1rem; font-size: 1rem;
cursor: pointer; cursor: pointer;
color: red; color: red;
display: none; display: block;
} }
& &

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

@ -26,8 +26,9 @@
<div class="add-record-row-style"> <div class="add-record-row-style">
<div class="li-box li-left"><span class="must-option-style">*</span>课程分类</div> <div class="li-box li-left"><span class="must-option-style">*</span>课程分类</div>
<div class="li-box li-right"> <div class="li-box li-right">
<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"> <a-select-option v-for="item in courseList" :key="'course_'+item.course_id"
:value="item.course_id">
{{ item.course_name }} {{ item.course_name }}
</a-select-option> </a-select-option>
</a-select> </a-select>
@ -82,14 +83,16 @@
</div> </div>
</template> </template>
<script> <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 InterConfig from '../interConfig';
import ATextarea from "ant-design-vue/es/input/TextArea"; import ATextarea from "ant-design-vue/es/input/TextArea";
import Upload from '../../../../../../components/common/uploader/Upload.vue'; import Upload from '../../../../../../components/common/uploader/Upload.vue';
import moment from 'moment'; import moment from 'moment';
import 'moment/locale/zh-cn'; import 'moment/locale/zh-cn';
moment.locale('zh-cn') moment.locale('zh-cn')
import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'; import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN';
export default { export default {
props: { props: {
planId: { planId: {
@ -103,32 +106,41 @@
dateFormat: "YYYY-MM-DD HH:mm", dateFormat: "YYYY-MM-DD HH:mm",
pageLoading: false, pageLoading: false,
courseName: "",// courseName: "",//
courseSynopsis:"",// courseSynopsis: "",//
planNumber: "",// planNumber: "",//
realNumber: "",// realNumber: "",//
typeId: 1,// typeId: 1,//
typeList: [{type_id: 1, type_name: "特色课程"}, { typeList: [
type_id: 2, {type_id: 1, type_name: "特色课程"},
type_name: "劳动课程" {type_id: 2, type_name: "劳动课程"},
}, {type_id: 3, type_name: "思政课程"}], {type_id: 3, type_name: "思政课程"}
],
courseId: 11,// courseId: 11,//
courseList: [{course_id: 11, course_name: "科技社团"}, {course_id: 12, course_name: "艺术社团"}, { courseListBase: [
course_id: 13, {course_id: 11, course_name: "科技社团"},
course_name: "体育社团" {course_id: 12, course_name: "艺术社团"},
}, {course_id: 21, course_name: "体会劳动光荣"}, {course_id: 22, course_name: "提高劳动能力"}, { {course_id: 13, course_name: "体育社团"},
course_id: 23, {course_id: 21, course_name: "体会劳动光荣"},
course_name: "启蒙劳动意识" {course_id: 22, course_name: "提高劳动能力"},
}, {course_id: 24, course_name: "养成劳动习惯"}, {course_id: 31, 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: [],// attachmentJson: [],//
courseTeacher:"",// courseTeacher: "",//
courseTeachingTime:"",// courseTeachingTime: "",//
courseTeachingPlace:"",// courseTeachingPlace: "",//
courseTeachingObject :"",// courseTeachingObject: "",//
} }
}, },
created() { created() {
//this.getStageList(); //this.getStageList();
if(this.$props.planId && this.$props.planId !== ""){ if (this.$props.planId && this.$props.planId !== "") {
// //
this.getSchoolCourseInfo(); this.getSchoolCourseInfo();
} }
@ -137,7 +149,7 @@
}, },
methods: { methods: {
getSchoolCourseInfo:function () { getSchoolCourseInfo: function () {
let param = { let param = {
id: this.$props.planId, id: this.$props.planId,
} }
@ -163,6 +175,14 @@
}) })
}, },
typeChange: function (value) { 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) { if (this.typeId !== value) {
this.typeId = value; this.typeId = value;
} }
@ -192,19 +212,19 @@
return; return;
} }
let param = { let param = {
course_name: this.courseName , course_name: this.courseName,
course_synopsis: this.courseSynopsis, course_synopsis: this.courseSynopsis,
type_id: this.typeId, type_id: this.typeId,
course_type:this.courseId, course_type: this.courseId,
course_cover:JSON.stringify(this.attachmentJson), course_cover: JSON.stringify(this.attachmentJson),
course_teacher:this.courseTeacher, course_teacher: this.courseTeacher,
course_teaching_time:this.courseTeachingTime, course_teaching_time: this.courseTeachingTime,
course_teaching_place:this.courseTeachingPlace, course_teaching_place: this.courseTeachingPlace,
course_teaching_object:this.courseTeachingObject, course_teaching_object: this.courseTeachingObject,
create_person_id: this.BaseConfig.userInfo.person_id, create_person_id: this.BaseConfig.userInfo.person_id,
org_id: this.BaseConfig.person_info_my.bureau_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; param.id = this.$props.planId;
} }
this.InterfaceConfig.callInterface([{ this.InterfaceConfig.callInterface([{

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

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

Loading…
Cancel
Save