fix: message组件替换
This commit is contained in:
parent
f9d72619b0
commit
5f9c8fded4
|
@ -47,7 +47,7 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts" name="modifyModal">
|
<script setup lang="ts" name="modifyModal">
|
||||||
import { PropType } from 'vue';
|
import { PropType } from 'vue';
|
||||||
import { Form, message } from 'ant-design-vue';
|
import { Form, message } from 'jetlinks-ui-components';
|
||||||
import { queryTree, saveTree, updateTree } from '@/api/device/category';
|
import { queryTree, saveTree, updateTree } from '@/api/device/category';
|
||||||
import { ValidateErrorEntity } from 'ant-design-vue/es/form/interface';
|
import { ValidateErrorEntity } from 'ant-design-vue/es/form/interface';
|
||||||
import { list } from '@/api/iot-card/home';
|
import { list } from '@/api/iot-card/home';
|
||||||
|
|
|
@ -75,8 +75,7 @@
|
||||||
import { queryTree, deleteTree } from '@/api/device/category';
|
import { queryTree, deleteTree } from '@/api/device/category';
|
||||||
import type { ActionsType } from '@/components/Table/index.vue';
|
import type { ActionsType } from '@/components/Table/index.vue';
|
||||||
import ModifyModal from './components/modifyModal/index.vue';
|
import ModifyModal from './components/modifyModal/index.vue';
|
||||||
import type { TableColumnType, TableProps } from 'ant-design-vue';
|
import { message } from 'jetlinks-ui-components';
|
||||||
import { message } from 'ant-design-vue';
|
|
||||||
const expandedRowKeys = ref<any>([]);
|
const expandedRowKeys = ref<any>([]);
|
||||||
const tableRef = ref<Record<string, any>>({});
|
const tableRef = ref<Record<string, any>>({});
|
||||||
const modifyRef = ref();
|
const modifyRef = ref();
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<!-- 勾选 -->
|
<!-- 勾选 -->
|
||||||
<div v-if="active" class="checked-icon">
|
<div v-if="active" class="checked-icon">
|
||||||
<div>
|
<div>
|
||||||
<CheckOutlined />
|
<AIcon type="CheckOutlined"></AIcon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -31,11 +31,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {
|
|
||||||
SearchOutlined,
|
|
||||||
CheckOutlined,
|
|
||||||
DeleteOutlined,
|
|
||||||
} from '@ant-design/icons-vue';
|
|
||||||
import { StatusColorEnum } from '@/utils/consts.ts';
|
import { StatusColorEnum } from '@/utils/consts.ts';
|
||||||
import type { ActionsType } from '@/components/Table/index.vue';
|
import type { ActionsType } from '@/components/Table/index.vue';
|
||||||
import { PropType } from 'vue';
|
import { PropType } from 'vue';
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<div style="display: flex">
|
<div style="display: flex">
|
||||||
<h3>配置信息</h3>
|
<h3>配置信息</h3>
|
||||||
<div style="margin: 0 0px 0 15px; color: #1d39c4">
|
<div style="margin: 0 0px 0 15px; color: #1d39c4">
|
||||||
<edit-outlined @click="editConfig" />
|
<AIcon type="EditOutlined"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -53,11 +53,6 @@ import { useProductStore } from '@/store/product';
|
||||||
import Save from '../../Save/index.vue';
|
import Save from '../../Save/index.vue';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import {
|
|
||||||
EditOutlined,
|
|
||||||
DeleteOutlined,
|
|
||||||
PlusOutlined,
|
|
||||||
} from '@ant-design/icons-vue';
|
|
||||||
const productStore = useProductStore();
|
const productStore = useProductStore();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const saveRef = ref();
|
const saveRef = ref();
|
||||||
|
|
|
@ -370,7 +370,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useProductStore } from '@/store/product';
|
import { useProductStore } from '@/store/product';
|
||||||
import { ConfigMetadata } from '@/views/device/Product/typings';
|
import { ConfigMetadata } from '@/views/device/Product/typings';
|
||||||
import { Empty, FormItem, message } from 'ant-design-vue';
|
import { Empty, message } from 'jetlinks-ui-components';
|
||||||
import { getImage } from '@/utils/comm';
|
import { getImage } from '@/utils/comm';
|
||||||
import Title from '../Title/index.vue';
|
import Title from '../Title/index.vue';
|
||||||
import { usePermissionStore } from '@/store/permission';
|
import { usePermissionStore } from '@/store/permission';
|
||||||
|
@ -396,7 +396,7 @@ const productStore = useProductStore();
|
||||||
import Driver from 'driver.js';
|
import Driver from 'driver.js';
|
||||||
import 'driver.js/dist/driver.min.css';
|
import 'driver.js/dist/driver.min.css';
|
||||||
import { marked } from 'marked';
|
import { marked } from 'marked';
|
||||||
import type { FormInstance, TableColumnType } from 'ant-design-vue';
|
import type { TableColumnType } from 'ant-design-vue';
|
||||||
import { useMenuStore } from '@/store/menu';
|
import { useMenuStore } from '@/store/menu';
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
const menuStore = useMenuStore();
|
const menuStore = useMenuStore();
|
||||||
|
|
|
@ -112,7 +112,7 @@ import {
|
||||||
getDeviceNumber,
|
getDeviceNumber,
|
||||||
getProtocolDetail,
|
getProtocolDetail,
|
||||||
} from '@/api/device/product';
|
} from '@/api/device/product';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'jetlinks-ui-components';
|
||||||
import { getImage } from '@/utils/comm';
|
import { getImage } from '@/utils/comm';
|
||||||
import encodeQuery from '@/utils/encodeQuery';
|
import encodeQuery from '@/utils/encodeQuery';
|
||||||
import { useMenuStore } from '@/store/menu';
|
import { useMenuStore } from '@/store/menu';
|
||||||
|
|
|
@ -17,13 +17,22 @@
|
||||||
<div class="product-tips">
|
<div class="product-tips">
|
||||||
<div style="display: flex">
|
<div style="display: flex">
|
||||||
<div class="product-icon">
|
<div class="product-icon">
|
||||||
<check-circle-outlined class="icon-style" />
|
<AIcon
|
||||||
|
type="CheckCircleOutlined"
|
||||||
|
class="icon-style"
|
||||||
|
></AIcon>
|
||||||
</div>
|
</div>
|
||||||
<div class="product-title">产品创建成功</div>
|
<div class="product-title">产品创建成功</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="display: flex">
|
<div style="display: flex">
|
||||||
<div class="product-id">产品ID: {{ idValue }}</div>
|
<div class="product-id">产品ID: {{ idValue }}</div>
|
||||||
<div class="product-btn" @click="showDetail" style="cursor: pointer;">查看详情</div>
|
<div
|
||||||
|
class="product-btn"
|
||||||
|
@click="showDetail"
|
||||||
|
style="cursor: pointer"
|
||||||
|
>
|
||||||
|
查看详情
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>接下来推荐操作:</div>
|
<div>接下来推荐操作:</div>
|
||||||
<div class="product-main">1、配置产品接入方式</div>
|
<div class="product-main">1、配置产品接入方式</div>
|
||||||
|
@ -48,7 +57,6 @@
|
||||||
<script lang="ts" setup name="DialogTips">
|
<script lang="ts" setup name="DialogTips">
|
||||||
import { getImage } from '@/utils/comm.ts';
|
import { getImage } from '@/utils/comm.ts';
|
||||||
import { useProductStore } from '@/store/product';
|
import { useProductStore } from '@/store/product';
|
||||||
import { CheckCircleOutlined } from '@ant-design/icons-vue';
|
|
||||||
import { useMenuStore } from '@/store/menu';
|
import { useMenuStore } from '@/store/menu';
|
||||||
const visible = ref<boolean>(false);
|
const visible = ref<boolean>(false);
|
||||||
const productStore = useProductStore();
|
const productStore = useProductStore();
|
||||||
|
@ -72,12 +80,11 @@ const show = (id: string) => {
|
||||||
* 查看详情
|
* 查看详情
|
||||||
*/
|
*/
|
||||||
const showDetail = () => {
|
const showDetail = () => {
|
||||||
menuStore.jumpPage('device/Product/Detail',{id:idValue.value})
|
menuStore.jumpPage('device/Product/Detail', { id: idValue.value });
|
||||||
};
|
};
|
||||||
defineExpose({
|
defineExpose({
|
||||||
show: show,
|
show: show,
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.product-tips {
|
.product-tips {
|
||||||
|
|
|
@ -147,7 +147,7 @@
|
||||||
import { category } from '@/api/device/product';
|
import { category } from '@/api/device/product';
|
||||||
import { Form } from 'ant-design-vue';
|
import { Form } from 'ant-design-vue';
|
||||||
import { getImage } from '@/utils/comm.ts';
|
import { getImage } from '@/utils/comm.ts';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'jetlinks-ui-components';
|
||||||
import DialogTips from '../DialogTips/index.vue';
|
import DialogTips from '../DialogTips/index.vue';
|
||||||
import { useProductStore } from '@/store/product';
|
import { useProductStore } from '@/store/product';
|
||||||
import { filterTreeSelectNode, filterSelectNode } from '@/utils/comm';
|
import { filterTreeSelectNode, filterSelectNode } from '@/utils/comm';
|
||||||
|
|
|
@ -160,12 +160,7 @@
|
||||||
import server from '@/utils/request';
|
import server from '@/utils/request';
|
||||||
import type { ActionsType } from '@/components/Table/index.vue';
|
import type { ActionsType } from '@/components/Table/index.vue';
|
||||||
import { getImage } from '@/utils/comm';
|
import { getImage } from '@/utils/comm';
|
||||||
import {
|
import { message } from 'jetlinks-ui-components';
|
||||||
EditOutlined,
|
|
||||||
DeleteOutlined,
|
|
||||||
PlusOutlined,
|
|
||||||
} from '@ant-design/icons-vue';
|
|
||||||
import { message } from 'ant-design-vue';
|
|
||||||
import {
|
import {
|
||||||
getProviders,
|
getProviders,
|
||||||
category,
|
category,
|
||||||
|
|
|
@ -255,7 +255,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { modalState, formState, logoState } from '../data/interface';
|
import { modalState, formState, logoState } from '../data/interface';
|
||||||
import { getImage } from '@/utils/comm.ts';
|
import { getImage } from '@/utils/comm.ts';
|
||||||
import { Form } from 'ant-design-vue';
|
import { Form, message } from 'jetlinks-ui-components';
|
||||||
import { FILE_UPLOAD } from '@/api/comm';
|
import { FILE_UPLOAD } from '@/api/comm';
|
||||||
import {
|
import {
|
||||||
getSystemPermission,
|
getSystemPermission,
|
||||||
|
@ -274,8 +274,6 @@ import {
|
||||||
deployDevice,
|
deployDevice,
|
||||||
saveInit,
|
saveInit,
|
||||||
} from '@/api/initHome';
|
} from '@/api/initHome';
|
||||||
import { ValidateErrorEntity } from 'ant-design-vue/es/form/interface';
|
|
||||||
import { message } from 'ant-design-vue';
|
|
||||||
import { LocalStore } from '@/utils/comm';
|
import { LocalStore } from '@/utils/comm';
|
||||||
import { TOKEN_KEY } from '@/utils/variable';
|
import { TOKEN_KEY } from '@/utils/variable';
|
||||||
import { SystemConst } from '@/utils/consts'
|
import { SystemConst } from '@/utils/consts'
|
||||||
|
@ -362,7 +360,7 @@ const saveBasicInfo = () =>{
|
||||||
resolve(false);
|
resolve(false);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error: ValidateErrorEntity<formState>) => {
|
.catch(() => {
|
||||||
resolve(false);
|
resolve(false);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
|
@ -129,9 +129,8 @@ import {
|
||||||
deployDevice,
|
deployDevice,
|
||||||
} from '@/api/initHome';
|
} from '@/api/initHome';
|
||||||
import { modalState } from '../data/interface';
|
import { modalState } from '../data/interface';
|
||||||
import { ValidateErrorEntity } from 'ant-design-vue/es/form/interface';
|
|
||||||
import type { Rule } from 'ant-design-vue/es/form';
|
import type { Rule } from 'ant-design-vue/es/form';
|
||||||
import { message } from 'ant-design-vue/es';
|
import { message } from 'jetlinks-ui-components';
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
/**
|
/**
|
||||||
* 初始化数据状态
|
* 初始化数据状态
|
||||||
|
@ -315,7 +314,7 @@ const saveCurrentData = () => {
|
||||||
resolve(false);
|
resolve(false);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error: ValidateErrorEntity<modalState>) => {
|
.catch(() => {
|
||||||
resolve(false);
|
resolve(false);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -65,33 +65,16 @@ import Basic from './Basic/index.vue';
|
||||||
import Role from './Role/index.vue';
|
import Role from './Role/index.vue';
|
||||||
import Menu from './Menu/index.vue';
|
import Menu from './Menu/index.vue';
|
||||||
import InitData from './InitData/index.vue';
|
import InitData from './InitData/index.vue';
|
||||||
import {
|
|
||||||
PlusOutlined,
|
|
||||||
ExclamationCircleOutlined,
|
|
||||||
LoadingOutlined,
|
|
||||||
} from '@ant-design/icons-vue';
|
|
||||||
|
|
||||||
import type {
|
|
||||||
FormInstance,
|
|
||||||
UploadChangeParam,
|
|
||||||
UploadProps,
|
|
||||||
} from 'ant-design-vue';
|
|
||||||
import { modalState, formState, logoState } from './data/interface';
|
import { modalState, formState, logoState } from './data/interface';
|
||||||
import { saveInit } from '@/api/initHome';
|
import { saveInit } from '@/api/initHome';
|
||||||
import { BASE_API_PATH, TOKEN_KEY } from '@/utils/variable';
|
import { BASE_API_PATH, TOKEN_KEY } from '@/utils/variable';
|
||||||
import { FILE_UPLOAD } from '@/api/comm';
|
import { FILE_UPLOAD } from '@/api/comm';
|
||||||
import { LocalStore } from '@/utils/comm';
|
import { LocalStore } from '@/utils/comm';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'jetlinks-ui-components';
|
||||||
import { Form } from 'ant-design-vue';
|
|
||||||
const basicRef = ref();
|
const basicRef = ref();
|
||||||
const roleRef = ref();
|
const roleRef = ref();
|
||||||
const initDataRef = ref();
|
const initDataRef = ref();
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
// const useForm = Form.useForm;
|
|
||||||
// const { resetFields, validate, validateInfos } = useForm(
|
|
||||||
// modalForm.value,
|
|
||||||
// rulesModle.value,
|
|
||||||
// );
|
|
||||||
/**
|
/**
|
||||||
* 默认打开第一个初始菜单
|
* 默认打开第一个初始菜单
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -49,9 +49,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Form } from 'ant-design-vue';
|
|
||||||
import { saveOutputData } from '@/api/rule-engine/config';
|
import { saveOutputData } from '@/api/rule-engine/config';
|
||||||
import { message } from 'ant-design-vue/es';
|
import { Form, message } from 'jetlinks-ui-components';
|
||||||
const useForm = Form.useForm;
|
const useForm = Form.useForm;
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
const Myprops = defineProps({
|
const Myprops = defineProps({
|
||||||
|
|
|
@ -59,9 +59,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Form } from 'ant-design-vue';
|
|
||||||
import { saveOutputData } from '@/api/rule-engine/config';
|
import { saveOutputData } from '@/api/rule-engine/config';
|
||||||
import { message } from 'ant-design-vue/es';
|
import { Form, message } from 'jetlinks-ui-components';
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
const useForm = Form.useForm;
|
const useForm = Form.useForm;
|
||||||
const Myprops = defineProps({
|
const Myprops = defineProps({
|
||||||
|
|
|
@ -186,11 +186,6 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import InputSave from './Save/input.vue';
|
import InputSave from './Save/input.vue';
|
||||||
import OutputSave from './save/output.vue';
|
import OutputSave from './save/output.vue';
|
||||||
import {
|
|
||||||
EditOutlined,
|
|
||||||
DeleteOutlined,
|
|
||||||
PlusOutlined,
|
|
||||||
} from '@ant-design/icons-vue';
|
|
||||||
import { getDataExchange } from '@/api/rule-engine/config';
|
import { getDataExchange } from '@/api/rule-engine/config';
|
||||||
import { getImage } from '@/utils/comm';
|
import { getImage } from '@/utils/comm';
|
||||||
import { marked } from 'marked';
|
import { marked } from 'marked';
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
import { getImage } from '@/utils/comm';
|
import { getImage } from '@/utils/comm';
|
||||||
import { queryLevel, saveLevel } from '@/api/rule-engine/config';
|
import { queryLevel, saveLevel } from '@/api/rule-engine/config';
|
||||||
import { LevelItem } from './typing';
|
import { LevelItem } from './typing';
|
||||||
import { message } from 'ant-design-vue/es';
|
import { message } from 'jetlinks-ui-components';
|
||||||
import Io from './Io/index.vue'
|
import Io from './Io/index.vue'
|
||||||
const list = ref([
|
const list = ref([
|
||||||
{
|
{
|
||||||
|
|
|
@ -56,7 +56,7 @@ import { getTargetTypes, save, detail } from '@/api/rule-engine/configuration';
|
||||||
import { queryLevel } from '@/api/rule-engine/config';
|
import { queryLevel } from '@/api/rule-engine/config';
|
||||||
import { query } from '@/api/rule-engine/scene';
|
import { query } from '@/api/rule-engine/scene';
|
||||||
import { getImage } from '@/utils/comm';
|
import { getImage } from '@/utils/comm';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'jetlinks-ui-components';
|
||||||
import { useMenuStore } from '@/store/menu';
|
import { useMenuStore } from '@/store/menu';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import { useAlarmConfigurationStore } from '@/store/alarm';
|
import { useAlarmConfigurationStore } from '@/store/alarm';
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
import { query } from '@/api/rule-engine/scene';
|
import { query } from '@/api/rule-engine/scene';
|
||||||
import { bindScene } from '@/api/rule-engine/configuration';
|
import { bindScene } from '@/api/rule-engine/configuration';
|
||||||
import { getImage } from '@/utils/comm';
|
import { getImage } from '@/utils/comm';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'jetlinks-ui-components';
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: '名称',
|
title: '名称',
|
||||||
|
|
|
@ -97,7 +97,7 @@ import { unbindScene } from '@/api/rule-engine/configuration';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import type { ActionsType } from '@/components/Table';
|
import type { ActionsType } from '@/components/Table';
|
||||||
import { getImage } from '@/utils/comm';
|
import { getImage } from '@/utils/comm';
|
||||||
import { message } from 'ant-design-vue/es';
|
import { message } from 'jetlinks-ui-components';
|
||||||
import Save from './save/index.vue';
|
import Save from './save/index.vue';
|
||||||
import { useAlarmConfigurationStore } from '@/store/alarm';
|
import { useAlarmConfigurationStore } from '@/store/alarm';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
|
|
|
@ -179,7 +179,7 @@ import {
|
||||||
import { queryLevel } from '@/api/rule-engine/config';
|
import { queryLevel } from '@/api/rule-engine/config';
|
||||||
import { Store } from 'jetlinks-store';
|
import { Store } from 'jetlinks-store';
|
||||||
import type { ActionsType } from '@/components/Table/index.vue';
|
import type { ActionsType } from '@/components/Table/index.vue';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'jetlinks-ui-components';
|
||||||
import { getImage } from '@/utils/comm';
|
import { getImage } from '@/utils/comm';
|
||||||
import { useMenuStore } from '@/store/menu';
|
import { useMenuStore } from '@/store/menu';
|
||||||
import encodeQuery from '@/utils/encodeQuery';
|
import encodeQuery from '@/utils/encodeQuery';
|
||||||
|
|
|
@ -49,7 +49,7 @@ import { detail, queryHistoryList } from '@/api/rule-engine/log';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import type { ActionsType } from '@/components/Table/index.vue';
|
import type { ActionsType } from '@/components/Table/index.vue';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'jetlinks-ui-components';
|
||||||
import { useAlarmStore } from '@/store/alarm';
|
import { useAlarmStore } from '@/store/alarm';
|
||||||
import Info from './info.vue';
|
import Info from './info.vue';
|
||||||
import { storeToRefs } from 'pinia';
|
import { storeToRefs } from 'pinia';
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { Empty } from 'ant-design-vue';
|
import { Empty } from 'jetlinks-ui-components';
|
||||||
import { getImage } from '@/utils/comm';
|
import { getImage } from '@/utils/comm';
|
||||||
import { useMenuStore } from '@/store/menu';
|
import { useMenuStore } from '@/store/menu';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { saveRule, modify } from '@/api/rule-engine/instance';
|
import { saveRule, modify } from '@/api/rule-engine/instance';
|
||||||
import { getImage } from '@/utils/comm';
|
import { getImage } from '@/utils/comm';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'jetlinks-ui-components';
|
||||||
|
|
||||||
const emit = defineEmits(['success', 'closeSave']);
|
const emit = defineEmits(['success', 'closeSave']);
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
|
@ -148,7 +148,7 @@ import {
|
||||||
} from '@/api/rule-engine/instance';
|
} from '@/api/rule-engine/instance';
|
||||||
import type { ActionsType } from '@/components/Table/index.vue';
|
import type { ActionsType } from '@/components/Table/index.vue';
|
||||||
import { getImage } from '@/utils/comm';
|
import { getImage } from '@/utils/comm';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'jetlinks-ui-components';
|
||||||
import Save from './Save/index.vue';
|
import Save from './Save/index.vue';
|
||||||
import { SystemConst } from '@/utils/consts';
|
import { SystemConst } from '@/utils/consts';
|
||||||
const params = ref<Record<string, any>>({});
|
const params = ref<Record<string, any>>({});
|
||||||
|
|
Loading…
Reference in New Issue