|
@@ -200,6 +200,7 @@ import { validateNoSpace } from '/@/utils/validator';
|
|
interface RuleFormState {
|
|
interface RuleFormState {
|
|
id: number;
|
|
id: number;
|
|
productKey: string;
|
|
productKey: string;
|
|
|
|
+ deviceKey: string;
|
|
name: string;
|
|
name: string;
|
|
dictType: string;
|
|
dictType: string;
|
|
valueType: Object;
|
|
valueType: Object;
|
|
@@ -248,6 +249,7 @@ export default defineComponent({
|
|
ruleForm: {
|
|
ruleForm: {
|
|
id: 0,
|
|
id: 0,
|
|
productKey: '',
|
|
productKey: '',
|
|
|
|
+ deviceKey: '',
|
|
name: '',
|
|
name: '',
|
|
key: '',
|
|
key: '',
|
|
transportProtocol: '',
|
|
transportProtocol: '',
|
|
@@ -269,7 +271,7 @@ export default defineComponent({
|
|
|
|
|
|
// 打开弹窗
|
|
// 打开弹窗
|
|
const openDialog = (row: RuleFormState | null, productKey: string | null) => {
|
|
const openDialog = (row: RuleFormState | null, productKey: string | null) => {
|
|
- resetForm();
|
|
|
|
|
|
+ resetForm();
|
|
|
|
|
|
api.product.getDataType({ status: -1 }).then((res: any) => {
|
|
api.product.getDataType({ status: -1 }).then((res: any) => {
|
|
const datat = Object.values(res.dataType);
|
|
const datat = Object.values(res.dataType);
|
|
@@ -289,7 +291,8 @@ export default defineComponent({
|
|
state.ruleForm = row;
|
|
state.ruleForm = row;
|
|
|
|
|
|
state.productKey = productKey;
|
|
state.productKey = productKey;
|
|
- state.valueType = row.valueType;
|
|
|
|
|
|
+ state.deviceKey = row.deviceKey;
|
|
|
|
+ state.valueType = row.valueType;
|
|
state.ruleForm.valueType.type = row.valueType.type;
|
|
state.ruleForm.valueType.type = row.valueType.type;
|
|
state.ruleForm.type = row.valueType.type;
|
|
state.ruleForm.type = row.valueType.type;
|
|
state.type = row.valueType.type;
|
|
state.type = row.valueType.type;
|