+
- {{ op.name }}
-
+ {{ op.name }}
+
@@ -66,7 +67,7 @@
-
+
@@ -75,602 +76,755 @@
diff --git a/src/views/extend/processEquValueBom/statusBtn.vue b/src/views/extend/processEquValueBom/statusBtn.vue
index d1b45563..4d6548fa 100644
--- a/src/views/extend/processEquValueBom/statusBtn.vue
+++ b/src/views/extend/processEquValueBom/statusBtn.vue
@@ -1,7 +1,7 @@
@@ -25,24 +25,24 @@ export default {
},
data() {
return {
- // state: false
- }
- },
- computed: {
- state() {
- return this.injectData.enabled === 1 ? true : false
+ state: false
}
},
+ // computed: {
+ // state() {
+ // return this.injectData.enabled === 1 ? true : false
+ // }
+ // },
mounted() {
- // this.mapToState()
+ this.mapToState()
},
methods: {
- // mapToState() {
- // if (this.injectData.prop === 'enabled') {
- // this.state = this.injectData.enabled === 1 ? true : false
- // }
- // },
+ mapToState() {
+ if (this.injectData.prop === 'enabled') {
+ this.state = this.injectData.enabled === 1 ? true : false
+ }
+ },
changeHandler() {
// let params = {}
let payload = {}
diff --git a/src/views/infra/apiAccessLog/index.vue b/src/views/infra/apiAccessLog/index.vue
new file mode 100644
index 00000000..345adf63
--- /dev/null
+++ b/src/views/infra/apiAccessLog/index.vue
@@ -0,0 +1,210 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+
+
+
+
+
+ {{ parseTime(scope.row.beginTime) }}
+
+
+
+
+ {{ scope.row.duration }} ms
+
+
+
+
+ {{ scope.row.resultCode === 0 ? '成功' : '失败(' + scope.row.resultMsg + ')' }}
+
+
+
+
+ 详细
+
+
+
+
+
+
+
+
+
+
+
+ {{ form.id }}
+ {{ form.traceId }}
+ {{ form.applicationName }}
+
+ {{ form.userId }} | {{ form.userIp }} | {{ form.userAgent}}
+
+ {{ form.requestMethod }} | {{ form.requestUrl }}
+ {{ form.requestParams }}
+
+ {{ parseTime(form.beginTime) }} ~ {{ parseTime(form.endTime) }} | {{ form.duration }} ms
+
+
+ 正常
+ 失败 | {{ form.resultCode }} || {{ form.resultMsg}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/apiErrorLog/index.vue b/src/views/infra/apiErrorLog/index.vue
new file mode 100644
index 00000000..f076bc72
--- /dev/null
+++ b/src/views/infra/apiErrorLog/index.vue
@@ -0,0 +1,228 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+
+
+
+
+
+ {{ parseTime(scope.row.exceptionTime) }}
+
+
+
+
+
+
+
+
+
+
+ 详细
+ 已处理
+ 已忽略
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ form.id }}
+ {{ form.traceId }}
+ {{ form.applicationName }}
+
+ {{ form.userId }} | {{ form.userIp }} | {{ form.userAgent}}
+
+ {{ form.requestMethod }} | {{ form.requestUrl }}
+ {{ form.requestParams }}
+ {{ parseTime(form.exceptionTime) }}
+ {{ form.exceptionName }}
+
+
+
+
+
+
+ {{ form.processUserId }}
+ {{ parseTime(form.processTime) }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/build/App.vue b/src/views/infra/build/App.vue
new file mode 100644
index 00000000..b25f0b56
--- /dev/null
+++ b/src/views/infra/build/App.vue
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
diff --git a/src/views/infra/build/CodeTypeDialog.vue b/src/views/infra/build/CodeTypeDialog.vue
new file mode 100644
index 00000000..6f0c0d19
--- /dev/null
+++ b/src/views/infra/build/CodeTypeDialog.vue
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+
+
+ 确定
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/build/DraggableItem.vue b/src/views/infra/build/DraggableItem.vue
new file mode 100644
index 00000000..4cccea6b
--- /dev/null
+++ b/src/views/infra/build/DraggableItem.vue
@@ -0,0 +1,120 @@
+
diff --git a/src/views/infra/build/FormDrawer.vue b/src/views/infra/build/FormDrawer.vue
new file mode 100644
index 00000000..8c3c3059
--- /dev/null
+++ b/src/views/infra/build/FormDrawer.vue
@@ -0,0 +1,331 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ template
+
+
+
+
+
+
+ script
+
+
+
+
+
+
+ css
+
+
+
+
+
+
+
+
+
+
+
+ 刷新
+
+
+
+ 导出vue文件
+
+
+
+ 复制代码
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/build/IconsDialog.vue b/src/views/infra/build/IconsDialog.vue
new file mode 100644
index 00000000..ae4b2e80
--- /dev/null
+++ b/src/views/infra/build/IconsDialog.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
diff --git a/src/views/infra/build/JsonDrawer.vue b/src/views/infra/build/JsonDrawer.vue
new file mode 100644
index 00000000..07dfbf9c
--- /dev/null
+++ b/src/views/infra/build/JsonDrawer.vue
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+ 刷新
+
+
+
+ 复制JSON
+
+
+
+ 导出JSON文件
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/build/README.md b/src/views/infra/build/README.md
new file mode 100644
index 00000000..e69de29b
diff --git a/src/views/infra/build/ResourceDialog.vue b/src/views/infra/build/ResourceDialog.vue
new file mode 100644
index 00000000..58b728ab
--- /dev/null
+++ b/src/views/infra/build/ResourceDialog.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+ jQuery1.8.3
+
+
+ http-vue-loader
+
+
+ 添加其他
+
+
+
+
+ 取消
+
+
+ 确定
+
+
+
+
+
+
+
diff --git a/src/views/infra/build/RightPanel.vue b/src/views/infra/build/RightPanel.vue
new file mode 100644
index 00000000..ca5dc0f5
--- /dev/null
+++ b/src/views/infra/build/RightPanel.vue
@@ -0,0 +1,1050 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.__config__.label }}
+
+
+
+
+
+
+
+
+ {{ activeData.__config__.componentName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择
+
+
+
+
+
+
+ 选择
+
+
+
+
+
+
+ 选择
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 默认
+
+
+ 右侧
+
+
+
+
+
+
+ 个字符
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text
+
+
+ picture
+
+
+ picture-card
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选项
+
+
+
+
+
+ 添加选项
+
+
+
+
+
+
+ 选项
+
+
+
+ 动态数据
+
+
+ 静态数据
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 添加父级
+
+
+
+
+
+
+
+
+ 默认
+
+
+ 按钮
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 中等
+
+
+ 较小
+
+
+ 迷你
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 布局结构树
+
+
+
+
+ {{ node.label }}
+
+
+
+
+
+
+ 正则校验
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 添加规则
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 中等
+
+
+ 较小
+
+
+ 迷你
+
+
+
+
+
+
+ 左对齐
+
+
+ 右对齐
+
+
+ 顶部对齐
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/build/TreeNodeDialog.vue b/src/views/infra/build/TreeNodeDialog.vue
new file mode 100644
index 00000000..62d8c88f
--- /dev/null
+++ b/src/views/infra/build/TreeNodeDialog.vue
@@ -0,0 +1,158 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确定
+
+
+ 取消
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/build/index.vue b/src/views/infra/build/index.vue
new file mode 100644
index 00000000..83f68240
--- /dev/null
+++ b/src/views/infra/build/index.vue
@@ -0,0 +1,470 @@
+
+
+
+
+
+
Form Generator
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+ {{ element.__config__.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看json
+
+
+ 导出vue文件
+
+
+ 复制代码
+
+
+ 清空
+
+
+
+
+
+
+
+
+
+ 从左侧拖入或点选组件进行表单设计
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/build/main.js b/src/views/infra/build/main.js
new file mode 100644
index 00000000..9ced7172
--- /dev/null
+++ b/src/views/infra/build/main.js
@@ -0,0 +1,19 @@
+import Vue from 'vue'
+import App from './App.vue'
+import router from '@/router'
+import '@/styles/index.scss'
+import '@/assets/icons'
+import axios from 'axios'
+import Tinymce from '@/components/tinymce/index.vue'
+
+Vue.component('tinymce', Tinymce)
+
+Vue.config.productionTip = false
+Vue.prototype.$axios = axios
+
+// add by 芋道源码:引用自 https://github.com/JakHuang/form-generator/tree/dev/src/views/index
+
+new Vue({
+ router,
+ render: h => h(App)
+}).$mount('#app')
diff --git a/src/views/infra/codegen/basicInfoForm.vue b/src/views/infra/codegen/basicInfoForm.vue
new file mode 100644
index 00000000..d2b37444
--- /dev/null
+++ b/src/views/infra/codegen/basicInfoForm.vue
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 实体类名称
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/codegen/editTable.vue b/src/views/infra/codegen/editTable.vue
new file mode 100644
index 00000000..fee16c34
--- /dev/null
+++ b/src/views/infra/codegen/editTable.vue
@@ -0,0 +1,235 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+ 返回
+
+
+
+
+
diff --git a/src/views/infra/codegen/genInfoForm.vue b/src/views/infra/codegen/genInfoForm.vue
new file mode 100644
index 00000000..a9a6ac8f
--- /dev/null
+++ b/src/views/infra/codegen/genInfoForm.vue
@@ -0,0 +1,339 @@
+
+
+
+
+
+ 生成模板
+
+
+
+
+
+
+
+ 前端类型
+
+
+
+
+
+
+
+
+ 生成场景
+
+
+
+
+
+
+
+
+ 上级菜单
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 模块名
+
+
+
+
+
+
+
+
+
+
+
+ 业务名
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 类名称
+
+
+
+
+
+
+
+
+
+
+
+ 类描述
+
+
+
+
+
+
+
+
+
+
+
+ 自定义路径
+
+
+
+
+
+
+
+ 最近路径快速选择
+
+
+
+ 恢复默认的生成基础路径
+
+
+
+
+
+
+
+
+
+
+
+
+ 树编码字段
+
+
+
+
+
+
+
+
+
+
+
+
+ 树父编码字段
+
+
+
+
+
+
+
+
+
+
+
+
+ 树名称字段
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关联子表的表名
+
+
+
+
+
+
+
+
+
+
+
+
+ 子表关联的外键名
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/codegen/importTable.vue b/src/views/infra/codegen/importTable.vue
new file mode 100644
index 00000000..bf5252d4
--- /dev/null
+++ b/src/views/infra/codegen/importTable.vue
@@ -0,0 +1,114 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/codegen/index.vue b/src/views/infra/codegen/index.vue
new file mode 100644
index 00000000..252f1197
--- /dev/null
+++ b/src/views/infra/codegen/index.vue
@@ -0,0 +1,317 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 导入
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ {{ parseTime(scope.row.updateTime) }}
+
+
+
+
+ 预览
+ 编辑
+ 删除
+ 同步
+ 生成代码
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 复制
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/config/index.vue b/src/views/infra/config/index.vue
new file mode 100644
index 00000000..6ec5ac0b
--- /dev/null
+++ b/src/views/infra/config/index.vue
@@ -0,0 +1,262 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.visible ? '是' : '否' }}
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/dataSourceConfig/index.vue b/src/views/infra/dataSourceConfig/index.vue
new file mode 100644
index 00000000..576259ce
--- /dev/null
+++ b/src/views/infra/dataSourceConfig/index.vue
@@ -0,0 +1,166 @@
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/dbDoc/index.vue b/src/views/infra/dbDoc/index.vue
new file mode 100644
index 00000000..a7b40f8c
--- /dev/null
+++ b/src/views/infra/dbDoc/index.vue
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+ 导出 HTML
+ 导出 Word
+ 导出 Markdown
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/druid/index.vue b/src/views/infra/druid/index.vue
new file mode 100644
index 00000000..88a70a5b
--- /dev/null
+++ b/src/views/infra/druid/index.vue
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/file/index.vue b/src/views/infra/file/index.vue
new file mode 100644
index 00000000..b4ebf35f
--- /dev/null
+++ b/src/views/infra/file/index.vue
@@ -0,0 +1,216 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 上传文件
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 无法预览,点击
+ 下载
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+ 将文件拖到此处,或 点击上传
+
+ 提示:仅允许导入 jpg、png、gif 格式文件!
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/fileConfig/index.vue b/src/views/infra/fileConfig/index.vue
new file mode 100644
index 00000000..01e671fa
--- /dev/null
+++ b/src/views/infra/fileConfig/index.vue
@@ -0,0 +1,305 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ 修改
+ 主配置
+ 测试
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 主动模式
+ 主动模式
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/job/index.vue b/src/views/infra/job/index.vue
new file mode 100644
index 00000000..7bf1f2f7
--- /dev/null
+++ b/src/views/infra/job/index.vue
@@ -0,0 +1,378 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 导出
+
+
+ 执行日志
+
+
+
+
+
+
+
+
+
+
+
+ >
+
+
+
+
+
+ 修改
+ 开启
+ 暂停
+ 删除
+ handleCommand(command, scope.row)"
+ v-hasPermi="['infra:job:trigger', 'infra:job:query']">
+ 更多
+
+ 执行一次
+ 任务详细
+ 调度日志
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 生成表达式
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ form.id }}
+ {{ form.name }}
+
+
+
+ {{ form.handlerName }}
+ {{ form.handlerParam }}
+ {{ form.cronExpression }}
+ {{ form.retryCount }}
+ {{ form.retryInterval + " 毫秒" }}
+ {{ form.monitorTimeout > 0 ? form.monitorTimeout + " 毫秒" : "未开启" }}
+ {{ Array.from(nextTimes, x => parseTime(x)).join('; ')}}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/job/log.vue b/src/views/infra/job/log.vue
new file mode 100644
index 00000000..9293883d
--- /dev/null
+++ b/src/views/infra/job/log.vue
@@ -0,0 +1,178 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.beginTime) + ' ~ ' + parseTime(scope.row.endTime) }}
+
+
+
+
+ {{ scope.row.duration + ' 毫秒' }}
+
+
+
+
+
+
+
+
+
+ 详细
+
+
+
+
+
+
+
+
+
+
+
+ {{ form.id }}
+ {{ form.jobId }}
+ {{ form.handlerName }}
+ {{ form.handlerParam }}
+ {{ form.executeIndex }}
+ {{ parseTime(form.beginTime) + ' ~ ' + parseTime(form.endTime) }}
+ {{ form.duration + ' 毫秒' }}
+
+
+
+ {{ form.result }}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/redis/index.vue b/src/views/infra/redis/index.vue
new file mode 100644
index 00000000..0f08aef8
--- /dev/null
+++ b/src/views/infra/redis/index.vue
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+
+ 基本信息
+
+
+
+
+ Redis版本 |
+ {{ cache.info.redis_version }} |
+ 运行模式 |
+ {{ cache.info.redis_mode === "standalone" ? "单机" : "集群" }} |
+ 端口 |
+ {{ cache.info.tcp_port }} |
+ 客户端数 |
+ {{ cache.info.connected_clients }} |
+
+
+ 运行时间(天) |
+ {{ cache.info.uptime_in_days }} |
+ 使用内存 |
+ {{ cache.info.used_memory_human }} |
+ 使用CPU |
+ {{ parseFloat(cache.info.used_cpu_user_children).toFixed(2) }} |
+ 内存配置 |
+ {{ cache.info.maxmemory_human }} |
+
+
+ AOF是否开启 |
+ {{ cache.info.aof_enabled === "0" ? "否" : "是" }} |
+ RDB是否成功 |
+ {{ cache.info.rdb_last_bgsave_status }} |
+ Key数量 |
+ {{ cache.dbSize }} |
+ 网络入口/出口 |
+ {{ cache.info.instantaneous_input_kbps }}kps/{{cache.info.instantaneous_output_kbps}}kps |
+
+
+
+
+
+
+
+
+
+ 命令统计
+
+
+
+
+
+
+
+ 内存信息
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/server/index.vue b/src/views/infra/server/index.vue
new file mode 100644
index 00000000..575597d8
--- /dev/null
+++ b/src/views/infra/server/index.vue
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
diff --git a/src/views/infra/skywalking/index.vue b/src/views/infra/skywalking/index.vue
new file mode 100644
index 00000000..2b3f2a19
--- /dev/null
+++ b/src/views/infra/skywalking/index.vue
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
diff --git a/src/views/infra/swagger/index.vue b/src/views/infra/swagger/index.vue
new file mode 100644
index 00000000..249269c8
--- /dev/null
+++ b/src/views/infra/swagger/index.vue
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
diff --git a/src/views/infra/testDemo/index.vue b/src/views/infra/testDemo/index.vue
new file mode 100644
index 00000000..a68c2162
--- /dev/null
+++ b/src/views/infra/testDemo/index.vue
@@ -0,0 +1,257 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 请选择字典生成
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/infra/webSocket/index.vue b/src/views/infra/webSocket/index.vue
new file mode 100644
index 00000000..d48ffd3c
--- /dev/null
+++ b/src/views/infra/webSocket/index.vue
@@ -0,0 +1,92 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ ws && ws.readyState === 1 ? "已连接" : "连接" }}
+
+ 断开
+
+
+
+
+
+
+
+ 发送消息
+
+
+
+
+
+ 清空消息
+
+
+
+
+
+
diff --git a/src/views/quality/base/basicData/qualityInspectionBoxBtn/index.vue b/src/views/quality/base/basicData/qualityInspectionBoxBtn/index.vue
index 6ffe2832..5d09dc15 100644
--- a/src/views/quality/base/basicData/qualityInspectionBoxBtn/index.vue
+++ b/src/views/quality/base/basicData/qualityInspectionBoxBtn/index.vue
@@ -4,7 +4,8 @@
-
+
@@ -33,10 +34,10 @@ import {
import basicPage from '../../mixins/basic-page';
import moment from 'moment';
import addOrUpdate from './dialogForm.vue';
-
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
export default {
name: 'QualityInspectionBoxBtn',
- mixins: [basicPage],
+ mixins: [basicPage, tableHeightMixin],
components: { addOrUpdate },
data() {
return {
@@ -114,7 +115,7 @@ export default {
// 查询参数
listQuery: {
pageNo: 1,
- pageSize: 10,
+ pageSize: 20,
inspectionDetContent: null,
},
addOrUpdateVisible: false,
diff --git a/src/views/quality/base/basicData/qualityInspectionBoxPermissions/index.vue b/src/views/quality/base/basicData/qualityInspectionBoxPermissions/index.vue
index ac0fb483..b4eb6d7a 100644
--- a/src/views/quality/base/basicData/qualityInspectionBoxPermissions/index.vue
+++ b/src/views/quality/base/basicData/qualityInspectionBoxPermissions/index.vue
@@ -4,7 +4,8 @@
-
+
@@ -34,10 +35,11 @@ import basicPage from './basic-page';
import moment from 'moment';
import addOrUpdate from './dialogForm.vue';
import ProcessBomList from './ProcessBomList.vue';
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
import row from './row.vue';
export default {
name: 'QualityInspectionBoxBtn',
- mixins: [basicPage],
+ mixins: [basicPage, tableHeightMixin],
components: { addOrUpdate, ProcessBomList },
data() {
return {
@@ -123,7 +125,7 @@ export default {
// 查询参数
listQuery: {
pageNo: 1,
- pageSize: 10,
+ pageSize: 20,
userName: null,
nickName:null
},
diff --git a/src/views/quality/base/qualityHotMaterial/index.vue b/src/views/quality/base/qualityHotMaterial/index.vue
index a55a8577..f23baab7 100644
--- a/src/views/quality/base/qualityHotMaterial/index.vue
+++ b/src/views/quality/base/qualityHotMaterial/index.vue
@@ -1,7 +1,7 @@
-
@@ -29,6 +29,7 @@ import {
deleteQualityHotMaterial,
getHotMaterialAllList
} from '@/api/base/qualityHotMaterial';
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
// import { getList, } from "@/api/base/qualityScrapType";
const tableProps = [
{
@@ -74,7 +75,7 @@ const tableProps = [
];
export default {
- mixins: [basicPage],
+ mixins: [basicPage, tableHeightMixin],
data() {
return {
urlOptions: {
@@ -207,7 +208,7 @@ export default {
switch (val.btnName) {
case 'search':
this.listQuery.pageNo = 1;
- this.listQuery.pageSize = 10;
+ this.listQuery.pageSize = 20;
this.listQuery.materialId = val.materialId ? val.materialId : undefined;
this.listQuery.checkTime = val.checkTime ? val.checkTime : undefined;
this.getDataList();
@@ -215,7 +216,7 @@ export default {
case 'reset':
this.$refs.searchBarForm.resetForm();
this.listQuery = {
- pageSize: 10,
+ pageSize: 20,
pageNo: 1,
total: 1,
};
diff --git a/src/views/quality/base/qualityInspectionDet/index.vue b/src/views/quality/base/qualityInspectionDet/index.vue
index fc302587..5be62028 100644
--- a/src/views/quality/base/qualityInspectionDet/index.vue
+++ b/src/views/quality/base/qualityInspectionDet/index.vue
@@ -4,7 +4,7 @@
-
@@ -59,14 +59,14 @@ import {
getQualityInspectionDetPage,
exportQualityInspectionDetExcel,
} from '@/api/base/qualityInspectionDet';
-
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
import moment from 'moment';
import basicPageMixin from '@/mixins/lb/basicPageMixin';
export default {
name: 'QualityInspectionDet',
- mixins: [basicPageMixin],
+ mixins: [basicPageMixin, tableHeightMixin],
data() {
return {
typeList: [], // 检测类型列表
@@ -153,7 +153,7 @@ export default {
// 查询参数
queryParams: {
pageNo: 1,
- pageSize: 10,
+ pageSize: 20,
content: null,
createTime: [],
},
diff --git a/src/views/quality/base/qualityInspectionType/index.vue b/src/views/quality/base/qualityInspectionType/index.vue
index 095abc49..7c091954 100644
--- a/src/views/quality/base/qualityInspectionType/index.vue
+++ b/src/views/quality/base/qualityInspectionType/index.vue
@@ -4,8 +4,8 @@
-
+
@@ -61,10 +61,10 @@ import {
exportQualityInspectionTypeExcel,
} from '@/api/base/qualityInspectionType';
import basicPageMixin from '@/mixins/lb/basicPageMixin';
-
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
export default {
name: 'QualityInspectionType',
- mixins: [basicPageMixin],
+ mixins: [basicPageMixin, tableHeightMixin],
data() {
return {
tableBtn: [
diff --git a/src/views/quality/monitoring/materielDateFrom/index.vue b/src/views/quality/monitoring/materielDateFrom/index.vue
index cc52218d..68da6ea3 100644
--- a/src/views/quality/monitoring/materielDateFrom/index.vue
+++ b/src/views/quality/monitoring/materielDateFrom/index.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
- * @LastEditTime: 2024-03-25 16:07:07
+ * @LastEditTime: 2024-03-29 14:08:18
* @Description:
-->
@@ -24,12 +24,12 @@
// import unitDict from './unitDict';
// import basicPage from '../mixins/basic-page';
import { parseTime } from '../mixins/code-filter';
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
import {
getMaterialUseLogPage,
getWorkOrderList,
exportEnergyPlcExcel
} from '@/api/quality/materialTraceability';
-
const tableProps = [
{
prop: 'materialName',
@@ -73,6 +73,7 @@ const tableProps = [
];
export default {
+ mixins: [tableHeightMixin],
// mixins: [basicPage],
data() {
return {
@@ -82,7 +83,7 @@ export default {
// // exportURL: exportPackingExcel,
// },
tableProps,
- tableH: this.tableHeight(260),
+ // tableH: this.tableHeight(260),
tableBtn: [
this.$auth.hasPermi(`base:packaging-print-log:update`)
? {
@@ -174,9 +175,9 @@ export default {
// AddOrUpdate,
},
created() {
- window.addEventListener('resize', () => {
- this.tableH = this.tableHeight(260)
- })
+ // window.addEventListener('resize', () => {
+ // this.tableH = this.tableHeight(260)
+ // })
this.getList()
this.getDict()
},
diff --git a/src/views/quality/monitoring/originalGlassRetrace/index.vue b/src/views/quality/monitoring/originalGlassRetrace/index.vue
index 3d1280ad..ec74b1a1 100644
--- a/src/views/quality/monitoring/originalGlassRetrace/index.vue
+++ b/src/views/quality/monitoring/originalGlassRetrace/index.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
- * @LastEditTime: 2024-03-21 15:17:05
+ * @LastEditTime: 2024-03-29 14:08:30
* @Description:
-->
@@ -25,6 +25,8 @@
// import basicPage from '../mixins/basic-page';
import { publicFormatter } from '@/utils/dict';
import { parseTime } from '../mixins/code-filter';
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
+
import {
getOriginalGlassRetrace,
getWorkOrderList,
@@ -85,6 +87,7 @@ const tableProps = [
export default {
// mixins: [basicPage],
+ mixins: [tableHeightMixin],
data() {
return {
// urlOptions: {
@@ -119,7 +122,7 @@ export default {
startTime: undefined,
endTime:undefined,
},
- tableH: this.tableHeight(260),
+ // tableH: this.tableHeight(260),
formConfig: [
{
type: 'select',
@@ -184,9 +187,9 @@ export default {
// AddOrUpdate,
},
created() {
- window.addEventListener('resize', () => {
- this.tableH = this.tableHeight(260)
- })
+ // window.addEventListener('resize', () => {
+ // this.tableH = this.tableHeight(260)
+ // })
this.getList()
this.getDict()
},
diff --git a/src/views/quality/monitoring/processTraceability/index.vue b/src/views/quality/monitoring/processTraceability/index.vue
index 743b9a60..fd8a725c 100644
--- a/src/views/quality/monitoring/processTraceability/index.vue
+++ b/src/views/quality/monitoring/processTraceability/index.vue
@@ -2,13 +2,14 @@
* @Author: zwq
* @Date: 2023-08-01 14:55:51
* @LastEditors: zhp
- * @LastEditTime: 2024-03-20 09:25:40
+ * @LastEditTime: 2024-03-29 15:32:33
* @Description:
-->
-
+
@@ -30,6 +31,7 @@ import {
// exportEnergyPlcExcel
} from '@/api/quality/processTraceability';
import { publicFormatter } from '@/utils/dict';
+import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
const tableProps = [
{
prop: 'name',
@@ -78,7 +80,7 @@ const tableProps = [
];
export default {
- // mixins: [basicPage],
+ mixins: [tableHeightMixin],
data() {
return {
// urlOptions: {
diff --git a/src/views/quality/monitoring/processTraceabilityDetail/components/SmallTitle.vue b/src/views/quality/monitoring/processTraceabilityDetail/components/SmallTitle.vue
index 5d34b55b..c9ef2e2d 100644
--- a/src/views/quality/monitoring/processTraceabilityDetail/components/SmallTitle.vue
+++ b/src/views/quality/monitoring/processTraceabilityDetail/components/SmallTitle.vue
@@ -1,14 +1,7 @@
-
diff --git a/src/views/quality/monitoring/processTraceabilityDetail/index.vue b/src/views/quality/monitoring/processTraceabilityDetail/index.vue
index 3d87a88f..bc2bd909 100644
--- a/src/views/quality/monitoring/processTraceabilityDetail/index.vue
+++ b/src/views/quality/monitoring/processTraceabilityDetail/index.vue
@@ -1,17 +1,10 @@
-
-
diff --git a/src/views/report/glass/inputTable.vue b/src/views/report/glass/inputTable.vue
index 4b33c779..d1a7f80d 100644
--- a/src/views/report/glass/inputTable.vue
+++ b/src/views/report/glass/inputTable.vue
@@ -1,14 +1,14 @@
- 编辑
+ 编辑
返回
保存
@@ -20,7 +20,7 @@
{{ scope.row[y.prop] }}
-
@@ -158,9 +158,19 @@ const cols = [
cols,
remark:null,
edit: false,
+ noData:false,
};
},
- watch: {
+ watch: {
+ data: {
+ handler(newv, oldv) {
+ if (newv.length != 0) {
+ this.noData = false
+ } else {
+ this.noData = true
+ }
+ }
+ },
time: {
immediate: true,
handler(newv, oldv) {
diff --git a/src/views/report/productionDayReport/index.vue b/src/views/report/productionDayReport/index.vue
index f16e7da3..03698658 100644
--- a/src/views/report/productionDayReport/index.vue
+++ b/src/views/report/productionDayReport/index.vue
@@ -1,7 +1,7 @@
@@ -17,7 +17,7 @@
@click="handleExport">导出
- 编辑
+ 编辑
返回
保存
@@ -28,59 +28,61 @@
-
+
{{ scope.row.lineName }}
-
+
{{ scope.row.inputNow }}
-
+
{{ scope.row.inputHis }}
-
- {{ scope.row.inputTrend ? parseFloat((scope.row.inputTrend * 100).toFixed(2)) + '%' :
- null}}
+
+ {{ scope.row.inputTrend && scope.row.inputTrend != 0 ? parseFloat((scope.row.inputTrend *
+ 100).toFixed(2)) + '%' : scope.row.inputTrend == 0 ? 0 : null }}
-
+
{{ scope.row.goodProductNow }}
-
+
{{ scope.row.goodProductHis }}
-
+
- {{ scope.row.goodProductTrend ? parseFloat((scope.row.goodProductTrend * 100).toFixed(2)) +
- '%' : null }}
+ {{ scope.row.goodProductTrend && scope.row.goodProductTrend != 0 ?
+ parseFloat((scope.row.goodProductTrend * 100).toFixed(2)) + '%' : scope.row.goodProductTrend == 0 ? 0 :
+ null
+ }}
-
+
{{ scope.row.missCheckNow ? parseFloat((scope.row.missCheckNow *
100).toFixed(2)) +
'%' : null }}
@@ -89,7 +91,7 @@
-
+
{{ scope.row.missCheckHis ? parseFloat((scope.row.missCheckHis *
100).toFixed(2)) +
'%' : null }}
@@ -98,19 +100,18 @@
-
+
- {{ scope.row.missCheckTrend ? parseFloat((scope.row.missCheckTrend *
- 100).toFixed(2)) +
- '%' : null }}
-
+ {{ scope.row.missCheckTrend && scope.row.missCheckTrend != 0 ?
+ parseFloat((scope.row.missCheckTrend * 100).toFixed(2)) + '%' : scope.row.missCheckTrend == 0 ? 0 : null
+ }}
-
+
{{ scope.row.goodProductPassNow ? parseFloat((scope.row.goodProductPassNow *
100).toFixed(2)) +
@@ -120,7 +121,7 @@
-
+
{{ scope.row.goodProductPassHis ? parseFloat((scope.row.goodProductPassHis *
100).toFixed(2)) +
@@ -130,12 +131,13 @@
-
+
- {{ scope.row.goodProductPassTrend ? parseFloat((scope.row.goodProductPassTrend *
- 100).toFixed(2)) +
- '%' : null }}
-
+ {{ scope.row.goodProductPassTrend && scope.row.goodProductPassTrend != 0 ?
+ parseFloat((scope.row.goodProductPassTrend * 100).toFixed(2)) + '%' : scope.row.goodProductPassTrend ==
+ 0 ? 0 :
+ null
+ }}
@@ -284,6 +286,7 @@ export default {
urlOptions: {
exportURL: exportProductExcel
},
+ noData:false,
isSave:false,
disabled: true,
sumArr: [],
@@ -631,6 +634,11 @@ export default {
params: this.listQuery
})
console.log(res)
+ if (res.data.list.length == 0) {
+ this.noData = true
+ } else {
+ this.noData = false
+ }
// let sum = undefined
// res.data.list.forEach((ele, index) => {
// if (ele.det === false) {
diff --git a/src/views/report/productionMonthReport/index.vue b/src/views/report/productionMonthReport/index.vue
index ccbf66e3..4e261440 100644
--- a/src/views/report/productionMonthReport/index.vue
+++ b/src/views/report/productionMonthReport/index.vue
@@ -1,7 +1,7 @@
@@ -17,7 +17,7 @@
@click="handleExport">导出
- 编辑
+ 编辑
返回
保存
@@ -28,114 +28,122 @@
-
+
{{ scope.row.lineName }}
-
+
{{ scope.row.inputNow }}
-
+
{{ scope.row.inputHis }}
-
- {{ scope.row.inputTrend ? parseFloat((scope.row.inputTrend *
- 100).toFixed(2)) + '%' : undefined }}
+
+
+ {{ scope.row.inputTrend && scope.row.inputTrend != 0 ?
+ parseFloat((scope.row.inputTrend * 100).toFixed(2)) + '%' : scope.row.inputTrend == 0 ? 0 :
+ null
+ }}
-
+
{{ scope.row.goodProductNow }}
-
+
{{ scope.row.goodProductHis }}
-
+
- {{ scope.row.goodProductTrend ? parseFloat((scope.row.goodProductTrend *
- 100).toFixed(2)) + '%' : undefined }}
+ {{ scope.row.goodProductTrend && scope.row.goodProductTrend != 0 ?
+ parseFloat((scope.row.goodProductTrend * 100).toFixed(2)) + '%' : scope.row.goodProductTrend == 0 ? 0 :
+ null
+ }}
-
+
{{ scope.row.missCheckNow ? parseFloat((scope.row.missCheckNow *
- 100).toFixed(2)) +
- '%' : undefined }}
+ 100).toFixed(2)) +
+ '%' : null }}
-
+
{{ scope.row.missCheckHis ? parseFloat((scope.row.missCheckHis *
- 100).toFixed(2)) +
- '%' : undefined }}
+ 100).toFixed(2)) +
+ '%' : null }}
-
+
- {{ scope.row.missCheckTrend ? parseFloat((scope.row.missCheckTrend *
- 100).toFixed(2)) +
- '%' : undefined }}
-
+ {{ scope.row.missCheckTrend && scope.row.missCheckTrend != 0 ?
+ parseFloat((scope.row.missCheckTrend * 100).toFixed(2)) + '%' : scope.row.missCheckTrend == 0 ?
+ 0 :
+ null
+ }}
-
+
{{ scope.row.goodProductPassNow ? parseFloat((scope.row.goodProductPassNow *
- 100).toFixed(2)) +
- '%' : undefined }}
+ 100).toFixed(2)) +
+ '%' : null }}
-
+
{{ scope.row.goodProductPassHis ? parseFloat((scope.row.goodProductPassHis *
- 100).toFixed(2)) +
- '%' : undefined }}
+ 100).toFixed(2)) +
+ '%' : null }}
-
+
- {{ scope.row.goodProductPassTrend ? parseFloat((scope.row.goodProductPassTrend *
- 100).toFixed(2)) +
- '%' : undefined }}
-
+ {{ scope.row.goodProductPassTrend && scope.row.goodProductPassTrend != 0 ?
+ parseFloat((scope.row.goodProductPassTrend * 100).toFixed(2)) + '%' : scope.row.goodProductPassTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
@@ -288,6 +296,7 @@ export default {
isSave:false,
disabled: true,
sumArr: [],
+ noData:false,
timeTips:'',
searchBarFormConfig: [
// {
@@ -666,6 +675,11 @@ export default {
params: this.dataForm
})
console.log(res)
+ if (res.data.list.length == 0) {
+ this.noData = true
+ } else {
+ this.noData = false
+ }
// let sum = undefined
// res.data.list.forEach((ele, index) => {
// if (ele.det === false) {
diff --git a/src/views/report/productionShipmentsReport/index.vue b/src/views/report/productionShipmentsReport/index.vue
index 350872ac..005440df 100644
--- a/src/views/report/productionShipmentsReport/index.vue
+++ b/src/views/report/productionShipmentsReport/index.vue
@@ -1,7 +1,7 @@
@@ -25,7 +25,7 @@
background: '#F2F4F9',
color: '#606266'
}">
-
+
@@ -39,7 +39,7 @@
-
+
@@ -59,7 +59,7 @@
-->
-
+
diff --git a/src/views/report/productionWeekReport/index.vue b/src/views/report/productionWeekReport/index.vue
index 55d75c3d..a7d91a1c 100644
--- a/src/views/report/productionWeekReport/index.vue
+++ b/src/views/report/productionWeekReport/index.vue
@@ -1,7 +1,7 @@
@@ -20,7 +20,7 @@
@click="handleExport">导出
- 编辑
+ 编辑
返回
保存
@@ -31,114 +31,126 @@
-
+
{{ scope.row.lineName }}
-
+
{{ scope.row.inputNow }}
-
+
{{ scope.row.inputHis }}
-
- {{ scope.row.inputTrend ? parseFloat((scope.row.inputTrend *
- 100).toFixed(2)) + '%' : undefined }}
+
+ {{ scope.row.inputTrend && scope.row.inputTrend != 0 ?
+ parseFloat((scope.row.inputTrend * 100).toFixed(2)) + '%' : scope.row.inputTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
-
+
{{ scope.row.goodProductNow }}
-
+
{{ scope.row.goodProductHis }}
-
+
- {{ scope.row.goodProductTrend ? parseFloat((scope.row.goodProductTrend *
- 100).toFixed(2)) + '%' : undefined }}
+ {{ scope.row.goodProductTrend && scope.row.goodProductTrend != 0 ?
+ parseFloat((scope.row.goodProductTrend * 100).toFixed(2)) + '%' : scope.row.goodProductTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
-
+
{{ scope.row.missCheckNow ? parseFloat((scope.row.missCheckNow *
- 100).toFixed(2)) +
- '%' : undefined }}
+ 100).toFixed(2)) +
+ '%' : null }}
-
+
{{ scope.row.missCheckHis ? parseFloat((scope.row.missCheckHis *
- 100).toFixed(2)) +
- '%' : undefined }}
+ 100).toFixed(2)) +
+ '%' : null }}
-
+
- {{ scope.row.missCheckTrend ? parseFloat((scope.row.missCheckTrend *
- 100).toFixed(2)) +
- '%' : undefined }}
-
+ {{ scope.row.missCheckTrend && scope.row.missCheckTrend != 0 ?
+ parseFloat((scope.row.missCheckTrend * 100).toFixed(2)) + '%' : scope.row.missCheckTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
-
+
{{ scope.row.goodProductPassNow ? parseFloat((scope.row.goodProductPassNow *
- 100).toFixed(2)) +
- '%' : undefined }}
+ 100).toFixed(2)) +
+ '%' : null }}
-
+
{{ scope.row.goodProductPassHis ? parseFloat((scope.row.goodProductPassHis *
- 100).toFixed(2)) +
- '%' : undefined }}
+ 100).toFixed(2)) +
+ '%' : null }}
-
+
- {{ scope.row.goodProductPassTrend ? parseFloat((scope.row.goodProductPassTrend *
- 100).toFixed(2)) +
- '%' : undefined }}
-
+ {{ scope.row.goodProductPassTrend && scope.row.goodProductPassTrend != 0 ?
+ parseFloat((scope.row.goodProductPassTrend * 100).toFixed(2)) + '%' : scope.row.goodProductPassTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
@@ -296,6 +308,7 @@ export default {
isSave:false,
disabled: true,
sumArr: [],
+ noData:false,
weekValue1: null,//最多24周
weekValue2: null,
searchBarFormConfig: [
@@ -629,6 +642,11 @@ export default {
})
// console.log(this.queryParams);
console.log(res)
+ if (res.data.list.length == 0) {
+ this.noData = true
+ } else {
+ this.noData = false
+ }
// let sum = undefined
// res.data.list.forEach((ele, index) => {
// if (ele.det === false) {
diff --git a/src/views/report/productionYearReport/index.vue b/src/views/report/productionYearReport/index.vue
index c0c81cec..e86fd126 100644
--- a/src/views/report/productionYearReport/index.vue
+++ b/src/views/report/productionYearReport/index.vue
@@ -1,7 +1,7 @@
@@ -21,7 +21,7 @@
保存 -->
- 编辑
+ 编辑
返回
保存
@@ -33,114 +33,126 @@
-
+
{{ scope.row.lineName }}
-
+
{{ scope.row.inputNow }}
-
+
{{ scope.row.inputHis }}
-
- {{ scope.row.inputTrend ? parseFloat((scope.row.inputTrend *
- 100).toFixed(2)) + '%' : undefined }}
+
+ {{ scope.row.inputTrend && scope.row.inputTrend != 0 ?
+ parseFloat((scope.row.inputTrend * 100).toFixed(2)) + '%' : scope.row.inputTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
-
+
{{ scope.row.goodProductNow }}
-
+
{{ scope.row.goodProductHis }}
-
+
- {{ scope.row.goodProductTrend ? parseFloat((scope.row.goodProductTrend *
- 100).toFixed(2)) + '%' : undefined }}
+ {{ scope.row.goodProductTrend && scope.row.goodProductTrend != 0 ?
+ parseFloat((scope.row.goodProductTrend * 100).toFixed(2)) + '%' : scope.row.goodProductTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
-
+
{{ scope.row.missCheckNow ? parseFloat((scope.row.missCheckNow *
- 100).toFixed(2)) +
- '%' : undefined }}
+ 100).toFixed(2)) +
+ '%' : null }}
-
+
{{ scope.row.missCheckHis ? parseFloat((scope.row.missCheckHis *
- 100).toFixed(2)) +
- '%' : undefined }}
+ 100).toFixed(2)) +
+ '%' : null }}
-
+
- {{ scope.row.missCheckTrend ? parseFloat((scope.row.missCheckTrend *
- 100).toFixed(2)) +
- '%' : undefined }}
-
+ {{ scope.row.missCheckTrend && scope.row.missCheckTrend != 0 ?
+ parseFloat((scope.row.missCheckTrend * 100).toFixed(2)) + '%' : scope.row.missCheckTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
-
+
{{ scope.row.goodProductPassNow ? parseFloat((scope.row.goodProductPassNow *
- 100).toFixed(2)) +
- '%' : undefined }}
+ 100).toFixed(2)) +
+ '%' : null }}
-
+
{{ scope.row.goodProductPassHis ? parseFloat((scope.row.goodProductPassHis *
- 100).toFixed(2)) +
- '%' : undefined }}
+ 100).toFixed(2)) +
+ '%' : null }}
-
+
- {{ scope.row.goodProductPassTrend ? parseFloat((scope.row.goodProductPassTrend *
- 100).toFixed(2)) +
- '%' : undefined }}
-
+ {{ scope.row.goodProductPassTrend && scope.row.goodProductPassTrend != 0 ?
+ parseFloat((scope.row.goodProductPassTrend * 100).toFixed(2)) + '%' : scope.row.goodProductPassTrend ==
+ 0 ?
+ 0 :
+ null
+ }}
@@ -291,6 +303,7 @@ export default {
yearValue2: null,
// dynamicProps: [],
tableProps,
+ noData:false,
reportTime: [],
startTimeStamp: '',
endTimeStamp: '',
@@ -567,7 +580,12 @@ export default {
})
// console.log(this.queryParams);
console.log(res)
- let sum = undefined
+ if (res.data.list.length == 0) {
+ this.noData = true
+ } else {
+ this.noData = false
+ }
+ // let sum = undefined
// res.data.list.forEach((ele, index) => {
// if (ele.det === false) {
// sum = res.data.list.splice(index, 1)
diff --git a/src/views/specialEquipment/check/Record.vue b/src/views/specialEquipment/check/Record.vue
index e77685ff..45c72e5c 100644
--- a/src/views/specialEquipment/check/Record.vue
+++ b/src/views/specialEquipment/check/Record.vue
@@ -91,8 +91,18 @@ export default {
// : undefined,
].filter((v) => v),
tableProps: [
- { prop: 'name', label: '巡检单名称', showOverflowtooltip: true },
- { prop: 'department', label: '部门', showOverflowtooltip: true },
+ {
+ prop: 'name',
+ label: '巡检单名称',
+ showOverflowtooltip: true,
+ filter: (v) => v ?? '---',
+ },
+ {
+ prop: 'department',
+ label: '部门',
+ showOverflowtooltip: true,
+ filter: (v) => v ?? '---',
+ },
{
prop: 'actualCheckTime',
label: '巡检时间',
@@ -100,33 +110,12 @@ export default {
filter: parseTime,
showOverflowtooltip: true,
},
- { prop: 'groupClass', label: '班次', showOverflowtooltip: true },
- // {
- // prop: '_detail',
- // label: '巡检内容',
- // subcomponent: {
- // name: 'ViewDetail',
- // props: ['injectData'],
- // data() {
- // return {};
- // },
- // methods: {
- // handleClick() {
- // this.$emit('emitData', {
- // action: this.injectData.label,
- // value: this.injectData,
- // });
- // },
- // },
- // render: function (h) {
- // return (
- //
- // 详情
- //
- // );
- // },
- // },
- // },
+ {
+ prop: 'groupClass',
+ label: '班次',
+ showOverflowtooltip: true,
+ filter: (v) => v ?? '---',
+ },
{ prop: 'remark', label: '备注' },
],
searchBarFormConfig: [
@@ -161,9 +150,7 @@ export default {
type: 'separate',
},
{
- type: this.$auth.hasPermi('se:check-record:export')
- ? 'button'
- : '',
+ type: this.$auth.hasPermi('se:check-record:export') ? 'button' : '',
btnName: '导出',
name: 'export',
plain: true,
diff --git a/src/views/specialEquipment/maintain/Record.vue b/src/views/specialEquipment/maintain/Record.vue
index 639d9798..4c2c2ba1 100644
--- a/src/views/specialEquipment/maintain/Record.vue
+++ b/src/views/specialEquipment/maintain/Record.vue
@@ -80,8 +80,9 @@ import {
import RecordDetail from './Record--detail.vue';
import { TableBtn } from '@/components/tableInnerComponents';
-const timeFilter = (val) =>
- val ? moment(val).format('yyyy-MM-DD HH:mm:ss') : '---';
+const timeFilter = (val) => {
+ return val ? moment(val).format('yyyy-MM-DD HH:mm:ss') : '---';
+};
export default {
name: 'SpecialEquipmentMaintainRecord',