feat: 支持按项目配置钉钉通知 @ 名单
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
a4cd855b0c
commit
10c39b5116
@@ -725,6 +725,18 @@
|
||||
<textarea v-model="projectForm.copy_items_text" rows="3" class="code-textarea"></textarea>
|
||||
</div>
|
||||
|
||||
<h4 class="section-title">钉钉 @ 人员(留空使用全局名单)</h4>
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label>Ad_Hoc @ 手机号</label>
|
||||
<textarea v-model="projectForm.at_mobiles_text" rows="3" class="code-textarea" placeholder="每行一个,或用逗号分隔"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>App_Store @ 手机号</label>
|
||||
<textarea v-model="projectForm.at_mobiles_app_store_text" rows="3" class="code-textarea" placeholder="每行一个,或用逗号分隔"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4 class="section-title">自定义字段与替换规则(JSON)</h4>
|
||||
<div class="form-group">
|
||||
<label>App 字段</label>
|
||||
@@ -963,6 +975,7 @@ const projectDefinitions = ref([])
|
||||
const showProjectModal = ref(false)
|
||||
const editingProjectId = ref(null)
|
||||
const projectForm = ref({})
|
||||
const splitMobiles = text => (text || '').split(/[\s,,]+/).map(s => s.trim()).filter(Boolean)
|
||||
const toJsonText = value => (value && value.length ? JSON.stringify(value, null, 2) : '')
|
||||
|
||||
const openProjectModal = (project = null) => {
|
||||
@@ -971,6 +984,7 @@ const openProjectModal = (project = null) => {
|
||||
id: '', name: '', source_dir: '', patcher: 'generic', obfuscation: false, copy_items: [],
|
||||
git: { remote_url: '', username: '', use_env: false, password_set: false },
|
||||
xcode: { workspace: '', project: '' }, app_fields: [], server_fields: [], patch_rules: [],
|
||||
dingtalk_at: { at_mobiles: [], at_mobiles_app_store: [] },
|
||||
}
|
||||
projectForm.value = {
|
||||
id: p.id,
|
||||
@@ -981,6 +995,8 @@ const openProjectModal = (project = null) => {
|
||||
git: { ...p.git, password: '' },
|
||||
xcode: { ...p.xcode },
|
||||
copy_items_text: (p.copy_items || []).join('\n'),
|
||||
at_mobiles_text: (p.dingtalk_at?.at_mobiles || []).join('\n'),
|
||||
at_mobiles_app_store_text: (p.dingtalk_at?.at_mobiles_app_store || []).join('\n'),
|
||||
app_fields_text: toJsonText(p.app_fields),
|
||||
server_fields_text: toJsonText(p.server_fields),
|
||||
patch_rules_text: toJsonText(p.patch_rules),
|
||||
@@ -1018,6 +1034,10 @@ const saveProject = async () => {
|
||||
patcher: form.patcher,
|
||||
obfuscation: form.obfuscation,
|
||||
copy_items: form.copy_items_text.split('\n').map(item => item.trim()).filter(Boolean),
|
||||
dingtalk_at: {
|
||||
at_mobiles: splitMobiles(form.at_mobiles_text),
|
||||
at_mobiles_app_store: splitMobiles(form.at_mobiles_app_store_text),
|
||||
},
|
||||
...parsed,
|
||||
}
|
||||
const editing = editingProjectId.value
|
||||
|
||||
Reference in New Issue
Block a user