diff --git a/src/views/specialEquipment/maintain/Monitor--detail.vue b/src/views/specialEquipment/maintain/Monitor--detail.vue
index cfbedc87..e39a632d 100644
--- a/src/views/specialEquipment/maintain/Monitor--detail.vue
+++ b/src/views/specialEquipment/maintain/Monitor--detail.vue
@@ -238,7 +238,7 @@ export default {
detailTableProps: [
{ prop: 'equipmentName', label: '设备名称' },
{ prop: 'program', label: '保养项目' },
- { prop: 'remark', label: '备注' },
+ { prop: 'maintenanceDes', label: '保养描述' },
],
detailTableQuery: {
pageNo: 1,
diff --git a/src/views/specialEquipment/maintain/Monitor.vue b/src/views/specialEquipment/maintain/Monitor.vue
index 64b79b93..01472b68 100644
--- a/src/views/specialEquipment/maintain/Monitor.vue
+++ b/src/views/specialEquipment/maintain/Monitor.vue
@@ -361,11 +361,10 @@ export default {
);
},
initSearchBar() {
- this.$watch('current', {});
- this.http('/base/core-equipment/listAll', 'get').then(({ data }) => {
- this.allSpecialEquipments = data.filter((item) => item.special);
- this.setSearchBarEquipmentList(data.filter((item) => item.special));
- });
+ // this.http('/base/core-equipment/listAll', 'get').then(({ data }) => {
+ // this.allSpecialEquipments = data.filter((item) => item.special);
+ // this.setSearchBarEquipmentList(data.filter((item) => item.special));
+ // });
this.http('/base/equipment-maintain-plan/page', 'get', {
pageNo: 1,
pageSize: 100,
@@ -382,7 +381,7 @@ export default {
});
},
handleEmitFun({ action, value }) {
- console.log('handleEmitFun .... ', action, value);
+ // console.log('handleEmitFun .... ', action, value);
switch (action) {
case '保养内容':
this.monitorDetailVisible = true;
diff --git a/src/views/specialEquipment/maintain/WaitingList.vue b/src/views/specialEquipment/maintain/WaitingList.vue
index 2e43e778..9835ff26 100644
--- a/src/views/specialEquipment/maintain/WaitingList.vue
+++ b/src/views/specialEquipment/maintain/WaitingList.vue
@@ -15,7 +15,7 @@
@headBtnClick="handleSearchBarBtnClick" />
-
-
+ -->
+
-
-
+
+
+
+ 确认
+
+
+
+ |
+ @click="handleEdit(scope.row)">
@@ -137,7 +144,7 @@
+ @click="handleDelete(scope.row)">
@@ -152,7 +159,7 @@ import moment from 'moment';
export default {
name: 'WaitingListTable',
components: {},
- props: {},
+ props: ['tableData', 'page', 'limit'],
filters: {
timeFilter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
relatePlanFilter: (val) =>
@@ -160,7 +167,6 @@ export default {
},
data() {
return {
- tableData: [],
tableProps: [
{
label: '设备保养单号',
@@ -209,11 +215,25 @@ export default {
true,
true,
],
+ selectedPlan: []
};
},
- computed: {},
+ computed: {
+ tableDataWithIndex() {
+ return this.tableData.map((item, index) => ({
+ ...item,
+ _pageIndex: (this.page - 1) * this.limit + index + 1
+ }))
+ }
+ },
methods: {
- handleSelectionChange() {},
+ handleSelectionChange(val) {
+ this.selectedPlan = val;
+ },
+ handleDelete(row) {},
+ handleDetail(row) {},
+ handleEdit(row) {},
+ handleConfirm(row) {},
},
};
@@ -226,4 +246,47 @@ export default {
.primary-color {
color: #0b58ff;
}
+
+.baseTable .show-col-btn {
+ margin-right: 5px;
+ line-height: inherit;
+ cursor: pointer;
+}
+.baseTable .el-icon-refresh {
+ cursor: pointer;
+}
+
+