hookehuyr

fix 记录人只能创建者编辑

<!--
* @Date: 2022-09-30 09:53:14
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-03 16:33:28
* @LastEditTime: 2022-11-15 14:36:16
* @FilePath: /swx/src/pages/editInfo/index.vue
* @Description: 文件描述
-->
......@@ -61,7 +61,7 @@
<view style="margin-right: 0; margin-top: 0.5rem;"><van-icon @tap="show_type_popup=true" :name="icon_sel" color="" /></view>
</view>
</view>
<view v-if="role === 'player'" class="at-input" style="margin-right: 1rem;">
<view v-if="role === 'player' && my_member_role === 'creator'" class="at-input" style="margin-right: 1rem;">
<view class="at-input__container">
<label class="h5-label at-input__title at-input__title">记录人</label>
<input @tap="show_partner_popup=true" class="h5-input at-input__input" placeholder-class="placeholder" :value="user_partner.text" placeholder="请选择记录人" :disabled="true"/>
......@@ -121,6 +121,7 @@ const phone = ref('');
const user_sex = ref('');
const age_group = ref('');
const role = ref('');
const my_member_role = ref('');
const partner = ref('');
const status_columns = ref([]);
const type_columns = ref([]);
......@@ -141,6 +142,7 @@ onMounted(async () => {
user_status.value = data.member.status;
role.value = data.member.role;
partner.value = data.member.partner;
my_member_role.value = data.my_member_role;
}
// 年龄段存在,默认选中
if (age_group.value) {
......