Browse Source

BUG修改

master
yejiaxing 10 months ago
parent
commit
2f1a3399c9
  1. 4
      src/views/eam/basic/deviceMoldItems/index.vue
  2. 38
      src/views/eam/basic/factoryArea/index.vue
  3. 6
      src/views/eam/basic/item/index.vue
  4. 6
      src/views/eam/basic/location/index.vue
  5. 44
      src/views/eam/basic/locationArea/index.vue
  6. 6
      src/views/eam/basic/supplier/index.vue
  7. 4
      src/views/eam/fixedAssets/index.vue

4
src/views/eam/basic/deviceMoldItems/index.vue

@ -133,8 +133,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:deviceMoldItems:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:deviceMoldItems:delete'}), //
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
]
// -

38
src/views/eam/basic/factoryArea/index.vue

@ -5,28 +5,15 @@
</ContentWrap>
<!-- 列表头部 -->
<TableHead
:HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="FactoryArea.allSchemas"
/>
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" :routeName="routeName"
@updataTableColumns="updataTableColumns" @searchFormClick="searchFormClick" :allSchemas="FactoryArea.allSchemas" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
<Table :columns="tableColumns" :data="tableObject.tableList" :loading="tableObject.loading" :pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort">
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
@ -39,16 +26,9 @@
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="formsSuccess"
:rules="FactoryAreaRules"
:formAllSchemas="FactoryArea.allSchemas"
:apiUpdate="FactoryAreaApi.updateFactoryArea"
:apiCreate="FactoryAreaApi.createFactoryArea"
@searchTableSuccess="searchTableSuccess"
:isBusiness="false"
/>
<BasicForm ref="basicFormRef" @success="formsSuccess" :rules="FactoryAreaRules"
:formAllSchemas="FactoryArea.allSchemas" :apiUpdate="FactoryAreaApi.updateFactoryArea"
:apiCreate="FactoryAreaApi.createFactoryArea" @searchTableSuccess="searchTableSuccess" :isBusiness="false" />
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="FactoryArea.allSchemas" />
@ -137,6 +117,7 @@ const butttondata = [
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
console.log(row)
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
@ -221,5 +202,4 @@ const searchFormClick = (searchData) => {
onMounted(async () => {
getList()
})
</script>

6
src/views/eam/basic/item/index.vue

@ -119,8 +119,6 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
@ -133,8 +131,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:item:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:item:delete'}), //
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
]
// -

6
src/views/eam/basic/location/index.vue

@ -119,8 +119,6 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
@ -133,8 +131,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:location:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:location:delete'}), //
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
]
// -

44
src/views/eam/basic/locationArea/index.vue

@ -5,28 +5,15 @@
</ContentWrap>
<!-- 列表头部 -->
<TableHead
:HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="LocationArea.allSchemas"
/>
<TableHead :HeadButttondata="HeadButttondata" @button-base-click="buttonBaseClick" :routeName="routeName"
@updataTableColumns="updataTableColumns" @searchFormClick="searchFormClick" :allSchemas="LocationArea.allSchemas" />
<!-- 列表 -->
<ContentWrap>
<Table
:columns="tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
<Table :columns="tableColumns" :data="tableObject.tableList" :loading="tableObject.loading" :pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
}" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort">
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
@ -39,17 +26,10 @@
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="formsSuccess"
:rules="LocationAreaRules"
:formAllSchemas="LocationArea.allSchemas"
:searchTableParams="searchTableParams"
:apiUpdate="LocationAreaApi.updateLocationArea"
:apiCreate="LocationAreaApi.createLocationArea"
@searchTableSuccess="searchTableSuccess"
:isBusiness="false"
/>
<BasicForm ref="basicFormRef" @success="formsSuccess" :rules="LocationAreaRules"
:formAllSchemas="LocationArea.allSchemas" :searchTableParams="searchTableParams"
:apiUpdate="LocationAreaApi.updateLocationArea" :apiCreate="LocationAreaApi.createLocationArea"
@searchTableSuccess="searchTableSuccess" :isBusiness="false" />
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="LocationArea.allSchemas" />
@ -136,8 +116,10 @@ const butttondata = [
]
// -
const buttonTableClick = async (val, row) => {
const buttonTableClick = (val, row) => {
console.log('11111111111111',val, row )
if (val == 'edit') { //
console.log('22222', row )
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
@ -147,6 +129,7 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type : string, row ?: any) => {
console.log('33333', row )
basicFormRef.value.open(type, row)
}
@ -231,5 +214,4 @@ const searchFormClick = (searchData) => {
onMounted(async () => {
getList()
})
</script>

6
src/views/eam/basic/supplier/index.vue

@ -119,8 +119,6 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
@ -133,8 +131,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:supplier:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:supplier:delete'}), //
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
]
// -

4
src/views/eam/fixedAssets/index.vue

@ -133,8 +133,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:fixedAssets:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:fixedAssets:delete'}), //
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
]
// -

Loading…
Cancel
Save