Browse Source

fix-bugs

tags/v1.22.11.2^2
chenshihai 3 years ago
parent
commit
611c52a087
3 changed files with 5 additions and 5 deletions
  1. +2
    -2
      web_src/js/components/Model.vue
  2. +1
    -1
      web_src/vuepages/pages/modelmanage/common/modelmanage-common-detail.vue
  3. +2
    -2
      web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-1.vue

+ 2
- 2
web_src/js/components/Model.vue View File

@@ -26,7 +26,7 @@
<span v-if="!scope.row.Children" :class="scope.row.modelType == '1' ? 'm-local' : 'm-online'">{{ scope.row.modelType == '1' ? i18n.local : i18n.online }}</span> <span v-if="!scope.row.Children" :class="scope.row.modelType == '1' ? 'm-local' : 'm-online'">{{ scope.row.modelType == '1' ? i18n.local : i18n.online }}</span>
<a <a
class="text-over" class="text-over"
:href="showinfoHref + scope.row.name"
:href="showinfoHref + encodeURIComponent(scope.row.name)"
:title="scope.row.name" :title="scope.row.name"
>{{ scope.row.name }}</a >{{ scope.row.name }}</a
> >
@@ -153,7 +153,7 @@
>--> >-->
<a class="op-btn" <a class="op-btn"
v-show="scope.row.modelType == 1" v-show="scope.row.modelType == 1"
:href="url + 'create_local_model_1?type=1&name=' + scope.row.name + '&id=' + scope.row.id"
:href="url + 'create_local_model_1?type=1&name=' + encodeURIComponent(scope.row.name) + '&id=' + scope.row.id"
:class="{ disabled: !scope.row.isCanOper }" :class="{ disabled: !scope.row.isCanOper }"
>{{ i18n.modify }}</a> >{{ i18n.modify }}</a>
<a class="op-btn" v-show="scope.row.modelType != 1" style="color:transparent;cursor:default;" >{{ i18n.modify }}</a> <a class="op-btn" v-show="scope.row.modelType != 1" style="color:transparent;cursor:default;" >{{ i18n.modify }}</a>


+ 1
- 1
web_src/vuepages/pages/modelmanage/common/modelmanage-common-detail.vue View File

@@ -342,7 +342,7 @@ export default {
} }
}, },
goUploadPage() { goUploadPage() {
window.location.href = `${this.repo}/modelmanage/create_local_model_2?type=1&name=${this.state.name}&id=${this.state.id}`;
window.location.href = `${this.repo}/modelmanage/create_local_model_2?type=1&name=${encodeURIComponent(this.state.name)}&id=${this.state.id}`;
}, },
backToModelListPage() { backToModelListPage() {
const list = window.location.href.split('/'); const list = window.location.href.split('/');


+ 2
- 2
web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-1.vue View File

@@ -168,7 +168,7 @@ export default {
const list = window.location.href.split('/'); const list = window.location.href.split('/');
list.pop(); list.pop();
list.push('create_local_model_2'); list.push('create_local_model_2');
window.location.href = list.join('/') + '?type=0&name=' + this.state.name + '&id=' + res.id;
window.location.href = list.join('/') + '?type=0&name=' + encodeURIComponent(this.state.name) + '&id=' + res.id;
} if (res && res.code == '-1') { } if (res && res.code == '-1') {
this.$message({ this.$message({
type: 'error', type: 'error',
@@ -194,7 +194,7 @@ export default {
const list = window.location.href.split('/'); const list = window.location.href.split('/');
list.pop(); list.pop();
list.push('show_model_info'); list.push('show_model_info');
window.location.href = list.join('/') + '?name=' + this.state.name;
window.location.href = list.join('/') + '?name=' + encodeURIComponent(this.state.name);
} }
}, },
mounted() { mounted() {


Loading…
Cancel
Save