解决页面插槽使用不规范问题

This commit is contained in:
BianLzhaoMin 2024-05-30 10:39:59 +08:00
parent 2a453c8f14
commit 72919c2ffa
4 changed files with 379 additions and 382 deletions

View File

@ -41,8 +41,8 @@ const user = {
// 登录 // 登录
Login({ commit }, userInfo) { Login({ commit }, userInfo) {
const username = userInfo.username.trim() const username = userInfo.username.trim()
// const password = encrypt(userInfo.password) const password = encrypt(userInfo.password)
const password = userInfo.password // const password = userInfo.password
const code = userInfo.code const code = userInfo.code
const uuid = userInfo.uuid const uuid = userInfo.uuid
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {

View File

@ -88,7 +88,7 @@
width="80" width="80"
type="index" type="index"
> >
<template scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
(queryParams.pageNum - 1) * 10 + scope.$index + 1 (queryParams.pageNum - 1) * 10 + scope.$index + 1
}}</span> }}</span>
@ -317,7 +317,7 @@
width="80" width="80"
type="index" type="index"
> >
<template scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
(codeQuery.pageNum - 1) * 10 + scope.$index + 1 (codeQuery.pageNum - 1) * 10 + scope.$index + 1
}}</span> }}</span>

View File

@ -449,7 +449,7 @@
width="80" width="80"
type="index" type="index"
> >
<template scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
(dialogQuery.pageNum - 1) * 10 + scope.$index + 1 (dialogQuery.pageNum - 1) * 10 + scope.$index + 1
}}</span> }}</span>

View File

@ -344,7 +344,7 @@
width="80" width="80"
type="index" type="index"
> >
<template scope="scope"> <template slot-scope="scope">
<span>{{ <span>{{
(queryParams.pageNum - 1) * 10 + scope.$index + 1 (queryParams.pageNum - 1) * 10 + scope.$index + 1
}}</span> }}</span>
@ -440,26 +440,26 @@
</template> </template>
<script> <script>
import { import {
listType, listType,
getType, getType,
delType, delType,
addType, addType,
updateType, updateType,
refreshCache, refreshCache,
} from '@/api/system/dict/type' } from '@/api/system/dict/type'
import { import {
getRepairedList, getRepairedList,
getRepairedDetailList, getRepairedDetailList,
inputByType, inputByType,
getTypeList, getTypeList,
} from '@/api/store/warehousing' } from '@/api/store/warehousing'
import { equipmentTypeTree } from '@/api/store/tools' import { equipmentTypeTree } from '@/api/store/tools'
import Treeselect from '@riophae/vue-treeselect' import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css' import '@riophae/vue-treeselect/dist/vue-treeselect.css'
export default { export default {
name: 'RepairWarehousing', name: 'RepairWarehousing',
dicts: ['sys_normal_disable'], dicts: ['sys_normal_disable'],
components: { components: {
@ -783,10 +783,7 @@
this.equipmentTypeList.forEach((item, index) => { this.equipmentTypeList.forEach((item, index) => {
if (item.children && item.children.length > 0) { if (item.children && item.children.length > 0) {
item.children.forEach((item2, index2) => { item.children.forEach((item2, index2) => {
if ( if (item2.children && item2.children.length > 0) {
item2.children &&
item2.children.length > 0
) {
item2.children.forEach((item3) => { item2.children.forEach((item3) => {
if ( if (
item3.children && item3.children &&
@ -821,11 +818,11 @@
immediate: true, immediate: true,
}, },
}, },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep.el-table .fixed-width .el-button--mini { ::v-deep.el-table .fixed-width .el-button--mini {
width: 60px !important; width: 60px !important;
margin-bottom: 10px; margin-bottom: 10px;
} }
</style> </style>