diff --git a/src/views/base/coreEquipmentLineBind/index.vue b/src/views/base/coreEquipmentLineBind/index.vue
index b5838000..bfc18f3c 100644
--- a/src/views/base/coreEquipmentLineBind/index.vue
+++ b/src/views/base/coreEquipmentLineBind/index.vue
@@ -1,48 +1,22 @@
@@ -72,15 +46,15 @@ export default {
tableBtn: [
this.$auth.hasPermi('base:core-equipment-type:update')
? {
- type: 'edit',
- btnName: '修改',
- }
+ type: 'edit',
+ btnName: '修改',
+ }
: undefined,
this.$auth.hasPermi('base:core-equipment-type:delete')
? {
- type: 'delete',
- btnName: '删除',
- }
+ type: 'delete',
+ btnName: '删除',
+ }
: undefined,
].filter((v) => v),
tableProps: [
@@ -96,10 +70,18 @@ export default {
{ prop: 'remark', label: '备注' },
],
searchBarFormConfig: [
+ {
+ type: 'select',
+ label: '产线',
+ placeholder: '请选择产线',
+ param: 'lineId',
+ selectOptions: [],
+ filterable: true
+ },
{
type: 'input',
- label: '设备类型',
- placeholder: '请输入设备类型名称',
+ label: '设备名',
+ placeholder: '请输入设备名称',
param: 'name',
},
{
@@ -186,9 +168,25 @@ export default {
// },
},
created() {
+ this.initSearchOptions()
this.getList();
},
methods: {
+ /** 初始化查询条件 */
+ async initSearchOptions() {
+ this.http('/base/core-production-line/listAll', 'get').then(
+ ({ code, data }) => {
+ if (code == 0) {
+ this.searchBarFormConfig[0].selectOptions = data.map((item) => {
+ return {
+ name: item.name,
+ id: item.id,
+ };
+ });
+ }
+ }
+ );
+ },
/** 查询列表 */
getList() {
this.loading = true;
@@ -276,7 +274,7 @@ export default {
this.getList();
this.$modal.msgSuccess('删除成功');
})
- .catch(() => {});
+ .catch(() => { });
},
/** 导出按钮操作 */
handleExport() {
@@ -294,7 +292,7 @@ export default {
this.$download.excel(response, '设备类型.xls');
this.exportLoading = false;
})
- .catch(() => {});
+ .catch(() => { });
},
},
};
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 @@
-
+