|
@@ -88,7 +88,8 @@ ion-segment-button {
|
|
</ion-button>
|
|
</ion-button>
|
|
<ion-page>
|
|
<ion-page>
|
|
<ion-content class="ion-padding">
|
|
<ion-content class="ion-padding">
|
|
- <ion-modal trigger="open-modal" :backdrop-dismiss="false" :is-open="isOpen" :initial-breakpoint="1"
|
|
|
|
|
|
+ <ion-modal trigger="open-modal" :backdrop-dismiss="false" @willPresent="onRest()" :is-open="isOpen"
|
|
|
|
+ :initial-breakpoint="1"
|
|
:breakpoints="[0, 1]">
|
|
:breakpoints="[0, 1]">
|
|
<ion-toolbar>
|
|
<ion-toolbar>
|
|
<ion-item>
|
|
<ion-item>
|
|
@@ -253,11 +254,11 @@ export default defineComponent({
|
|
const onSelectType = (type: number) => {
|
|
const onSelectType = (type: number) => {
|
|
if (selectType.one == type) {
|
|
if (selectType.one == type) {
|
|
selectModelList.map(x => {
|
|
selectModelList.map(x => {
|
|
- x.isSelect = false
|
|
|
|
- x.disabled = true
|
|
|
|
- x.professionName = ''
|
|
|
|
- x.professionID = ''
|
|
|
|
- x.professionList = []
|
|
|
|
|
|
+ x.isSelect = false,
|
|
|
|
+ x.disabled = true,
|
|
|
|
+ x.professionName = '',
|
|
|
|
+ x.professionID = '',
|
|
|
|
+ x.professionList = []
|
|
});
|
|
});
|
|
|
|
|
|
selectModelList[selectType.one].isSelect = true;
|
|
selectModelList[selectType.one].isSelect = true;
|
|
@@ -314,12 +315,11 @@ export default defineComponent({
|
|
|
|
|
|
if (type == selectType.one) {
|
|
if (type == selectType.one) {
|
|
onSelectType(selectType.two);
|
|
onSelectType(selectType.two);
|
|
- }else if (type == selectType.two) {
|
|
|
|
|
|
+ } else if (type == selectType.two) {
|
|
onSelectType(selectType.three);
|
|
onSelectType(selectType.three);
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
getSelectProsession();
|
|
getSelectProsession();
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
const getSelectProsession = () => {
|
|
const getSelectProsession = () => {
|
|
@@ -335,11 +335,48 @@ export default defineComponent({
|
|
isOpen.value = false;
|
|
isOpen.value = false;
|
|
context.emit("SetProfessionID", selectProfessionInfo);
|
|
context.emit("SetProfessionID", selectProfessionInfo);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ const onRest = () => {
|
|
|
|
+ selectModelList.splice(0, 1, {
|
|
|
|
+ index: 0,
|
|
|
|
+ name: '分类一',
|
|
|
|
+ isSelect: false,
|
|
|
|
+ disabled: true,
|
|
|
|
+ professionName: '',
|
|
|
|
+ professionID: '',
|
|
|
|
+ professionList: [] as any
|
|
|
|
+ });
|
|
|
|
+ selectModelList.splice(1, 1,
|
|
|
|
+ {
|
|
|
|
+ index: 1,
|
|
|
|
+ name: '分类二',
|
|
|
|
+ isSelect: false,
|
|
|
|
+ disabled: true,
|
|
|
|
+ professionName: '',
|
|
|
|
+ professionID: '',
|
|
|
|
+ professionList: [] as any
|
|
|
|
+ });
|
|
|
|
+ selectModelList.splice(2, 1,
|
|
|
|
+ {
|
|
|
|
+ index: 2,
|
|
|
|
+ name: '岗位',
|
|
|
|
+ isSelect: false,
|
|
|
|
+ disabled: true,
|
|
|
|
+ professionName: '',
|
|
|
|
+ professionID: '',
|
|
|
|
+ professionList: [] as any
|
|
|
|
+ });
|
|
|
|
+ selectProfessionInfo.text = '';
|
|
|
|
+ selectProfessionInfo.value = '';
|
|
|
|
+ professionLevelList.value = [];
|
|
|
|
+ }
|
|
|
|
+
|
|
return {
|
|
return {
|
|
isOpen,
|
|
isOpen,
|
|
selectType,
|
|
selectType,
|
|
selectModelList,
|
|
selectModelList,
|
|
selectProfessionInfo,
|
|
selectProfessionInfo,
|
|
|
|
+ onRest,
|
|
loadProfessionInfo,
|
|
loadProfessionInfo,
|
|
onSelectType,
|
|
onSelectType,
|
|
onSelect,
|
|
onSelect,
|