修改问题

master
sunzehua 1 year ago
parent 40888fc40f
commit f84ab72550

@ -432,6 +432,7 @@ export default {
...mapGetters([
'bookingList',
'needSavePages',
'ctnallList',
'hasbookingDetail',
'bookingGridOptions',
'carrierList',
@ -1312,6 +1313,15 @@ export default {
this.$message.loading({ content: '保存中, 请勿切换页面...' })
this.setSET_SAVEFLAG(true)
console.log('== vuex 开始保存==', this.inBookingDetailsSave)
_data.ctnInputs.map((item, index) => {
if (!item.ctncode) {
this.ctnallList.forEach(ite => {
if (item.ctnall === ite.name) {
item.ctncode = ite.code
}
})
}
})
BookingOrderSave(_data)
.then(res => {
if (res.success) {

@ -119,6 +119,24 @@ export default {
return {
id: this.$route.query.id,
rowKeyName: 'rowKey',
cellAutofillOption: {
directionX: false,
directionY: true,
afterAutofill: ({
direction,
sourceSelectionRangeIndexes,
targetSelectionRangeIndexes,
sourceSelectionData,
targetSelectionData
}) => {
console.log('direction::', direction);
console.log('sourceSelectionRangeIndexes::', sourceSelectionRangeIndexes);
console.log('targetSelectionRangeIndexes::', targetSelectionRangeIndexes);
console.log('sourceSelectionData::', sourceSelectionData);
console.log('targetSelectionData::', targetSelectionData);
console.log('---');
}
},
cellSelectionOption: {
// disble cell selection
enable: true
@ -842,7 +860,6 @@ export default {
clickHighlight: false,
hoverHighlight: false
},
cellAutofillOption: true,
checkboxOption: {
hideSelectAll: false,
//
@ -1530,7 +1547,7 @@ export default {
this.tableData[cntrnoArr.indexOf(item.CNTRNO)] = {
rowKey: lastNum + index,
ctnall: item.CTNALL,
CtnCode: item.CtnCode,
ctncode: item.CtnCode,
ctnnum: this.tableData[cntrnoArr.indexOf(item.CNTRNO)].ctnnum,
cntrno: item.CNTRNO,
sealno: item.SEALNO,
@ -1550,7 +1567,7 @@ export default {
ctnnum: '1',
cntrno: item.CNTRNO,
sealno: item.SEALNO,
CtnCode: item.CtnCode,
ctncode: item.CtnCode,
pkgs: item.PKGS,
kindpkgs: kindpkgsOld || item.KINDPKGS,
kgs: item.KGS,

@ -10,10 +10,7 @@
<div class="nav-title" v-if="levelTop.length > 0">
<a-radio-group v-model="activeTopKey" style="margin-bottom: 16px" @change="changeTopLevel">
<a-radio-button v-for="(item, index) in levelTop" :value="item.key" :key="index">
<span
class="nav-top"
>{{ item.name }}<span class="nav-top-tip">({{ item.total }})</span></span
>
<span class="nav-top">{{ item.name }}<span class="nav-top-tip">({{ item.total }})</span></span>
</a-radio-button>
</a-radio-group>
</div>
@ -27,8 +24,7 @@
v-for="(threeLevel, tindex) in levelTree"
:key="`0-0-${tindex}`"
:title="`${threeLevel.name} (${threeLevel.total})`"
:show-icon="false"
/>
:show-icon="false" />
</a-tree-node>
</a-tree>
</a-tab-pane>
@ -40,8 +36,7 @@
class="icon"
:icon="levelreLoading ? 'loading' : 'reload'"
size="small"
@click="getCurrentTotalStat"
>
@click="getCurrentTotalStat">
点击重新加载
</a-button>
</div>
@ -60,8 +55,7 @@
:xl="5.5"
:key="findex"
v-show="(findex < 4 && !advanced) || advanced"
class="from-label"
>
class="from-label">
<a-form-item style="padding-left: 10px; padding-right: 10px" :label="formLabel.title">
<formLabel
:ref="`fromlabel-${formLabel.label}`"
@ -72,8 +66,7 @@
@change="formChange"
@pressEnter="pressEnterFun"
@getCompleteList="getCompleteListFun"
@selectFirst="getSelectFirst"
></formLabel>
@selectFirst="getSelectFirst"></formLabel>
</a-form-item>
</a-col>
</template>
@ -98,22 +91,10 @@
<div slot="content" class="table-page-search-wrapper" :style="{ marginTop: '-8px' }">
<vxe-toolbar>
<template #buttons>
<a-popconfirm
title="是否取消当前选择项?"
ok-text="是"
cancel-text="否"
@confirm="removeFun"
@cancel="cancelFun"
>
<a-popconfirm title="是否取消当前选择项?" ok-text="" cancel-text="" @confirm="removeFun" @cancel="cancelFun">
<a-button class="list-btn" icon="close">取消</a-button>
</a-popconfirm>
<a-popconfirm
title="确定完成当前选择项?"
ok-text="是"
cancel-text="否"
@confirm="submitFun"
@cancel="cancelFun"
>
<a-popconfirm title="确定完成当前选择项?" ok-text="" cancel-text="" @confirm="submitFun" @cancel="cancelFun">
<a-button class="list-btn" type="primary" icon="check">完成</a-button>
</a-popconfirm>
<a-button class="list-btn" type="primary" icon="check" @click="FnPrint"></a-button>
@ -125,8 +106,7 @@
ok-text="是"
cancel-text="否"
@confirm="downloadFun"
@cancel="cancelFun"
>
@cancel="cancelFun">
<a-button class="list-btn" icon="download">批量下载</a-button>
</a-popconfirm>
<a-popconfirm
@ -134,8 +114,7 @@
ok-text="是"
cancel-text="否"
@confirm="reComparisonFun"
@cancel="cancelFun"
>
@cancel="cancelFun">
<a-button class="list-btn"><i class="iconfont icon-duibi"></i>重新比对</a-button>
</a-popconfirm>
</template>
@ -145,8 +124,7 @@
ok-text="是"
cancel-text="否"
@confirm="SendEmailFun"
@cancel="cancelFun"
>
@cancel="cancelFun">
<a-button class="list-btn"><i class="iconfont icon-31zhuanfa"></i>批量转发</a-button>
</a-popconfirm>
<a-popconfirm
@ -154,8 +132,7 @@
ok-text="是"
cancel-text="否"
@confirm="downloadFun"
@cancel="cancelFun"
>
@cancel="cancelFun">
<a-button class="list-btn" icon="download">批量下载</a-button>
</a-popconfirm>
</template>
@ -165,8 +142,7 @@
ok-text="是"
cancel-text="否"
@confirm="laraPaperCalc"
@cancel="cancelFun"
>
@cancel="cancelFun">
<a-button class="list-btn"><i class="iconfont icon-52"></i>页数计算</a-button>
</a-popconfirm>
</template>
@ -176,8 +152,7 @@
ok-text="是"
cancel-text="否"
@confirm="copyPrintFun"
@cancel="cancelFun"
>
@cancel="cancelFun">
<a-button class="list-btn"><i class="iconfont icon-weibiaoti--"></i>COPY打印</a-button>
</a-popconfirm>
<a-popconfirm
@ -185,8 +160,7 @@
ok-text="是"
cancel-text="否"
@confirm="copyDownloadFun"
@cancel="cancelFun"
>
@cancel="cancelFun">
<a-button class="list-btn"><i class="iconfont icon-xiazai-wenjianxiazai-13"></i>COPY下载</a-button>
</a-popconfirm>
<a-popconfirm
@ -194,8 +168,7 @@
ok-text="是"
cancel-text="否"
@confirm="printBatchFun"
@cancel="cancelFun"
>
@cancel="cancelFun">
<a-button class="list-btn"><i class="iconfont icon-xiazai"></i>正本下载</a-button>
</a-popconfirm>
<a-popconfirm
@ -203,26 +176,16 @@
ok-text="是"
cancel-text="否"
@confirm="laraPaperRegistFun"
@cancel="cancelFun"
>
@cancel="cancelFun">
<a-button class="list-btn"><i class="iconfont icon-dengjizongshu"></i>LARA登记</a-button>
</a-popconfirm>
<a-button
class="list-btn"
@click="laraRecordFun"
><i class="iconfont icon-touzijilu"></i>LARA记录</a-button
>
<a-button class="list-btn" @click="laraRecordFun"><i
class="iconfont icon-touzijilu"></i>LARA记录</a-button>
</template>
</template>
<template #tools>
<div class="right">
<a-popconfirm
title="确定刷新?"
ok-text="是"
cancel-text="否"
@confirm="tableRefresh"
@cancel="cancelFun"
>
<a-popconfirm title="确定刷新?" ok-text="" cancel-text="" @confirm="tableRefresh" @cancel="cancelFun">
<span class="tab-btn"> <a-icon type="redo" :style="{ fontSize: '16px' }" /> 刷新 </span>
</a-popconfirm>
<span class="tab-btn" @click="tableHeaderEdit">
@ -237,8 +200,7 @@
row-class-name="line-box"
@page-change="handlePageChange"
style="margin-top: 6px"
:height="tableHeight"
>
:height="tableHeight">
<template #status="{ row }">
<span>{{ selectStatus(row.status) }}</span>
</template>
@ -291,13 +253,11 @@
ok-text="是"
cancel-text="否"
@confirm="taskDownloadFun(row)"
@cancel="cancelFun"
>
@cancel="cancelFun">
<a-tooltip>
<template slot="title"> 预览附件 </template>
<span
class="operate-btn iconfont icon-a-wendangcaozuoxiazaishangchuanshanchuxinzengfujianyasuochakan-01"
></span>
class="operate-btn iconfont icon-a-wendangcaozuoxiazaishangchuanshanchuxinzengfujianyasuochakan-01"></span>
</a-tooltip>
</a-popconfirm>
</template>
@ -314,8 +274,7 @@
:confirmLoading="sendEmailModelconfirm"
:maskClosable="false"
@ok="handleSendEmail"
@cancel="handleSendEmailCancel"
>
@cancel="handleSendEmailCancel">
<a-form-model ref="sendForm" :model="sendEmailForm" :rules="sendFormRules">
<a-form-model-item
label="发送邮箱"
@ -325,8 +284,7 @@
sm: { span: 4 },
md: { span: 5 }
}"
:wrapperCol="wrapperCol"
>
:wrapperCol="wrapperCol">
<a-input placeholder="请输入发送邮箱" v-model="sendEmailForm.email" />
</a-form-model-item>
</a-form-model>
@ -344,8 +302,7 @@
md: { span: 5 }
}"
:wrapperCol="wrapperCol"
@cancel="handlePaperCalcCancel"
>
@cancel="handlePaperCalcCancel">
<div class="paper-list">
<a-table :columns="paperCalcColumns" :data-source="paperCalcRes"></a-table>
<div class="extras" v-if="paperCalcExtras">
@ -381,8 +338,7 @@
@click="FnCilckTemplateType(item.id)"
class="items"
:span="11"
:offset="index % 2 == 0 ? 0 : 1"
>
:offset="index % 2 == 0 ? 0 : 1">
<span>·</span>{{ item.displayName }}
</a-col>
</a-row>
@ -404,8 +360,7 @@
:formAllData="formMoreData"
type="from"
@ok="submitForm"
v-if="formMoreData"
></setFormModel>
v-if="formMoreData"></setFormModel>
<setFormModel
ref="setTableForm"
@ -414,8 +369,7 @@
:maxNum="999"
type="table"
@ok="submitTableForm"
v-if="formMoreTableData"
></setFormModel>
v-if="formMoreTableData"></setFormModel>
<a-modal title="提示信息" width="900px" :visible="bcFileFlag" :footer="null" @cancel="bcFileFlag = false">
<div class="bcfile-title">
<div><a-icon style="margin-right: 10px;" @click="handleCopy" type="copy" />时间{{ bcFile.executeTime }}</div>
@ -1055,6 +1009,7 @@ export default {
changeNextLevel() {
this.getList({ status: this.activeNextKey })
this.$set(this.gridOptions, 'loading', true)
this.formRes.status = this.activeNextKey
this.levelTree = this.selectTreeLevel(this.levelTreeAll, this.activeNextKey, this.activeTopKey)
this.activeTreeKey = []
},
@ -1094,7 +1049,10 @@ export default {
setTimeout(() => {
if (data.status && data.status !== 'Retransmit') {
this.activeNextKey = data.status
this.changeNextLevel()
this.$set(this.gridOptions, 'loading', true)
this.formRes.status = this.activeNextKey
this.levelTree = this.selectTreeLevel(this.levelTreeAll, this.activeNextKey, this.activeTopKey)
this.activeTreeKey = []
// statusList
this.levelNext.map((item, index) => {
if (item.code === data.status) {
@ -1725,72 +1683,90 @@ export default {
/deep/ .ant-tabs-bar {
margin-bottom: 0 !important;
}
/deep/ .ant-tabs-tab {
padding: 8px !important;
margin-right: 8px !important;
}
/deep/ .ant-form-item {
display: flex;
}
.nav-title {
width: 100%;
.icon {
float: right;
}
}
.table-page-search-submitButtons {
width: 100%;
display: block;
text-align: right;
}
.nav-bottom {
width: 100%;
text-align: right;
padding-top: 20px;
.icon {
font-size: 12px;
}
}
.list-btn {
margin-right: 10px;
.iconfont {
margin-right: 8px;
}
}
.task-tit {
color: @primary-color;
cursor: pointer;
}
.nav-loading {
width: 100%;
height: 100px;
line-height: 100px;
text-align: center;
.tip {
margin-left: 10px;
}
}
.operate-btn {
width: 30px;
text-align: center;
display: inline-block;
&:nth-of-type(1) {
color: @primary-color;
}
}
.icon-tip {
font-size: 12px;
color: @primary-color;
}
.nav-title {
.ant-radio-button-wrapper {
padding: 0 10px;
text-align: center;
}
}
.nav-top {
width: 100%;
height: 100%;
// position: relative;
.nav-top-tip {
// position: absolute;
@ -1807,31 +1783,37 @@ export default {
// border-radius: 50%;
}
}
.nav-box {
padding: 20px 14px;
background: #fff;
border-radius: 2px;
}
.nav-no-data {
height: 84px;
line-height: 84px;
text-align: center;
margin-top: 20px;
i {
display: block;
line-height: 60px;
font-size: 32px;
color: #aaa;
}
span {
display: block;
line-height: 24px;
color: #999;
}
}
.tab-btn {
cursor: pointer;
}
// .downLoad-err-alert{
// position:fixed;
// top: 80px;
@ -1851,30 +1833,37 @@ export default {
box-sizing: border-box;
background: #f7f8fe;
border: 1px dashed #cdcdcd;
p {
margin: 0;
&:nth-child(2) {
margin-left: 35px;
}
span {
color: #ff6646;
}
}
}
.PrintMainBox {
width: 100%;
max-height: 50vh;
overflow-y: auto;
margin-top: 5px;
.items {
padding-left: 1rem;
height: 2.5rem;
line-height: 2.5rem;
border-bottom: 1px solid #ebebeb;
cursor: pointer;
&:hover {
color: #2f54eb;
}
span {
font-weight: bolder;
margin-right: 0.6rem;
@ -1882,6 +1871,7 @@ export default {
}
}
}
.bcfile-title {
border-bottom: 1px dashed black;
padding-bottom: 5px;

@ -0,0 +1,98 @@
<template>
<a-modal
title="新增应用"
:width="900"
:visible="visible"
:confirmLoading="confirmLoading"
@ok="handleSubmit"
@cancel="handleCancel"
>
<a-spin :spinning="confirmLoading">
<a-form :form="form">
<a-form-item
style="display: none;"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
>
<a-input v-decorator="['active']" />
</a-form-item>
<a-form-item
label="应用名称"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
has-feedback
>
<a-input placeholder="请输入应用名称" v-decorator="['name', {rules: [{required: true, message: ''}]}]" />
</a-form-item>
<a-form-item
label="唯一编码"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
has-feedback
>
<a-input placeholder="请输入唯一编码" v-decorator="['code', {rules: [{required: true, message: ''}]}]" />
</a-form-item>
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
label="排序"
>
<a-input-number placeholder="请输入排序" style="width: 100%" v-decorator="['sort', { initialValue: 100 }]" :min="1" :max="1000" />
</a-form-item>
</a-form>
</a-spin>
</a-modal>
</template>
<script>
import { sysAppAdd } from '@/api/modular/system/appManage'
export default {
data () {
return {
labelCol: {
xs: { span: 24 },
sm: { span: 5 }
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 15 }
},
visible: false,
confirmLoading: false,
form: this.$form.createForm(this)
}
},
methods: {
//
add () {
this.visible = true
this.form.getFieldDecorator('active', { initialValue: 'N' })
},
handleSubmit () {
const { form: { validateFields } } = this
this.confirmLoading = true
validateFields((errors, values) => {
if (!errors) {
sysAppAdd(values).then((res) => {
this.confirmLoading = false
if (res.success) {
this.$message.success('新增成功')
this.handleCancel()
this.$emit('ok', values)
} else {
this.$message.error('新增失败:' + res.message)
}
}).finally((res) => {
this.confirmLoading = false
})
} else {
this.confirmLoading = false
}
})
},
handleCancel () {
this.form.resetFields()
this.visible = false
}
}
}
</script>

@ -0,0 +1,116 @@
<template>
<a-modal
title="应用编辑"
:width="900"
:visible="visible"
:confirmLoading="confirmLoading"
@ok="handleSubmit"
@cancel="handleCancel"
>
<a-spin :spinning="confirmLoading">
<a-form :form="form" >
<a-form-item
style="display: none;"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
>
<a-input v-decorator="['id']" />
</a-form-item>
<a-form-item
style="display: none;"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
>
<a-input v-decorator="['active']" />
</a-form-item>
<a-form-item
label="应用名称"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
has-feedback
>
<a-input placeholder="请输入应用名称" v-decorator="['name', {rules: [{required: true, message: ''}]}]" />
</a-form-item>
<a-form-item
label="唯一编码"
:labelCol="labelCol"
:wrapperCol="wrapperCol"
has-feedback
>
<a-input placeholder="请输入唯一编码" v-decorator="['code', {rules: [{required: true, message: ''}]}]" />
</a-form-item>
<a-form-item
:labelCol="labelCol"
:wrapperCol="wrapperCol"
label="排序"
>
<a-input-number placeholder="请输入排序" style="width: 100%" v-decorator="['sort', { initialValue: 100 }]" :min="1" :max="1000" />
</a-form-item>
</a-form>
</a-spin>
</a-modal>
</template>
<script>
import { sysAppEdit } from '@/api/modular/system/appManage'
export default {
data () {
return {
labelCol: {
xs: { span: 24 },
sm: { span: 5 }
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 15 }
},
visible: false,
confirmLoading: false,
visibleDef: false,
form: this.$form.createForm(this)
}
},
methods: {
//
edit (record) {
this.visible = true
setTimeout(() => {
this.form.setFieldsValue(
{
id: record.id,
name: record.name,
code: record.code,
sort: record.sort,
active: record.active
}
)
}, 100)
},
handleSubmit () {
const { form: { validateFields } } = this
this.confirmLoading = true
validateFields((errors, values) => {
if (!errors) {
sysAppEdit(values).then((res) => {
if (res.success) {
this.$message.success('编辑成功')
this.visible = false
this.confirmLoading = false
this.$emit('ok', values)
} else {
this.$message.error('编辑失败:' + res.message)
}
}).finally((res) => {
this.confirmLoading = false
})
} else {
this.confirmLoading = false
}
})
},
handleCancel () {
this.form.resetFields()
this.visible = false
}
}
}
</script>

@ -0,0 +1,259 @@
/* eslint-disable eqeqeq */
<template>
<div>
<x-card v-if="hasPerm('sysApp:page')">
<div slot="content" class="table-page-search-wrapper">
<a-form layout="inline">
<a-row :gutter="48">
<a-col :md="8" :sm="24">
<a-form-item label="应用名称">
<a-input v-model="queryParam.name" allow-clear placeholder="请输入应用名称" />
</a-form-item>
</a-col>
<a-col :md="8" :sm="24">
<a-form-item label="唯一编码">
<a-input v-model="queryParam.code" allow-clear placeholder="请输入唯一编码" />
</a-form-item>
</a-col>
<a-col :md="8" :sm="24">
<span class="table-page-search-submitButtons">
<a-button type="primary" @click="$refs.table.refresh(true)"></a-button>
<a-button style="margin-left: 8px" @click="() => queryParam = {}">重置</a-button>
</span>
</a-col>
</a-row>
</a-form>
</div>
</x-card>
<a-card :bordered="false">
<a-spin :spinning="loading">
<s-table
ref="table"
:columns="columns"
:data="loadData"
:alert="true"
:rowKey="(record) => record.id"
:rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onChange }">
</s-table>
<add-form ref="addForm" @ok="handleOk" />
<edit-form ref="editForm" @ok="handleOk" />
</a-spin>
</a-card>
</div>
</template>
<script>
import {
STable,
XCard
} from '@/components'
import {
getAppPage,
sysAppDelete,
sysAppSetAsDefault,
sysAppChangeStatus
} from '@/api/modular/system/appManage'
import {
sysDictTypeDropDown
} from '@/api/modular/system/dictManage'
import editForm from './editForm'
import addForm from './addForm'
export default {
components: {
XCard,
STable,
editForm,
addForm
},
data() {
return {
// description: '',
labelCol: {
xs: {
span: 24
},
sm: {
span: 5
}
},
wrapperCol: {
xs: {
span: 24
},
sm: {
span: 16
}
},
//
queryParam: {},
//
columns: [{
title: '服务名称',
dataIndex: 'name',
},
{
title: '服务代码',
dataIndex: 'code'
},
{
title: '顺序号',
dataIndex: 'active',
scopedSlots: {
customRender: 'active'
}
},
{
title: '说明',
dataIndex: 'status',
scopedSlots: {
customRender: 'status'
}
},
{
title: '是否启用',
dataIndex: 'sort'
},
{
title: '创建日期',
dataIndex: 'sort'
},
{
title: '创建人',
dataIndex: 'sort'
},
{
title: '更新日期',
dataIndex: 'sort'
},
{
title: '更新人',
dataIndex: 'sort'
}
],
// Promise
loadData: parameter => {
return getAppPage(Object.assign(parameter, this.queryParam)).then((res) => {
return res.data
})
},
loading: false,
selectedRowKeys: [],
selectedRows: [],
statusDict: [],
activeDict: []
}
},
created() {
this.sysDictTypeDropDown()
if (this.hasPerm('sysApp:edit') || this.hasPerm('sysApp:delete') || this.hasPerm('sysApp:setAsDefault')) {
this.columns.push({
title: '操作',
width: '200px',
dataIndex: 'action',
scopedSlots: {
customRender: 'action'
}
})
}
},
methods: {
activeFilter(active) {
// eslint-disable-next-line eqeqeq
const values = this.activeDict.filter(item => item.code == active)
if (values.length > 0) {
return values[0].value
}
},
statusFilter(status) {
// eslint-disable-next-line eqeqeq
const values = this.statusDict.filter(item => item.code == status)
if (values.length > 0) {
return values[0].value
}
},
/**
* 获取字典数据
*/
sysDictTypeDropDown() {
sysDictTypeDropDown({
code: 'yes_or_no'
}).then((res) => {
this.activeDict = res.data
})
sysDictTypeDropDown({
code: 'common_status'
}).then((res) => {
this.statusDict = res.data
})
},
handleOk() {
this.$refs.table.refresh()
},
sysDefault(record) {
this.loading = true
sysAppSetAsDefault({
id: record.id
}).then((res) => {
this.loading = false
if (res.success) {
this.$message.success('设置成功')
this.$refs.table.refresh()
} else {
this.$message.error('设置失败:' + res.message)
}
})
},
/**
* 删除应用
*/
sysAppDelete(record) {
this.loading = true
sysAppDelete(record).then((res) => {
this.loading = false
if (res.success) {
this.$message.success('删除成功')
this.$refs.table.refresh()
} else {
this.$message.error('删除失败:' + res.message)
}
}).catch((err) => {
this.$message.error('删除错误:' + err.message)
})
},
editAppStatus(code, record) {
// eslint-disable-next-line no-unused-vars
const status = 0
// eslint-disable-next-line eqeqeq
if (code == 0) {
this.status = 1
// eslint-disable-next-line eqeqeq
} else if (code == 1) {
this.status = 0
}
sysAppChangeStatus({
id: record.id,
status: this.status
}).then(res => {
if (res.success) {
this.$message.success('操作成功')
this.$refs.table.refresh()
} else {
this.$message.error('操作失败:' + res.message)
}
})
},
onChange(selectedRowKeys, selectedRows) {
this.selectedRowKeys = selectedRowKeys
this.selectedRows = selectedRows
}
}
}
</script>
<style scoped>
.table-operator {
margin-bottom: 18px;
}
button {
margin-right: 8px;
}
</style>
Loading…
Cancel
Save