diff --git a/src/views/archivesManage/lendManage/lendProcess/index.vue b/src/views/archivesManage/lendManage/lendProcess/index.vue index 8ec211a..87e2635 100644 --- a/src/views/archivesManage/lendManage/lendProcess/index.vue +++ b/src/views/archivesManage/lendManage/lendProcess/index.vue @@ -11,6 +11,19 @@ + + + + + +
+

您确定要修改当前借阅规则吗?

+ +
+
+ @@ -23,6 +36,7 @@ export default { mixins: [lendingCrud], data() { return { + rulesVisible: false } }, mounted() { @@ -30,13 +44,24 @@ export default { }, methods: { lendRuleType(val) { - const params = val === 'online' + this.rulesVisible = true + this.lineStateVal = val + }, + handleConfirmRules() { + const params = this.lineStateVal === 'online' FetchUpdateBorrowRule(params).then(data => { this.$message({ message: '修改借阅规则成功', type: 'success' }) + this.rulesVisible = false }) + }, + // 关闭 + handleClose(done) { + this.rulesVisible = false + this.lineStateVal = this.lineStateVal === 'online' ? 'offline' : 'online' + done() } } }