| @@ -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> | ||||
| @@ -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('/'); | ||||
| @@ -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() { | ||||