修改添加和修改课程页面

dev_2307
gegeya 1 year ago
parent a54d181028
commit 508f39d58f
  1. 24
      ant-design-vue-jeecg/src/views/course/AddCourse.vue
  2. 18
      ant-design-vue-jeecg/src/views/course/EditCourse.vue

@ -21,12 +21,7 @@
<a-col :span="8"> <a-col :span="8">
<a-form-item label="所属院系" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="所属院系" :labelCol="labelCol" :wrapperCol="wrapperCol">
<!-- 删除multi --> <!-- 删除multi -->
<!-- <j-select-depart v-model="model.depid" @change="getMajor()" /> --> <j-select-depart v-model="model.depid" @change="getMajor()" />
<j-select-depart
v-decorator="['depid', { initialValue: initiaDeipd }]"
:trigger-change="true"
@change="getMajor()"
/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
@ -110,7 +105,7 @@
<!-- 修改 --> <!-- 修改 -->
<!-- <j-search-select-tag dict="se_semester,name,id"></j-search-select-tag>--> <!-- <j-search-select-tag dict="se_semester,name,id"></j-search-select-tag>-->
<!-- <j-search-select-tag dict="xueqi" v-model="model.year"></j-search-select-tag> --> <!-- <j-search-select-tag dict="xueqi" v-model="model.year"></j-search-select-tag> -->
<j-dict-select-tag type="radio" v-model="model.semester" dictCode="xueqi" placeholder="请选择" /> <j-dict-select-tag type="radio" v-model="model.year" dictCode="xueqi" placeholder="请选择" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
@ -443,15 +438,15 @@ export default {
return { return {
fs: false, fs: false,
show: false, show: false,
initiaDeipd: '01dfe0b225894beb9f37d3aa4d93183e',
model: { model: {
category: 1, category: 1,
cooperativeEducation: 0, cooperativeEducation: 0,
semester: '1', year: '1',
depid: '01dfe0b225894beb9f37d3aa4d93183e', depid: '',
majorid: '1479007021540012033', majorid: '',
verifier: '01dfe0b225894beb9f37d3aa4d93183e', verifier: '',
teachingandoffice: 'admin' teachingandoffice: ''
}, },
dataLoaded: false, dataLoaded: false,
@ -666,10 +661,11 @@ export default {
getData () { getData () {
getAction(this.url.dqyh).then((res) => { getAction(this.url.dqyh).then((res) => {
if (res.success) { if (res.success) {
this.model.initiaDeipd = res.result.depid this.model.depid = res.result.depid
this.model.teachingandoffice = res.result.teachingandoffice this.model.teachingandoffice = res.result.teachingandoffice
this.model.majorid = res.result.majorid this.model.majorid = res.result.majorid
this.model.verifier = res.result.verifier this.model.verifier = res.result.verifier
} }
this.dataLoaded = true // dataLoadedtrue this.dataLoaded = true // dataLoadedtrue
}) })

@ -46,7 +46,7 @@
<a-col :span="8"> <a-col :span="8">
<a-form-item label="课程类别" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="课程类别" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag <j-dict-select-tag
type="list" type="radio"
v-decorator="['category']" v-decorator="['category']"
:trigger-change="true" :trigger-change="true"
dictCode="coursecategory" dictCode="coursecategory"
@ -56,12 +56,12 @@
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
<a-form-item label="课程性质" :labelCol="labelCol" :wrapperCol="wrapperCol"> <a-form-item label="课程性质" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-tree-select <j-dict-select-tag
v-decorator="['nature']" type="radio"
placeholder="课程性质" v-decorator="['nature', { initialValue: '1298167997234712578' }]"
dict="se_nature,content,id" :trigger-change="true"
pidField="pid" dictCode="se_nature,content,id,(pid='0' and id!='1298168032655609858') or pid='1298168032655609858'"
pidValue="0" placeholder="请选择课程类别"
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -117,7 +117,7 @@
<!-- <a-input v-decorator="['semester']" placeholder="请输入开课学期"></a-input> --> <!-- <a-input v-decorator="['semester']" placeholder="请输入开课学期"></a-input> -->
<!-- 修改 --> <!-- 修改 -->
<!-- <j-search-select-tag dict="se_semester,name,id"></j-search-select-tag>--> <!-- <j-search-select-tag dict="se_semester,name,id"></j-search-select-tag>-->
<j-search-select-tag dict="xueqi" v-model="model.year"></j-search-select-tag> <j-dict-select-tag type="radio" v-model="model.year" dictCode="xueqi" placeholder="请选择" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="8"> <a-col :span="8">
@ -407,7 +407,7 @@
<!-- <el-button type="primary" size="small" @click="handleReset" class="el-left">清空</el-button> --> <!-- <el-button type="primary" size="small" @click="handleReset" class="el-left">清空</el-button> -->
<el-button type="primary" size="small" @click="handleOk" class="el-left">确定</el-button> <el-button type="primary" size="small" @click="handleOk" class="el-left">确定</el-button>
<!-- <el-button type="primary" size="small" @click="handleOk" class="el-right">暂存</el-button> --> <!-- <el-button type="primary" size="small" @click="handleOk" class="el-right">暂存</el-button> -->
<el-button type="primary" size="small" @click="handleAdd" class="el-right">增加下一门课</el-button> <!-- <el-button type="primary" size="small" @click="handleAdd" class="el-right">增加下一门课</el-button> -->
</div> </div>
<!-- 修改 --> <!-- 修改 -->
<!-- <add-course ref="modalForm" @ok="modalFormOk"></add-course> --> <!-- <add-course ref="modalForm" @ok="modalFormOk"></add-course> -->

Loading…
Cancel
Save