diff --git a/package.json b/package.json index e01c7da6..8e4954cc 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "event-source-polyfill": "^1.0.31", "global": "^4.4.0", "jetlinks-store": "^0.0.3", - "jetlinks-ui-components": "^1.0.4", + "jetlinks-ui-components": "^1.0.5", "js-cookie": "^3.0.1", "less": "^4.1.3", "less-loader": "^11.1.0", diff --git a/src/api/rule-engine/scene.ts b/src/api/rule-engine/scene.ts index 45836b9d..bfd17fa6 100644 --- a/src/api/rule-engine/scene.ts +++ b/src/api/rule-engine/scene.ts @@ -23,4 +23,6 @@ export const _execute = (id: string) => server.post(`/scene/${id}/_execute`); // 内置参数 export const queryBuiltInParams = (data: any, params?: any) => server.post(`/scene/parse-variables`, data, params); -export const getParseTerm = (data: Record) => server.post(`/scene/parse-term-column`, data) \ No newline at end of file +export const getParseTerm = (data: Record) => server.post(`/scene/parse-term-column`, data) + +export const queryAlarmList = (data: Record) => server.post(`/alarm/config/_query/`, data) \ No newline at end of file diff --git a/src/components/FRuleEditor/Advance/index.vue b/src/components/FRuleEditor/Advance/index.vue index d938c37a..5fa8e908 100644 --- a/src/components/FRuleEditor/Advance/index.vue +++ b/src/components/FRuleEditor/Advance/index.vue @@ -45,7 +45,6 @@ const handleCancel = () => { emit('change', 'simple') } const handleOk = () => { - console.log(_value.value) emit('update:value', _value.value) emit('change', 'simple') } diff --git a/src/components/FRuleEditor/Debug/index.vue b/src/components/FRuleEditor/Debug/index.vue index 0cc843e0..86531687 100644 --- a/src/components/FRuleEditor/Debug/index.vue +++ b/src/components/FRuleEditor/Debug/index.vue @@ -185,7 +185,6 @@ const getProperty = () => { label: item.name, value: item.id, })); - console.log(options.value) } getProperty() diff --git a/src/components/FRuleEditor/Operator/index.vue b/src/components/FRuleEditor/Operator/index.vue index 21ae192a..c9adaec7 100644 --- a/src/components/FRuleEditor/Operator/index.vue +++ b/src/components/FRuleEditor/Operator/index.vue @@ -87,7 +87,6 @@ const productStore = useProductStore() const getData = async (id?: string) => { const metadata = productStore.current.metadata || '{}'; - console.log('metadata', metadata) const _properties = JSON.parse(metadata).properties || [] as PropertyMetadata[] const properties = { id: 'property', diff --git a/src/components/Metadata/JsonParam/index.vue b/src/components/Metadata/JsonParam/index.vue index b11640d3..7c0f29ba 100644 --- a/src/components/Metadata/JsonParam/index.vue +++ b/src/components/Metadata/JsonParam/index.vue @@ -96,7 +96,6 @@ const handleDelete = (index: number) => { _value.value.splice(index, 1) } const handleClose = () => { - console.log(editIndex.value) editIndex.value = -1 } const handleAdd = () => { diff --git a/src/components/Player/mediaTool.vue b/src/components/Player/mediaTool.vue index c5f707d0..83f0b315 100644 --- a/src/components/Player/mediaTool.vue +++ b/src/components/Player/mediaTool.vue @@ -7,28 +7,36 @@ @mousedown="emit('onMouseDown', 'UP')" @mouseup="emit('onMouseUp', 'UP')" > - +
+ +
- +
+ +
- +
+ +
- +
+ +
diff --git a/src/components/Search/History.vue b/src/components/Search/History.vue deleted file mode 100644 index 27c58809..00000000 --- a/src/components/Search/History.vue +++ /dev/null @@ -1,125 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/Search/Item.vue b/src/components/Search/Item.vue deleted file mode 100644 index 0e96f020..00000000 --- a/src/components/Search/Item.vue +++ /dev/null @@ -1,349 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/Search/SaveHistory.vue b/src/components/Search/SaveHistory.vue deleted file mode 100644 index 49c2d091..00000000 --- a/src/components/Search/SaveHistory.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/Search/Search.vue b/src/components/Search/Search.vue index 14d4af0f..1409f2ea 100644 --- a/src/components/Search/Search.vue +++ b/src/components/Search/Search.vue @@ -1,83 +1,21 @@ - \ No newline at end of file diff --git a/src/components/ValueItem/index.vue b/src/components/ValueItem/index.vue index 938e1132..19e5d9f4 100644 --- a/src/components/ValueItem/index.vue +++ b/src/components/ValueItem/index.vue @@ -62,7 +62,7 @@ :showUploadList="false" @change="handleFileChange" > - + diff --git a/src/components/index.ts b/src/components/index.ts index f27cd374..e54a6c26 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -5,7 +5,7 @@ import JTable from './Table/index' import TitleComponent from "./TitleComponent/index.vue"; import Form from './Form'; import CardBox from './CardBox/index.vue'; -// import Search from './Search' +import Search from './Search' import NormalUpload from './NormalUpload/index.vue' import FileFormat from './FileFormat/index.vue' import JProUpload from './JUpload/index.vue' @@ -25,7 +25,7 @@ export default { .component('TitleComponent', TitleComponent) .component('Form', Form) .component('CardBox', CardBox) - // .component('Search', Search) + .component('ProSearch', Search) .component('NormalUpload', NormalUpload) .component('FileFormat', FileFormat) .component('JProUpload', JProUpload) diff --git a/src/router/menu.ts b/src/router/menu.ts index 3ff3bad7..1dfae58c 100644 --- a/src/router/menu.ts +++ b/src/router/menu.ts @@ -8,7 +8,7 @@ export const AccountMenu = { meta: { title: '个人中心', icon: '', - hideInMenu: false + hideInMenu: true }, children: [ { diff --git a/src/store/menu.ts b/src/store/menu.ts index 6851f153..ad8390b8 100644 --- a/src/store/menu.ts +++ b/src/store/menu.ts @@ -37,6 +37,10 @@ type MenuStateType = { } } siderMenus: MenuItem[] + params: { + key: string + params: Record + } } @@ -44,6 +48,10 @@ export const useMenuStore = defineStore({ id: 'menu', state: (): MenuStateType => ({ menus: {}, + params: { + key: '', + params: {} + }, siderMenus: [] }), getters: { diff --git a/src/views/Northbound/AliCloud/index.vue b/src/views/Northbound/AliCloud/index.vue index b78b88a1..b97b262a 100644 --- a/src/views/Northbound/AliCloud/index.vue +++ b/src/views/Northbound/AliCloud/index.vue @@ -1,6 +1,6 @@ diff --git a/src/views/Northbound/DuerOS/index.vue b/src/views/Northbound/DuerOS/index.vue index f43960d7..ffebf7f8 100644 --- a/src/views/Northbound/DuerOS/index.vue +++ b/src/views/Northbound/DuerOS/index.vue @@ -1,6 +1,6 @@ diff --git a/src/views/device/Category/components/modifyModal/index.vue b/src/views/device/Category/components/modifyModal/index.vue index 371b7900..0d94cb56 100644 --- a/src/views/device/Category/components/modifyModal/index.vue +++ b/src/views/device/Category/components/modifyModal/index.vue @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/src/views/rule-engine/Scene/Save/action/ListItem/Item.vue b/src/views/rule-engine/Scene/Save/action/ListItem/Item.vue index a4c1d966..23783436 100644 --- a/src/views/rule-engine/Scene/Save/action/ListItem/Item.vue +++ b/src/views/rule-engine/Scene/Save/action/ListItem/Item.vue @@ -343,6 +343,11 @@ @cancel="onPropsCancel" /> +
@@ -353,6 +358,12 @@ import { PropType } from 'vue'; import { ActionsType, ParallelType } from '../../../typings'; import Modal from '../Modal/index.vue'; import ActionTypeComponent from '../Modal/ActionTypeComponent.vue'; +import TriggerAlarm from '../TriggerAlarm/index.vue'; +import { useSceneStore } from '@/store/scene'; +import { storeToRefs } from 'pinia'; + +const sceneStore = useSceneStore(); +const { data: _data } = storeToRefs(sceneStore); const props = defineProps({ branchesName: { @@ -438,8 +449,8 @@ const onAdd = () => { }; const onType = (_type: string) => { - actionType.value = _type -} + actionType.value = _type; +}; const onPropsOk = (data: ActionsType, options?: any) => { emit('update', data, options); diff --git a/src/views/rule-engine/Scene/Save/action/TriggerAlarm/index.vue b/src/views/rule-engine/Scene/Save/action/TriggerAlarm/index.vue new file mode 100644 index 00000000..56fc8cbb --- /dev/null +++ b/src/views/rule-engine/Scene/Save/action/TriggerAlarm/index.vue @@ -0,0 +1,131 @@ + + + \ No newline at end of file diff --git a/src/views/rule-engine/Scene/Save/components/DropdownButton/Time.vue b/src/views/rule-engine/Scene/Save/components/DropdownButton/Time.vue index bf9e6318..e3044a21 100644 --- a/src/views/rule-engine/Scene/Save/components/DropdownButton/Time.vue +++ b/src/views/rule-engine/Scene/Save/components/DropdownButton/Time.vue @@ -19,6 +19,7 @@ :format='myFormat' :valueFormat='myFormat' :getPopupContainer='getPopupContainer' + popupClassName='manual-time-picker-popup' @change='change' /> @@ -62,7 +63,7 @@ const change = (e: string) => { } -