|
@@ -21,12 +21,14 @@
|
|
|
noChecked: '${total}',
|
|
|
hasChecked: '${checked}/${total}',
|
|
|
}"
|
|
|
+ @change="handleChange"
|
|
|
>
|
|
|
<el-button
|
|
|
slot="right-footer"
|
|
|
class="transfer-footer"
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
+ :disabled="!canEdit"
|
|
|
round
|
|
|
@click="updateCryptoConfigs()"
|
|
|
>保存</el-button
|
|
@@ -44,6 +46,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
loading: false,
|
|
|
+ canEdit: false,
|
|
|
allCryptoConfigs: [],
|
|
|
enableCryptoConfigs: [],
|
|
|
};
|
|
@@ -60,9 +63,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleChange() {
|
|
|
+ this.canEdit = true;
|
|
|
+ },
|
|
|
loadCryptoConfigs() {
|
|
|
this.loading = true;
|
|
|
let url = CORE_API + "/crypto/config/list";
|
|
|
+
|
|
|
this.$http.post(url).then(
|
|
|
(response) => {
|
|
|
let data = response.data;
|
|
@@ -113,7 +120,9 @@ export default {
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning",
|
|
|
}).then(() => {
|
|
|
+ this.canEdit = false;
|
|
|
let url = CORE_API + "/crypto/config/update";
|
|
|
+
|
|
|
this.$http.post(url, params).then(
|
|
|
() => {
|
|
|
this.$notify({
|