后台管理系统增删改查

14 篇文章 1 订阅
订阅专栏

整理了一篇关于小白学习的增删改查,但是只是前面阶段的,关于数据库连接在以后的文章才会发出来

下面就我的这个后台管理系统发一些片段,希望对学习中的小伙伴提供到参考的价值由于文章有限就只展现一个页面的增删改查代码。

先给大家看这个增删改查的一个页面, 嘿嘿嘿。

这是HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Student Information Management System</title>
    
//外部我写好的css
    <link rel="stylesheet" href="../css/zz1.css" />
    <!-- <link rel="stylesheet" href="../js/bootstrap-3.4.1-dist/css/bootstrap.min.css"> -->
   
  </head>

  <body id="hui">
    <div>
      <header>
        <h1 class="w" id="hthe"><span></span> 合同管理</h1>
      </header>
      <main>
        <div class="w">
          <div class="chaxun">
            <span>
              合同编号:<input
                type="text"
                name=""
                id="htbh"
                placeholder="请输入合同编号"
              />
            </span>
            <button class="glyphicon glyphicon-search "   id="btn1">查询</button>
            <button class="glyphicon glyphicon-plus" id="add">新增</button>
          
            <button class="glyphicon glyphicon-refresh" id="cz">重置</button>
           
          </div>
          <div id="adbt">
           
           
           
          <table>
            <tbody id="chaxun">
              <tr id="thead">
                
                <th>序号</th>
                <th>合同编号</th>
                <th>主体</th>
                <th>区域</th>
                <th>签约企业</th>
                <th>企业类型</th>
                <th>合同类型</th>
                <th>合同状态</th>
                <th>签约人员</th>
                <th>开始日期</th>
                <th>结束日期</th>
                <th>操作</th>
              </tr>
            </tbody>
          </table>
          <div id="navigate">
            <div id="tpbt">
              <button id="lastpage">上一页</button>
              <button id="nextpage">下一页</button>
            </div>
            <p>
              
              这是第<span id="pgn"></span>页,共<span id="en"></span>条
              
            </p>
            <!--Number of entries-->
          
          </div>
        </div>
      </main>
    </div>
     
   
    <div class="achaesi" id="asi">
      <!--    <form action="" method="post">-->
      <h2>新增企业信息</h2>
      <div class="ifm">
        <div>
          <label for="assn">合同编号</label>
          <input
            id="assn"
            type="text"
            placeholder="12235"
            required="required"
            maxlength="6"
          />
        </div>
        <div>
          <label for="asn">主体类型</label>
          <input
            id="asn"
            type="text"
            placeholder="主体"
            required="required"
            minlength="1"
            maxlength="8"
          />
        </div>
        <div>
          <label for="asac">区域地址</label>
          <input
            id="asac"
            type="text"
            placeholder="A区"
            required="required"
            minlength="1"
            maxlength="10"
          />
        </div>
        <div>
          <label for="asm">签约企业</label>
          <input
            id="asm"
            type="text"
            placeholder="周周公司"
            required="required"
          />
        </div>
        <div>
          <label for="asg">企业类型</label>
          <input
            id="asg"
            type="text"
            placeholder="一般企业"
            required="required"
          />
        </div>
        <div>
          <label for="asc">合同类型</label>
          <input
            id="asc"
            type="text"
            placeholder="未到期"
            required="required"
            maxlength="3"
          />
        </div>
        <div>
          <label for="asc">合同状态</label>
          <input
            id="asc"
            type="text"
            placeholder="生效"
            required="required"
            maxlength="3"
          />
        </div>
        <div>
          <label for="asag">签约人员</label>
          <input id="asag" type="text" placeholder="张山" required="required" />
        </div>
        <div>
          <label for="asag">开始日期</label>
          <input
            id="asag"
            type="text"
            placeholder="2023-2-22"
            required="required"
          />
        </div>
        <div>
          <label for="asag">结束日期</label>
          <input
            id="asag"
            type="text"
            placeholder="2023-2-29"
            required="required"
          />
        </div>
      </div>
      <hr />
      <div class="scbt">
        <button type="submit" id="submit">提交</button>
        <button class="cancel">取消</button>
      </div>
      <!--    </form>-->
    </div>
    <div class="achaesi" id="chasi">
      <!--    <form action="" method="post">-->

      <!-- 修改企业信息 -->
      <h2>修改企业信息</h2>
      <div class="ifm">
        <div>
          <label for="chassn">合同编号</label>
          <input id="chassn" type="text" readonly required="required" />
        </div>
        <div>
          <label for="chasn">主体类型</label>
          <input id="chasn" type="text" required="required" />
        </div>
        <div>
          <label for="chasac">区域地址</label>
          <input id="chasac" type="text" required="required" />
        </div>
        <div>
          <label for="chasm">签约企业</label>
          <input id="chasm" type="text" required="required" />
        </div>
        <div>
          <label for="chasg">企业类型</label>
          <input id="chasg" type="text" />
        </div>
        <div>
          <label for="chasc">合同类型</label>
          <input id="chasc" type="text" required="required" />
        </div>
        <div>
          <label for="chasag">合同状态</label>
          <input id="chasag" type="text" required="required" />
        </div>
      </div>
      <hr />
      <div class="scbt">
        <button type="submit" id="save" class="baocun">保存</button>
        <button class="cancel">取消</button>
      </div>
      <!--    </form>-->
    </div>

    <!-- 查看 -->
    <div class="achaesi" id="chesi">
      <h2>企业信息</h2>
      <div class="ifm">
        <div>
          <label for="chessn">合同编号</label>
          <input type="text" readonly id="chessn" />
        </div>
        <div>
          <label for="chesn">主体类型</label>
          <input type="text" readonly id="chesn" />
        </div>
        <div>
          <label for="chesac">区域地点</label>
          <input type="text" readonly id="chesac" />
        </div>
        <div>
          <label for="chesm">签约企业</label>
          <input type="text" readonly id="chesm" />
        </div>
        <div>
          <label for="chesg">企业类型</label>
          <input type="text" readonly id="chesg" />
        </div>
        <div>
          <label for="chesc">合同类型</label>
          <input type="text" readonly id="chesc" />
        </div>
        <div>
          <label for="chesag">合同状态</label>
          <input type="text" readonly id="chesag" />
        </div>
        <div>
          <label for="chesag">签约人员</label>
          <input type="text" readonly id="chesag" />
        </div>
        <div>
          <label for="chesag">开始日期</label>
          <input type="text" readonly id="chesag" />
        </div>
        <div>
          <label for="chesag">结束日期</label>
          <input type="text" readonly id="chesag" />
        </div>
      </div>
      <hr />
      <div class="scbt">
        <button class="cancel">取消</button>
      </div>
    </div>
    <script src="../js/JQ/jquery.js"></script>
    <!-- <script src="../js/bootstrap-3.4.1-dist/js/bootstrap.min.js"></script> -->
    <script src="../js/layer-v3.5.1/layer/layer.js"></script>
    <script src="../js/zz.js/zzdata.js"></script>
    <script src="../js/zz.js/zzd.js"></script>
  </body>
