Browse Source

Update stepselect_main.htm

tags/6.2.12
叙述、别离 2 years 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; return selvalue;
} }
function AddType() { 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) { if (resp.ok) {
return resp.text() return resp.text()
} }
@@ -42,7 +43,7 @@
ShowMsg("必须选择一个类别"); ShowMsg("必须选择一个类别");
return false; 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) { if (resp.ok) {
return resp.text() return resp.text()
} }
@@ -60,7 +61,8 @@
ShowMsg("必须选择一个类别"); ShowMsg("必须选择一个类别");
return false; 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) { if (resp.ok) {
return resp.text() return resp.text()
} }
@@ -77,7 +79,8 @@
ShowMsg("必须选择一个类别"); ShowMsg("必须选择一个类别");
return false; 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) { if (resp.ok) {
return resp.text() return resp.text()
} }
@@ -100,6 +103,9 @@
console.log(e) console.log(e)
}); });
} }
function CloseTWin() {
$DE('edsta').style.display = 'none';
}
function ChangePage(sobj) { function ChangePage(sobj) {
var ntxt = sobj.options[sobj.selectedIndex].text; var ntxt = sobj.options[sobj.selectedIndex].text;
if (sobj.options[sobj.selectedIndex].value == 0) { if (sobj.options[sobj.selectedIndex].value == 0) {
@@ -333,5 +339,6 @@
</tr> </tr>
</table> </table>
<?php }?> <?php }?>
<div id="edsta"></div>
</body> </body>
</html> </html>

Loading…
Cancel
Save