src/SSCMS.Web/Pages/ss-admin/settings/administratorsAccessTokens.cshtml

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@page
@{ Layout = "_Layout"; }

<el-table
:data="tokens"
style="width: 100%">
<el-table-column prop="title" label="名称" width="150"></el-table-column>
<el-table-column label="关联管理员">
  <template slot-scope="scope">
    <el-link :underline="false" type="primary" v-on:click="btnAdminViewClick(scope.row)">{{scope.row.adminName}}</el-link>
  </template>
</el-table-column>
<el-table-column label="授权范围">
  <template slot-scope="scope">
    {{ getItemScopes(scope.row) }}
  </template>
</el-table-column>
<el-table-column
  fixed="right"
  width="190"
  align="center"
  show-overflow-tooltip
  label="操作">
  <template slot-scope="scope">
    <el-link :underline="false" style="margin-right: 5px;" type="primary" v-on:click="btnViewClick(scope.row)">
      获取密钥
    </el-link>
    <el-link :underline="false" style="margin-right: 5px;" type="primary" v-on:click="btnEditClick(scope.row)">
      编 辑
    </el-link>
    <el-link :underline="false" style="margin-right: 5px;" type="primary" v-on:click="btnDeleteClick(scope.row)">
      删 除
    </el-link>
  </template>
</el-table-column>
</el-table>

<el-row>
  <el-divider></el-divider>
  <div style="height: 10px"></div>
  <el-button size="mini" plain type="primary" style="margin-left: 0px;" icon="el-icon-plus" v-on:click="btnAddClick">
    添加新密钥
  </el-button>
  <el-link style="float: right" :underline="false" type="primary" :href="getDocsUrl('api/')" target="_blank">
    SiteServer REST API
  </el-link>
</el-row>

<el-drawer
  id="form"
  :title="form.id ? '修改API密钥' : '添加API密钥'"
  ref="panel"
  :visible.sync="panel"
  destroy-on-close
  direction="rtl"
  size="70%">
  <div class="drawer__content">
    <el-form ref="form" :model="form" size="small" label-width="120px">
      <el-form-item label="名称" prop="title" :rules="{ required: true, message: '请输入名称' }">
        <el-input v-model="form.title"></el-input>
后面还有 33 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。