diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue
index 4542b5fc..75c11b41 100644
--- a/src/components/DialogForm/index.vue
+++ b/src/components/DialogForm/index.vue
@@ -47,12 +47,14 @@
type="datetime"
:placeholder="`请选择${col.label}`"
value-format="timestamp"
+ @change="$emit('update', form)"
v-bind="col.bind">
this.form[opt.depends],
(id) => {
@@ -300,7 +301,7 @@ export default {
});
},
{
- immediate: true,
+ immediate: false,
}
);
return;
diff --git a/src/mixins/lb/basicPageMixin.js b/src/mixins/lb/basicPageMixin.js
index 44f9cd94..c131407b 100644
--- a/src/mixins/lb/basicPageMixin.js
+++ b/src/mixins/lb/basicPageMixin.js
@@ -32,9 +32,28 @@ export default {
updateUrl: '',
addUrl: '',
pageUrl: '',
+ infoUrl: '',
+ basePath: '',
form: {}
};
},
+ computed: {
+ addPath() {
+ return this.basePath + '/create'
+ },
+ updatePath() {
+ return this.basePath + '/update'
+ },
+ deletePath() {
+ return this.basePath + '/delete'
+ },
+ infoPath() {
+ return this.basePath + '/get'
+ },
+ pagePath() {
+ return this.basePath + '/page'
+ }
+ },
methods: {
// utils
http(url, method, payload) {
@@ -46,16 +65,16 @@ export default {
})
},
put(payload) {
- return this.http(this.updateUrl, 'put', payload);
+ return this.http(this.updateUrl == '' ? this.updatePath : this.updateUrl, 'put', payload);
},
post(payload) {
- return this.http(this.addUrl, 'post', payload);
+ return this.http(this.addUrl == '' ? this.addPath : this.addUrl, 'post', payload);
},
recv(payload) {
- return this.http(this.pageUrl, 'get', payload);
+ return this.http(this.pageUrl == '' ? this.pagePath : this.pageUrl, 'get', payload);
},
info(payload) {
- return this.http(this.infoUrl, 'get', payload);
+ return this.http(this.infoUrl == '' ? this.infoPath : this.infoUrl, 'get', payload);
},
diff --git a/src/views/core/base/equipment/components/AssetsUpload.vue b/src/views/base/coreEquipment/components/AssetsUpload.vue
similarity index 81%
rename from src/views/core/base/equipment/components/AssetsUpload.vue
rename to src/views/base/coreEquipment/components/AssetsUpload.vue
index 51984a18..bd19723d 100644
--- a/src/views/core/base/equipment/components/AssetsUpload.vue
+++ b/src/views/base/coreEquipment/components/AssetsUpload.vue
@@ -82,7 +82,7 @@
diff --git a/src/views/core/base/equipmentType/index.vue b/src/views/base/coreEquipmentType/index.vue
similarity index 87%
rename from src/views/core/base/equipmentType/index.vue
rename to src/views/base/coreEquipmentType/index.vue
index e640c27a..b5838000 100644
--- a/src/views/core/base/equipmentType/index.vue
+++ b/src/views/base/coreEquipmentType/index.vue
@@ -70,13 +70,13 @@ export default {
return {
searchBarKeys: ['name'],
tableBtn: [
- this.$auth.hasPermi('base:equipment-type:update')
+ this.$auth.hasPermi('base:core-equipment-type:update')
? {
type: 'edit',
btnName: '修改',
}
: undefined,
- this.$auth.hasPermi('base:equipment-type:delete')
+ this.$auth.hasPermi('base:core-equipment-type:delete')
? {
type: 'delete',
btnName: '删除',
@@ -112,7 +112,7 @@ export default {
type: 'separate',
},
{
- type: this.$auth.hasPermi('base:equipment-type:create')
+ type: this.$auth.hasPermi('base:core-equipment-type:create')
? 'button'
: '',
btnName: '新增',
@@ -237,25 +237,6 @@ export default {
const id = row.id;
getEquipmentType(id).then((response) => {
this.form = response.data;
- // this.form = {
- // code: 'SBLX20230925184444000041',
- // name: '测试131',
- // remark: '测试可删除',
- // id: '1706258479729336322',
- // files: [
- // { fileName: '1.png', fileUrl: '', fileType: 2 },
- // { fileName: '1.asdfaslkjfkasdf.png', fileUrl: '', fileType: 2 },
- // { fileName: '2.txt', fileUrl: '', fileType: 2 },
- // { fileName: '1.rar', fileUrl: '', fileType: 2 },
- // { fileName: '1.kkk', fileUrl: '', fileType: 2 },
- // { fileName: 'test.file', fileUrl: '', fileType: 2 },
- // { fileName: '222', fileUrl: '', fileType: 2 },
- // { fileName: 'g', fileUrl: '', fileType: 2 },
- // ],
- // createTime: 1695638697000,
- // parentId: '1701869972319584257',
- // };
- // debugger;
this.open = true;
this.title = '修改设备类型';
});
diff --git a/src/views/base/equipmentAttr/index.vue b/src/views/base/equipmentAttr/index.vue
deleted file mode 100644
index 9696af92..00000000
--- a/src/views/base/equipmentAttr/index.vue
+++ /dev/null
@@ -1,214 +0,0 @@
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
-
- 新增
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/base/equipmentFile/index.vue b/src/views/base/equipmentFile/index.vue
deleted file mode 100644
index cb2ebd21..00000000
--- a/src/views/base/equipmentFile/index.vue
+++ /dev/null
@@ -1,225 +0,0 @@
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
-
- 新增
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/base/equipmentQuantityLog/index.vue b/src/views/base/equipmentQuantityLog/index.vue
deleted file mode 100644
index b8d5208e..00000000
--- a/src/views/base/equipmentQuantityLog/index.vue
+++ /dev/null
@@ -1,277 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
-
- 新增
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.recordTime) }}
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/base/equipmentQuantityRealtime/index.vue b/src/views/base/equipmentQuantityRealtime/index.vue
deleted file mode 100644
index 6d85dbbe..00000000
--- a/src/views/base/equipmentQuantityRealtime/index.vue
+++ /dev/null
@@ -1,276 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
-
- 新增
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.recordTime) }}
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/base/equipmentStatusLog/index.vue b/src/views/base/equipmentStatusLog/index.vue
deleted file mode 100644
index 5aa1b79a..00000000
--- a/src/views/base/equipmentStatusLog/index.vue
+++ /dev/null
@@ -1,289 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
-
- 新增
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.recordTime) }}
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 请选择字典生成
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/base/equipmentStatusRealtime/index.vue b/src/views/base/equipmentStatusRealtime/index.vue
deleted file mode 100644
index 64b6e43f..00000000
--- a/src/views/base/equipmentStatusRealtime/index.vue
+++ /dev/null
@@ -1,296 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
-
- 新增
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.recordTime) }}
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 请选择字典生成
-
-
-
-
- 请选择字典生成
-
-
-
-
- 请选择字典生成
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/base/equipmentTypeFile/index.vue b/src/views/base/equipmentTypeFile/index.vue
deleted file mode 100644
index e148348e..00000000
--- a/src/views/base/equipmentTypeFile/index.vue
+++ /dev/null
@@ -1,229 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
- 重置
-
-
-
-
-
-
- 新增
-
-
- 导出
-
-
-
-
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
-
- 修改
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/core/base/equipment/assets/eq1.jpg b/src/views/core/base/equipment/assets/eq1.jpg
deleted file mode 100644
index e62db64c..00000000
Binary files a/src/views/core/base/equipment/assets/eq1.jpg and /dev/null differ
diff --git a/src/views/core/base/equipment/assets/eq10.jpg b/src/views/core/base/equipment/assets/eq10.jpg
deleted file mode 100644
index 1f738260..00000000
Binary files a/src/views/core/base/equipment/assets/eq10.jpg and /dev/null differ
diff --git a/src/views/core/base/equipment/assets/eq2.jpg b/src/views/core/base/equipment/assets/eq2.jpg
deleted file mode 100644
index 7ca5dcc1..00000000
Binary files a/src/views/core/base/equipment/assets/eq2.jpg and /dev/null differ
diff --git a/src/views/core/base/equipment/assets/eq3.jpg b/src/views/core/base/equipment/assets/eq3.jpg
deleted file mode 100644
index 45f23067..00000000
Binary files a/src/views/core/base/equipment/assets/eq3.jpg and /dev/null differ
diff --git a/src/views/core/base/equipment/assets/eq4.jpg b/src/views/core/base/equipment/assets/eq4.jpg
deleted file mode 100644
index 51476968..00000000
Binary files a/src/views/core/base/equipment/assets/eq4.jpg and /dev/null differ
diff --git a/src/views/core/base/equipment/assets/eq5.jpg b/src/views/core/base/equipment/assets/eq5.jpg
deleted file mode 100644
index 8e536163..00000000
Binary files a/src/views/core/base/equipment/assets/eq5.jpg and /dev/null differ
diff --git a/src/views/core/base/equipment/assets/eq6.jpg b/src/views/core/base/equipment/assets/eq6.jpg
deleted file mode 100644
index 256ec18e..00000000
Binary files a/src/views/core/base/equipment/assets/eq6.jpg and /dev/null differ
diff --git a/src/views/core/base/equipment/assets/eq7.jpg b/src/views/core/base/equipment/assets/eq7.jpg
deleted file mode 100644
index 3fae2905..00000000
Binary files a/src/views/core/base/equipment/assets/eq7.jpg and /dev/null differ
diff --git a/src/views/core/base/equipment/assets/eq8.jpg b/src/views/core/base/equipment/assets/eq8.jpg
deleted file mode 100644
index ff3c2c39..00000000
Binary files a/src/views/core/base/equipment/assets/eq8.jpg and /dev/null differ
diff --git a/src/views/core/base/equipment/assets/eq9.jpg b/src/views/core/base/equipment/assets/eq9.jpg
deleted file mode 100644
index 93754f39..00000000
Binary files a/src/views/core/base/equipment/assets/eq9.jpg and /dev/null differ
diff --git a/src/views/base/equipmentGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue
similarity index 100%
rename from src/views/base/equipmentGroup/components/BasicDrawer.vue
rename to src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue
diff --git a/src/views/base/equipmentGroup/components/dialogForm.vue b/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue
similarity index 98%
rename from src/views/base/equipmentGroup/components/dialogForm.vue
rename to src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue
index 519b435e..ec7a67a0 100644
--- a/src/views/base/equipmentGroup/components/dialogForm.vue
+++ b/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue
@@ -21,7 +21,7 @@
:disabled="disabled"
v-model="dataForm.code"
@change="$emit('update', dataForm)"
- placeholder="请输入工段排序" />
+ placeholder="请输入报警编码" />
+
+
+
+ collection config
+
+
+
+
+
+
diff --git a/src/views/equipment/base/config/DataCollection/TableConfig.vue b/src/views/equipment/base/config/DataCollection/TableConfig.vue
new file mode 100644
index 00000000..9eb98fd3
--- /dev/null
+++ b/src/views/equipment/base/config/DataCollection/TableConfig.vue
@@ -0,0 +1,385 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/equipment/base/config/deprecated/dialogForm.vue b/src/views/equipment/base/config/deprecated/dialogForm.vue
new file mode 100644
index 00000000..329186da
--- /dev/null
+++ b/src/views/equipment/base/config/deprecated/dialogForm.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/equipment/base/config/deprecated/index.vue b/src/views/equipment/base/config/deprecated/index.vue
new file mode 100644
index 00000000..dda58f82
--- /dev/null
+++ b/src/views/equipment/base/config/deprecated/index.vue
@@ -0,0 +1,361 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/extend/processFlowView/components/ProcessDetail.vue b/src/views/extend/processFlowView/components/ProcessDetail.vue
index 3d844ab0..5cb65004 100644
--- a/src/views/extend/processFlowView/components/ProcessDetail.vue
+++ b/src/views/extend/processFlowView/components/ProcessDetail.vue
@@ -227,8 +227,12 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}
- ).then(() => {
- view.cell.remove()
+ ).then(async () => {
+ const id = node.attrs.detId.text;
+ const status = await this.handleDelete(id);
+ if (status) {
+ view.cell.remove();
+ }
}).catch(err => {
return;
})
@@ -326,8 +330,9 @@ export default {
async handleDelete(id) {
const { code, data } = await this.delete({ id });
+ debugger;
if (code == 0) {
- this.$msgSuccess('成功删除一个工序!');
+ this.$modal.msgSuccess('成功删除一个工序!');
return true;
}
return false;
@@ -419,7 +424,7 @@ export default {
};
}
).catch(err => {
- this.$msgError(err)
+ this.$modal.msgError(err)
});
},
@@ -435,8 +440,11 @@ export default {
info(payload) {
return this.http(this.infoUrl, 'get', payload);
},
- delete(payload) {
- return this.http(this.deleteUrl, 'delete', payload);
+ delete({ id }) {
+ return this.$axios({
+ url: this.deleteUrl + `?id=${id}`,
+ method: 'delete',
+ });
},
http(url, method, payload) {
return this.$axios({
diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue
index a8be162d..81ca0e82 100644
--- a/src/views/system/menu/index.vue
+++ b/src/views/system/menu/index.vue
@@ -80,7 +80,7 @@
-
+