|
@@ -3,113 +3,127 @@
|
|
<HcCard>
|
|
<HcCard>
|
|
<template #header>
|
|
<template #header>
|
|
<div class="w-64">
|
|
<div class="w-64">
|
|
- <HcDatePicker :dates="betweenTime" clearable size="large" @change="betweenTimeUpdate"/>
|
|
|
|
|
|
+ <HcDatePicker :dates="betweenTime" clearable size="large" @change="betweenTimeUpdate" />
|
|
</div>
|
|
</div>
|
|
<div class="w-40 ml-3">
|
|
<div class="w-40 ml-3">
|
|
<el-select v-model="searchForm.createUser" block clearable placeholder="请选择记录人" size="large">
|
|
<el-select v-model="searchForm.createUser" block clearable placeholder="请选择记录人" size="large">
|
|
- <el-option v-for="item in recordData" :label="item['userName']" :value="item['userId']"/>
|
|
|
|
|
|
+ <el-option v-for="item in recordData" :label="item.userName" :value="item.userId" />
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
<div class="ml-2">
|
|
<div class="ml-2">
|
|
<el-button size="large" type="primary" @click="searchClick">
|
|
<el-button size="large" type="primary" @click="searchClick">
|
|
- <HcIcon name="search-2"/>
|
|
|
|
|
|
+ <HcIcon name="search-2" />
|
|
<span>搜索</span>
|
|
<span>搜索</span>
|
|
</el-button>
|
|
</el-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template #extra>
|
|
<template #extra>
|
|
<HcTooltip keys="ledger_query_report">
|
|
<HcTooltip keys="ledger_query_report">
|
|
- <el-button :disabled="tableCheckedKeys.length <= 0" :loading="reportLoading" hc-btn type="primary"
|
|
|
|
- @click="reportModalClick">
|
|
|
|
- <HcIcon name="send-plane-2"/>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ :disabled="tableCheckedKeys.length <= 0" :loading="reportLoading" hc-btn
|
|
|
|
+ color="#FF976A" style="color: white;" @click="reportModalClick"
|
|
|
|
+ >
|
|
|
|
+ <HcIcon name="send-plane-2" />
|
|
<span>批量上报</span>
|
|
<span>批量上报</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="ledger_query_abolish">
|
|
<HcTooltip keys="ledger_query_abolish">
|
|
- <el-button :disabled="tableCheckedKeys.length <= 0" :loading="abolishLoading" hc-btn
|
|
|
|
- @click="batchAbolishClick">
|
|
|
|
- <HcIcon name="delete-bin-3"/>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ :disabled="tableCheckedKeys.length <= 0" :loading="abolishLoading" hc-btn
|
|
|
|
+ color="#A16222" @click="batchAbolishClick"
|
|
|
|
+ >
|
|
|
|
+ <HcIcon name="delete-bin-3" />
|
|
<span>批量废除</span>
|
|
<span>批量废除</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="ledger_query_delete">
|
|
<HcTooltip keys="ledger_query_delete">
|
|
- <el-button :disabled="tableCheckedKeys.length <= 0" :loading="deleteLoading" hc-btn
|
|
|
|
- @click="batchDeleteClick">
|
|
|
|
- <HcIcon name="delete-bin"/>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ :disabled="tableCheckedKeys.length <= 0" :loading="deleteLoading" hc-btn
|
|
|
|
+ color="#e03997" @click="batchDeleteClick"
|
|
|
|
+ >
|
|
|
|
+ <HcIcon name="delete-bin" />
|
|
<span>批量删除</span>
|
|
<span>批量删除</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="ledger_query_print">
|
|
<HcTooltip keys="ledger_query_print">
|
|
- <el-button :disabled="tableCheckedKeys.length <= 0" :loading="previewPrintLoading" hc-btn
|
|
|
|
- @click="previewAndPrintClick">
|
|
|
|
- <HcIcon name="printer"/>
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ :disabled="tableCheckedKeys.length <= 0" :loading="previewPrintLoading" hc-btn
|
|
|
|
+ color="#567722" @click="previewAndPrintClick"
|
|
|
|
+ >
|
|
|
|
+ <HcIcon name="printer" />
|
|
<span>批量预览/打印</span>
|
|
<span>批量预览/打印</span>
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
</template>
|
|
</template>
|
|
- <HcTable ref="tableListRef" :column="tableListColumn" :datas="tableListData" :loading="tableLoading" isCheck
|
|
|
|
- @selection-change="tableSelectionChange">
|
|
|
|
- <template #action="{row}">
|
|
|
|
|
|
+ <HcTable
|
|
|
|
+ ref="tableListRef" :column="tableListColumn" :datas="tableListData" :loading="tableLoading" is-check
|
|
|
|
+ @selection-change="tableSelectionChange"
|
|
|
|
+ >
|
|
|
|
+ <template #action="{ row }">
|
|
<HcTooltip keys="ledger_query_table_query">
|
|
<HcTooltip keys="ledger_query_table_query">
|
|
<el-button plain size="small" type="primary" @click="handleTableQuery(row)">查询</el-button>
|
|
<el-button plain size="small" type="primary" @click="handleTableQuery(row)">查询</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
<HcTooltip keys="ledger_query_table_del">
|
|
<HcTooltip keys="ledger_query_table_del">
|
|
- <el-button :disabled="!row.operation || row.status !== 0" plain size="small" type="danger"
|
|
|
|
- @click="handleTableDel(row)">删除
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ :disabled="!row.operation || row.status !== 0" plain size="small" type="danger"
|
|
|
|
+ @click="handleTableDel(row)"
|
|
|
|
+ >
|
|
|
|
+ 删除
|
|
</el-button>
|
|
</el-button>
|
|
</HcTooltip>
|
|
</HcTooltip>
|
|
</template>
|
|
</template>
|
|
</HcTable>
|
|
</HcTable>
|
|
<template #action>
|
|
<template #action>
|
|
- <HcPages :pages="searchForm" @change="pageChange"/>
|
|
|
|
|
|
+ <HcPages :pages="searchForm" @change="pageChange" />
|
|
</template>
|
|
</template>
|
|
</HcCard>
|
|
</HcCard>
|
|
|
|
|
|
- <!--批量上报审批-->
|
|
|
|
- <HcReportModal :contractId="contractId"
|
|
|
|
- :datas="reportDatas"
|
|
|
|
- :ids="reportIds"
|
|
|
|
- :projectId="projectId"
|
|
|
|
- :show="showReportModal"
|
|
|
|
- :taskName="reportTaskName"
|
|
|
|
- :typeData="menuItem.primaryKeyId"
|
|
|
|
- isDatas
|
|
|
|
- title="批量上报审批"
|
|
|
|
- type="log"
|
|
|
|
- url="contractLog/batchTask"
|
|
|
|
- @finish="showReportFinish"
|
|
|
|
- @hide="showReportModal = false"
|
|
|
|
- @tagClose="reportTaskTagClose"
|
|
|
|
|
|
+ <!-- 批量上报审批 -->
|
|
|
|
+ <HcReportModal
|
|
|
|
+ :contract-id="contractId"
|
|
|
|
+ :datas="reportDatas"
|
|
|
|
+ :ids="reportIds"
|
|
|
|
+ :project-id="projectId"
|
|
|
|
+ :show="showReportModal"
|
|
|
|
+ :task-name="reportTaskName"
|
|
|
|
+ :type-data="menuItem.primaryKeyId"
|
|
|
|
+ is-datas
|
|
|
|
+ title="批量上报审批"
|
|
|
|
+ type="log"
|
|
|
|
+ url="contractLog/batchTask"
|
|
|
|
+ @finish="showReportFinish"
|
|
|
|
+ @hide="showReportModal = false"
|
|
|
|
+ @tagClose="reportTaskTagClose"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-import {ref, watch, nextTick} from "vue";
|
|
|
|
-import queryApi from '~api/ledger/query';
|
|
|
|
-import {eVisaTaskCheckApi} from "~api/other"
|
|
|
|
-import {arrToId, getArrValue, getObjValue, isString} from "js-fast-way"
|
|
|
|
|
|
+import { nextTick, ref, watch } from 'vue'
|
|
|
|
+import queryApi from '~api/ledger/query'
|
|
|
|
+import { eVisaTaskCheckApi } from '~api/other'
|
|
|
|
+import { arrToId, getArrValue, getObjValue, isString } from 'js-fast-way'
|
|
|
|
|
|
//参数
|
|
//参数
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
projectId: {
|
|
projectId: {
|
|
type: [String, Number],
|
|
type: [String, Number],
|
|
- default: ''
|
|
|
|
|
|
+ default: '',
|
|
},
|
|
},
|
|
contractId: {
|
|
contractId: {
|
|
type: [String, Number],
|
|
type: [String, Number],
|
|
- default: ''
|
|
|
|
|
|
+ default: '',
|
|
},
|
|
},
|
|
items: {
|
|
items: {
|
|
type: Object,
|
|
type: Object,
|
|
- default: () => ({})
|
|
|
|
- }
|
|
|
|
|
|
+ default: () => ({}),
|
|
|
|
+ },
|
|
})
|
|
})
|
|
|
|
|
|
//变量
|
|
//变量
|
|
-const projectId = ref(props.projectId);
|
|
|
|
-const contractId = ref(props.contractId);
|
|
|
|
-const menuItem = ref(props.items);
|
|
|
|
|
|
+const projectId = ref(props.projectId)
|
|
|
|
+const contractId = ref(props.contractId)
|
|
|
|
+const menuItem = ref(props.items)
|
|
|
|
|
|
//监听
|
|
//监听
|
|
watch(() => [
|
|
watch(() => [
|
|
@@ -137,32 +151,32 @@ const getQueryData = () => {
|
|
//获取记录人数据
|
|
//获取记录人数据
|
|
const recordData = ref([])
|
|
const recordData = ref([])
|
|
const queryFillUser = async () => {
|
|
const queryFillUser = async () => {
|
|
- const {primaryKeyId} = menuItem.value
|
|
|
|
- const {data} = await queryApi.queryFillUser({
|
|
|
|
|
|
+ const { primaryKeyId } = menuItem.value
|
|
|
|
+ const { data } = await queryApi.queryFillUser({
|
|
contractId: contractId.value,
|
|
contractId: contractId.value,
|
|
- primaryKeyId: primaryKeyId
|
|
|
|
|
|
+ primaryKeyId: primaryKeyId,
|
|
})
|
|
})
|
|
recordData.value = getArrValue(data)
|
|
recordData.value = getArrValue(data)
|
|
}
|
|
}
|
|
|
|
|
|
//搜索表单
|
|
//搜索表单
|
|
-const searchForm = ref({queryTime: '', createUser: null, current: 1, size: 20, total: 0})
|
|
|
|
|
|
+const searchForm = ref({ queryTime: '', createUser: null, current: 1, size: 20, total: 0 })
|
|
|
|
|
|
//日期时间被选择
|
|
//日期时间被选择
|
|
const betweenTime = ref(null)
|
|
const betweenTime = ref(null)
|
|
-const betweenTimeUpdate = ({arr, query}) => {
|
|
|
|
|
|
+const betweenTimeUpdate = ({ arr, query }) => {
|
|
betweenTime.value = arr
|
|
betweenTime.value = arr
|
|
searchForm.value.queryTime = query
|
|
searchForm.value.queryTime = query
|
|
}
|
|
}
|
|
|
|
|
|
//搜索
|
|
//搜索
|
|
const searchClick = () => {
|
|
const searchClick = () => {
|
|
- searchForm.value.current = 1;
|
|
|
|
|
|
+ searchForm.value.current = 1
|
|
getTableData()
|
|
getTableData()
|
|
}
|
|
}
|
|
|
|
|
|
//分页被点击
|
|
//分页被点击
|
|
-const pageChange = ({current, size}) => {
|
|
|
|
|
|
+const pageChange = ({ current, size }) => {
|
|
searchForm.value.current = current
|
|
searchForm.value.current = current
|
|
searchForm.value.size = size
|
|
searchForm.value.size = size
|
|
getTableData()
|
|
getTableData()
|
|
@@ -171,20 +185,20 @@ const pageChange = ({current, size}) => {
|
|
//获取数据
|
|
//获取数据
|
|
const tableLoading = ref(false)
|
|
const tableLoading = ref(false)
|
|
const tableListColumn = ref([
|
|
const tableListColumn = ref([
|
|
- {key: 'recordTime', name: '记录日期'},
|
|
|
|
- {key: 'statusValue', name: '流程状态'},
|
|
|
|
- {key: 'createUserName', name: '记录人员'},
|
|
|
|
- {key: 'action', name: '操作', width: 200}
|
|
|
|
|
|
+ { key: 'recordTime', name: '记录日期' },
|
|
|
|
+ { key: 'statusValue', name: '流程状态' },
|
|
|
|
+ { key: 'createUserName', name: '记录人员' },
|
|
|
|
+ { key: 'action', name: '操作', width: 200 },
|
|
])
|
|
])
|
|
const tableListData = ref([])
|
|
const tableListData = ref([])
|
|
const getTableData = async () => {
|
|
const getTableData = async () => {
|
|
//初始数据处理
|
|
//初始数据处理
|
|
tableLoading.value = true
|
|
tableLoading.value = true
|
|
- const {primaryKeyId} = menuItem.value
|
|
|
|
|
|
+ const { primaryKeyId } = menuItem.value
|
|
tableListRef.value?.clearSelection()
|
|
tableListRef.value?.clearSelection()
|
|
tableCheckedKeys.value = []
|
|
tableCheckedKeys.value = []
|
|
//请求数据
|
|
//请求数据
|
|
- const {error, code, data} = await queryApi.constructionLogPage({
|
|
|
|
|
|
+ const { error, code, data } = await queryApi.constructionLogPage({
|
|
...searchForm.value,
|
|
...searchForm.value,
|
|
wbsNodeId: primaryKeyId,
|
|
wbsNodeId: primaryKeyId,
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
@@ -207,7 +221,7 @@ const tableListRef = ref(null)
|
|
const tableCheckedKeys = ref([])
|
|
const tableCheckedKeys = ref([])
|
|
const tableSelectionChange = (rows) => {
|
|
const tableSelectionChange = (rows) => {
|
|
tableCheckedKeys.value = rows.filter((item) => {
|
|
tableCheckedKeys.value = rows.filter((item) => {
|
|
- return (item ?? '') !== '';
|
|
|
|
|
|
+ return (item ?? '') !== ''
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -218,9 +232,9 @@ const reportDatas = ref([])
|
|
const reportLoading = ref(false)
|
|
const reportLoading = ref(false)
|
|
const showReportModal = ref(false)
|
|
const showReportModal = ref(false)
|
|
const reportModalClick = async () => {
|
|
const reportModalClick = async () => {
|
|
- const rows = tableCheckedKeys.value;
|
|
|
|
|
|
+ const rows = tableCheckedKeys.value
|
|
//判断是否满足条件
|
|
//判断是否满足条件
|
|
- const result = rows.every(({status}) => {
|
|
|
|
|
|
+ const result = rows.every(({ status }) => {
|
|
return status !== 1 && status !== 2
|
|
return status !== 1 && status !== 2
|
|
})
|
|
})
|
|
//判断状态
|
|
//判断状态
|
|
@@ -228,7 +242,7 @@ const reportModalClick = async () => {
|
|
reportLoading.value = true
|
|
reportLoading.value = true
|
|
const taskCheck = await eVisaTaskCheckApi({
|
|
const taskCheck = await eVisaTaskCheckApi({
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
- contractId: contractId.value
|
|
|
|
|
|
+ contractId: contractId.value,
|
|
})
|
|
})
|
|
if (taskCheck) {
|
|
if (taskCheck) {
|
|
//初始ID
|
|
//初始ID
|
|
@@ -239,7 +253,7 @@ const reportModalClick = async () => {
|
|
rows.forEach(item => {
|
|
rows.forEach(item => {
|
|
reportDataArr.push({
|
|
reportDataArr.push({
|
|
id: item?.id,
|
|
id: item?.id,
|
|
- name: item?.fileName
|
|
|
|
|
|
+ name: item?.fileName,
|
|
})
|
|
})
|
|
})
|
|
})
|
|
reportDatas.value = reportDataArr
|
|
reportDatas.value = reportDataArr
|
|
@@ -257,7 +271,7 @@ const reportModalClick = async () => {
|
|
|
|
|
|
//上报的审批内容移除
|
|
//上报的审批内容移除
|
|
const reportTaskTagClose = (index) => {
|
|
const reportTaskTagClose = (index) => {
|
|
- const row = tableCheckedKeys.value[index];
|
|
|
|
|
|
+ const row = tableCheckedKeys.value[index]
|
|
tableListRef.value?.toggleRowSelection(row, false)
|
|
tableListRef.value?.toggleRowSelection(row, false)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -270,9 +284,9 @@ const showReportFinish = () => {
|
|
//批量废除
|
|
//批量废除
|
|
const abolishLoading = ref(false)
|
|
const abolishLoading = ref(false)
|
|
const batchAbolishClick = () => {
|
|
const batchAbolishClick = () => {
|
|
- const rows = tableCheckedKeys.value;
|
|
|
|
|
|
+ const rows = tableCheckedKeys.value
|
|
//判断是否满足条件
|
|
//判断是否满足条件
|
|
- const result = rows.every(({status, operation}) => {
|
|
|
|
|
|
+ const result = rows.every(({ status, operation }) => {
|
|
return status !== 0 && status !== 3 && operation
|
|
return status !== 0 && status !== 3 && operation
|
|
})
|
|
})
|
|
//判断状态
|
|
//判断状态
|
|
@@ -287,7 +301,7 @@ const batchAbolishClick = () => {
|
|
if (action === 'confirm') {
|
|
if (action === 'confirm') {
|
|
batchAbolishSave(ids)
|
|
batchAbolishSave(ids)
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
window.$message?.warning('未上报的文件,和不是自己的文件,不能废除')
|
|
window.$message?.warning('未上报的文件,和不是自己的文件,不能废除')
|
|
@@ -297,7 +311,7 @@ const batchAbolishClick = () => {
|
|
//废除勾选的已上报文件
|
|
//废除勾选的已上报文件
|
|
const batchAbolishSave = async (ids) => {
|
|
const batchAbolishSave = async (ids) => {
|
|
abolishLoading.value = true
|
|
abolishLoading.value = true
|
|
- const {error, code} = await queryApi.batchAbolish({ids: ids})
|
|
|
|
|
|
+ const { error, code } = await queryApi.batchAbolish({ ids: ids })
|
|
//处理数据
|
|
//处理数据
|
|
abolishLoading.value = false
|
|
abolishLoading.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
@@ -309,9 +323,9 @@ const batchAbolishSave = async (ids) => {
|
|
|
|
|
|
//批量删除
|
|
//批量删除
|
|
const batchDeleteClick = () => {
|
|
const batchDeleteClick = () => {
|
|
- const rows = tableCheckedKeys.value;
|
|
|
|
|
|
+ const rows = tableCheckedKeys.value
|
|
//判断是否满足条件
|
|
//判断是否满足条件
|
|
- const result = rows.every(({status, operation}) => {
|
|
|
|
|
|
+ const result = rows.every(({ status, operation }) => {
|
|
return status === 0 && operation
|
|
return status === 0 && operation
|
|
})
|
|
})
|
|
//判断状态
|
|
//判断状态
|
|
@@ -325,7 +339,7 @@ const batchDeleteClick = () => {
|
|
if (action === 'confirm') {
|
|
if (action === 'confirm') {
|
|
theLogRemoveByIds(ids)
|
|
theLogRemoveByIds(ids)
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
window.$message?.warning('只能删除自己的未上报日志文件')
|
|
window.$message?.warning('只能删除自己的未上报日志文件')
|
|
@@ -336,11 +350,11 @@ const batchDeleteClick = () => {
|
|
const previewPrintLoading = ref(false)
|
|
const previewPrintLoading = ref(false)
|
|
const previewAndPrintClick = async () => {
|
|
const previewAndPrintClick = async () => {
|
|
previewPrintLoading.value = true
|
|
previewPrintLoading.value = true
|
|
- const rows = tableCheckedKeys.value;
|
|
|
|
|
|
+ const rows = tableCheckedKeys.value
|
|
const rowsIds = arrToId(rows)
|
|
const rowsIds = arrToId(rows)
|
|
const ids = rowsIds.split(',')
|
|
const ids = rowsIds.split(',')
|
|
- const {error, code, data} = await queryApi.theLogPreviewAndPrint({
|
|
|
|
- ids: ids
|
|
|
|
|
|
+ const { error, code, data } = await queryApi.theLogPreviewAndPrint({
|
|
|
|
+ ids: ids,
|
|
})
|
|
})
|
|
//处理数据
|
|
//处理数据
|
|
previewPrintLoading.value = false
|
|
previewPrintLoading.value = false
|
|
@@ -351,7 +365,7 @@ const previewAndPrintClick = async () => {
|
|
}
|
|
}
|
|
|
|
|
|
//查询
|
|
//查询
|
|
-const handleTableQuery = ({evisaPdfUrl, pdfUrl}) => {
|
|
|
|
|
|
+const handleTableQuery = ({ evisaPdfUrl, pdfUrl }) => {
|
|
if (evisaPdfUrl) {
|
|
if (evisaPdfUrl) {
|
|
window.open(evisaPdfUrl, '_blank')
|
|
window.open(evisaPdfUrl, '_blank')
|
|
} else if (pdfUrl) {
|
|
} else if (pdfUrl) {
|
|
@@ -362,7 +376,7 @@ const handleTableQuery = ({evisaPdfUrl, pdfUrl}) => {
|
|
}
|
|
}
|
|
|
|
|
|
//删除
|
|
//删除
|
|
-const handleTableDel = ({id, status, operation}) => {
|
|
|
|
|
|
+const handleTableDel = ({ id, status, operation }) => {
|
|
//判断是否满足条件
|
|
//判断是否满足条件
|
|
if (status === 0 && operation) {
|
|
if (status === 0 && operation) {
|
|
window?.$messageBox?.alert('是否删除勾选的日志文件?', '删除文件', {
|
|
window?.$messageBox?.alert('是否删除勾选的日志文件?', '删除文件', {
|
|
@@ -373,7 +387,7 @@ const handleTableDel = ({id, status, operation}) => {
|
|
if (action === 'confirm') {
|
|
if (action === 'confirm') {
|
|
theLogRemoveByIds([id])
|
|
theLogRemoveByIds([id])
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
window.$message?.warning('只能删除自己的未上报日志文件')
|
|
window.$message?.warning('只能删除自己的未上报日志文件')
|
|
@@ -384,8 +398,8 @@ const handleTableDel = ({id, status, operation}) => {
|
|
const deleteLoading = ref(false)
|
|
const deleteLoading = ref(false)
|
|
const theLogRemoveByIds = async (ids) => {
|
|
const theLogRemoveByIds = async (ids) => {
|
|
deleteLoading.value = true
|
|
deleteLoading.value = true
|
|
- const {error, code} = await queryApi.theLogRemoveByIds({
|
|
|
|
- ids: ids
|
|
|
|
|
|
+ const { error, code } = await queryApi.theLogRemoveByIds({
|
|
|
|
+ ids: ids,
|
|
})
|
|
})
|
|
deleteLoading.value = false
|
|
deleteLoading.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
@@ -394,7 +408,6 @@ const theLogRemoveByIds = async (ids) => {
|
|
getTableData()
|
|
getTableData()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|