From 8a98cb7e1eeccc063c1759953362398d83d7feb8 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 16 六月 2020 08:47:52 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/pakStore/pakStore.js | 24 +++++++++++++++++++++---
1 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/src/main/webapp/static/js/pakStore/pakStore.js b/src/main/webapp/static/js/pakStore/pakStore.js
index a5b3b4f..4f7129a 100644
--- a/src/main/webapp/static/js/pakStore/pakStore.js
+++ b/src/main/webapp/static/js/pakStore/pakStore.js
@@ -9,7 +9,25 @@
var layDate = layui.laydate;
var form = layui.form;
-
+ // 鑾峰彇鍙敤鍏ュ簱绔欑偣
+ $.ajax({
+ url: baseUrl+"/available/put/site",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'POST',
+ success: function (res) {
+ if (res.code === 200){
+ var tpl = $("#putSiteSelectTemplate").html();
+ var template = Handlebars.compile(tpl);
+ var html = template(res);
+ $('#putSiteSelect').append(html);
+ form.render('select');
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ }else {
+ layer.msg(res.msg)
+ }
+ }
+ })
tableIns = table.render({
elem: '#chooseData',
@@ -122,7 +140,7 @@
// 琛ㄥ崟 --- 鍚姩鍏ュ簱
form.on('submit(combDo)', function (data) {
$.ajax({
- url: baseUrl+"/full/store/start",
+ url: baseUrl+"/full/store/put/start",
headers: {'token': localStorage.getItem('token')},
data: JSON.stringify({
devpNo: $('#putSiteSelect').val(),
@@ -134,7 +152,7 @@
success: function (res) {
if (res.code === 200){
layer.closeAll();
- layer.msg(res.msg);
+ layer.msg("鍏ュ簱鍚姩鎴愬姛锛岀洰鏍囧簱浣嶏細" + res.data);
matCodeData = [];
tableIns.reload({data: matCodeData,done:function (res) { limit();}});
} else if (res.code === 403){
--
Gitblit v1.9.1