v1.0.40: 碎片处理板块调整 - 区块改名(硬数据新增与处理/软数据碎片处理)+软碎片列表时间列改updated_at(social_accounts补列迁移)+硬数据新增加全字段唯一性校验(企业名/手机/邮箱/身份证/账号ID同平台/主页链接)+格式校验(身份证/主页URL)+extra_info存储
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ var BASE_URL = '/api/';
|
||||
var PAGE_SIZE = 20;
|
||||
|
||||
/** 系统版本号(logo旁展示):修改代码后运行 tools/bump_version.php 自动递增 */
|
||||
var APP_VERSION = 'v1.0.39';
|
||||
var APP_VERSION = 'v1.0.40';
|
||||
|
||||
/** 页脚版权/备案信息(在 config.js 中修改) */
|
||||
var FOOTER_TEXT = '© 2026 SuperLink 管理系统 版权所有 | 备案号:请替换为真实备案号';
|
||||
|
||||
+14
-5
@@ -42,7 +42,7 @@ $(function () {
|
||||
// ================= 硬碎片 =================
|
||||
'<div class="card" style="margin-top:14px;">' +
|
||||
' <div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;">' +
|
||||
' <b style="font-size:15px;color:#1e2a3a;">【硬碎片】</b>' +
|
||||
' <b style="font-size:15px;color:#1e2a3a;">【硬数据新增与处理】</b>' +
|
||||
' <span style="font-size:12px;color:#8a94a6;">关键字段缺失、未入主表的原始线索(不含已转换/已废弃)</span>' +
|
||||
' </div>' +
|
||||
' <div class="toolbar">' +
|
||||
@@ -68,7 +68,7 @@ $(function () {
|
||||
// ================= 软碎片 =================
|
||||
'<div class="card" style="margin-top:14px;">' +
|
||||
' <div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;">' +
|
||||
' <b style="font-size:15px;color:#1e2a3a;">【软碎片】</b>' +
|
||||
' <b style="font-size:15px;color:#1e2a3a;">【软数据碎片处理】</b>' +
|
||||
' <span style="font-size:12px;color:#8a94a6;">已入主表但完整度低于阈值的记录(is_incomplete=1)</span>' +
|
||||
' </div>' +
|
||||
' <div class="toolbar">' +
|
||||
@@ -83,7 +83,7 @@ $(function () {
|
||||
' <button class="btn" id="soft-reset">重置</button>' +
|
||||
' </div>' +
|
||||
' <div class="table-wrap"><table class="grid">' +
|
||||
' <thead><tr><th>完整度</th><th>缺失层级</th><th>名称</th><th>各层完整度</th><th>缺失字段</th><th>所属表</th><th>录入时间</th><th>操作</th></tr></thead>' +
|
||||
' <thead><tr><th>完整度</th><th>缺失层级</th><th>名称</th><th>各层完整度</th><th>缺失字段</th><th>所属表</th><th>上一次更新</th><th>操作</th></tr></thead>' +
|
||||
' <tbody id="soft-tbody"></tbody>' +
|
||||
' </table></div>' +
|
||||
' <div class="pagination" id="soft-pagination"></div>' +
|
||||
@@ -187,7 +187,7 @@ $(function () {
|
||||
'<td style="font-size:12px;color:#5a6472;white-space:nowrap;">' + layerHtml + '</td>' +
|
||||
'<td style="max-width:240px;">' + escHtml(missing) + '</td>' +
|
||||
'<td>' + escHtml(r.table_label) + '</td>' +
|
||||
'<td>' + fmtDate(r.created_at) + '</td>' +
|
||||
'<td>' + fmtDate(r.updated_at) + '</td>' +
|
||||
'<td class="ops"><a onclick="completeSoft(\'' + r.table + '\',' + r.id + ')">补全</a></td></tr>';
|
||||
});
|
||||
if (!softRows.length) {
|
||||
@@ -211,8 +211,15 @@ $(function () {
|
||||
' <div class="form-item" id="ha-f-person_name"><label>联系人</label><input type="text" name="person_name" placeholder="如:张三"></div>' +
|
||||
' <div class="form-item"><label>联系电话</label><input type="text" name="contact_phone" placeholder="如:13812345678"></div>' +
|
||||
' <div class="form-item"><label>联系邮箱</label><input type="text" name="contact_email" placeholder="如:a@b.com"></div>' +
|
||||
' <div class="form-item" id="ha-f-idnumber"><label>身份证号码</label><input type="text" name="id_number" placeholder="15 或 18 位"></div>' +
|
||||
' <div class="form-item" id="ha-f-category"><label>意向产品品类</label><input type="text" name="target_product_category" placeholder="如:工业机器人"></div>' +
|
||||
' <div class="form-item"><label>来源渠道</label><select name="source_channel" id="ha-source"><option value="手动录入">手动录入</option></select></div>' +
|
||||
' <div class="form-item" id="ha-f-platform"><label>社媒平台</label><select name="platform" id="ha-platform"><option value="">-</option>' +
|
||||
' <option value="wechat">微信</option><option value="weibo">微博</option><option value="douyin">抖音</option>' +
|
||||
' <option value="bilibili">B站</option><option value="linkedin">领英</option><option value="xiaohongshu">小红书</option>' +
|
||||
' <option value="other">其他</option></select></div>' +
|
||||
' <div class="form-item" id="ha-f-account"><label>账号ID</label><input type="text" name="account_id" placeholder="社媒账号ID"></div>' +
|
||||
' <div class="form-item" id="ha-f-profile"><label>主页链接</label><input type="text" name="profile_url" placeholder="https://..."></div>' +
|
||||
' <div class="form-item full"><label>原始描述</label><textarea name="description" style="height:70px;" placeholder="记录原始线索信息"></textarea></div>' +
|
||||
'</div>' +
|
||||
'<div class="dialog-footer"><button type="button" class="btn" id="ha-cancel">取消</button>' +
|
||||
@@ -253,9 +260,11 @@ $(function () {
|
||||
if (name) fd[name] = $(this).val();
|
||||
});
|
||||
fd.source_type = $('#ha-type').val();
|
||||
// 格式校验:手机 / 邮箱
|
||||
// 格式校验:手机 / 邮箱 / 身份证
|
||||
if (fd.contact_phone && !validatePhoneCN(fd.contact_phone)) { Dialog.error('手机号码格式不正确(应为国内 11 位手机号,如 13812345678)'); return; }
|
||||
if (fd.contact_email && !validateEmail(fd.contact_email)) { Dialog.error('邮箱格式不正确'); return; }
|
||||
if (fd.id_number && !validateIdCard(fd.id_number)) { Dialog.error('身份证号码格式不正确(应为 15 或 18 位)'); return; }
|
||||
if (fd.profile_url && !/^https?:\/\//.test(fd.profile_url)) { Dialog.error('主页链接格式不正确(应以 http:// 或 https:// 开头)'); return; }
|
||||
httpPost('fragment/hard_add.php', fd).then(function () {
|
||||
Dialog.success('新增成功', function () {
|
||||
Dialog.close(idx);
|
||||
|
||||
Reference in New Issue
Block a user