</html>

css

* {
  margin: 0;
  padding: 0;
}
#hui {
  background-color: rgb(242, 242, 242);
}

#hthe {
  font-size: 16px;
  color: #999;
  font-weight: bold;
  line-height: 50px;
  padding-left: 5px;
}
#xuyuehd {
  font-size: 16px;
  color: #999;
  font-weight: bold;
  line-height: 50px;
}
#xuyuehui {
  background-color: rgb(242, 242, 242);
}

#yanqihui {
  background-color: rgb(242, 242, 242);
}

.w {
  /* margin-top: 50px; */
  margin: 0 auto;
  left: -36px;
  width: 1224px;
  text-align: left;
  background-color: #fff;
}
table tr button {
  /* color: red; */
  width: 60px;
  height: 25px;
  border-radius: 5px;
  text-align: center;
  line-height: 25px;
  background-color: #0066cc;
  color: #fff;
  font-size: 13px;
  margin-left: 5px;
}
.sbg {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.4;
  z-index: 1;
}

header {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  background-color: #fff;
  height: 50px;
  line-height: 50px;
}
#headd {
  /* padding: 0 10px; */
  font-size: 16px;
  color: #999;
  font-weight: bold;
  line-height: 50px;
}

header h1 {
  margin-top: 0;
  font-size: 16px;
  color: #999;
}
header h1 span {
  width: 5px;
  height: 18px;
  margin: 0px 10px;
  display: inline-block;
  background-color: #0066cc;
  vertical-align: middle;
}
.red {
  vertical-align: middle;
}

main #adbt {
  text-align: right;
}
main button {
  margin: 20px 0px;
  width: 80px;
  height: 30px;
  line-height: 30px;
  color: white;
  border: none;
  border-radius: 5px;
}

