| | |
| | | </avue-crud> |
| | | |
| | | <!-- 新增弹窗 --> |
| | | <el-dialog title="新增 License" v-model="addDialogVisible" width="70%" :close-on-click-modal="false" |
| | | <el-dialog class="ztzf-dialog-mange" title="新增 License" v-model="addDialogVisible" width="70%" :close-on-click-modal="false" |
| | | @close="resetForm"> |
| | | <el-form :model="newLicense" ref="licenseForm" label-width="120px"> |
| | | <el-form-item label="机构ID" prop="licenseId"> |
| | |
| | | <el-form-item label="机构名称" prop="licenseName" required> |
| | | <el-input v-model="newLicense.licenseName" /> |
| | | </el-form-item> |
| | | <el-form-item label="是否验证过期时间类型" prop="licenseType" required> |
| | | <el-form-item label="过期时间类型" prop="licenseType" required> |
| | | <el-select v-model="newLicense.licenseType" placeholder="请选择"> |
| | | <el-option label="不验证过期时间" :value="1" /> |
| | | <el-option label="验证过期时间" :value="2" /> |
| | |
| | | </el-form> |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | | <el-button @click="addDialogVisible = false">取消</el-button> |
| | | <el-button type="primary" @click="createLicense">保存</el-button> |
| | | <el-button type="primary" @click="createLicense" :icon="CircleCheck">保存</el-button> |
| | | <el-button @click="addDialogVisible = false" :icon="CircleClose">取消</el-button> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | <script> |
| | | import { getList, add } from '@/api/license/license' |
| | | import { mapGetters } from 'vuex' |
| | | import { CircleCheck, CircleClose } from '@element-plus/icons-vue'; |
| | | |
| | | export default { |
| | | data () { |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | CircleClose() { |
| | | return CircleClose |
| | | }, |
| | | CircleCheck() { |
| | | return CircleCheck |
| | | }, |
| | | ...mapGetters(['userInfo', 'permission']), |
| | | permissionList () { |
| | | return { |