diff --git a/.env.development b/.env.development index b0855a0..e4a1d61 100644 --- a/.env.development +++ b/.env.development @@ -6,7 +6,7 @@ VITE_PUBLIC_PATH = / # 跨域代理,您可以配置多个 ,请注意,没有换行符 VITE_PROXY = [["/jeecgboot","http://192.168.2.110:9999"],["/upload","http://192.168.2.110:3300/upload"]] -#VITE_PROXY = [["/jeecgboot","https://fxnsp.sxcooh.com/lh-api/"],["/upload","http://192.168.2.111:3300/upload"]] +VITE_PROXY = [["/jeecgboot","https://fxnsp.sxcooh.com/lh-api/"],["/upload","http://192.168.2.111:3300/upload"]] # 控制台不输出 VITE_DROP_CONSOLE = false @@ -16,7 +16,7 @@ VITE_GLOB_API_URL=/jeecgboot #后台接口全路径地址(必填) VITE_GLOB_DOMAIN_URL=http://192.168.2.110:9999 -#VITE_GLOB_DOMAIN_URL=https://fxnsp.sxcooh.com +VITE_GLOB_DOMAIN_URL=https://fxnsp.sxcooh.com # 接口前缀 VITE_GLOB_API_URL_PREFIX= diff --git a/src/views/appmana/deploy/SurvDeviceDeploy.api.ts b/src/views/appmana/deploy/SurvDeviceDeploy.api.ts index 28b8b7e..fbd667a 100644 --- a/src/views/appmana/deploy/SurvDeviceDeploy.api.ts +++ b/src/views/appmana/deploy/SurvDeviceDeploy.api.ts @@ -221,5 +221,7 @@ export const getRelayList = (params) => { * @param isUpdate */ export const sendRelayQuery = (params) => { - return defHttp.get({ url: Api.queryRelay, params }, { isTransformResponse: false }); + return defHttp.post({ url: Api.queryRelay, params }, { isTransformResponse: false }); } + + diff --git a/src/views/appmana/deploy/components/ControlModal.vue b/src/views/appmana/deploy/components/ControlModal.vue index 0f21032..f8ed92e 100644 --- a/src/views/appmana/deploy/components/ControlModal.vue +++ b/src/views/appmana/deploy/components/ControlModal.vue @@ -1,74 +1,218 @@ - diff --git a/src/views/appmana/deploy/components/ControlModal_timer.vue b/src/views/appmana/deploy/components/ControlModal_timer.vue new file mode 100644 index 0000000..460e5fb --- /dev/null +++ b/src/views/appmana/deploy/components/ControlModal_timer.vue @@ -0,0 +1,562 @@ + + + + + diff --git a/src/views/appmana/deploy/components/RelayGroup.data.ts b/src/views/appmana/deploy/components/RelayGroup.data.ts index 379fbef..1f34132 100644 --- a/src/views/appmana/deploy/components/RelayGroup.data.ts +++ b/src/views/appmana/deploy/components/RelayGroup.data.ts @@ -140,11 +140,11 @@ export const itemFormSchema: FormSchema[] = [ return Promise.reject('数据值不能包含特殊字符!'); } return new Promise((resolve, reject) => { - console.log('wwwwwww',model) + console.log('wwwwwww', model); let params = { deployId: model.deployId, groupName: value, - id:model.id + id: model.id, }; itemCheck(params) .then((res) => { @@ -181,7 +181,17 @@ export const itemFormSchema: FormSchema[] = [ stringToNumber: true, }, }, - + { + field: 'isMutual', + label: '组内互斥', + defaultValue: 0, + component: 'JDictSelectTag', + componentProps: { + type: 'radioButton', + dictCode: 'yn', + stringToNumber: true, + }, + }, { label: '备注', field: 'groupNotes', @@ -193,7 +203,7 @@ export const itemFormSchema: FormSchema[] = [ field: 'sortNo', required: false, component: 'InputNumber', - defaultValue: 1 + defaultValue: 1, }, ]; @@ -218,6 +228,15 @@ export const dictItemColumns: BasicColumn[] = [ return render.renderTag(render.renderDict(text, 'dict_item_status'), color); }, }, + { + title: '组内互斥', + dataIndex: 'isMutual', + width: 80, + customRender: ({ text }) => { + const color = text == '1' ? 'green' : text == '0' ? 'red' : 'gray'; + return render.renderTag(render.renderDict(text, 'dict_item_status'), color); + }, + }, { title: '排序', dataIndex: 'sortNo', diff --git a/src/views/appmana/deploy/components/SetupRelay.data.ts b/src/views/appmana/deploy/components/SetupRelay.data.ts index 6cb2725..66b1fa8 100644 --- a/src/views/appmana/deploy/components/SetupRelay.data.ts +++ b/src/views/appmana/deploy/components/SetupRelay.data.ts @@ -149,7 +149,7 @@ export const itemFormSchema: FormSchema[] = [ let params = { deployId: model.deployId, relayKey: value, - id:model.id + id: model.id, }; relayItemCheck(params) .then((res) => { @@ -193,10 +193,10 @@ export const itemFormSchema: FormSchema[] = [ component: 'JDictSelectTag', componentProps: ({ schema, formModel }) => { return { - dictCode: 'surv_device_deploy_relaygroup,GROUP_NAME,ID,IS_ENABLE = 1 and DEPLOY_ID='+formModel.deployId, - dict: 'surv_device_deploy_relaygroup,GROUP_NAME,ID,IS_ENABLE = 1 and DEPLOY_ID='+formModel.deployId + dictCode: 'surv_device_deploy_relaygroup,GROUP_NAME,ID,IS_ENABLE = 1 and DEPLOY_ID=' + formModel.deployId, + dict: 'surv_device_deploy_relaygroup,GROUP_NAME,ID,IS_ENABLE = 1 and DEPLOY_ID=' + formModel.deployId, }; - } + }, }, // { // label: '分组编码', @@ -204,7 +204,12 @@ export const itemFormSchema: FormSchema[] = [ // required: false, // component: 'Input', // }, - + { + label: '查询指令', + field: 'registerCmdCheck', + required: false, + component: 'Input', + }, { label: '开指令', field: 'registerCmdOn', @@ -224,7 +229,6 @@ export const itemFormSchema: FormSchema[] = [ component: 'Input', }, - { field: 'isEnable', label: '是否启用', @@ -253,7 +257,7 @@ export const itemFormSchema: FormSchema[] = [ field: 'sortNo', required: false, component: 'InputNumber', - defaultValue :1 + defaultValue: 1, }, ];