RIceWqy 2 years ago
parent 2a7a7f36e4
commit 21a6900e58

Binary file not shown.

@ -4,7 +4,7 @@
"version": "0.0.0", "version": "0.0.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"preinstall": "npx only-allow npm", "preinstall": "npx only-allow pnpm",
"dev": "vite", "dev": "vite",
"dev:test": "vite --mode testing", "dev:test": "vite --mode testing",
"build": "vite build", "build": "vite build",
@ -20,7 +20,7 @@
}, },
"dependencies": { "dependencies": {
"@element-plus/icons-vue": "2.1.0", "@element-plus/icons-vue": "2.1.0",
"@smallwei/avue": "^3.2.22", "@smallwei/avue": "^3.3.0",
"@tinymce/tinymce-vue": "^5.1.0", "@tinymce/tinymce-vue": "^5.1.0",
"axios": "1.3.4", "axios": "1.3.4",
"big.js": "6.2.1", "big.js": "6.2.1",

@ -1,3 +1,5 @@
import Avue from '@smallwei/avue'
import '@smallwei/avue/lib/index.css'
import { createApp } from 'vue' import { createApp } from 'vue'
import App from './App.vue' import App from './App.vue'
import { createPinia } from 'pinia' import { createPinia } from 'pinia'
@ -7,9 +9,6 @@ import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue' import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from '@/router' import router from '@/router'
import locale from 'element-plus/lib/locale/lang/zh-cn' import locale from 'element-plus/lib/locale/lang/zh-cn'
import Avue from '@smallwei/avue'
import '@smallwei/avue/lib/index.css'
// 全局样式 // 全局样式
import '@/styles/index.scss' import '@/styles/index.scss'
// svg // svg
@ -29,21 +28,18 @@ moment.locale('zh-cn', {
} }
}) })
const app = createApp(App) const app = createApp(App)
// router // router
app.use(router) app.use(router)
// pinia // pinia
const pinia = createPinia() const pinia = createPinia()
app.use(pinia) app.use(pinia)
app.component('SvgIcon', svgIcon) app.component('SvgIcon', svgIcon)
// element-pl
// Avue // us
app.use(Avue)
// element-plus
app.use(ElementPlus, { locale }) app.use(ElementPlus, { locale })
for (const [key, component] of Object.entries(ElementPlusIconsVue)) { for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component) app.component(key, component)
} }
// Avue
app.use(Avue)
app.mount('#app') app.mount('#app')

@ -101,6 +101,7 @@
import { isAuth } from '@/utils' import { isAuth } from '@/utils'
import { ElMessage, ElMessageBox } from 'element-plus' import { ElMessage, ElMessageBox } from 'element-plus'
import { tableOption } from '@/crud/prod/prodList.js' import { tableOption } from '@/crud/prod/prodList.js'
const permission = reactive({ const permission = reactive({
delBtn: isAuth('prod:prod:delete') delBtn: isAuth('prod:prod:delete')
}) })
@ -185,7 +186,8 @@ const onDelete = (id) => {
}) })
}) })
}) })
.catch(() => { }) .catch(() => {
})
} }
/** /**
* 条件查询 * 条件查询

@ -66,6 +66,7 @@
<script setup> <script setup>
import { ElMessage } from 'element-plus' import { ElMessage } from 'element-plus'
import { Debounce } from '@/utils/debounce' import { Debounce } from '@/utils/debounce'
const emit = defineEmits(['refreshDataList']) const emit = defineEmits(['refreshDataList'])
const visible = ref(false) const visible = ref(false)
@ -75,6 +76,7 @@ const dataForm = ref({
pic: '', pic: '',
status: 1 status: 1
}) })
const dataFormRef = ref(null)
const page = reactive({ const page = reactive({
total: 0, // total: 0, //
currentPage: 1, // currentPage: 1, //
@ -82,11 +84,14 @@ const page = reactive({
}) })
const dataRule = { const dataRule = {
nickName: [ nickName: [
{ required: true, message: '用户名不能为空', trigger: 'blur' } {
required: true,
message: '用户名不能为空',
trigger: 'blur'
}
] ]
} }
const dataFormRef = ref(null)
const init = (id) => { const init = (id) => {
dataForm.value.userId = id || 0 dataForm.value.userId = id || 0
visible.value = true visible.value = true

@ -66,6 +66,7 @@ const page = reactive({
currentPage: 1, // currentPage: 1, //
pageSize: 10 // pageSize: 10 //
}) })
const addOrUpdateRef = ref(null)
/** /**
* 获取数据列表 * 获取数据列表
*/ */
@ -92,7 +93,6 @@ const getDataList = (pageParam, params, done) => {
}) })
} }
const addOrUpdateRef = ref(null)
/** /**
* 新增 / 修改 * 新增 / 修改
* @param id * @param id

@ -81,7 +81,7 @@ const page = reactive({
currentPage: 1, // currentPage: 1, //
pageSize: 10 // pageSize: 10 //
}) })
const detailOrCheckRef = ref(null)
/** /**
* 获取数据列表 * 获取数据列表
*/ */
@ -108,7 +108,6 @@ const getDataList = (pageParam, params, done) => {
}) })
} }
const detailOrCheckRef = ref(null)
/** /**
* 详情 / 审核 * 详情 / 审核
* @param param * @param param

Loading…
Cancel
Save