fix: 修改bug
This commit is contained in:
parent
e9d5c8e9c3
commit
73351235ce
|
@ -328,6 +328,7 @@ const columns = [
|
|||
title: 'ID',
|
||||
dataIndex: 'id',
|
||||
key: 'id',
|
||||
ellipsis: true,
|
||||
search: {
|
||||
type: 'string',
|
||||
defaultTermType: 'eq',
|
||||
|
@ -337,6 +338,7 @@ const columns = [
|
|||
title: '设备名称',
|
||||
dataIndex: 'name',
|
||||
key: 'name',
|
||||
ellipsis: true,
|
||||
search: {
|
||||
type: 'string',
|
||||
first: true,
|
||||
|
@ -346,6 +348,7 @@ const columns = [
|
|||
title: '产品名称',
|
||||
dataIndex: 'productName',
|
||||
key: 'productName',
|
||||
ellipsis: true,
|
||||
search: {
|
||||
type: 'select',
|
||||
rename: 'productId',
|
||||
|
@ -367,6 +370,7 @@ const columns = [
|
|||
dataIndex: 'createTime',
|
||||
key: 'createTime',
|
||||
scopedSlots: true,
|
||||
width: 200,
|
||||
search: {
|
||||
type: 'date',
|
||||
},
|
||||
|
|
|
@ -267,26 +267,26 @@ const columns = [
|
|||
}),
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'productId$product-info',
|
||||
dataIndex: 'productId$product-info',
|
||||
title: '接入方式',
|
||||
hideInTable: true,
|
||||
search: {
|
||||
type: 'select',
|
||||
options: () =>
|
||||
new Promise((resolve) => {
|
||||
queryGatewayList({}).then((resp: any) => {
|
||||
resolve(
|
||||
resp.result.map((item: any) => ({
|
||||
label: item.name,
|
||||
value: `accessId is ${item.id}`,
|
||||
})),
|
||||
);
|
||||
});
|
||||
}),
|
||||
},
|
||||
},
|
||||
// {
|
||||
// key: 'productId$product-info',
|
||||
// dataIndex: 'productId$product-info',
|
||||
// title: '接入方式',
|
||||
// hideInTable: true,
|
||||
// search: {
|
||||
// type: 'select',
|
||||
// options: () =>
|
||||
// new Promise((resolve) => {
|
||||
// queryGatewayList({}).then((resp: any) => {
|
||||
// resolve(
|
||||
// resp.result.map((item: any) => ({
|
||||
// label: item.name,
|
||||
// value: `accessId is ${item.id}`,
|
||||
// })),
|
||||
// );
|
||||
// });
|
||||
// }),
|
||||
// },
|
||||
// },
|
||||
{
|
||||
dataIndex: 'deviceType',
|
||||
title: '设备类型',
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<j-col :span="8">已下发数量:{{ countErr + count }}</j-col>
|
||||
</j-row>
|
||||
<div v-if="!flag">
|
||||
<j-textarea :rows="20" :value="JSON.stringify(errMessage)" />
|
||||
<j-textarea :rows="10" :value="JSON.stringify(errMessage)" />
|
||||
</div>
|
||||
</j-modal>
|
||||
</template>
|
||||
|
@ -86,7 +86,7 @@ const getData = () => {
|
|||
et += 1;
|
||||
countErr.value = et;
|
||||
flag.value = false;
|
||||
if (errMessages.length <= 5) {
|
||||
if (errMessages.length < 5) {
|
||||
errMessages.push({ ...res });
|
||||
errMessage.value = [...errMessages];
|
||||
}
|
||||
|
|
|
@ -169,7 +169,8 @@ const onCancel = () => {
|
|||
|
||||
<style lang="less" scoped>
|
||||
.search {
|
||||
padding: 0 0 0 24px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
.alert {
|
||||
height: 40px;
|
||||
|
|
Loading…
Reference in New Issue