|
|
|
@ -90,8 +90,12 @@
|
|
|
|
|
<span v-else>{{ row[item.dataIndex] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</vxe-column>
|
|
|
|
|
<vxe-column title="操作" fixed="right" width="200" align="center">
|
|
|
|
|
<vxe-column title="操作" fixed="right" width="240" align="center">
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<vxe-button type="text" class="CsButText" disabled v-if="row.enableFlag">已启用</vxe-button>
|
|
|
|
|
<vxe-button type="text" class="CsButText CsButTextSu" @click="FnDjyEdiSettingSetEnable(row)" v-else>
|
|
|
|
|
启用
|
|
|
|
|
</vxe-button>
|
|
|
|
|
<vxe-button type="text" @click="$refs.addForm.copy(row)"><a-icon type="copy"/></vxe-button>
|
|
|
|
|
<vxe-button type="text" @click="$refs.editForm.edit(row)"><a-icon type="form"/></vxe-button>
|
|
|
|
|
<a-popconfirm
|
|
|
|
@ -124,7 +128,11 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import { DjyEdiSettingPage, DjyEdiSettingDelete } from '@/api/modular/main/EDIParameterSettingService'
|
|
|
|
|
import {
|
|
|
|
|
DjyEdiSettingPage,
|
|
|
|
|
DjyEdiSettingDelete,
|
|
|
|
|
DjyEdiSettingSetEnable
|
|
|
|
|
} from '@/api/modular/main/EDIParameterSettingService'
|
|
|
|
|
import { SysTenantPage } from '@/api/modular/main/bookingprinttemplate'
|
|
|
|
|
import addForm from './addForm.vue'
|
|
|
|
|
import editForm from './editForm.vue'
|
|
|
|
@ -313,6 +321,18 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
FnDjyEdiSettingSetEnable(data) {
|
|
|
|
|
console.log(data)
|
|
|
|
|
DjyEdiSettingSetEnable({ id: data.id }).then(res => {
|
|
|
|
|
if (res.success) {
|
|
|
|
|
this.$message.success('启用成功')
|
|
|
|
|
this.FnGetData()
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(`启用失败,${res.message}`)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
TenantHandleSearch(data) {
|
|
|
|
|
SysTenantPage({ name: data }).then(res => {
|
|
|
|
|
this.SysTenantData = res.data.rows
|
|
|
|
@ -430,4 +450,10 @@ button {
|
|
|
|
|
.ant-input:placeholder-shown {
|
|
|
|
|
height: 32px;
|
|
|
|
|
}
|
|
|
|
|
.CsButText {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
.CsButTextSu {
|
|
|
|
|
color: #82c93d !important;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|