修复问题
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { reactive, ref, onMounted, readonly } from "vue"
|
||||
import { reactive, ref } from "vue"
|
||||
import userApi from "@/api/system/user"
|
||||
import user from "@/api/system/user"
|
||||
import { Message } from "@arco-design/web-vue"
|
||||
@@ -99,9 +99,22 @@ const crudColumns = reactive([
|
||||
dataIndex: "name",
|
||||
search: true,
|
||||
width: 80,
|
||||
commonRules: [{ required: true, message: "名称必填" }]
|
||||
commonRules: [
|
||||
{ required: true, message: "名称必填" },
|
||||
{ maxLength: 50, message: "名称不能超过50个字符" }
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "用户名",
|
||||
dataIndex: "username",
|
||||
search: true,
|
||||
align: "center",
|
||||
commonRules: [
|
||||
{ required: true, message: "用户名必填" },
|
||||
{ maxLength: 18, message: "用户名不能超过18个字符" },
|
||||
{ minLength: 5, message: "用户名不能少于5个字符" }
|
||||
]
|
||||
},
|
||||
{ title: "用户名", dataIndex: "username", search: true, align: "center" },
|
||||
{
|
||||
title: "电话",
|
||||
align: "center",
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<a-link @click="viewDetail(record)">{{ record.title }}</a-link>
|
||||
</template>
|
||||
</a-table>
|
||||
<a-modal v-model:visible="detailVisible" fullscreen :footer="false">
|
||||
<a-modal v-model:visible="detailVisible" width="80%" draggable :footer="false">
|
||||
<template #title>公告详情</template>
|
||||
<a-typography :style="{ marginTop: '-30px' }">
|
||||
<a-typography-title class="text-center">
|
||||
@@ -55,7 +55,7 @@ getNoticeList()
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.bg-color{
|
||||
.bg-color {
|
||||
background-color: var(--color-bg-1);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<a-modal v-model:visible="visible" fullscreen :footer="false">
|
||||
<a-modal v-model:visible="visible" width="auto" draggable :footer="false">
|
||||
<template #title>维护数据字典 →【{{ currentRow.name }}】</template>
|
||||
<!-- crud组件 -->
|
||||
<div class="lg:w-full w-full lg:mt-0">
|
||||
@@ -29,7 +29,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, nextTick } from "vue"
|
||||
import { ref } from "vue"
|
||||
import dictApi from "@/api/system/dict"
|
||||
import { Message } from "@arco-design/web-vue"
|
||||
|
||||
@@ -40,9 +40,8 @@ const currentRow = ref({ id: undefined, name: undefined })
|
||||
// 改变dictItem的sort字段
|
||||
const changeSort = async (value, id) => {
|
||||
const response = await dictApi.numberOperation({ id, numberName: "sort", numberValue: value })
|
||||
if (response.success) {
|
||||
Message.success(response.message)
|
||||
}
|
||||
response.success && Message.success(response.message)
|
||||
crudRef.value.refresh()
|
||||
}
|
||||
// 改变dictItem状态
|
||||
const changeStatus = async (status, id) => {
|
||||
@@ -84,7 +83,7 @@ const open = (row) => {
|
||||
columnService.get("source").setAttr("editDisplay", false)
|
||||
}
|
||||
}
|
||||
// crudOptions
|
||||
// crud选项
|
||||
const crudOptions = ref({
|
||||
autoRequest: false,
|
||||
api: dictApi.getDictItemAll,
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
</ma-crud>
|
||||
</div>
|
||||
|
||||
<data-list ref="datalist"></data-list>
|
||||
<data-list ref="datalistRef"></data-list>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -38,11 +38,11 @@ import { Message } from "@arco-design/web-vue"
|
||||
import DataList from "./dataList.vue"
|
||||
|
||||
const crudRef = ref()
|
||||
const datalist = ref()
|
||||
const datalistRef = ref()
|
||||
|
||||
// 打开datalist页面
|
||||
const openDictList = async (row) => {
|
||||
datalist.value.open(row)
|
||||
datalistRef.value.open(row)
|
||||
}
|
||||
|
||||
// 点击切换status
|
||||
|
||||
@@ -23,7 +23,14 @@
|
||||
{ maxLength: 30, message: '用户名不能超过30个字符' }
|
||||
]"
|
||||
>
|
||||
<a-input v-model="form.username" class="w-full" size="large" placeholder="用户名" allow-clear :max-length="30">
|
||||
<a-input
|
||||
v-model="form.username"
|
||||
class="w-full"
|
||||
size="large"
|
||||
placeholder="用户名"
|
||||
allow-clear
|
||||
:max-length="30"
|
||||
>
|
||||
<template #prefix><icon-user /></template>
|
||||
</a-input>
|
||||
</a-form-item>
|
||||
@@ -36,7 +43,13 @@
|
||||
{ maxLength: 30, message: '密码不超过30字符' }
|
||||
]"
|
||||
>
|
||||
<a-input-password v-model="form.password" placeholder="请输入密码" size="large" allow-clear :max-length="30">
|
||||
<a-input-password
|
||||
v-model="form.password"
|
||||
placeholder="请输入密码"
|
||||
size="large"
|
||||
allow-clear
|
||||
:max-length="30"
|
||||
>
|
||||
<template #prefix><icon-lock /></template>
|
||||
</a-input-password>
|
||||
</a-form-item>
|
||||
@@ -52,7 +65,13 @@
|
||||
}
|
||||
]"
|
||||
>
|
||||
<a-input v-model="form.code" placeholder="请输入验证码" size="large" allow-clear :max-length="4">
|
||||
<a-input
|
||||
v-model="form.code"
|
||||
placeholder="请输入验证码"
|
||||
size="large"
|
||||
allow-clear
|
||||
:max-length="4"
|
||||
>
|
||||
<template #prefix><icon-safe /></template>
|
||||
<template #append>
|
||||
<verify-code ref="Verify" />
|
||||
|
||||
Reference in New Issue
Block a user