#btn1 {
  background-color: #0066cc;
}
#add {
  background-color: rgb(87, 197, 247);
}
#cz {
  background-color: rgb(111, 224, 130);
}
main #navigate {
  position: relative;
  padding: 0 12px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}
main #navigate p {
  margin-left: 180px;
  font-size: 13px;
  position: absolute;

  margin-top: 24px;
}

table {
  margin: 0 auto;
  width: 1200px;
  text-align: center;
  border-spacing: 0;
  font-size: 13px;
  /* border: 1px solid red; */
}

table tbody tr:first-of-type {
  background-color: #dadee1 !important;

  height: 60px;
}

table tbody td {
  /* padding: 0%; */
  width: 18px;
  border-bottom: 1px solid black;
}
table tbody th {
  font-weight: 400;
  text-align: center;
}
table tbody tr:not([id="thead"]):hover {
  cursor: pointer;
  background-color: rgb(240, 240, 240);
  transition: background-color 0.3s;
}

table tbody tr button:nth-child(3) {
  background-color: #ff0000;
}

table tbody tr button:nth-child(2) {
  background-color: #2bd7f5;
}
table tbody tr button:nth-child(1) {
  background-color: #4bd863;
  position: relative;
  right: -15px;
  /* margin-left: 1px; */
}

.achaesi {
  display: none;
  /* z-index: 9999; */
  position: fixed;
  top: 750px;
  left: 34%;
  background-color: white;
  z-index: 2;
  width: 550px;
  font-family: "微软雅黑 Bold", "微软雅黑 Regular", "微软雅黑", sans-serif;
  border: #a7bbc8 1px solid;
  border-radius: 10px;
  height: 650px;
  -webkit-box-shadow: 0px 0px 77px 10px #616f9b;
  -moz-box-shadow: 0px 0px 77px 10px #6d7981;
  box-shadow: 0px 0px 77px 10px #6d7981;
}
.achaesi h2 {
  padding: 5px 20px;
  /* color: #2c3675; */
  color: white;
  font-size: 16px;
  background-color: rgba(202, 202, 202, 0.8);
}
.achaesi .ifm {
  width: 380px;
  margin: 10px auto;
  display: flex;
  flex-flow: column nowrap;
}
.achaesi .ifm div {
  margin: 10px;
}
.achaesi .ifm div input {
  width: 220px;
  height: 30px;
}
.achaesi .scbt {
  float: right;
  margin-top: 6px;
  margin-right: 30px;
}
.achaesi .scbt button:first-of-type {
  width: 85px;
  height: 36px;
  background-color: #5cb85c;
  /* border: 0; */
}
.achaesi .scbt button:last-of-type {
  width: 85px;
  height: 36px;
  background-color: white;
}

#tpbt button {
  background-color: #fff;
  border: 1px solid black;
  color: #000;
  border-radius: 0;
}

#tpbt button:hover {
  background-color: rgb(0, 150, 136);
  color: #fff;
}

#pgn {
  display: inline-block;
  width: 30px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  border: 1px solid black;
}
/*# sourceMappingURL=studentInformationManagementSystem.css.map */

.chaxun {
  position: relative;
  top: 20px;
  margin-bottom: 20px;
  padding-left: 15px;
}

.chaxun > span {
  font-size: 14px;
  color: #333;
}

.chaxun > span > input {
  height: 30px;
}
.he {
  height: 730px;
}

#save {
  color: #fff;
  background-color: #2bd7f5;
  border: none;
}
#submit {
  background-color: #2bd7f5;
  border: none;
  color: #fff;
}

js

localStorage.setItem("eat", JSON.stringify(datas));
var students = localStorage.getItem("eat");



