添加考官
Showing
2 changed files
with
10 additions
and
9 deletions
| ... | @@ -5,14 +5,14 @@ | ... | @@ -5,14 +5,14 @@ |
| 5 | 5 | ||
| 6 | <!-- 顶部添加考官按钮 --> | 6 | <!-- 顶部添加考官按钮 --> |
| 7 | <view class="add-btn-box"> | 7 | <view class="add-btn-box"> |
| 8 | <button class="btn-red-kx mini" @click="openAddExaminer"> | 8 | <button class="btn-red-kx mini" @click="openAddExaminer" v-if="pageType !=2 "> |
| 9 | <uni-icons type="personadd" size="14" color="#AD181F"></uni-icons> | 9 | <uni-icons type="personadd" size="14" color="#AD181F" ></uni-icons> |
| 10 | 选择考官 | 10 | 选择考官 |
| 11 | </button> | 11 | </button> |
| 12 | <!-- <button class="btn-red-kx mini" @click="addExaminer"> | 12 | <button class="btn-red-kx mini" @click="addExaminer"> |
| 13 | <uni-icons type="personadd" size="14" color="#AD181F"></uni-icons> | 13 | <uni-icons type="personadd" size="14" color="#AD181F"></uni-icons> |
| 14 | 添加考官 | 14 | 添加考官 |
| 15 | </button> --> | 15 | </button> |
| 16 | </view> | 16 | </view> |
| 17 | 17 | ||
| 18 | <view class="indexboxre"> | 18 | <view class="indexboxre"> |
| ... | @@ -111,7 +111,8 @@ | ... | @@ -111,7 +111,8 @@ |
| 111 | const pageType = ref('') | 111 | const pageType = ref('') |
| 112 | onLoad((option) => { | 112 | onLoad((option) => { |
| 113 | if(option.pageType){ | 113 | if(option.pageType){ |
| 114 | pageType.value = option.pageType || '' | 114 | pageType.value = option.pageType || '' // 2级位考官 1考官库 0是考点申请 |
| 115 | console.log('pageType:', pageType.value) | ||
| 115 | } | 116 | } |
| 116 | if(option.chosen){ | 117 | if(option.chosen){ |
| 117 | chosen = JSON.parse(decodeURIComponent(option.chosen || '[]')) | 118 | chosen = JSON.parse(decodeURIComponent(option.chosen || '[]')) |
| ... | @@ -175,8 +176,8 @@ | ... | @@ -175,8 +176,8 @@ |
| 175 | }) | 176 | }) |
| 176 | return | 177 | return |
| 177 | } | 178 | } |
| 178 | 179 | console.log('row:', pageType.value) | |
| 179 | if (row.canChoose != 1) { | 180 | if (row.canChoose != 1 ) { |
| 180 | uni.showToast({ | 181 | uni.showToast({ |
| 181 | title: '该考官资质已过期!', | 182 | title: '该考官资质已过期!', |
| 182 | icon: 'error' | 183 | icon: 'error' |
| ... | @@ -293,7 +294,7 @@ function addExaminer(){ | ... | @@ -293,7 +294,7 @@ function addExaminer(){ |
| 293 | let pendingAddRow = null | 294 | let pendingAddRow = null |
| 294 | function doAddExaminer(row) { | 295 | function doAddExaminer(row) { |
| 295 | 296 | ||
| 296 | if(row.canChoose != 1 && pageType.value != 1){ | 297 | if(row.canChoose != 1 && pageType.value ==0){ |
| 297 | uni.showToast({ | 298 | uni.showToast({ |
| 298 | title: '该考官资质已过期!', | 299 | title: '该考官资质已过期!', |
| 299 | duration: 3000, | 300 | duration: 3000, | ... | ... |
| ... | @@ -5,7 +5,7 @@ | ... | @@ -5,7 +5,7 @@ |
| 5 | <image class="empty-img" mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image> | 5 | <image class="empty-img" mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image> |
| 6 | <text class="empty-text">暂无考官数据</text> | 6 | <text class="empty-text">暂无考官数据</text> |
| 7 | 7 | ||
| 8 | <button class="go-lib-btn" @click="goPath('/level/chooseExaminer?pageType=1')">去考官库添加考官吧</button> | 8 | <button class="go-lib-btn" @click="goPath('/level/chooseExaminer?pageType=0')">去考官库添加考官吧</button> |
| 9 | </view> | 9 | </view> |
| 10 | <!-- <view class="empty-tip" v-else-if="infoList.length === 0">暂无可添加的考官</view> --> | 10 | <!-- <view class="empty-tip" v-else-if="infoList.length === 0">暂无可添加的考官</view> --> |
| 11 | 11 | ... | ... |
-
Please register or sign in to post a comment