|
45 | 45 | <th style="width: 120px">加群</th> |
46 | 46 | <th style="width: 160px">登陆时间</th> |
47 | 47 | <th>删除</th> |
48 | | - <th>是否收费</th> |
| 48 | + <th v-if="user_permission >= 5">是否收费</th> |
49 | 49 | <th v-if="user_permission >= 1">更多</th> |
50 | 50 | </tr> |
51 | 51 | </thead> |
|
95 | 95 | <td> |
96 | 96 | <n-button quaternary type="error" @click="del_bot(i._id)">删除</n-button> |
97 | 97 | </td> |
98 | | - <td> |
| 98 | + <td v-if="user_permission >= 5"> |
99 | 99 | <n-switch v-model:value="bot_data[i._id].is_com" @update:value="set_bot_info(i._id)" /> |
100 | 100 | </td> |
101 | 101 | <td v-if="user_permission >= 1"> |
|
133 | 133 | <n-input-number v-model:value="bot_data[cur_bot_id].master" :show-button="false" /> |
134 | 134 | <n-button tertiary @click="set_bot_info(cur_bot_id)">确定</n-button> |
135 | 135 | </n-input-group> |
| 136 | + <br><br> |
| 137 | + <n-input-group> |
| 138 | + <n-input-group-label>机器人性格</n-input-group-label> |
| 139 | + <n-input autosize style="min-width: 30%" v-model:value="bot_data[cur_bot_id].character":maxlength="25" show-count></n-input> |
| 140 | + <n-button tertiary @click="set_bot_info(cur_bot_id)">确定</n-button> |
| 141 | + </n-input-group> |
| 142 | + <br> |
136 | 143 | <br> |
137 | | - <span> |
138 | | - 开启收费<n-switch v-model:value="bot_data[cur_bot_id].is_com" @update:value="set_bot_info(cur_bot_id)" /> |
139 | | - </span> |
| 144 | + <span v-if="user_permission >= 5">开启收费<n-switch v-model:value="bot_data[cur_bot_id].is_com" @update:value="set_bot_info(cur_bot_id)" /></span> |
140 | 145 | </div> |
141 | 146 | <br> |
142 | 147 | <n-table :bordered="false" :single-line="false"> |
@@ -429,7 +434,8 @@ async function set_bot_info(bot_id=null) { |
429 | 434 | var set_data = { |
430 | 435 | "is_com": bot_data.value[bot_id]["is_com"], |
431 | 436 | "enable": bot_data.value[bot_id]["enable"], |
432 | | - "master": bot_data.value[bot_id]["master"] |
| 437 | + "master": bot_data.value[bot_id]["master"], |
| 438 | + "character": bot_data.value[bot_id]["character"], |
433 | 439 | } |
434 | 440 | var req_data = { |
435 | 441 | action: "set_info", |
|
0 commit comments