From ecc4e57b4f7c6ecfd6823704688ee786b3350b1f Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期一, 02 十二月 2024 11:06:13 +0800
Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/PlayPai into 2.0
---
cloud-server-management/src/main/webapp/static/modular/system/bodySideAppointment/tBodySideAppointment_edit.js | 46 +++++++++++++++++++---------------------------
1 files changed, 19 insertions(+), 27 deletions(-)
diff --git a/cloud-server-management/src/main/webapp/static/modular/system/bodySideAppointment/tBodySideAppointment_edit.js b/cloud-server-management/src/main/webapp/static/modular/system/bodySideAppointment/tBodySideAppointment_edit.js
index 7e5dc49..5a8d5ed 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/bodySideAppointment/tBodySideAppointment_edit.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/bodySideAppointment/tBodySideAppointment_edit.js
@@ -14,7 +14,7 @@
TQuestion.initColumn = function () {
return [
{field: 'selectItem', checkbox: true},
- {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'},
+ {title: '序号', field: 'benefitsVideosId', visible: true, align: 'center', valign: 'middle'},
{title: '视频类型', field: 'type', visible: true, align: 'center', valign: 'middle',
formatter:function (data) {
return {1:"课后练习",2:"运动教学视频",3:"器材教学视频"}[data]
@@ -37,6 +37,20 @@
];
};
+TQuestion.oneChange = function (e) {
+ var oneId=$(e).val();
+ var ajax = new $ax(Feng.ctxPath + "/tCompetition/onChange", function(data){
+ if(data!=null){
+ var content='<option value="">选择市</option>';
+ $.each(data, function(k,v) {
+ content += "<option value='"+v.code+"'>"+v.name+"</option>";
+ });
+ $("#cCode").empty().append(content);
+ }
+ });
+ ajax.set("oneId",oneId);
+ ajax.start();
+};
/**
* 检查是否选中
*/
@@ -55,29 +69,7 @@
TQuestion.phone = "";
TQuestion.phoneId = "";
// 选择省 获取对应市区
-TQuestion.oneChange = function () {
- var province = $('#pCode option:selected').text();
- var citySelect = document.getElementById("cCode");
- var storeSelect = document.getElementById("store");
- var ajax = new $ax(Feng.ctxPath + "/tSite/getCity", function(data){
- if(data!=null){
- var content='<option value="">选择市</option>';
- $.each(data, function(k,v) {
- content += "<option value='"+v.cityCode+"'>"+v.city+"</option>";
- });
- $("#cCode").empty().append(content);
- }
- });
- if (province === ""){
- citySelect.innerHTML = '<option value="">请先选择省</option>';
- storeSelect.innerHTML = '<option value="">请先选择省</option>';
- }else{
- citySelect.innerHTML = '<option value="">请选择市</option>';
- storeSelect.innerHTML = '<option value="">请先选择市区</option>';
- }
- ajax.set("province",province);
- ajax.start();
-};
+
// 选择市 获取对应门店
TQuestion.oneChangeNext = function (e) {
@@ -155,7 +147,7 @@
state:null
};
selected.forEach(function(obj) {
- var id = obj.id;
+ var id = obj.benefitsVideosId;
data1.ids.push(id);
});
data1.state = 1;
@@ -191,7 +183,7 @@
state:null
};
selected.forEach(function(obj) {
- var id = obj.id;
+ var id = obj.benefitsVideosId;
data1.ids.push(id);
});
data1.state = 2;
@@ -270,7 +262,7 @@
state:null
};
selected.forEach(function(obj) {
- var id = obj.id;
+ var id = obj.benefitsVideosId;
data1.ids.push(id);
});
data1.state = 3;
--
Gitblit v1.7.1