projects/mesxc-lb #205
@ -59,7 +59,7 @@
|
|||||||
</base-dialog>
|
</base-dialog>
|
||||||
|
|
||||||
<!-- 设备 详情 - 编辑 -->
|
<!-- 设备 详情 - 编辑 -->
|
||||||
<!-- <EquipmentDrawer
|
<EquipmentDrawer
|
||||||
v-if="editVisible"
|
v-if="editVisible"
|
||||||
ref="drawer"
|
ref="drawer"
|
||||||
:mode="editMode"
|
:mode="editMode"
|
||||||
@ -108,7 +108,7 @@
|
|||||||
]"
|
]"
|
||||||
@refreshDataList="getList"
|
@refreshDataList="getList"
|
||||||
@cancel="cancelEdit"
|
@cancel="cancelEdit"
|
||||||
@destroy="cancelEdit" /> -->
|
@destroy="cancelEdit" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -388,25 +388,41 @@ export default {
|
|||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
this.reset();
|
this.reset();
|
||||||
|
this.form.id = row.id;
|
||||||
this.showUploadComponents = false;
|
this.showUploadComponents = false;
|
||||||
this.editMode = 'edit';
|
this.editMode = 'edit';
|
||||||
const id = row.id;
|
this.editVisible = true;
|
||||||
getEquipment(id).then((response) => {
|
this.$nextTick(() => {
|
||||||
this.form = response.data;
|
this.$refs['drawer'].init();
|
||||||
this.open = true;
|
|
||||||
this.title = '修改设备';
|
|
||||||
});
|
});
|
||||||
|
// this.reset();
|
||||||
|
// this.showUploadComponents = false;
|
||||||
|
// this.editMode = 'edit';
|
||||||
|
// const id = row.id;
|
||||||
|
// getEquipment(id).then((response) => {
|
||||||
|
// this.form = response.data;
|
||||||
|
// this.open = true;
|
||||||
|
// this.title = '修改设备';
|
||||||
|
// });
|
||||||
},
|
},
|
||||||
handleDetail(row) {
|
handleDetail(row, mode='detail') {
|
||||||
this.reset();
|
const {id} = row;
|
||||||
this.showUploadComponents = false;
|
this.form.id = id;
|
||||||
const id = row.id;
|
// 打开抽屉
|
||||||
this.editMode = 'detail';
|
this.editMode = mode;
|
||||||
getEquipment(id).then((response) => {
|
this.editVisible = true;
|
||||||
this.form = response.data;
|
this.$nextTick(() => {
|
||||||
this.open = true;
|
this.$refs['drawer'].init();
|
||||||
this.title = '查看详情';
|
})
|
||||||
});
|
// this.reset();
|
||||||
|
// this.showUploadComponents = false;
|
||||||
|
// const id = row.id;
|
||||||
|
// this.editMode = 'detail';
|
||||||
|
// getEquipment(id).then((response) => {
|
||||||
|
// this.form = response.data;
|
||||||
|
// this.open = true;
|
||||||
|
// this.title = '查看详情';
|
||||||
|
// });
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
Loading…
Reference in New Issue
Block a user