Browse Source

Update stepselect_main.htm

tags/6.2.12
叙述、别离 7 months ago
parent
commit
32a9810237
1 changed files with 11 additions and 4 deletions
  1. +11
    -4
      src/admin/templets/stepselect_main.htm

+ 11
- 4
src/admin/templets/stepselect_main.htm View File

@@ -25,7 +25,8 @@
return selvalue;
}
function AddType() {
fetch('stepselect_main.php?action=addnew').then(resp=>{
$DE('edsta').style.display = 'block';
fetch('stepselect_main.php?action=addnew').then(resp => {
if (resp.ok) {
return resp.text()
}
@@ -42,7 +43,7 @@
ShowMsg("必须选择一个类别");
return false;
}
fetch('stepselect_main.php?action=addenum&id=' + id).then(resp=>{
fetch('stepselect_main.php?action=addenum&id=' + id).then(resp => {
if (resp.ok) {
return resp.text()
}
@@ -60,7 +61,8 @@
ShowMsg("必须选择一个类别");
return false;
}
fetch('stepselect_main.php?action=edit&id=' + id).then(resp=>{
$DE('edsta').style.display = 'block';
fetch('stepselect_main.php?action=edit&id=' + id).then(resp => {
if (resp.ok) {
return resp.text()
}
@@ -77,7 +79,8 @@
ShowMsg("必须选择一个类别");
return false;
}
fetch('stepselect_main.php?action=view&id=' + id).then(resp=>{
$DE('edsta').style.display = 'block';
fetch('stepselect_main.php?action=view&id=' + id).then(resp => {
if (resp.ok) {
return resp.text()
}
@@ -100,6 +103,9 @@
console.log(e)
});
}
function CloseTWin() {
$DE('edsta').style.display = 'none';
}
function ChangePage(sobj) {
var ntxt = sobj.options[sobj.selectedIndex].text;
if (sobj.options[sobj.selectedIndex].value == 0) {
@@ -333,5 +339,6 @@
</tr>
</table>
<?php }?>
<div id="edsta"></div>
</body>
</html>

Loading…
Cancel
Save