文本域样式/地图样式/测试工作台 状态样式保持一致于地图
| | |
| | | type="textarea" |
| | | maxlength="200" |
| | | show-count |
| | | clearable |
| | | :theme-overrides="{ |
| | | countTextColor: 'rgba(23, 31, 38, 0.3)', |
| | | countTextColorDisabled: 'rgba(23, 31, 38, 0.3)', |
| | | }" |
| | | :disabled="isLocked" |
| | | /> |
| | | </n-form-item> |
| | |
| | | type="textarea" |
| | | maxlength="500" |
| | | show-count |
| | | :theme-overrides="{ |
| | | countTextColor: 'rgba(23, 31, 38, 0.3)', |
| | | countTextColorDisabled: 'rgba(23, 31, 38, 0.3)', |
| | | }" |
| | | :autosize="{ minRows: 3, maxRows: 5 }" |
| | | :placeholder="remarkRequired ? '请输入测试不通过原因' : '请输入备注'" |
| | | /> |
| | |
| | | type="textarea" |
| | | maxlength="200" |
| | | show-count |
| | | clearable |
| | | :theme-overrides="{ |
| | | countTextColor: 'rgba(23, 31, 38, 0.3)', |
| | | countTextColorDisabled: 'rgba(23, 31, 38, 0.3)', |
| | | }" |
| | | /> |
| | | </div> |
| | | </div> |
| | |
| | | height: 100%; |
| | | min-height: 640px; |
| | | border: 1px solid #e4e7ec; |
| | | border-radius: 20px; |
| | | border-radius: 0; |
| | | background: #eef2f6; |
| | | overflow: hidden; |
| | | } |
| | |
| | | type="textarea" |
| | | maxlength="200" |
| | | show-count |
| | | clearable |
| | | :theme-overrides="{ |
| | | countTextColor: 'rgba(23, 31, 38, 0.3)', |
| | | countTextColorDisabled: 'rgba(23, 31, 38, 0.3)', |
| | | }" |
| | | :disabled="isLocked" |
| | | /> |
| | | </n-form-item> |
| | |
| | | type="textarea" |
| | | maxlength="500" |
| | | show-count |
| | | :theme-overrides="{ |
| | | countTextColor: 'rgba(23, 31, 38, 0.3)', |
| | | countTextColorDisabled: 'rgba(23, 31, 38, 0.3)', |
| | | }" |
| | | :autosize="{ minRows: 3, maxRows: 5 }" |
| | | :placeholder="remarkRequired ? '请输入测试不通过原因' : '请输入备注'" |
| | | /> |
| | |
| | | type="textarea" |
| | | maxlength="200" |
| | | show-count |
| | | clearable |
| | | :theme-overrides="{ |
| | | countTextColor: 'rgba(23, 31, 38, 0.3)', |
| | | countTextColorDisabled: 'rgba(23, 31, 38, 0.3)', |
| | | }" |
| | | /> |
| | | </div> |
| | | </div> |
| | |
| | | import sortAsc from '@/assets/geofence/sort2.png' |
| | | import sortDesc from '@/assets/geofence/sort3.png' |
| | | import moreIcon from '@/assets/element-img/more.png' |
| | | import { getFenceWorkbenchStatusText } from './status' |
| | | |
| | | const { hasPermission } = usePermission() |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | function getFenceStatusText(status: number) { |
| | | if (Number(status) === 0) |
| | | return '草稿' |
| | | if (Number(status) === 1) |
| | | return '待生效' |
| | | if (Number(status) === 2) |
| | | return '启用中' |
| | | if (Number(status) === 3) |
| | | return '已停用' |
| | | return '-' |
| | | function getFenceStatusText(item: any) { |
| | | return getFenceWorkbenchStatusText(item?.flowStatus, item?.status) |
| | | } |
| | | |
| | | function getStationStatusText(item: any) { |
| | |
| | | { |
| | | title: '状态', |
| | | key: 'status', |
| | | width: 80, |
| | | width: 110, |
| | | resizable: true, |
| | | render(row) { |
| | | const statusText = getFenceStatusText(row.status) |
| | | const type = getFenceTagType(row.status) |
| | | return <NTag type={type} bordered={false}>{statusText}</NTag> |
| | | const statusText = getFenceStatusText(row) |
| | | return renderPointStatusTag(statusText) |
| | | }, |
| | | }, |
| | | { |
| | |
| | | height: 100%; |
| | | min-height: 640px; |
| | | border: 1px solid #e4e7ec; |
| | | border-radius: 20px; |
| | | border-radius: 0; |
| | | background: #eef2f6; |
| | | overflow: hidden; |
| | | } |