|
@@ -74,7 +74,7 @@
|
|
|
>
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="身份证号:" prop="phone">
|
|
|
+ <el-form-item label="账号:" prop="phone">
|
|
|
<el-input
|
|
|
v-model="userRuleForm.phone"
|
|
|
@change="onCardNoChange"
|
|
@@ -120,22 +120,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="军衔:" prop="military">
|
|
|
- <el-select v-model="userRuleForm.military" placeholder="请选择军衔">
|
|
|
- <el-option
|
|
|
- v-for="item in militaries"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
-
|
|
|
- <el-row :gutter="10">
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="职务:" prop="profession">
|
|
|
+ <el-form-item label="职业:" prop="profession">
|
|
|
<el-input
|
|
|
type="text"
|
|
|
:maxlength="30"
|
|
@@ -143,120 +128,144 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="飞行等级:" prop="fightRegistration">
|
|
|
- <el-select v-model="userRuleForm.fightRegistration" placeholder="请选择飞行等级">
|
|
|
- <el-option
|
|
|
- v-for="item in fightRegistrations"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+<!-- <el-col :span="12">-->
|
|
|
+<!-- <el-form-item label="军衔:" prop="military">-->
|
|
|
+<!-- <el-select v-model="userRuleForm.military" placeholder="请选择军衔">-->
|
|
|
+<!-- <el-option-->
|
|
|
+<!-- v-for="item in militaries"-->
|
|
|
+<!-- :key="item.value"-->
|
|
|
+<!-- :label="item.label"-->
|
|
|
+<!-- :value="item.value">-->
|
|
|
+<!-- </el-option>-->
|
|
|
+<!-- </el-select>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="10">
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="单位:" prop="brigade">
|
|
|
- <el-input
|
|
|
- v-if="isOtherDepartment"
|
|
|
- type="text"
|
|
|
- :maxLength="50"
|
|
|
- v-model="userRuleForm.brigade"
|
|
|
- >
|
|
|
- </el-input>
|
|
|
-
|
|
|
- <el-input
|
|
|
- v-else
|
|
|
- type="number"
|
|
|
- :min="1"
|
|
|
- :max="100"
|
|
|
- v-model.number="userRuleForm.brigade"
|
|
|
- >
|
|
|
- <template slot="suffix"><span class="suffix">旅</span></template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="3">
|
|
|
- <el-form-item prop="" label-width="0">
|
|
|
- <el-checkbox v-model="isOtherDepartment" @change="onDepartmentChange">其他单位</el-checkbox>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="9">
|
|
|
- <el-form-item prop="detachment" label-width="0">
|
|
|
- <el-input
|
|
|
- type="number"
|
|
|
- :min="1"
|
|
|
- :max="9999"
|
|
|
- v-model.number="userRuleForm.detachment"
|
|
|
- >
|
|
|
- <template slot="suffix"><span class="suffix">大队</span></template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+<!-- <el-col :span="12">-->
|
|
|
+<!-- <el-form-item label="职业:" prop="profession">-->
|
|
|
+<!-- <el-input-->
|
|
|
+<!-- type="text"-->
|
|
|
+<!-- :maxlength="30"-->
|
|
|
+<!-- v-model="userRuleForm.profession"-->
|
|
|
+<!-- ></el-input>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- <el-col :span="12">-->
|
|
|
+<!-- <el-form-item label="飞行等级:" prop="fightRegistration">-->
|
|
|
+<!-- <el-select v-model="userRuleForm.fightRegistration" placeholder="请选择飞行等级">-->
|
|
|
+<!-- <el-option-->
|
|
|
+<!-- v-for="item in fightRegistrations"-->
|
|
|
+<!-- :key="item.value"-->
|
|
|
+<!-- :label="item.label"-->
|
|
|
+<!-- :value="item.value">-->
|
|
|
+<!-- </el-option>-->
|
|
|
+<!-- </el-select>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
</el-row>
|
|
|
|
|
|
- <el-row :gutter="10">
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="总飞行时间:" prop="flightDuration">
|
|
|
- <el-input
|
|
|
- type="number"
|
|
|
- :min="1"
|
|
|
- :max="9999"
|
|
|
- v-model="userRuleForm.flightDuration"
|
|
|
- planceholder="请输入总飞行时间"
|
|
|
- >
|
|
|
- <template slot="suffix"><span class="suffix">小时</span></template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="飞过机型:" prop="flyingModels">
|
|
|
- <el-select
|
|
|
- v-model="userRuleForm.flyingModels"
|
|
|
- multiple
|
|
|
- filterable
|
|
|
- allow-create
|
|
|
- default-first-option
|
|
|
- placeholder="请选择机型,可多选">
|
|
|
- <el-option
|
|
|
- v-for="item in fightTypes"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="现机型飞行时间:" prop="currentTypeFlightDuration">
|
|
|
- <el-input
|
|
|
- type="number"
|
|
|
- :min="1"
|
|
|
- :max="9999"
|
|
|
- v-model="userRuleForm.currentTypeFlightDuration"
|
|
|
- planceholder="请输入现机型飞行时间"
|
|
|
- >
|
|
|
- <template slot="suffix"><span class="suffix">小时</span></template>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="现飞机型:" prop="currentFlyingModels">
|
|
|
- <el-select
|
|
|
- v-model="userRuleForm.currentFlyingModels"
|
|
|
- filterable
|
|
|
- allow-create
|
|
|
- default-first-option
|
|
|
- placeholder="请选择机型">
|
|
|
- <el-option
|
|
|
- v-for="item in fightTypes"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+<!-- <el-row :gutter="10">-->
|
|
|
+<!-- <el-col :span="12">-->
|
|
|
+<!-- <el-form-item label="单位:" prop="brigade">-->
|
|
|
+<!-- <el-input-->
|
|
|
+<!-- v-if="isOtherDepartment"-->
|
|
|
+<!-- type="text"-->
|
|
|
+<!-- :maxLength="50"-->
|
|
|
+<!-- v-model="userRuleForm.brigade"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- </el-input>-->
|
|
|
+
|
|
|
+<!-- <el-input-->
|
|
|
+<!-- v-else-->
|
|
|
+<!-- type="number"-->
|
|
|
+<!-- :min="1"-->
|
|
|
+<!-- :max="100"-->
|
|
|
+<!-- v-model.number="userRuleForm.brigade"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- <template slot="suffix"><span class="suffix">旅</span></template>-->
|
|
|
+<!-- </el-input>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- <el-col :span="3">-->
|
|
|
+<!-- <el-form-item prop="" label-width="0">-->
|
|
|
+<!-- <el-checkbox v-model="isOtherDepartment" @change="onDepartmentChange">其他单位</el-checkbox>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- <el-col :span="9">-->
|
|
|
+<!-- <el-form-item prop="detachment" label-width="0">-->
|
|
|
+<!-- <el-input-->
|
|
|
+<!-- type="number"-->
|
|
|
+<!-- :min="1"-->
|
|
|
+<!-- :max="9999"-->
|
|
|
+<!-- v-model.number="userRuleForm.detachment"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- <template slot="suffix"><span class="suffix">大队</span></template>-->
|
|
|
+<!-- </el-input>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- </el-row>-->
|
|
|
+
|
|
|
+<!-- <el-row :gutter="10">-->
|
|
|
+<!-- <el-col :span="12">-->
|
|
|
+<!-- <el-form-item label="总飞行时间:" prop="flightDuration">-->
|
|
|
+<!-- <el-input-->
|
|
|
+<!-- type="number"-->
|
|
|
+<!-- :min="1"-->
|
|
|
+<!-- :max="9999"-->
|
|
|
+<!-- v-model="userRuleForm.flightDuration"-->
|
|
|
+<!-- planceholder="请输入总飞行时间"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- <template slot="suffix"><span class="suffix">小时</span></template>-->
|
|
|
+<!-- </el-input>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- <el-form-item label="飞过机型:" prop="flyingModels">-->
|
|
|
+<!-- <el-select-->
|
|
|
+<!-- v-model="userRuleForm.flyingModels"-->
|
|
|
+<!-- multiple-->
|
|
|
+<!-- filterable-->
|
|
|
+<!-- allow-create-->
|
|
|
+<!-- default-first-option-->
|
|
|
+<!-- placeholder="请选择机型,可多选">-->
|
|
|
+<!-- <el-option-->
|
|
|
+<!-- v-for="item in fightTypes"-->
|
|
|
+<!-- :key="item.value"-->
|
|
|
+<!-- :label="item.label"-->
|
|
|
+<!-- :value="item.value">-->
|
|
|
+<!-- </el-option>-->
|
|
|
+<!-- </el-select>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- <el-col :span="12">-->
|
|
|
+<!-- <el-form-item label="现机型飞行时间:" prop="currentTypeFlightDuration">-->
|
|
|
+<!-- <el-input-->
|
|
|
+<!-- type="number"-->
|
|
|
+<!-- :min="1"-->
|
|
|
+<!-- :max="9999"-->
|
|
|
+<!-- v-model="userRuleForm.currentTypeFlightDuration"-->
|
|
|
+<!-- planceholder="请输入现机型飞行时间"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- <template slot="suffix"><span class="suffix">小时</span></template>-->
|
|
|
+<!-- </el-input>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- <el-form-item label="现飞机型:" prop="currentFlyingModels">-->
|
|
|
+<!-- <el-select-->
|
|
|
+<!-- v-model="userRuleForm.currentFlyingModels"-->
|
|
|
+<!-- filterable-->
|
|
|
+<!-- allow-create-->
|
|
|
+<!-- default-first-option-->
|
|
|
+<!-- placeholder="请选择机型">-->
|
|
|
+<!-- <el-option-->
|
|
|
+<!-- v-for="item in fightTypes"-->
|
|
|
+<!-- :key="item.value"-->
|
|
|
+<!-- :label="item.label"-->
|
|
|
+<!-- :value="item.value">-->
|
|
|
+<!-- </el-option>-->
|
|
|
+<!-- </el-select>-->
|
|
|
+<!-- </el-form-item>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- </el-row>-->
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="success" size="small" @click="submitUserForm(10)">提交</el-button>
|
|
@@ -816,18 +825,18 @@ export default {
|
|
|
this.userType = sessionStorage.getItem("f7a42fe7211f98ac7a60a285ac3a9528");
|
|
|
|
|
|
// 校验用户其他元素信息 先检测用户单位信息 若没有则弹出完善信息框
|
|
|
- setTimeout(() => {
|
|
|
- this.userRuleForm = JSON.parse(sessionStorage.getItem("user-all-info"))
|
|
|
- console.log(' ------------------------------- this.userRuleForm: ', this.userRuleForm)
|
|
|
- if (!this.userRuleForm || !this.userRuleForm.brigade || this.userRuleForm.brigade === '') {
|
|
|
- this.dialogTitle = "完善信息"
|
|
|
- this.userDialogVisiblephone1 = true
|
|
|
- } else {
|
|
|
- const currentFlyingModels = JSON.parse(this.userRuleForm.currentFlyingModels)
|
|
|
- this.userRuleForm.currentFlyingModels = currentFlyingModels.length ? currentFlyingModels[0] : ''
|
|
|
- this.userRuleForm.flyingModels = JSON.parse(this.userRuleForm.flyingModels)
|
|
|
- }
|
|
|
- }, 1100)
|
|
|
+ // setTimeout(() => {
|
|
|
+ // this.userRuleForm = JSON.parse(sessionStorage.getItem("user-all-info"))
|
|
|
+ // console.log(' ------------------------------- this.userRuleForm: ', this.userRuleForm)
|
|
|
+ // if (!this.userRuleForm || !this.userRuleForm.brigade || this.userRuleForm.brigade === '') {
|
|
|
+ // this.dialogTitle = "完善信息"
|
|
|
+ // this.userDialogVisiblephone1 = true
|
|
|
+ // } else {
|
|
|
+ // const currentFlyingModels = JSON.parse(this.userRuleForm.currentFlyingModels)
|
|
|
+ // this.userRuleForm.currentFlyingModels = currentFlyingModels.length ? currentFlyingModels[0] : ''
|
|
|
+ // this.userRuleForm.flyingModels = JSON.parse(this.userRuleForm.flyingModels)
|
|
|
+ // }
|
|
|
+ // }, 1100)
|
|
|
|
|
|
// 配合公网版游客模式改造
|
|
|
if (this.userId) {
|