mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
修改无法停止任务的bug
This commit is contained in:
@@ -5,24 +5,14 @@ import 'package:json_conversion_annotation/json_conversion_annotation.dart';
|
|||||||
class ScriptBean {
|
class ScriptBean {
|
||||||
String? title;
|
String? title;
|
||||||
String? value;
|
String? value;
|
||||||
String? key;
|
|
||||||
double? mtime;
|
|
||||||
bool? disabled;
|
bool? disabled;
|
||||||
List<ScriptChildren>? children;
|
List<ScriptChildren>? children;
|
||||||
|
|
||||||
ScriptBean(
|
ScriptBean({this.title, this.value, this.disabled, this.children});
|
||||||
{this.title,
|
|
||||||
this.value,
|
|
||||||
this.key,
|
|
||||||
this.mtime,
|
|
||||||
this.disabled,
|
|
||||||
this.children});
|
|
||||||
|
|
||||||
ScriptBean.fromJson(Map<String, dynamic> json) {
|
ScriptBean.fromJson(Map<String, dynamic> json) {
|
||||||
title = json['title'];
|
title = json['title'];
|
||||||
value = json['value'];
|
value = json['value'];
|
||||||
key = json['key'];
|
|
||||||
mtime = json['mtime'];
|
|
||||||
disabled = json['disabled'];
|
disabled = json['disabled'];
|
||||||
if (json['children'] != null) {
|
if (json['children'] != null) {
|
||||||
children = <ScriptChildren>[];
|
children = <ScriptChildren>[];
|
||||||
@@ -36,8 +26,6 @@ class ScriptBean {
|
|||||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
data['title'] = this.title;
|
data['title'] = this.title;
|
||||||
data['value'] = this.value;
|
data['value'] = this.value;
|
||||||
data['key'] = this.key;
|
|
||||||
data['mtime'] = this.mtime;
|
|
||||||
data['disabled'] = this.disabled;
|
data['disabled'] = this.disabled;
|
||||||
if (this.children != null) {
|
if (this.children != null) {
|
||||||
data['children'] = this.children!.map((v) => v.toJson()).toList();
|
data['children'] = this.children!.map((v) => v.toJson()).toList();
|
||||||
@@ -53,17 +41,13 @@ class ScriptBean {
|
|||||||
class ScriptChildren {
|
class ScriptChildren {
|
||||||
String? title;
|
String? title;
|
||||||
String? value;
|
String? value;
|
||||||
String? key;
|
|
||||||
double? mtime;
|
|
||||||
String? parent;
|
String? parent;
|
||||||
|
|
||||||
ScriptChildren({this.title, this.value, this.key, this.mtime, this.parent});
|
ScriptChildren({this.title, this.value, this.parent});
|
||||||
|
|
||||||
ScriptChildren.fromJson(Map<String, dynamic> json) {
|
ScriptChildren.fromJson(Map<String, dynamic> json) {
|
||||||
title = json['title'];
|
title = json['title'];
|
||||||
value = json['value'];
|
value = json['value'];
|
||||||
key = json['key'];
|
|
||||||
mtime = json['mtime'];
|
|
||||||
parent = json['parent'];
|
parent = json['parent'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,8 +55,6 @@ class ScriptChildren {
|
|||||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||||
data['title'] = this.title;
|
data['title'] = this.title;
|
||||||
data['value'] = this.value;
|
data['value'] = this.value;
|
||||||
data['key'] = this.key;
|
|
||||||
data['mtime'] = this.mtime;
|
|
||||||
data['parent'] = this.parent;
|
data['parent'] = this.parent;
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -283,8 +283,8 @@ class TaskItemCell extends StatelessWidget {
|
|||||||
strokeWidth: 2,
|
strokeWidth: 2,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
SizedBox(
|
||||||
width: 5,
|
width: bean.status == 1 ? 0 : 5,
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Material(
|
child: Material(
|
||||||
|
|||||||
Reference in New Issue
Block a user