hookehuyr

fix 编辑主办方类型和状态数据还原修复

1 <!-- 1 <!--
2 * @Date: 2022-09-19 14:11:06 2 * @Date: 2022-09-19 14:11:06
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2022-10-24 09:47:06 4 + * @LastEditTime: 2022-10-28 14:13:19
5 * @FilePath: /swx/src/pages/editProject/index.vue 5 * @FilePath: /swx/src/pages/editProject/index.vue
6 * @Description: 新建主办方页面 6 * @Description: 新建主办方页面
7 --> 7 -->
...@@ -112,8 +112,21 @@ import { randomId } from '@/utils/tools' ...@@ -112,8 +112,21 @@ import { randomId } from '@/utils/tools'
112 onMounted(async () => { 112 onMounted(async () => {
113 const { code, data } = await hostInfoAPI({ i: getCurrentPageParam().id }); 113 const { code, data } = await hostInfoAPI({ i: getCurrentPageParam().id });
114 if (code) { 114 if (code) {
115 - console.warn(data); 115 + name.value = data.name;
116 - name.value = data.name 116 + data.user_type.forEach(item => {
117 + userType.value.push({
118 + key: randomId(5),
119 + label: item,
120 + checked: 1,
121 + });
122 + })
123 + data.user_status.forEach(item => {
124 + userStatus.value.push({
125 + key: randomId(5),
126 + label: item,
127 + checked: 1,
128 + });
129 + })
117 } 130 }
118 }) 131 })
119 132
......