$(function () {

    students = JSON.parse(students);



    // 分页
    let page = 1;//第几页
    let no = 0;//显示的页数的第一个对象是数组中的第几个对象,初始下标为0
    let xuhao = students.length;
    for (let i = 0; i < 5; i++) {//初始页面信息显示
        let student = $("<tr>" + "<td>" + (i + 1) + "</td>" + "<td>" + students[i].htNumber + "</td>" + "<td>" + students[i].main + "</td>" + "<td>" + students[i].quyu + "</td>" + "<td>" + students[i].businessName + "</td>" + "<td>"
            + students[i].businessType + "</td>" + "<td>" + students[i].inTentType + "</td>" + "<td>" + students[i].htzt + "</td>" + "<td>" + students[i].InvestmentPer + "</td>" + "<td>" + students[i].StartTime + "</td>" + "<td>" + students[i].EndTime + "</td>" + "<td> <button class=\"check\">详情</button> <button class=\"modify\">编辑</button><button>删除</button>   </td>" + " </tr>");
        $("tbody").append(student);
    }
    $("tbody").trigger("create");         //trigger() 方法触发被选元素上指定的事件以及事件的默认行为(比如表单提交)
    $("#pgn").text(page);
    $("#en").text(xuhao);
    $("#add").click(function () {       //点击新增按钮触发的动作
        $("#asi").show();
        $('#asi').animate({
            top: '70px',
        }, 500)

    });

    shanchu();


    let objKeys = ["htNumber", "main", "quyu", "businessName", "businessType", "inTentType", "htzt", "InvestmentPer", "StartTime", "EndTime", "caozuo"];
    $("#submit").click(function () {//提交按钮点击触发的动作
        let student = {};
        let isEmpty = false;
        $("#asi").find("input").each(function (index, domEle) {
            if (!domEle.value) {//如果添加时表单内有值为空,则不进行添加
                isEmpty = true;

            }
            student[objKeys[index]] = domEle.value;
        });
        if (!isEmpty) {
            students[xuhao] = student;
            xuhao++;
            $("#en").text(xuhao);


            let lpren = $("tbody tr").length - 1;//最后一页剩余的条目数;
            if (no + 5 > xuhao && lpren < 5) {//增加一个append函数,如果显示的是最后一页那么需要更新界面。
                $("tbody tr:last").after("<tr>" + "<td>" + (no + lpren + 1) + "</td>" + "<td>" + student.htNumber + "</td>" + "<td>" + student.main + "</td>" + "<td>" + student.quyu + "</td>" + "<td>" + student.businessName + "</td>" + "<td>"
                    + student.businessType + "</td>" + "<td>" + student.inTentType + "</td>" + "<td>" + student.htzt + "</td>" + "<td>" + student.InvestmentPer + "</td>" + "<td>" + student.StartTime + "</td>" + "<td>" + student.EndTime + "<td>" + "<td> <button class=\"check\">详情</button> <button class=\"modify\">编辑</button><button>删除</button>  </td>" + " </tr>");

            }

        }


        $("#asi").animate({
            top: "500px",
        },
            500);
        $("#asi").fadeOut(500);



    });




    $("tbody").on("click", ".check", function () {//点击查看按钮触发的动作

        $("#chesi").show();
        $('#chesi').animate({
            top: '70px',
        }, 500)

        let stuIndex = $(this).parent().parent().find("td")[0].innerText - 1;
        // let i = 0;
        $("#chesi").find("input").each(function (index, domEle) {
            domEle.value = students[stuIndex][objKeys[index]];//index->i
        });
    });

    let modifyNumber;

    $("tbody").on("click", ".modify", function () {//点击修改按钮触发的动作,解决了jQuery出现的新添加元素点击事件无效问题
        // $("#sbg").addClass("sbg");

        $("#chasi").show();
        $('#chasi').animate({
            top: '70px',
        }, 500)

        modifyNumber = $(this).parent().parent().find("td")[0].innerText - 1;
        let i = 0;
        $("#chasi").find("input").each(function (index, domEle) {
            domEle.value = students[modifyNumber][objKeys[i++]];
        });
    });


    $("#save").click(function () {//点击保存按钮触发的动作
        $("#chasi").find("input").each(function (index, domEle) {
            if (domEle.value)
                students[modifyNumber][objKeys[index]] = domEle.value;
        });
        $("tbody tr").eq(modifyNumber - no + 1).remove();
        $("tbody tr").eq(modifyNumber - no).after("<tr>" + "<td>" + (modifyNumber - no + 1) + "</td>" + "<td>" + students[modifyNumber].htNumber + "</td>" + "<td>" + students[modifyNumber].main + "</td>" + "<td>" + students[modifyNumber].quyu + "</td>" + "<td>" + students[modifyNumber].businessName + "</td>" + "<td>"
            + students[modifyNumber].businessType + "</td>" + "<td>" + students[modifyNumber].inTentType + "</td>" + "<td>" + students[modifyNumber].htzt + "</td>" + "<td>" + students[modifyNumber].InvestmentPer + "</td>" + "<td>" + students[modifyNumber].StartTime + "</td>" + "<td>" + students[modifyNumber].EndTime + "</td>" + "<td> <button class=\"check\">详情</button> <button class=\"modify\">编辑</button><button>删除</button>   </td>" + " </tr>");


        $("#chasi").animate({
            top: "500px",
        },
            500);
        $("#chasi").fadeOut(500);


        // $("#chasi").hide();
        shanchu();

    });


    $(".cancel").click(function () {//多个取消按钮点击触发的动作

        $(".achaesi").animate({
            top: "500px",
        },
            500);
        $(".achaesi").fadeOut(500);

        // $(".achaesi").hide();

    });


    $("tbody tr td:first").click(function () {//全选操作用到了JQuery的隐示迭代
        $("tbody tr td input").prop("checked", $("tbody tr:first td:first input").prop("checked"));
    });

    $("tbody").on("click", $("tbody tr:nth-of-type(1)").siblings().find("input"), function () {
        let isSelectAll = true;
        $("tbody tr:nth-of-type(1)").siblings().find("input").each(function (index, domEle) {
            if ($(domEle).prop("checked") == false)
                isSelectAll = false;
        });
        $("tbody tr:first td:first input").prop("checked", isSelectAll);
    })


    // 添加
    let update = (no) => {
        let i = 0;//用于增加信息条目的变量;
        $("tbody tr:first").siblings().remove();//清空界面
        while (i < 5 && no + i < xuhao) {
            let student = $("<tr>" + "<td>" + (no + i + 1) + "</td>" + "<td>" + students[no + i].htNumber + "</td>" + "<td>" + students[no + i].main + "</td>" + "<td>" + students[no + i].quyu + "</td>" + "<td>" + students[no + i].businessName + "</td>" + "<td>"
                + students[no + i].businessType + "</td>" + "<td>" + students[no + i].inTentType + "</td>" + "<td>" + students[no + i].htzt + "</td>" + "<td>" + students[no + i].InvestmentPer + "</td>" + "<td>" + students[no + i].StartTime + "</td>" + "<td>" + students[no + i].EndTime + "</td>" + "<td> <button class=\"check\">详情</button> <button class=\"modify\">编辑</button> <button>删除</button> </td>" + " </tr>");
            $("tbody").append(student);
            i++;
        }
        $("tbody").trigger("create");
        shanchu();

    }


    $("#cz").click(function () {
        update(no);
    });


    // 下一页
    $("#nextpage").click(function () {
        if (no + 5 < xuhao) {
            no += 5;
            page++;
            $("#pgn").text(page);
            update(no);
            $("tbody tr:first td:first input").prop("checked", false);

        } else {
            layer.alert("最后一页了")
        }

    });




    // 上一页
    $("#lastpage").click(function () {
        if (no - 5 >= 0) {
            no -= 5;
            page--;
            $("#pgn").text(page);
            update(no);
            $("tbody tr:first td:first input").prop("checked", false);

        } else {
            layer.alert("已经是第一页了")
        }

    });

})








