- 值类型选择:
-
-
-
+
+ 值类型选择:
+
+
+
+
+
-
+
返回
-
-
+
+
+
-
-
+
+
+
@@ -133,6 +101,7 @@ const rankOptions = ref([
const tableStore = new TableStore({
url: '/cs-harmonic-boot/eventUser/queryEventpage',
method: 'POST',
+ publicHeight: 65,
column: [
{ title: '工程名称', field: 'engineeringName', align: 'center' },
{ title: '项目名称', field: 'projectName', align: 'center' },
@@ -174,6 +143,18 @@ const tableStore = new TableStore({
row.loading = false
})
}
+ },
+ {
+ name: 'edit',
+ text: '暂无波形',
+ type: 'info',
+ icon: 'el-icon-DataLine',
+ render: 'basicButton',
+ disabled: row => {
+ return !(!row.wavePath && row.evtParamTm < 20)
+ },
+
+
}
]
}
@@ -198,6 +179,8 @@ tableStore.table.params.eventIds = []
tableStore.table.params.status = ''
tableStore.table.params.target = []
tableStore.table.params.userId = ''
+tableStore.table.params.cascader = ''
+tableStore.table.params.level=''
const sourceChange = (e: any) => {
tableStore.table.params.engineeringid = e[0] || ''
@@ -244,6 +227,6 @@ setTimeout(() => {
tableStore.table.height = mainHeight(200).height as any
}, 0)
-const addMenu = () => {}
+const addMenu = () => { }
diff --git a/src/views/govern/analyze/APF/index.vue b/src/views/govern/analyze/APF/index.vue
index 9d903ed..155a613 100644
--- a/src/views/govern/analyze/APF/index.vue
+++ b/src/views/govern/analyze/APF/index.vue
@@ -5,22 +5,14 @@
-
+
-
+
@@ -248,8 +240,10 @@ const search = () => {
{
name: '畸变率:(%)',
type: 'value',
- max: 10,
+ // max: 10,
min: 0,
+ minInterval: 1,
+ // interval: 1,
axisLine: {
show: true,
//symbol: ["none", "arrow"],
@@ -262,15 +256,20 @@ const search = () => {
name: '电流:(A)',
type: 'value',
min: 0,
+ minInterval: 1, //分割刻度
// 寻找data最大值
+ // interval: 1,
max:
series[0].data.reduce((a, b) => Math.max(a, b)) > devCapacity.value
? series[0].data.reduce((a, b) => Math.max(a, b))
: devCapacity.value + devCapacity.value * 0.5,
- interval:
- (series[0].data.reduce((a, b) => Math.max(a, b)) > devCapacity.value
- ? series[0].data.reduce((a, b) => Math.max(a, b))
- : devCapacity.value) / 10,
+ // interval:
+ // (series[0].data.reduce((a, b) => Math.max(a, b)) > devCapacity.value
+ // ? series[0].data.reduce((a, b) => Math.max(a, b)).toFixed(0)
+ // : (devCapacity.value) / 10).toFixed(0),
+ splitLine: {
+ show: false,
+ },
axisLine: {
show: true,
//symbol: ["none", "arrow"],
@@ -287,8 +286,11 @@ const search = () => {
} else {
echartsData.value = null
}
- loading.value = false
+
})
+ setTimeout(() => {
+ loading.value = false
+ }, 0)
}
diff --git a/src/views/govern/analyze/DVR/index.vue b/src/views/govern/analyze/DVR/index.vue
index 1931207..376fb3f 100644
--- a/src/views/govern/analyze/DVR/index.vue
+++ b/src/views/govern/analyze/DVR/index.vue
@@ -10,56 +10,32 @@
- 值类型选择:
-
-
-
+
+ 值类型选择:
+
+
+
+
-
+
返回
-
-
+
+
+
-
-
+
+
+
@@ -139,6 +115,18 @@ const tableStore = new TableStore({
row.loading = false
})
}
+ },
+ {
+ name: 'edit',
+ text: '暂无波形',
+ type: 'info',
+ icon: 'el-icon-DataLine',
+ render: 'basicButton',
+ disabled: row => {
+ return !(!row.wavePath && row.evtParamTm < 20)
+ },
+
+
}
]
}
diff --git a/src/views/govern/device/fileService/CustomInput.vue b/src/views/govern/device/fileService/CustomInput.vue
new file mode 100644
index 0000000..3dcc0d9
--- /dev/null
+++ b/src/views/govern/device/fileService/CustomInput.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/govern/device/fileService/index.vue b/src/views/govern/device/fileService/index.vue
index 1a79c5b..4e4036c 100644
--- a/src/views/govern/device/fileService/index.vue
+++ b/src/views/govern/device/fileService/index.vue
@@ -7,13 +7,11 @@
-
+
搜索
重置
-
+
文件上传
-
+
+
+
@@ -62,17 +51,16 @@
-
-
+
+
+
+
-
+
+
+
+ -->

