RIceWqy 2 years ago
parent 2a7a7f36e4
commit 21a6900e58

Binary file not shown.

@ -4,7 +4,7 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"preinstall": "npx only-allow npm",
"preinstall": "npx only-allow pnpm",
"dev": "vite",
"dev:test": "vite --mode testing",
"build": "vite build",
@ -20,7 +20,7 @@
},
"dependencies": {
"@element-plus/icons-vue": "2.1.0",
"@smallwei/avue": "^3.2.22",
"@smallwei/avue": "^3.3.0",
"@tinymce/tinymce-vue": "^5.1.0",
"axios": "1.3.4",
"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 App from './App.vue'
import { createPinia } from 'pinia'
@ -7,9 +9,6 @@ import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from '@/router'
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'
// svg
@ -29,21 +28,18 @@ moment.locale('zh-cn', {
}
})
const app = createApp(App)
// router
app.use(router)
// pinia
const pinia = createPinia()
app.use(pinia)
app.component('SvgIcon', svgIcon)
// Avue
app.use(Avue)
// element-plus
// element-pl
// us
app.use(ElementPlus, { locale })
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)
}
// Avue
app.use(Avue)
app.mount('#app')

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

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

@ -14,7 +14,7 @@
v-if="scope.row.pic"
class="avue-crud__img"
>
<el-icon><Document /></el-icon>
<el-icon><Document/></el-icon>
</span>
<span v-else>-</span>
</template>
@ -66,6 +66,7 @@ const page = reactive({
currentPage: 1, //
pageSize: 10 //
})
const addOrUpdateRef = ref(null)
/**
* 获取数据列表
*/
@ -92,7 +93,6 @@ const getDataList = (pageParam, params, done) => {
})
}
const addOrUpdateRef = ref(null)
/**
* 新增 / 修改
* @param id

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

Loading…
Cancel
Save