$(function () {
    $("table button").mouseover(function () {
        $(this).css("opacity", "calc(0.8)");
    })
    $("table button").mouseout(function () {
        $(this).css("opacity", "calc(1)");
    })
})
$(function () {
    $(".chaxun button").mouseover(function () {
        $(this).css("opacity", "calc(0.8)");
    })
    $(".chaxun button").mouseout(function () {
        $(this).css("opacity", "calc(1)");
    })
})


function shanchu() {
    $("table tbody tr  button:nth-child(3) ").click(function () {
        $(this).parent().parent().remove();
    })

}







$("#btn1").click(function () {

    // $('#chaxun').innerHTML = '';
    $("tbody tr:first").siblings().remove();//清空界面
    let result = students.filter(function (item) { return item.htNumber == htbh.value });

    if (result.length >= 1) {
        (result).forEach(function (value) {
            chaxun.innerHTML += `<tr>     
                                             <td>${value.xuhao}</td>   
                                           <td>${value.htNumber}</td>
                                            <td>${value.main}</td>
                                            <td>${value.quyu}</td>
                                            <td>${value.businessName}</td>
                                            <td>${value.businessType}</td>
                                            <td>${value.inTentType}</td>
                                            <td>${value.htzt}</td>
                                            <td>${value.InvestmentPer}</td>
                                            <td>${value.StartTime}</td>
                                            <td>${value.EndTime}</td>
                                            <td>${value.caozuo}</td>
                                      </tr>`
        });

        // let a = result.length
        // $("#en").text(a);//更新条目数
        shanchu();
        $("table tbody tr  button:nth-child(1) ").addClass("check")
        $("table tbody tr  button:nth-child(2) ").addClass("modify")
    }
    if (result.length < 1) (

        layer.alert("没有")


    )
    htbh.value = "";


});

