|
@@ -87,7 +87,16 @@
|
|
|
import addressAdd from './components/addressAdd2.vue';
|
|
|
import { message } from 'ant-design-vue';
|
|
|
import { columns2, pagination } from './gasInspectNonfc.data';
|
|
|
- import { list, importByExcel, exportGasByExcel, moveOrderNum, edit, taskSubmit, clearCardInfo, addGasReportAddress } from './gasInspectNonfc.api';
|
|
|
+ import {
|
|
|
+ list,
|
|
|
+ importByExcel,
|
|
|
+ exportGasByExcel,
|
|
|
+ moveOrderNum,
|
|
|
+ editNew,
|
|
|
+ taskSubmit,
|
|
|
+ clearCardInfoNew,
|
|
|
+ addGasReportAddressNew,
|
|
|
+ } from './gasInspectNonfc.api';
|
|
|
|
|
|
let keyActive = ref(0);
|
|
|
let searchParams = ref('');
|
|
@@ -128,7 +137,7 @@
|
|
|
};
|
|
|
//编辑提交
|
|
|
async function confirmEdit(param) {
|
|
|
- let res = await edit({ ...param });
|
|
|
+ let res = await editNew({ ...param });
|
|
|
if (res) {
|
|
|
queryByIdList();
|
|
|
visibleEdit.value = false;
|
|
@@ -141,7 +150,7 @@
|
|
|
|
|
|
//删除巡检卡信息
|
|
|
async function handleDelCardInfo(record) {
|
|
|
- let res = await clearCardInfo({ id: record.id });
|
|
|
+ let res = await clearCardInfoNew({ id: record.id });
|
|
|
if (res) {
|
|
|
queryByIdList();
|
|
|
}
|
|
@@ -268,7 +277,7 @@
|
|
|
};
|
|
|
//确定新增
|
|
|
async function confirmAddress(param) {
|
|
|
- let res = await addGasReportAddress(param);
|
|
|
+ let res = await addGasReportAddressNew(param);
|
|
|
console.log(res, '新增瓦斯巡检地点');
|
|
|
if (res) {
|
|
|
visibleAddress.value = false;
|