diff --git a/ruoyi-front/src/main/resources/templates/front/cases/add.html b/ruoyi-front/src/main/resources/templates/front/cases/add.html index 8444799dc..fe53898ec 100644 --- a/ruoyi-front/src/main/resources/templates/front/cases/add.html +++ b/ruoyi-front/src/main/resources/templates/front/cases/add.html @@ -30,7 +30,7 @@
代码生成请选择字典属性
@@ -47,22 +47,21 @@ -
- +
+
-
- - -
- 代码生成请选择字典属性 +
-
+
@@ -75,7 +74,10 @@ function submitHandler() { if ($.validate.form()) { - $.operate.save(prefix + "/add", $('#form-cases-add').serialize()); + var data = $("#form-cases-add").serializeArray(); + var status = $("input[id='status']").is(':checked') == true ? 0 : 1; + data.push({"name": "status", "value": status}); + $.operate.save(prefix + "/add", data); } } diff --git a/ruoyi-front/src/main/resources/templates/front/cases/cases.html b/ruoyi-front/src/main/resources/templates/front/cases/cases.html index 0e7f09ec1..6d5a50f45 100644 --- a/ruoyi-front/src/main/resources/templates/front/cases/cases.html +++ b/ruoyi-front/src/main/resources/templates/front/cases/cases.html @@ -112,7 +112,10 @@ }, { field: 'status', - title: '状态' + title: '状态', + formatter: function (value, row, index) { + return statusTools(row); + } }, { title: '操作', @@ -127,6 +130,15 @@ }; $.table.init(options); }); + + /* 用户状态显示 */ + function statusTools(row) { + if (row.status == 1) { + return ' '; + } else { + return ' '; + } + } \ No newline at end of file