'修改bug'

This commit is contained in:
Fanzink
2022-03-10 21:15:33 +08:00
parent 95afd175a3
commit 7afe3c3ec7
25 changed files with 419 additions and 156 deletions

View File

@@ -4,7 +4,7 @@
* @Author: fzq
* @Date: 2022-03-03 09:51:25
* @LastEditors: fzq
* @LastEditTime: 2022-03-06 19:15:25
* @LastEditTime: 2022-03-08 16:56:40
-->
<template>
<div class="app-container">
@@ -35,7 +35,7 @@
:limit.sync="listQuery.size"
@pagination="getList()"
/>
<processInfo-add v-if="addOrUpdateVisible" ref="addOrUpdate" :cache-id="listQuery.cacheId" @refreshDataList="getList" />
<processInfo-add v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getList" />
</div>
</template>
@@ -46,7 +46,6 @@ import processInfoAdd from './components/processInfo-add'
import Pagination from '@/components/Pagination' // Secondary package based on el-pagination
import MethodBtn from '@/components/BaseTable/subcomponents/MethodBtn'
import { list, locaDelete } from '@/api/basicData/Cache/processLocation'
import { timeFormatter } from '@/filters'
/**
* 表格表头配置项 TypeScript接口注释
* tableConfig<ConfigItem> = []
@@ -75,24 +74,8 @@ const tableBtn = [
]
const tableProps = [
{
prop: 'createTime',
label: i18n.t('module.basicData.factory.createTime'),
filter: timeFormatter,
align: 'center'
},
{
prop: 'sequence',
label: i18n.t('module.basicData.processLocation.sequence'),
align: 'center'
},
{
prop: 'locationName',
label: i18n.t('module.basicData.processLocation.locationName'),
align: 'center'
},
{
prop: 'isProcess',
label: i18n.t('module.basicData.processLocation.isProcess'),
prop: 'workSequenId',
label: i18n.t('module.basicData.processLocation.workSequenId'),
align: 'center'
},
{
@@ -101,14 +84,34 @@ const tableProps = [
align: 'center'
},
{
prop: 'workSequenId',
label: i18n.t('module.basicData.processLocation.workSequenId'),
prop: 'portAttrId',
label: i18n.t('module.basicData.processLocation.portAttrId'),
align: 'center'
},
{
prop: 'isProcess',
label: i18n.t('module.basicData.processLocation.isProcess'),
align: 'center'
},
{
prop: 'equipmentMark',
label: i18n.t('module.basicData.processLocation.equipmentMark'),
align: 'center'
},
{
prop: 'sequence',
label: i18n.t('module.basicData.processLocation.sequence'),
align: 'center'
},
{
prop: 'goodsShelves',
label: i18n.t('module.basicData.processLocation.goodsShelves'),
align: 'center'
},
{
prop: 'locationName',
label: i18n.t('module.basicData.processLocation.locationName'),
align: 'center'
}
]
@@ -152,12 +155,11 @@ export default {
methods: {
handleClick(raw) {
if (raw.type === 'delete') {
this.$confirm(`${this.$t('module.basicData.visual.TipsBefore')}[${raw.data.locationName}]?`, this.$t('module.basicData.visual.Tips'), {
this.$confirm(`${this.$t('module.basicData.visual.TipsBefore')}[${raw.data.id}]?`, this.$t('module.basicData.visual.Tips'), {
confirmButtonText: this.$t('module.basicData.visual.confirmButtonText'),
cancelButtonText: this.$t('module.basicData.visual.cancelButtonText'),
type: 'warning'
}).then(() => {
console.log(raw.data)
locaDelete(raw.data.id).then(response => {
this.$message({
message: this.$t('module.basicData.visual.success'),
@@ -170,9 +172,9 @@ export default {
})
}).catch(() => {})
} else if (raw.type === 'edit') {
this.addNew(raw.data.locationId)
this.addNew(raw.data.id)
} else {
this.addNew(raw.data.locationId, true)
this.addNew(raw.data.id, true)
}
},
getList(key) {
@@ -185,7 +187,7 @@ export default {
this.list.splice(0, this.list.length)
}
this.total = response.data.total
console.log(response)
// console.log(response)
this.listLoading = false
})
},