Commit 7f682d5e8763dbb81899b553652d8e8fe3d7a4d6

Authored by ww
1 parent 0f3e7dee

perf: 优化antd即将废弃属性

@@ -758,7 +758,7 @@ export const CommandSchemas = (transportType: TransportTypeEnum): FormSchema[] = @@ -758,7 +758,7 @@ export const CommandSchemas = (transportType: TransportTypeEnum): FormSchema[] =
758 }, 758 },
759 component: 'InputTextArea', 759 component: 'InputTextArea',
760 componentProps: { 760 componentProps: {
761 - autosize: { 761 + autoSize: {
762 minRows: 6, 762 minRows: 6,
763 }, 763 },
764 }, 764 },
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 title="命令下发" 25 title="命令下发"
26 :showOkBtn="false" 26 :showOkBtn="false"
27 cancelText="关闭" 27 cancelText="关闭"
28 - footer="" 28 + :footer="h('div')"
29 > 29 >
30 <CommandIssuance :deviceDetail="deviceDetail" /> 30 <CommandIssuance :deviceDetail="deviceDetail" />
31 </BasicModal> 31 </BasicModal>
@@ -212,10 +212,10 @@ @@ -212,10 +212,10 @@
212 :title="`最后运行时间: ${dateUtil(getRecord.lastExecuteTime).format(DEFAULT_DATE_FORMAT)}`" 212 :title="`最后运行时间: ${dateUtil(getRecord.lastExecuteTime).format(DEFAULT_DATE_FORMAT)}`"
213 > 213 >
214 <div class="text-gray-400 text-xs truncate"> 214 <div class="text-gray-400 text-xs truncate">
215 - <span class="mr-2">间隔时间重复</span> 215 + <span class="mr-2">最近执行</span>
216 <span>{{ 216 <span>{{
217 getLastExecuteTime.value 217 getLastExecuteTime.value
218 - ? `${getLastExecuteTime.value}${getLastExecuteTime.unitName}前` 218 + ? `${getLastExecuteTime.value}${getLastExecuteTime.unitName}前 ${Date.now()}`
219 : '刚刚' 219 : '刚刚'
220 }}</span> 220 }}</span>
221 </div> 221 </div>
@@ -145,7 +145,7 @@ @@ -145,7 +145,7 @@
145 ref="listElRef" 145 ref="listElRef"
146 :dataSource="dataSource" 146 :dataSource="dataSource"
147 :pagination="pagination" 147 :pagination="pagination"
148 - :grid="{ gutter: 16, xs: 1, sm: 1, md: 2, lg: 3, xl: 3, xxl: 4, column: 4 }" 148 + :grid="{ gutter: 16, xs: 1, sm: 1, md: 2, lg: 3, xl: 3, xxl: 4, column: colNumber }"
149 :loading="loading" 149 :loading="loading"
150 > 150 >
151 <template #header> 151 <template #header>
@@ -154,7 +154,7 @@ @@ -154,7 +154,7 @@
154 <span class="text-lg font-medium">任务列表</span> 154 <span class="text-lg font-medium">任务列表</span>
155 </div> 155 </div>
156 <Space> 156 <Space>
157 - <CardLayoutButton v-model:value="colNumber" @change="reload" /> 157 + <CardLayoutButton v-model:value="colNumber" :max="4" :min="1" @change="reload" />
158 <Tooltip v-if="dataSource.length" title="刷新"> 158 <Tooltip v-if="dataSource.length" title="刷新">
159 <Button type="primary" @click="getDataSource"> 159 <Button type="primary" @click="getDataSource">
160 <ReloadOutlined :spin="loading" /> 160 <ReloadOutlined :spin="loading" />