-

+
暂无数据
{{
item &&
- item?.prjDataPath &&
- item?.prjDataPath.includes(activePath) &&
- item?.prjDataPath.length > activePath.length
+ item?.prjDataPath &&
+ item?.prjDataPath.includes(activePath) &&
+ item?.prjDataPath.length > activePath.length
? item?.prjDataPath.replace(activePath, ' ').replace('/', ' ')
: item?.prjDataPath.replace('/', ' ')
}}
@@ -113,20 +97,11 @@
-
-
-
-
+
+
+
+
@@ -184,7 +159,9 @@ const activePath = ref('')
//判断是否是根目录
const isRoot = ref(true)
//储存所有点击过的目录
-const activePathList: any = ref([])
+const activePathList: any = ref([
+
+])
const nodeClick = (e: any) => {
if (e.level == 2) {
loading.value = true
@@ -235,14 +212,11 @@ const deviceRestartLoading = ref(false)
const handleRestartDevice = () => {
deviceRestartLoading.value = true
ElMessageBox.prompt('二次校验密码确认', '装置重启', {
- // confirmButtonText: '确认',
- // cancelButtonText: '取消',
- // customClass: 'customInput',
- // inputType: 'text'
-
confirmButtonText: '确认',
cancelButtonText: '取消',
+ customClass: 'custom-message-box',
inputType: 'text'
+
})
.then(({ value }) => {
if (!value) {
@@ -297,14 +271,20 @@ const handleIntoDir = (row: any) => {
activePathList.value.splice(index, 1)
}
})
+ isRoot.value = false
+ }).catch(e => {
+ loading.value = false
})
- isRoot.value = false
+
}
//处理导航栏路径
const outPutPath = (row: any, key: any) => {
let path = ''
- if (key <= 1) {
+ if (key == 0) {
+ path = '/根目录'
+ }
+ if (key == 1) {
path = row.path
}
if (key > 1) {
@@ -313,9 +293,10 @@ const outPutPath = (row: any, key: any) => {
}
if (row.path.split('/').length !== 0) {
path = '/' + row.path.split('/')[row.path.split('/').length - 1]
+
}
}
- return path
+ return path.split('/')[1]
}
//根据面包屑导航切换
@@ -335,8 +316,10 @@ const handleIntoByPath = async (val: any) => {
}
})
loading.value = false
+ }).catch(e => {
+ loading.value = false
})
- isRoot.value = false
+
}
const form = ref({
path: ''
@@ -354,6 +337,7 @@ const handleAddNewDir = () => {
const formRef = ref()
//重新加载当前页面菜单
const reloadCurrentMenu = (msg: string) => {
+ loading.value = true
getFileServiceFileOrDir({ nDid: nDid.value, name: activePath.value, type: 'dir' }).then((resp: any) => {
if (resp.code == 'A0000') {
loading.value = false
@@ -364,10 +348,18 @@ const reloadCurrentMenu = (msg: string) => {
activePathList.value.splice(index, 1)
}
})
+ loading.value = false
if (!msg) return
ElMessage({ message: msg, type: 'success', duration: 5000 })
+
+
}
+ }).catch(e => {
+ loading.value = false
})
+ // setTimeout(() => {
+ // loading.value = false
+ // },0)
}
//新建文件夹
const submitDeviceDir = () => {
@@ -393,7 +385,7 @@ const submitDeviceDir = () => {
}
//删除文件夹或文件
const handleDelDirOrFile = (row: any) => {
- loading.value = true
+
// delDeviceDir({ nDid: nDid.value, path: row.prjDataPath }).then((res: any) => {
// if (res.code == 'A0000') {
// reloadCurrentMenu(res.message)
@@ -410,15 +402,17 @@ const handleDelDirOrFile = (row: any) => {
.then(({ value }) => {
if (!value) {
ElMessage.warning('请输入密码')
- loading.value = false
+
} else {
+ loading.value = true
passwordConfirm(value)
.then((resp: any) => {
if (resp.code == 'A0000') {
delDeviceDir({ nDid: nDid.value, path: row.prjDataPath }).then((res: any) => {
if (res.code == 'A0000') {
+
reloadCurrentMenu(res.message)
- loading.value = false
+
// ElMessage({ message: res.message, type: 'success', duration: 5000 })
}
})
@@ -429,15 +423,13 @@ const handleDelDirOrFile = (row: any) => {
})
}
})
- .catch(() => {
- loading.value = false
- })
+
}
const changeType = ref('')
//下载文件
const fileRef = ref()
const handleDownLoad = async (row: any) => {
- ;(await nDid.value) && fileRef.value && fileRef.value.open(row, nDid.value)
+ ; (await nDid.value) && fileRef.value && fileRef.value.open(row, nDid.value)
fileName.value = row?.prjDataPath.split('/')[row?.prjDataPath.split('/').length - 1]
localStorage.setItem('fileName', fileName.value)
changeType.value = 'download'
@@ -546,24 +538,29 @@ onBeforeUnmount(() => {
.main {
display: flex;
justify-content: space-between;
+
.main_left {
// width: 280px;
}
+
.main_right {
overflow: hidden;
flex: 1;
padding: 10px 10px 10px 10px;
//margin-left: 10px;
border: 1px solid #eee;
+
.el-input__wrapper {
-webkit-text-security: disc !important;
}
+
.right_nav {
width: 100%;
height: 32px;
display: flex;
justify-content: space-between;
align-items: center;
+
.menu {
width: 100%;
height: 100%;
@@ -573,6 +570,7 @@ onBeforeUnmount(() => {
align-items: center;
background-color: var(--el-color-primary);
border-radius: 4px;
+
span {
font-size: 14px;
font-weight: 800;
@@ -581,6 +579,7 @@ onBeforeUnmount(() => {
cursor: pointer;
}
}
+
.el-button {
margin: 0 10px;
}
@@ -592,9 +591,11 @@ onBeforeUnmount(() => {
display: flex;
margin-top: 10px;
justify-content: flex-start;
+
.el-button {
margin-left: 10px;
}
+
.upload_progress {
flex: 1;
height: 30px;
@@ -602,12 +603,14 @@ onBeforeUnmount(() => {
align-items: center;
justify-content: flex-start;
margin-left: 10px;
+
.el-progress {
width: 300px;
margin-left: 10px;
}
}
}
+
.list {
display: flex;
flex-wrap: wrap;
@@ -619,6 +622,7 @@ onBeforeUnmount(() => {
padding-bottom: 200px;
z-index: 100;
position: relative;
+
.list_upload {
position: absolute;
width: 100px;
@@ -626,6 +630,7 @@ onBeforeUnmount(() => {
right: 20px;
top: 10px;
}
+
.list_item {
flex: none;
width: 23.3%;
@@ -640,6 +645,7 @@ onBeforeUnmount(() => {
cursor: pointer;
position: relative;
z-index: 1001 !important;
+
.item_download,
.item_upload {
position: absolute;
@@ -647,19 +653,23 @@ onBeforeUnmount(() => {
right: 10px;
z-index: 2001;
}
+
.img_file {
width: 60px;
height: 60px;
}
+
img {
width: 50px;
height: 50px;
cursor: pointer !important;
}
+
p {
margin-top: 10px;
}
}
+
.list_item:nth-child(4n + 2),
.list_item:nth-child(4n + 3) {
margin: 10px 0.8%;
@@ -667,10 +677,13 @@ onBeforeUnmount(() => {
}
}
}
+
.el-form {
padding: 20px 10px;
box-sizing: border-box;
}
-.customInput {
+
+:deep(.el-breadcrumb__separator) {
+ margin: 0px -10px 0px 0px;
}
diff --git a/src/views/govern/device/planData/components/schemeTree.vue b/src/views/govern/device/planData/components/schemeTree.vue
index 2325f79..4a386be 100644
--- a/src/views/govern/device/planData/components/schemeTree.vue
+++ b/src/views/govern/device/planData/components/schemeTree.vue
@@ -58,17 +58,17 @@
diff --git a/src/views/govern/device/planData/index.vue b/src/views/govern/device/planData/index.vue
index 54e7c6e..c69fb95 100644
--- a/src/views/govern/device/planData/index.vue
+++ b/src/views/govern/device/planData/index.vue
@@ -19,7 +19,8 @@
-
+
+
{
- for (let key in tableStore.table.params) {
- if (tableStore.table.params[key] === '') {
- delete tableStore.table.params[key]
- }
- }
+ // for (let key in tableStore.table.params) {
+ // if (tableStore.table.params[key] === '') {
+ // delete tableStore.table.params[key]
+ // }
+ // }
}
})
tableStore.table.params.orderBy = 'desc'
+tableStore.table.params.devType=''
+tableStore.table.params.devModel=''
+tableStore.table.params.devAccessMethod=''
+tableStore.table.params.status=''
// 设备类型
const devTypeChange = (e: any) => {