|
@@ -15,15 +15,17 @@
|
|
|
:time-picker-props="{ format: 'HH:mm' }" @update:formatted-value="setTimeFuns" @focus="focusFun(1)" @blur="blurFun" type="datetimerange" clearable />
|
|
|
<n-button type="primary" @click="renderFun(1)" style="margin-left: 10px;">渲染</n-button>
|
|
|
</div>
|
|
|
- <div>
|
|
|
+ <div style="display: flex;align-items: center;justify-content: space-between;">
|
|
|
<n-checkbox v-model:checked="checked" @update:checked="handleSelectAll" style="flex-shrink: 0;">
|
|
|
全选
|
|
|
</n-checkbox>
|
|
|
+ <div @click="alldeleteFun" style="text-decoration: underline;color: #2d8cf0;cursor: pointer;">批量删除</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
- <n-scrollbar :style="{ maxHeight: `${height - 310}px` }" trigger="none">
|
|
|
+ <!-- <n-scrollbar :style="{ maxHeight: `${height - 310}px` }" trigger="none"> -->
|
|
|
+ <div :style="{ height: (height - 400)+'px'}" style="overflow-y: auto">
|
|
|
<n-checkbox-group v-model:value="checkValues" @update:value="handleCheckValues">
|
|
|
<template v-for="item of classList" :key="item.T_id">
|
|
|
<n-list-item class="mr-5">
|
|
@@ -44,7 +46,8 @@
|
|
|
</n-list-item>
|
|
|
</template>
|
|
|
</n-checkbox-group>
|
|
|
- </n-scrollbar>
|
|
|
+ </div>
|
|
|
+ <!-- </n-scrollbar> -->
|
|
|
<template #footer>
|
|
|
<n-gradient-text type="info">
|
|
|
传感器总数:{{ classList.length }}
|
|
@@ -56,6 +59,9 @@
|
|
|
<FormList :task="task" ref="formRef" :class-list="classList" :time="time"
|
|
|
:temporal-interval="temporalInterval" />
|
|
|
</n-tab-pane>
|
|
|
+ <n-tab-pane name="3" tab="存档">
|
|
|
+ 存档
|
|
|
+ </n-tab-pane>
|
|
|
</n-tabs>
|
|
|
</n-card>
|
|
|
<n-card style="flex: 1;">
|
|
@@ -72,6 +78,9 @@
|
|
|
<ImportPlatform :task=" task " />
|
|
|
<AddVue :class-list=" classList" @addFuns="addFuns" :task=" task " />
|
|
|
<SetVue />
|
|
|
+
|
|
|
+ <ratioZoom @ratioZoomFun="renderFun(1)" :queryObj=" queryData " :pickleveTime=" pickTimes.pickleveTime " :checkData=" checkValues "></ratioZoom>
|
|
|
+
|
|
|
<editCopy :queryObj=" queryData " :pickleveTime=" pickTimes.pickleveTime " :checkData=" checkValues " :classList=" classList " />
|
|
|
<AverageCopy :queryObj=" queryData " :pickleveTime=" pickTimes.pickleveTime " :checkData=" checkValues " :classList=" classList "></AverageCopy>
|
|
|
<editLeak :queryObj=" queryData " :pickleveTime=" pickTimes.pickleveTime " :checkData=" checkValues " />
|
|
@@ -79,6 +88,9 @@
|
|
|
|
|
|
<editMath :queryObj=" queryData " :pickleveTime=" pickTimes.pickleveTime " :checkData=" checkValues " />
|
|
|
<editFixation :queryObj=" queryData " :pickleveTime=" pickTimes.pickleveTime " :checkData=" checkValues " />
|
|
|
+ <skewSection :queryObj=" queryData " :pickleveTime=" pickTimes.pickleveTime " :checkData=" checkValues " />
|
|
|
+
|
|
|
+
|
|
|
<editSmooth :queryObj=" queryData " :pickleveTime=" pickTimes.pickleveTime " :checkData=" checkValues " />
|
|
|
<BesselCurve :queryObj=" queryData " :pickleveTime=" pickTimes.pickleveTime " :checkData=" checkValues " ></BesselCurve>
|
|
|
</n-space>
|
|
@@ -122,7 +134,7 @@
|
|
|
<n-modal v-model:show=" showModal " preset="dialog" positive-text="确认" negative-text="取消" :show-icon=" false "
|
|
|
@positive-click=" handleEdit ">
|
|
|
<n-form :model=" formDatas " label-width="auto" show-require-mark>
|
|
|
- <n-form-item label="ID" path="T_id">
|
|
|
+ <n-form-item label="编号" path="T_id">
|
|
|
<n-input v-model:value=" formDatas.T_id " />
|
|
|
</n-form-item>
|
|
|
<n-form-item label="SN" path="T_sn">
|
|
@@ -143,7 +155,8 @@ import {
|
|
|
editTaskData,
|
|
|
getTaskDataClassList,
|
|
|
getTaskDataList,
|
|
|
- editTaskDataClass
|
|
|
+ editTaskDataClass,
|
|
|
+ deleteTaskDataClass
|
|
|
} from '@/api';
|
|
|
import AddVue from './AddVue.vue';
|
|
|
import ImportVue from './ImportVue.vue';
|
|
@@ -151,6 +164,7 @@ import ImportPlatform from './ImportPlatform.vue';
|
|
|
import SetVue from './SetVue.vue';
|
|
|
import ExportVue from './ExportVue.vue';
|
|
|
import FormList from './FormList.vue';
|
|
|
+import ratioZoom from './ratioZoom.vue';
|
|
|
|
|
|
//数据编辑移动的功能
|
|
|
import editCopy from './editCopy.vue';
|
|
@@ -161,6 +175,9 @@ import editLeak from './editLeak.vue';
|
|
|
import editTendency from './editTendency.vue';
|
|
|
import editMath from './editMath.vue';
|
|
|
import editFixation from './editFixation.vue';
|
|
|
+import skewSection from './skewSection.vue';
|
|
|
+
|
|
|
+
|
|
|
import editSmooth from './editSmooth.vue';
|
|
|
import BesselCurve from './BesselCurve.vue';
|
|
|
|
|
@@ -171,12 +188,11 @@ import { useNow, useDateFormat } from '@vueuse/core';
|
|
|
import DeleteClass from './DeleteTaskClass.vue';
|
|
|
import { dateFormat } from 'highcharts';
|
|
|
import { TimeDate } from '@/plugin/timeFun';
|
|
|
-import { useMessage } from "naive-ui";
|
|
|
+import { useMessage,useDialog} from "naive-ui";
|
|
|
import { reactive, ref, watch } from 'vue';
|
|
|
import { useStore } from "vuex"
|
|
|
const store = useStore()
|
|
|
|
|
|
-
|
|
|
const formatted = useDateFormat(useNow(), 'YYYY-MM-DD HH:mm:ss');
|
|
|
|
|
|
const notification = useNotification();
|
|
@@ -201,6 +217,7 @@ const setTimeFuns = (e) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
const addFuns = (e)=>{
|
|
|
console.log('父亲',e)
|
|
|
getClassList();
|
|
@@ -226,8 +243,51 @@ const modal = reactive({
|
|
|
// 列表
|
|
|
|
|
|
|
|
|
+const dialogs = useDialog();
|
|
|
+const alldeleteFun = ()=>{
|
|
|
+ console.log('checkValues.value',checkValues.value)
|
|
|
|
|
|
-
|
|
|
+ // return
|
|
|
+ if(!checkValues.value){
|
|
|
+ message.error('请选择至少一项在进行批量操作')
|
|
|
+ return
|
|
|
+ }else{
|
|
|
+ if (checkValues.value.length) {
|
|
|
+ dialogs.warning({
|
|
|
+ title: '提示',
|
|
|
+ content: `批量删除操作,是否继续?`,
|
|
|
+ positiveText: '确认',
|
|
|
+ negativeText: '取消',
|
|
|
+ onPositiveClick: () => {
|
|
|
+ alldeleteApi()
|
|
|
+ },
|
|
|
+ onNegativeClick: () => {
|
|
|
+ message.warning('已取消批量删除')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ message.error('请选择至少一项在进行批量操作')
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+const alldeleteApi = async()=>{
|
|
|
+ var num = 0
|
|
|
+ for (const key of checkValues.value) {
|
|
|
+ const { data: res } = await deleteTaskDataClass({
|
|
|
+ T_task_id: queryData.T_task_id,
|
|
|
+ T_sn:key.T_sn,
|
|
|
+ });
|
|
|
+ num +=1
|
|
|
+ if(num==checkValues.value.length){
|
|
|
+ getClassList();
|
|
|
+ message.success('批量删除完成')
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
|
|
|
const dataList = ref([]);
|
|
|
|