From 2ed8cc00e7d86ef5225bc874cc4018e5ea261855 Mon Sep 17 00:00:00 2001
From: nanguaboss <602995148@qq.com>
Date: Sun, 9 Aug 2026 14:52:42 +0800
Subject: [PATCH] =?UTF-8?q?v1.0.25:=20=E6=B8=A0=E9=81=93=E8=AE=A1=E5=88=92?=
=?UTF-8?q?=E8=B4=B9=E7=94=A8(=E5=85=83)=E5=AD=97=E6=AE=B5=E9=9D=9E?=
=?UTF-8?q?=E5=B7=B2=E6=89=A7=E8=A1=8C=E7=8A=B6=E6=80=81=E4=BB=85=E7=A6=81?=
=?UTF-8?q?=E7=94=A8=E4=B8=8D=E6=94=B9=E5=8F=98CSS=E6=A0=B7=E5=BC=8F(?=
=?UTF-8?q?=E8=A1=8C=E5=86=85=E7=BC=96=E8=BE=91+=E6=96=B0=E5=A2=9E?=
=?UTF-8?q?=E8=AE=A1=E5=88=92=E5=BC=B9=E7=AA=97)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
static/js/channel.js | 13 +++++--------
static/js/config.js | 2 +-
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/static/js/channel.js b/static/js/channel.js
index bf77716..dad2043 100644
--- a/static/js/channel.js
+++ b/static/js/channel.js
@@ -220,7 +220,7 @@ $(function () {
'' +
'';
var costInput = '';
+ (r.status === '已执行' ? '' : ' disabled') + ' style="width:90px;height:28px;padding:0 6px;font-size:12px;border:1px solid #d9dee8;border-radius:4px;text-align:right;">';
html += '
' +
'| ' + r.id + ' | ' +
'' + escHtml(r.channel_type) + ' | ' +
@@ -249,11 +249,8 @@ $(function () {
var status = $(this).val();
var $row = $(this).closest('tr');
var $cost = $row.find('.plan-cost');
- if (status === '已执行') {
- $cost.prop('disabled', false).css({ background: '#fff', color: '#1e2a3a' });
- } else {
- $cost.prop('disabled', true).css({ background: '#f2f4f8', color: '#8a94a6' });
- }
+ // 仅控制可编辑性,不改 CSS 样式(保持「已执行」的样式呈现)
+ $cost.prop('disabled', status !== '已执行');
httpPost('channel/plan_save.php', { id: id, status: status }).then(function () {
Dialog.toast('状态已更新为「' + status + '」');
}).catch(function () {
@@ -336,7 +333,7 @@ $(function () {
' ' +
' ' +
' ' +
+ (r.status === '已执行' ? '' : ' disabled') + '>' +
' ' +
' ' +
' ' +
@@ -358,8 +355,8 @@ $(function () {
$('#plan-form select[name="status"]').on('change', function () {
var enabled = $(this).val() === '已执行';
var $cost = $('#plan-form input[name="cost"]');
+ // 仅控制可编辑性,不改 CSS 样式
$cost.prop('disabled', !enabled);
- $cost.css({ background: enabled ? '#fff' : '#f2f4f8', color: enabled ? '#1e2a3a' : '#8a94a6' });
if (!enabled) $cost.val('');
});
diff --git a/static/js/config.js b/static/js/config.js
index 11c96ca..aec4ad1 100644
--- a/static/js/config.js
+++ b/static/js/config.js
@@ -5,7 +5,7 @@ var BASE_URL = '/api/';
var PAGE_SIZE = 20;
/** 系统版本号(logo旁展示):修改代码后运行 tools/bump_version.php 自动递增 */
-var APP_VERSION = 'v1.0.24';
+var APP_VERSION = 'v1.0.25';
/** 页脚版权/备案信息(在 config.js 中修改) */
var FOOTER_TEXT = '© 2026 SuperLink 管理系统 版权所有 | 备案号:请替换为真实备案号';