|
@@ -2,7 +2,7 @@
|
|
<BasicModal
|
|
<BasicModal
|
|
v-bind="$attrs"
|
|
v-bind="$attrs"
|
|
@register="register"
|
|
@register="register"
|
|
- title="新增RTK账号"
|
|
|
|
|
|
+ :title="fileFlow.title"
|
|
@visible-change="handleVisibleChange"
|
|
@visible-change="handleVisibleChange"
|
|
@cancel="resetFields"
|
|
@cancel="resetFields"
|
|
@ok="handleSubmit"
|
|
@ok="handleSubmit"
|
|
@@ -35,6 +35,7 @@
|
|
const modelRef = ref({});
|
|
const modelRef = ref({});
|
|
const fileFlow = reactive({
|
|
const fileFlow = reactive({
|
|
file: null,
|
|
file: null,
|
|
|
|
+ title: '新增RTK账号',
|
|
});
|
|
});
|
|
const { createMessage } = useMessage();
|
|
const { createMessage } = useMessage();
|
|
const schemas: FormSchema[] = [
|
|
const schemas: FormSchema[] = [
|
|
@@ -95,6 +96,7 @@
|
|
field: 'ipAddr',
|
|
field: 'ipAddr',
|
|
component: 'Input',
|
|
component: 'Input',
|
|
label: 'IP地址',
|
|
label: 'IP地址',
|
|
|
|
+ ifShow: false,
|
|
required: true,
|
|
required: true,
|
|
colProps: {
|
|
colProps: {
|
|
span: 20,
|
|
span: 20,
|
|
@@ -117,7 +119,7 @@
|
|
},
|
|
},
|
|
],
|
|
],
|
|
componentProps: {
|
|
componentProps: {
|
|
- maxLength: 15,
|
|
|
|
|
|
+ maxLength: 50,
|
|
onChange: (data) => {
|
|
onChange: (data) => {
|
|
console.log('data', data);
|
|
console.log('data', data);
|
|
},
|
|
},
|
|
@@ -176,6 +178,9 @@
|
|
component: 'Input',
|
|
component: 'Input',
|
|
required: true,
|
|
required: true,
|
|
label: '板卡sn号',
|
|
label: '板卡sn号',
|
|
|
|
+ componentProps: {
|
|
|
|
+ maxLength: 50,
|
|
|
|
+ },
|
|
colProps: {
|
|
colProps: {
|
|
span: 20,
|
|
span: 20,
|
|
},
|
|
},
|
|
@@ -185,6 +190,9 @@
|
|
component: 'Input',
|
|
component: 'Input',
|
|
required: true,
|
|
required: true,
|
|
label: '运营商',
|
|
label: '运营商',
|
|
|
|
+ componentProps: {
|
|
|
|
+ maxLength: 50,
|
|
|
|
+ },
|
|
colProps: {
|
|
colProps: {
|
|
span: 20,
|
|
span: 20,
|
|
},
|
|
},
|
|
@@ -206,9 +214,10 @@
|
|
|
|
|
|
function onDataReceive(data) {
|
|
function onDataReceive(data) {
|
|
modelRef.value = data;
|
|
modelRef.value = data;
|
|
|
|
+ fileFlow.title = data.id ? '编辑RTK账号' : '新增RTK账号';
|
|
resetFields();
|
|
resetFields();
|
|
console.log('data', data);
|
|
console.log('data', data);
|
|
- handlertkType(data.rtkType)
|
|
|
|
|
|
+ handlertkType(data.rtkType || 0)
|
|
setFieldsValue(data);
|
|
setFieldsValue(data);
|
|
}
|
|
}
|
|
function handlertkType(val) {
|
|
function handlertkType(val) {
|