|
@@ -1,7 +1,8 @@
|
|
|
<script setup>
|
|
|
import { userInfo } from '~/store/user'
|
|
|
|
|
|
-const { uo_type } = userInfo
|
|
|
+const { uo_type, uo_name } = userInfo
|
|
|
+
|
|
|
const isBureau = ref(false)// 当前用户是否局端
|
|
|
isBureau.value = uo_type === '1'
|
|
|
const list = ref([])
|
|
@@ -12,7 +13,7 @@ const param = $ref({
|
|
|
jjtx_tx_year: '',
|
|
|
jjtx_tx_month: '',
|
|
|
jjtx_xb: '',
|
|
|
- jjtx_uo_name: '',
|
|
|
+ jjtx_uo_name: isBureau ? '' : uo_name,
|
|
|
keyword: '',
|
|
|
})
|
|
|
function onLoad() {
|
|
@@ -72,7 +73,7 @@ function reGetList() {
|
|
|
<van-dropdown-item v-model="param.jjtx_tx_year" :options="yearOption" @change="dropItemChange" />
|
|
|
<van-dropdown-item v-model="param.jjtx_tx_month" :options="monthOption" @change="dropItemChange" />
|
|
|
<van-dropdown-item v-model="param.jjtx_xb" :options="xbOption" @change="dropItemChange" />
|
|
|
- <van-dropdown-item v-if="!isBureau" ref="itemRef" title="学校">
|
|
|
+ <van-dropdown-item v-if="isBureau" ref="itemRef" title="学校">
|
|
|
<van-cell-group inset>
|
|
|
<van-field v-model="param.jjtx_uo_name" placeholder="请输入学校名称" />
|
|
|
</van-cell-group>
|