Browse Source

fix issue

tags/v1.22.8.1^2
zhoupzh 3 years ago
parent
commit
6549f6d08c
3 changed files with 17 additions and 20 deletions
  1. +1
    -1
      web_src/js/components/MinioUploader.vue
  2. +16
    -1
      web_src/js/features/cloudbrainShow.js
  3. +0
    -18
      web_src/js/features/cloudrbanin.js

+ 1
- 1
web_src/js/components/MinioUploader.vue View File

@@ -720,7 +720,7 @@ export default {
}
.datast-upload-progress .dataset-name {
text-align: right;
width: 120px;
width: 200px;
margin-right: 1rem;
}
.datast-upload-progress .dataset-progress {


+ 16
- 1
web_src/js/features/cloudbrainShow.js View File

@@ -197,7 +197,22 @@ export default async function initCloudrainSow() {
$(".log-info .log_bottom").trigger("click");
e.stopPropagation();
});

$(".stop-show-version").click(function (e) {
const ID = this.dataset.jobid;
const repoPath = this.dataset.repopath;
const version_name = this.dataset.version;
const url = `/api/v1/repos/${repoPath}/${ID}/stop_version`;
$.post(url, { version_name: version_name }, (data) => {
if (data.StatusOK === 0) {
$(`#${version_name}-stop`).removeClass("blue");
$(`#${version_name}-stop`).addClass("disabled");
refreshStatusShow(version_name, ID, repoPath);
}
}).fail(function (err) {
console.log(err);
});
e.stopPropagation();
});
function refreshStatusShow(version_name, ID, repoPath) {
$.get(
`/api/v1/repos/${repoPath}/${ID}?version_name=${version_name}`,


+ 0
- 18
web_src/js/features/cloudrbanin.js View File

@@ -329,24 +329,6 @@ export default async function initCloudrain() {
console.log(err);
});
}

$(".stop-show-version").click(function (e) {
const ID = this.dataset.jobid;
const repoPath = this.dataset.repopath;
const version_name = this.dataset.version;
const url = `/api/v1/repos/${repoPath}/${ID}/stop_version`;
$.post(url, { version_name: version_name }, (data) => {
if (data.StatusOK === 0) {
$(`#${version_name}-stop`).removeClass("blue");
$(`#${version_name}-stop`).addClass("disabled");
refreshStatusShow(version_name, ID, repoPath);
}
}).fail(function (err) {
console.log(err);
});
e.stopPropagation();
});

function refreshStatus(version_name, ID, repoPath) {
const url = `/api/v1/repos/${repoPath}/${ID}/?version_name${version_name}`;
$.get(url, (data) => {


Loading…
Cancel
Save