模板配置 - 探索范围配置、数据回收配置、故障提单等
<template>
<div style="position: absolute; height: 20px">
<t-card :bordered="false">
<t-form
ref="form"
:data="formData"
:rules="FORM_RULES"
label-align="top"
:label-width="100"
@reset="onReset"
@submit="onSubmit"
>
<div class="form-basic-container">
<div class="form-basic-item">
<div class="form-basic-container-title">模板信息【UUID:{{template.template_uuid}}】</div>
<t-form-item label="模板名" name="templateTitle">
<t-input v-model="formData.templateTitle" :style="{ width: '322px' }" />
</t-form-item>
<t-form-item label="模板描述" name="templateDescription">
<t-textarea v-model="formData.templateDescription" :autosize="{ minRows: 3, maxRows: 5 }" placeholder="模板描述" />
</t-form-item>
<div id="探索配置" class="form-basic-container-title" style="font-size: 28px; margin-bottom: 0px;">探索配置</div>
<!-- 表单内容 -->
<t-row class="row-gap" :gutter="[16, 24]">
<t-col :span="12">
<div id="探索范围配置" class="form-basic-container-title" style="font-size: 24px;">探索范围配置</div>
<t-form-item label="控件白名单" name="controlWhitelist">
<t-textarea v-model="formData.controlWhitelist" :autosize="{ minRows: 3, maxRows: 5 }" placeholder="控件白名单" />
</t-form-item>
<t-form-item label="控件黑名单" name="controlBlacklist">
<t-textarea v-model="formData.controlBlacklist" :autosize="{ minRows: 3, maxRows: 5 }" placeholder="控件黑名单" />
</t-form-item>
<t-form-item label="界面白名单" name="interfaceWhitelist">
<t-textarea v-model="formData.interfaceWhitelist" :autosize="{ minRows: 3, maxRows: 5 }" placeholder="界面白名单" />
</t-form-item>
</t-col>
</t-row>
</div>
</div>
<pre><code> <div class="form-submit-container">
<div class="form-submit-sub">
<div class="form-submit-left">
<t-button theme="primary" class="form-submit-confirm" type="submit"> 提交 </t-button>
<t-button type="reset" class="form-submit-cancel" theme="default" variant="base"> 取消 </t-button>
</div>
<div class="form-submit-right">
<t-button theme="success" class="form-submit-save" type="button"> 保存 </t-button>
</div>
</div>
</div>
</t-form>
<t-anchor :affixProps="{ offsetTop: 0 }" style=" margin: -20px;" size="medium">
<t-anchor-item :href="'#环境配置'" title="环境配置" style="margin-bottom: 10px;">
<t-anchor-item :href="'#弱网'" title="弱网" style="margin-bottom: 10px;margin-top: 10px;"></t-anchor-item>
</t-anchor-item>
<t-anchor-item :href="'#数据回收配置'" title="数据回收配置" style="margin-bottom: 10px;">
<t-anchor-item :href="'#截图频率'" title="截图频率" style="margin-bottom: 10px;margin-top: 10px;"></t-anchor-item>
<t-anchor-item :href="'#故障监控方式'" title="故障监控方式" style="margin-bottom: 10px;"></t-anchor-item>
</t-anchor-item>
<t-anchor-item :href="'#故障提单'" title="故障提单" style="margin-bottom: 10px;">
<t-anchor-item :href="'#提单模板'" title="提单模板" style="margin-bottom: 10px;margin-top: 10px;"></t-anchor-item>
<t-anchor-item :href="'#提单过滤'" title="提单过滤" style="margin-bottom: 10px;"></t-anchor-item>
</t-anchor-item>
</t-anchor>
</t-card>
<t-back-top :bottom="200" :right="200" />
</code></pre>
</div>
</template>
<style scoped>
.form-submit-right {
position: fixed;
bottom: 20px;
right: 20px;
}
</style>
原文地址: https://www.cveoy.top/t/topic/qzhl 著作权归作者所有。请勿转载和采集!