| | |
| | | <view style="padding:20rpx 30rpx;">
|
| | | <box-title title="从业人员信息"></box-title>
|
| | | </view>
|
| | | <view class="info" v-for="(item, index) in personNum" :key="index">
|
| | | <view class="title">人员信息-#{{ index*1 + 1 }}</view>
|
| | | <view class="info" v-for="(item, index) in personNumArr" :key="index">
|
| | | <view class="flex a-i-c j-c-s-b" style="padding:20rpx;">
|
| | | <view class="title fw" style="text-align:center;">人员信息-#{{ index*1 + 1 }}</view>
|
| | | <view v-if="(index+1) > 1">
|
| | | <u-icon name="trash-fill" color="#ff0000" size="20" @click="deletePerson(index)" />
|
| | | </view>
|
| | | </view>
|
| | | <formItem ref="formItemRef"></formItem>
|
| | | </view>
|
| | |
|
| | |
| | | genderIndex: [0],
|
| | | genderValue: "",
|
| | | showNationPicker: false,
|
| | | showGenderPicker: false
|
| | | showGenderPicker: false,
|
| | | personNumArr: [1],
|
| | | }
|
| | | },
|
| | | onShow() {
|
| | |
| | | }
|
| | |
|
| | | this.personNum = placePractitioner.length
|
| | | this.personNumArr = placePractitioner;
|
| | | // const componetns = this.$refs.formItemRef || []
|
| | | placePractitioner.forEach((item, index) => {
|
| | | this.$nextTick(() => {
|
| | |
| | | })
|
| | | })
|
| | | },
|
| | | addPerson() {
|
| | | this.personNum++
|
| | | },
|
| | |
|
| | | submit() {
|
| | | if (this.personNum > 0) {
|
| | | const placePractitioner = []
|
| | |
| | |
|
| | | addPerson() {
|
| | | this.personNum++
|
| | | this.personNumArr.push(1)
|
| | | },
|
| | |
|
| | | deletePerson(index) {
|
| | | this.personNum--;
|
| | | this.personNumArr.splice(index, 1)
|
| | | }
|
| | | }
|
| | | }
|
| | | </script>
|