This commit is contained in:
张成
2025-12-24 22:55:01 +08:00
parent 5acf0a52cc
commit db574986dd
3 changed files with 9 additions and 3 deletions

View File

@@ -30,7 +30,7 @@
<FormItem label="登录名" prop="login_name">
<Input v-model="formData.login_name" placeholder="请输入登录名" />
</FormItem>
<FormItem label="密码" prop="pwd">
<FormItem label="密码" prop="pwd" v-if="!isEdit">
<Input v-model="formData.pwd" type="password" placeholder="请输入密码" />
</FormItem>
<FormItem label="搜索关键词">
@@ -98,7 +98,7 @@
<Card title="排序优先级配置" style="margin-bottom: 16px;">
<FormItem label="排序优先级">
<div class="priority-config">
<div v-for="(item, index) in priorityList" :key="item.key" class="priority-item">
<div v-for="item in priorityList" :key="item.key" class="priority-item">
<div class="priority-label">
<Icon type="ios-menu" class="drag-handle" />
<span>{{ getPriorityLabel(item.key) }}</span>
@@ -322,7 +322,8 @@ export default {
this.formData.sn_code = row.sn_code || ''
this.formData.platform_type = row.platform_type || ''
this.formData.login_name = row.login_name || ''
this.formData.pwd = row.pwd || ''
// 编辑模式下不加载密码,密码修改需要使用单独的接口
this.formData.pwd = ''
this.formData.keyword = row.keyword || ''
// 复制编辑字段

View File

@@ -372,6 +372,7 @@ module.exports = {
'POST /user/delivery-config/save': async (ctx) => {
try {
const body = ctx.getBody();
console.log('body', body);
const { sn_code, deliver_config } = body;

View File

@@ -202,6 +202,10 @@ class PlaAccountService {
// 过滤掉虚拟字段 remaining_days它是计算字段不应该保存到数据库
delete processedData.remaining_days;
// 过滤掉密码字段(密码修改需要使用单独的接口,这里不允许修改密码)
delete processedData.pwd;
delete processedData.password;
booleanFields.forEach(field => {
if (processedData[field] !== undefined && processedData[field] !== null) {
processedData[field] = processedData[field] ? 1 : 0;