Commit bdcd419d authored by 张伯涛's avatar 张伯涛

openApi问题修改

parent f5b5c33d
......@@ -208,6 +208,20 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item label="单位名称:" prop="unitId">
<el-select v-model="form.unitId" placeholder="请选择用户类型" :disabled="formDisabled" style="width: 100%">
<el-option
v-for="(item,index) in unitIdList"
:key="index"
:label="item.unitName"
:value="item.businessId"
/>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="apiSecretKey:" prop="apiSecretKey">
......@@ -269,6 +283,7 @@ import {
organizationUpdataApi,
iaminstitutionDecrypt
} from '@/api/openApi'
import {listUnitAll} from "@/api/sysUnit";
export default {
name: 'Index',
......@@ -277,6 +292,7 @@ export default {
},
data() {
return {
unitIdList: [],
formDisabled: false,
dateRange: [],
// 遮罩层
......@@ -292,6 +308,7 @@ export default {
organizationalStructure: ''
},
form: {
unitId: '',
flag: '1',
apiSecretKey: '',
apiPubKey: '',
......@@ -317,12 +334,19 @@ export default {
}
},
created() {
this.getListUnitAll() // 查询单位下拉
this.getList() // 列表查询
},
mounted() {
},
methods: {
/** 查询单位下拉*/
getListUnitAll() {
listUnitAll().then(res => {
this.unitIdList = res.data
})
},
/** 新增修改的时候选择时间*/
handleChangeTime() {
if (this.dateRange && this.dateRange !== '' && this.dateRange !== undefined && this.dateRange.length > 0) {
......@@ -366,6 +390,7 @@ export default {
/** 表单重置*/
reset() {
this.form = {
unitId: '',
flag: '1',
apiSecretKey: '',
apiPubKey: '',
......@@ -465,6 +490,7 @@ export default {
if (this.form.businessId !== undefined) {
const params = {
flag: this.form.flag,
unitId: this.form.unitId,
apiSecretKey: this.form.apiSecretKey,
apiPubKey: this.form.apiPubKey,
secretKey: this.encrypt(this.form.secretKey),
......@@ -489,6 +515,7 @@ export default {
} else {
const paramsAdd = {
flag: this.form.flag,
unitId: this.form.unitId,
apiSecretKey: this.form.apiSecretKey,
apiPubKey: this.form.apiPubKey,
secretKey: this.encrypt(this.form.secretKey),
......
......@@ -878,7 +878,7 @@ export default {
homeDisplay: '',
flag: '',
qualityLesson: '',
lessonType: '',
lessonType: [],
chronologicalOrdering: 1
},
......@@ -1033,16 +1033,16 @@ export default {
lessonName: '',
classHour: '',
classPlan: '',
classPlanSchool: '',
jobClassify: '',
tecClassify: '',
tecClassifySchool: '',
difficultyClassify: '',
lessonBrief: '',
lessonTeaName: '',
lessonPrice: '',
homeDisplay: '',
flag: '',
qualityLesson: '',
lessonType: [],
chronologicalOrdering: 1
}
this.loadData()
......
......@@ -166,7 +166,7 @@
</el-table-column>
<el-table-column prop="applicantName" label="申请人" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{scope.row.applicantName}} ({{ scope.row.userName }}-{{ scope.row.applicantPhone }})
{{ scope.row.applicantName }} ({{ scope.row.userName }}-{{ scope.row.applicantPhone }})
</template>
</el-table-column>
<el-table-column label="课程名称" prop="roleKey" :show-overflow-tooltip="true">
......@@ -805,7 +805,6 @@
</div>
</div>
</div>
</div>
<div class="drawerfooter">
<div class="drawer-area">
<div class="test">
......@@ -817,6 +816,8 @@
</div>
</div>
</div>
</div>
</el-drawer>
</div>
</template>
......@@ -1755,10 +1756,13 @@ input::-webkit-inner-spin-button {
}
.lessonDrawer {
::v-deep .el-drawer__body{
overflow-y: auto;
}
.drawerBoby {
width: 100%;
height: 750px;;
overflow-y: auto;
//height: 750px;;
//overflow-y: auto;
//标题样式
.step-header {
......@@ -1809,10 +1813,10 @@ input::-webkit-inner-spin-button {
}
.drawerfooter {
position: relative;
top: 2%;
height: 400px;
//position: relative;
//top: 2%;
//height: 400px;
margin: 20px 70px 20px 0;
.drawer-area {
margin-left: 7%;
display: flex;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment