This commit is contained in:
张良(004796)
2024-01-22 17:38:24 +08:00
parent d685788972
commit d79df86da3
14 changed files with 30 additions and 24 deletions

View File

@@ -2,13 +2,13 @@
<div class="app-container">
<el-tabs v-model="activeName" type="card">
<el-tab-pane label="用户协议" name="loansAgreement">
<el-button type="primary" size="mini" v-if="!userAgreement" @click="showEdit('userAgreement')">编辑</el-button>
<el-button type="primary" size="mini" v-hasPermi="['cai:agreementSetting:edit']" v-if="!userAgreement" @click="showEdit('userAgreement')">编辑</el-button>
<el-button :loading="buttonLoading" v-if="userAgreement" type="primary" size="mini" @click="submitForm2('userAgreement')">保存</el-button>
<div v-if="!userAgreement" v-html="form.userAgreement" style="width: 98%" />
<wang-edit v-if="userAgreement" v-model="form.userAgreement" :min-height="800" />
</el-tab-pane>
<el-tab-pane label="主播入驻协议" name="anchorJoinAgreement">
<el-button type="primary" size="mini" v-if="!anchorJoinAgreement" @click="showEdit('anchorJoinAgreement')">编辑</el-button>
<el-button type="primary" size="mini" v-hasPermi="['cai:agreementSetting:edit']" v-if="!anchorJoinAgreement" @click="showEdit('anchorJoinAgreement')">编辑</el-button>
<el-button :loading="buttonLoading" v-if="anchorJoinAgreement" type="primary" size="mini" @click="submitForm2('anchorJoinAgreement')">保存</el-button>
<div v-if="!anchorJoinAgreement" v-html="form.anchorJoinAgreement" style="width: 98%" />
<editor v-if="anchorJoinAgreement" v-model="form.anchorJoinAgreement" :min-height="192"></editor>