Commit 292d6b2a authored by tianhongyang's avatar tianhongyang

过期企业添加账号 添加提示语

parent 6ca99a1e
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="序号" width="60"> <el-table-column label="序号" width="60">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{(queryParams.pageNum - 1) *queryParams.pageSize + scope.$index + 1}}</span> <span>{{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="企业名称" prop="companyName" :show-overflow-tooltip="true" width="150" /> <el-table-column label="企业名称" prop="companyName" :show-overflow-tooltip="true" width="150" />
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" /> <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
<!-- 添加或修改对话框 --> <!-- 添加或修改对话框 -->
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body :close-on-click-modal="false"> <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body :close-on-click-modal="false">
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="续约时间" prop="dateRange"> <el-form-item label="续约时间" prop="dateRange">
<el-date-picker :disabled="disabled" v-model="form.dateRange" style="width: 100%" value-format="yyyy-MM-dd HH:mm:ss" <el-date-picker :disabled="disabled" v-model="form.dateRange" style="width: 100%" value-format="yyyy-MM-dd HH:mm:ss" type="datetimerange"
type="datetimerange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -105,8 +105,7 @@ ...@@ -105,8 +105,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="企业规模" prop="accountCount"> <el-form-item label="企业规模" prop="accountCount">
<el-input onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" :disabled="disabled" v-model="form.accountCount" <el-input onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" :disabled="disabled" v-model="form.accountCount" placeholder="请输入企业规模" />
placeholder="请输入企业规模" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -114,7 +113,7 @@ ...@@ -114,7 +113,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="状态" prop="status"> <el-form-item label="状态" prop="status">
<el-radio-group v-model="form.status" :disabled="disabled"> <el-radio-group v-model="form.status" :disabled="disabled">
<el-radio v-for="dict in dict.type.sys_user_status" :key="dict.value" :label="dict.value">{{dict.label}}</el-radio> <el-radio v-for="dict in dict.type.sys_user_status" :key="dict.value" :label="dict.value">{{ dict.label }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -258,6 +257,7 @@ export default { ...@@ -258,6 +257,7 @@ export default {
// 新增用户账号 // 新增用户账号
async handleAddAccount(row) { async handleAddAccount(row) {
try { try {
if (row.status == "1") return this.$message.warning("该企业账号已过期,不能添加用户");
if (!row.tenantId) return this.$message.warning("缺少租户ID"); if (!row.tenantId) return this.$message.warning("缺少租户ID");
await this.getAccountCount(row.tenantId); await this.getAccountCount(row.tenantId);
if (this.addAccountCount >= 6) { if (this.addAccountCount >= 6) {
...@@ -448,6 +448,7 @@ export default { ...@@ -448,6 +448,7 @@ export default {
.el-dialog__header { .el-dialog__header {
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
} }
.el-dialog__body { .el-dialog__body {
padding: 15px 20px; padding: 15px 20px;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment