Files
ziqim/Yangcai365_design/manage/zview/editor/updateTemplateId.zml
T
2025-02-20 14:58:55 +08:00

34 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script>
function doUpdateTemplateId()
{
var templateId = Z("#templateId").val();
var designId = Z("#designId").val();
if (Z.V.isEmptyBlank(templateId))
{
Z.alert("模板文件id不能为空");
return;
}
var ajax = new Z.Ajax();
ajax.setContextPath("${context.getContextPath()}");
ajax.setClassName("DesignOrderPresenter");
ajax.setMethodName("doUpdateTemplateId");
ajax.addParam("templateId",templateId);
ajax.addParam("designId",designId);
ajax.setFailureAlert();
ajax.setSuccessAlertReloadParent("修改成功");
ajax.execute();
}
</script>
<div class="z-h60 z-pd20">
原模板文件id<span class="z-color-666"><#if templateId.isEmpty()><#else>${templateId}</#if></span>
</div>
<div class="z-h60 z-pd20">
<input name="designId" id="designId" value="${designId}" type="hidden">
新模板文件id<input id="templateId" class="z-input z-w300 ${zmr_color_class}" maxlength="10" spellcheck="false">
<span class="z-px12 z-text-red">*</span>
</div>
<div class="z-absolute z-b0 z-l0 z-w100p z-h80 z-pd20 z-text-center z-bg-gray">
<button type="button" class="z-button z-large z-w100 ${zmr_color_class}" onclick="doUpdateTemplateId();">提交</button>
<button type="button" class="z-button z-large z-w100 z-mg-l10" onclick="parent.Z.Dialog.close();">关闭</button>
</div>