|
@ -11,6 +11,19 @@ |
|
|
</el-radio-group> |
|
|
</el-radio-group> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 确认修改借阅规则 --> |
|
|
|
|
|
<el-dialog title="确认删除" :visible.sync="rulesVisible" :close-on-click-modal="false" :before-close="handleClose"> |
|
|
|
|
|
<span class="dialog-right-top" /> |
|
|
|
|
|
<span class="dialog-left-bottom" /> |
|
|
|
|
|
<div class="setting-dialog"> |
|
|
|
|
|
<p><span style="color:#fff;">您确定要修改当前借阅规则吗?</span></p> |
|
|
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
|
|
|
<el-button type="primary" @click.native="handleConfirmRules">确定</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -23,6 +36,7 @@ export default { |
|
|
mixins: [lendingCrud], |
|
|
mixins: [lendingCrud], |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
rulesVisible: false |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
@ -30,13 +44,24 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
lendRuleType(val) { |
|
|
lendRuleType(val) { |
|
|
const params = val === 'online' |
|
|
|
|
|
|
|
|
this.rulesVisible = true |
|
|
|
|
|
this.lineStateVal = val |
|
|
|
|
|
}, |
|
|
|
|
|
handleConfirmRules() { |
|
|
|
|
|
const params = this.lineStateVal === 'online' |
|
|
FetchUpdateBorrowRule(params).then(data => { |
|
|
FetchUpdateBorrowRule(params).then(data => { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '修改借阅规则成功', |
|
|
message: '修改借阅规则成功', |
|
|
type: 'success' |
|
|
type: 'success' |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.rulesVisible = false |
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 关闭 |
|
|
|
|
|
handleClose(done) { |
|
|
|
|
|
this.rulesVisible = false |
|
|
|
|
|
this.lineStateVal = this.lineStateVal === 'online' ? 'offline' : 'online' |
|
|
|
|
|
done() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|