Parcourir la source

页面样式修改

yuzijian il y a 2 ans
Parent
commit
20e0813983

+ 15 - 17
src/main/resources/META-INF/resources/calculateView/calculate.html

@@ -13,13 +13,11 @@
             padding: 0;
             box-sizing: border-box;
         }
-
         body {
             display: grid;
             align-items: center;
             justify-content: center;
         }
-
         .container {
             width: 100vw;
             height: 100vh;
@@ -27,13 +25,11 @@
             display: flex;
             overflow: hidden;
         }
-
         .container-left {
             width: 200px;
             padding: 10px 15px;
-            background: rgb(216, 195, 157);
+            background: #fff !important;
         }
-
         .container-left input {
             width: 80%;
             min-height: 30px;
@@ -58,7 +54,7 @@
             width: calc(100vw - 200px);
             padding: 10px 15px;
             overflow-y: auto;
-            background: rgb(160, 240, 178);
+            background: #fff !important;;
 
         }
 
@@ -75,7 +71,7 @@
 
         .container-right table thead td {
             color: #fff !important;
-            background: rgb(73, 187, 58);
+            background:  #000;
         }
 
         .container-right table tr td {
@@ -98,11 +94,11 @@
 
         .delete {
             color: #fff;
-            background-color: #f00;
+            background-color:  #000;;
         }
 
         .change {
-            background-color: #0f0;
+            background-color: rgb(227 236 229);
         }
 
         .container-right table tr td span {
@@ -117,7 +113,7 @@
 
         .container-right table tr td span:hover {
             color: #fff;
-            background-color: rgb(172, 163, 152);
+            background-color: #fff;
         }
 
         .search {
@@ -161,12 +157,12 @@
         <p>信息显示</p>
         <table cellpadding="0" cellspacing="0">
             <thead>
-            <td>序号</td>
-            <td></td>
-            <td></td>
-            <td></td>
-            <td></td>
-            <td></td>
+            <td>ID</td>
+            <td>TYPE</td>
+            <td>ORDERNO</td>
+            <td>FORMULA</td>
+            <td>PROVINCE_ENUM</td>
+            <td>RULE_ORMULA</td>
             <td>移除</td>
             <td>修改</td>
             </thead>
@@ -256,10 +252,12 @@
     function postEdit(data) {
         $.ajax({
             url: "http://localhost:9089/jarCalculate/edit",
-            data,
+            data: JSON.stringify(data),
             type: "POST",
             async: false,
+
             dataType: "json",
+            contentType: 'application/json',
             success: function (res) {
                 alert(res.message);
             }

+ 1 - 1
src/main/resources/sql/t_calculation_formula.sql

@@ -24,7 +24,7 @@ DROP TABLE IF EXISTS `t_calculation_formula`;
 CREATE TABLE `t_calculation_formula`  (
   `ID` int(0) NOT NULL AUTO_INCREMENT,
   `TYPE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '公式类型',
-  `ORDERNo` int(0) NULL DEFAULT NULL COMMENT '公式执行顺讯',
+  `ORDERNO` int(0) NULL DEFAULT NULL COMMENT '公式执行顺讯',
   `FORMULA` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '公式内容',
   `PROVINCE_ENUM` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '省调',
   `RULE_FORMULA` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '细则对应的公式',