使用的是一个js文件存数组

let datas = [{ xuhao: 1, htNumber: 12345, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '租房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "雷总", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 2, htNumber: 1223, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '卖房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "已通过", shenpili: "审批通过", names: "老班长", plane: 1330521590, yixl: "电话", yxlx: "买房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 3, htNumber: 1224, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '租房', htzt: "未生效", InvestmentPer: '张三', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "已拒绝", shenpili: "周周已拒绝", names: "镀锌", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 4, htNumber: 1225, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '租房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "猴心", plane: 13305215904, yixl: "电话", yxlx: "买房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 5, htNumber: 1226, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '卖房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "聂老八", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 6, htNumber: 1227, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '卖房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "不浪漫爱情", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 7, htNumber: 1228, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '卖房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "韩文", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 8, htNumber: 1229, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '卖房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "聂老八", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 9, htNumber: 1230, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '卖房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "聂老八", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 10, htNumber: 1231, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '卖房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "聂老八", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 11, htNumber: 1233, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '卖房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "聂老八", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 12, htNumber: 1423, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '卖房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "聂老八", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 13, htNumber: 1244, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '卖房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "聂老八", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 14, htNumber: 12333, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '卖房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "聂老八", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 15, htNumber: 12324, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '卖房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "聂老八", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 16, htNumber: 12221, main: '-', quyu: '-', businessName: '宏基企业', businessType: '一般企业', inTentType: '卖房', htzt: "未生效", InvestmentPer: '李四', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待周周审批", names: "聂老八", plane: 13305215904, yixl: "电话", yxlx: "租房", zsry: "周周", cjsj: "2023-2-25" },
{ xuhao: 17, htNumber: 12245, main: '-', quyu: '-', businessName: '周周公司', businessType: '龙头企业', inTentType: '卖房', htzt: "已生效", InvestmentPer: '张三', StartTime: '2022-09-09 12:23:23', EndTime: '2023--09-09 12:23:23', caozuo: "<button>详情</button><button>续期</button><button>删除</button>", shenpi: "待审核", shenpili: "待审批", names: "周周", plane: 17305215904, yixl: "电话", yxlx: "买房", zsry: "周周", cjsj: "2023-2-25" },];

这是我一个页面的全部代码,如果有需要可以copy。

给个关注吧???

使用Crud Hub代码生成工具,IntelliJ IDEA 增删改查CRUD插件(crud-intellij-plugin),来快速生成模板代码
ydcqy的博客
09-14 843
使用Crud Hub代码生成工具,IntelliJ IDEA 增删改查CRUD插件(crud-intellij-plugin),来快速生成模板代码
基于SSM框架的管理系统:简单实现增、删、改、查。
weixin_44052544的博客
06-30 1257
基于SSM框架的管理系统:简单实现增、删、改、查。 今天将介绍如何使用idea来搭建基于maven+SSM框架,来实现简单的对于数据库的的增,删,查,改操作。 一.新建项目 首先需要在idea中新建一个项目,详细步骤为:1.在“New Project”中选择“Maven”一栏并勾选“…create from archetype”,因为要搭建一个web项目,所以再选中“maven-archetype...
基于员工的增删改查后台管理系统
10-13
基于一个用户增删改查,有显示所有用户信息,然后有增加,删除和修改。
第一个简单的SpringBoot实现增删改查(带前端界面,超详细)
热门推荐
weixin_51656756的博客
01-05 3万+
点击更改按钮 更改完毕后会继续回到index,html界面。点击删除按钮就直接删除所选信息。 创建SpringBoot项目 项目目录 pom.xml文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoc.
简易学生管理系统增删改查
每天一个前端小知识~
07-27 3738
一、需求 1,定义06班学员类,包含三个属性,姓名\年龄\籍贯\电话号码 2,完成学员数据的录入,学员数据按姓名查询 3,完成学员信息的修改,按照电话号码 4,删除指定学员 使用面向对象操作 . 二、代码 1.学生类 package test0727.demo1; /** * 学生类 */ public class Student { private String stu_name; //姓名 private Integer stu_age; //年龄 private Str
一个简单的文章内容管理系统增删改查
m0_52012606的博客
10-11 2175
目录 设计需求 源代码 具体展示 设计需求 用户 字段:用户名、密码 登录 不登录可以访问 成功进入文章管理列表页面,失败提示 注册 不登录可以访问 注册字段:用户名、密码、确认密码 两次密码必须一致 用户名不允许重复,如果已存在则注册失败 文章管理 字段:标题、作者、内容、 进入页面自动查询出所有文章的:ID、作者、标题,并展示在列表上 页面功能:添加按钮、table列表展示文章作者、标题(最..
学生管理系统(增删改查)
04-09
用java做的界面,MySQL作为后台数据库,可以实现对学生表的增删改查
jianguan.zip_Jianguan. COM_后台管理系统模板_增删改查模板
09-14
后台管理模板,适用于简单的增删改查后台管理系统
学生信息管理系统(实现增删改查操作)Java+Servlet+HTML+CSS+数据库
最新发布
12-09
数据库部分:创建表、增删改查语句的书写等。 前端部分:HTMLCSS、jQuery、JavaScript等。 编码顺序 添加项目需要使用的各种jar包 HTML 页面表单的编写 Apache方法的DBUtils编写 实体类的数据初始化(添加私有...
jsp+serlvet增删改查员工系统
01-14
jsp+serlvet实现的增删改查员工管理系统,后台使用Mysql
SSH框架实现简单的用户管理系统增删改查
04-15
SSH简单的入门案例,对用户的信息进行管理,实现增删改查功能。
增删改查管理系统
11-19
增删改查管理系统
学生管理系统实现增删改查功能的
05-27
这个学生管理 系统实现了对学生信息的增删改查,查询学生信息是按照姓名查找的
用户信息列表实现增删改查案例的实现【问题及解决过程记录】&【综合案例】
clover_oreo的博客
12-03 1269
Servlet+JSP+MySQL+JDBCTempleat+Duird+BeanUtils+tomcat控制器 + 页面展示+ 操作数据库+ 自动封装 + 连接池提高连接效率+ 封装数据 + 部署到服务器上 2. 数据库设计: create database test01; -- 创建数据库 use test01; -- 使用数据库 CREATE TABLE user2( -- 创建表 id int PRIMARY KEY
JavaWeb阶段综合案例
qq_46002941的博客
02-22 1895
文章目录综合案例1,功能介绍2,环境准备2.1 工程准备2.2 创建表3,查询所有功能3.1 后端实现3.1.1 dao方法实现3.1.2 service方法实现3.1.3 servlet实现3.1.4 测试后端程序3.2 前端实现4,添加功能4.1 后端实现4.1.1 dao方法实现4.1.2 service方法实现4.1.3 servlet实现4.2 前端实现5,servlet优化5.1 问题导入5.2 代码优化5.2.1 后端优化5.2.2 前端优化6,批量删除6.1.
在一个页面实现数据库的增删改查
weixin_53954158的博客
08-05 2067
在一个页面内实现数据库的增删改查 用到了servlet
旅游网站后台信息管理——简单版(增删改查
秋雨绵绵
04-15 4582
🎄:CSDN的小伙伴们大家好,今天跟大家分享我做的一个小项目,旅游网站的后台管理系统,仅实现了简单的增删改查功能。如果这篇文章对你有用,麻烦给我点个小赞以示鼓励吧🎄
javascript】实现类后端增删改功能(附源码)
xingyu_qie的专栏
11-12 1313
javascript之初会有很多练手的例子,当还没有接触到后端(java ptython)这些的时候,老师会让我们自己模拟实现一个纯javascript的类后端的增删改查效果。通过后端的思路,抛弃那些复杂的逻辑,纯前端实现一套增删改查的效果。如果明白了这一套逻辑,那么以后学到ajax的时候再和服务端联调,就会容易理解的多。☆ 希望你可以学会。
用户组管理系列(一):增删改查
LINUX_Home
09-01 8104
1、什么是用户和组    每个用户都拥有一个唯一的用户名和一个与之相关联的数值型的用户标识UID,用户可以隶属于一个或多个组,而每个组也都拥有唯一的一个名称和一个组标识符GID,对于进程和内核来说,只识别UID和GID,用户名和组名最终都会通过/etc/passwd和/etc/group这俩个数据库转换为UID和GID来标识。这两个ID的主要用途如下:     ● 确定各种系统资源的所

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
写文章

热门文章

  • 后台管理系统增删改查 1204
  • vue+element -ui 写的一个物流后台管理系统 1182
  • Ajax连接MySQL增删改查前端 790
  • 节点操作之1复制节点 440
  • vue 项目需要使用到的技术点 383

分类专栏

  • Javascript分享 7篇
  • 前端分享 14篇

最新评论

  • vue+element -ui 写的一个物流后台管理系统

    周周_加油: https://gitcode.net/qq_46703611/tms-.com/-/blob/master/tms_project.zip大哥们,这个是源码地址

  • vue+element -ui 写的一个物流后台管理系统

    周周_加油: https://gitcode.net/qq_46703611/tms-.com这个是csdn的gitcode哈,后台已经关了,只能看写法

  • JAVAscript 事件高级

    杰鸽bitter: 强呀呀呀啊

大家在看

  • Python | Leetcode Python题解之第153题寻找旋转排序数组中的最小值
  • Java | Leetcode Java题解之第153题寻找旋转排序数组中的最小值
  • 图像阈值分割(一) 370
  • Golang | Leetcode Golang题解之第154题寻找旋转排序数组中的最小值II
  • 雨后彩虹图像分割 280

最新文章

  • jsoo封装灯箱
  • vue+element -ui 写的一个物流后台管理系统
  • vue 项目需要使用到的技术点
2023年20篇
2022年1篇

目录

目录

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值

深圳SEO优化公司永州建设网站公司大理关键词按天计费价格昭通如何制作网站迁安网站搭建北京网站建设多少钱黄石优化公司邵阳高端网站设计哪家好徐州品牌网站设计价格沈阳网站seo优化推荐广东网站优化按天计费公司鹤壁网站设计模板哪家好连云港SEO按天计费报价朔州英文网站建设公司鹰潭网站开发多少钱临猗百度竞价包年推广报价海口百度爱采购公司沙井网络营销多少钱德宏阿里店铺托管价格乌海网络推广推荐大芬企业网站建设多少钱张北网站优化按天收费价格清远网站改版报价达州模板网站建设推荐上海模板推广推荐盐田网站推广报价盐城SEO按天扣费公司杭州营销网站报价长治网站推广系统多少钱北京seo优化哪家好滁州网站建设哪家好歼20紧急升空逼退外机英媒称团队夜以继日筹划王妃复出草木蔓发 春山在望成都发生巨响 当地回应60岁老人炒菠菜未焯水致肾病恶化男子涉嫌走私被判11年却一天牢没坐劳斯莱斯右转逼停直行车网传落水者说“没让你救”系谣言广东通报13岁男孩性侵女童不予立案贵州小伙回应在美国卖三蹦子火了淀粉肠小王子日销售额涨超10倍有个姐真把千机伞做出来了近3万元金手镯仅含足金十克呼北高速交通事故已致14人死亡杨洋拄拐现身医院国产伟哥去年销售近13亿男子给前妻转账 现任妻子起诉要回新基金只募集到26元还是员工自购男孩疑遭霸凌 家长讨说法被踢出群充个话费竟沦为间接洗钱工具新的一天从800个哈欠开始单亲妈妈陷入热恋 14岁儿子报警#春分立蛋大挑战#中国投资客涌入日本东京买房两大学生合买彩票中奖一人不认账新加坡主帅:唯一目标击败中国队月嫂回应掌掴婴儿是在赶虫子19岁小伙救下5人后溺亡 多方发声清明节放假3天调休1天张家界的山上“长”满了韩国人?开封王婆为何火了主播靠辱骂母亲走红被批捕封号代拍被何赛飞拿着魔杖追着打阿根廷将发行1万与2万面值的纸币库克现身上海为江西彩礼“减负”的“试婚人”因自嘲式简历走红的教授更新简介殡仪馆花卉高于市场价3倍还重复用网友称在豆瓣酱里吃出老鼠头315晚会后胖东来又人满为患了网友建议重庆地铁不准乘客携带菜筐特朗普谈“凯特王妃P图照”罗斯否认插足凯特王妃婚姻青海通报栏杆断裂小学生跌落住进ICU恒大被罚41.75亿到底怎么缴湖南一县政协主席疑涉刑案被控制茶百道就改标签日期致歉王树国3次鞠躬告别西交大师生张立群任西安交通大学校长杨倩无缘巴黎奥运

深圳SEO优化公司 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化