|
@@ -3,8 +3,8 @@
|
|
|
<BasicTable @register="registerTable">
|
|
|
<template #toolbar> </template>
|
|
|
<template #no="{ record }">
|
|
|
- <Tag :color="rederTag(record.state, 'color')">
|
|
|
- {{ rederTag(record.state, 'text') || '审核中' }}
|
|
|
+ <Tag :color="renderTag(record.state, 'color')">
|
|
|
+ {{ renderTag(record.state, 'text') || '审核中' }}
|
|
|
</Tag>
|
|
|
</template>
|
|
|
<template #time="{ record }">
|
|
@@ -93,7 +93,7 @@
|
|
|
},
|
|
|
componentProps: {
|
|
|
options: ['', 1, 0, 2].map((ele) => {
|
|
|
- return { value: ele, key: ele, label: rederTag(ele, 'text') };
|
|
|
+ return { value: ele, key: ele, label: renderTag(ele, 'text') };
|
|
|
}),
|
|
|
},
|
|
|
},
|
|
@@ -128,7 +128,10 @@
|
|
|
if (searchData.fieldTime) {
|
|
|
searchData.startTime = searchData.fieldTime[0];
|
|
|
searchData.endTime = searchData.fieldTime[1];
|
|
|
+ delete searchData.fieldTime;
|
|
|
}
|
|
|
+ console.log('searchData', searchData);
|
|
|
+
|
|
|
return searchData;
|
|
|
},
|
|
|
showIndexColumn: false,
|
|
@@ -144,7 +147,7 @@
|
|
|
function infoText(record) {
|
|
|
openDeviceModal(true, { record });
|
|
|
}
|
|
|
- function rederTag(state, type) {
|
|
|
+ function renderTag(state, type) {
|
|
|
let obj = {
|
|
|
1: { color: 'success', text: t('routes.corporation.stateName.1') },
|
|
|
2: { color: 'warning', text: t('routes.corporation.stateName.2') },
|
|
@@ -164,7 +167,7 @@
|
|
|
uploadApi: uploadApi as any,
|
|
|
registerDeviceModal,
|
|
|
infoText,
|
|
|
- rederTag,
|
|
|
+ renderTag,
|
|
|
t,
|
|
|
};
|
|
|
},
|