|
@@ -15,14 +15,10 @@
|
|
|
<template #name="{ model, field }">
|
|
|
{{ model[field] }}
|
|
|
</template>
|
|
|
+ <!-- :disabled="model.subNum == 0" -->
|
|
|
<template #addeduser="{ model, field }">
|
|
|
{{ model[field] || 0 }}
|
|
|
- <a-button
|
|
|
- :disabled="model.subNum == 0"
|
|
|
- @click="openTargetModal()"
|
|
|
- type="primary"
|
|
|
- preIcon="ic:outline-person-add"
|
|
|
- >
|
|
|
+ <a-button @click="openTargetModal()" type="primary" preIcon="ic:outline-person-add">
|
|
|
{{ t('routes.devices.add') }}{{ t('routes.devices.title') }}
|
|
|
</a-button>
|
|
|
</template>
|
|
@@ -93,7 +89,13 @@
|
|
|
title: t('common.fullName'),
|
|
|
dataIndex: 'nickName',
|
|
|
edit: true,
|
|
|
- editRule: true,
|
|
|
+ editRule: async (text) => {
|
|
|
+ console.log('editRule', text);
|
|
|
+ if (text && text.length > 25) {
|
|
|
+ return t('routes.devices.maxlength');
|
|
|
+ }
|
|
|
+ return '';
|
|
|
+ },
|
|
|
width: 200,
|
|
|
},
|
|
|
{
|
|
@@ -127,6 +129,7 @@
|
|
|
field: 'totalSubNum',
|
|
|
component: 'InputNumber',
|
|
|
label: `${t('routes.devices.subNum')} :`,
|
|
|
+ show: false,
|
|
|
labelWidth: 200,
|
|
|
componentProps: () => {
|
|
|
return {
|