Commit 865a28c8 by qianmo

fix:新增bug

parent 799882e8
......@@ -216,14 +216,19 @@ const rules = reactive<FormRules<typeof fields>>({
const ruleFormRef = ref<typeof ElForm>()
const addField = () => {
flag.value = true;
more.value = false
fields.value.cmd_name = props.cmdName
fields.value.cmd_type = props.cmdType
fields.value.fieldindex = tableData.value.length + 1
fields.value.fieldname = ''
fields.value.fieldsize = 0
fields.value.value = ''
fields.value.minvalue = 'null'
fields.value.maxvalue = 'null'
fields.value.datatype = ''
fields.value.lua_script_in = 'null'
fields.value.lua_script_out = 'null'
fields.value.operation_in = 0
......@@ -234,6 +239,7 @@ const addField = () => {
fields.value.operabo_out = 0
dialogVisible.value = true;
}
function editField(data: CmdInfo) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment