|
@@ -257,9 +257,28 @@ export default {
|
|
},
|
|
},
|
|
gotoEdit (item) {
|
|
gotoEdit (item) {
|
|
let url = item.webSite
|
|
let url = item.webSite
|
|
- let temp = ''
|
|
|
|
- temp = url.replace('show', 'edit')
|
|
|
|
- window.open(temp.replace('http://', 'https://') + (this.language === 'en' ? '&lang=en' : ''), '_blank')
|
|
|
|
|
|
+ let page = url.substring(url.lastIndexOf('/') + 1, url.lastIndexOf('.html'))
|
|
|
|
+ let pStr = ''
|
|
|
|
+ if (item.buildType) {
|
|
|
|
+ switch (item.buildType.toLowerCase()) {
|
|
|
|
+ case 'v1':
|
|
|
|
+ pStr = 'edit'
|
|
|
|
+ break
|
|
|
|
+ case 'v2':
|
|
|
|
+ pStr = 'editProPC'
|
|
|
|
+
|
|
|
|
+ break
|
|
|
|
+ case 'v3':
|
|
|
|
+ pStr = 'epc'
|
|
|
|
+ break
|
|
|
|
+ default:
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ url = pStr ? url.replace(page, pStr) : url
|
|
|
|
+
|
|
|
|
+ window.open(url.replace('http://', 'https://') + (this.language === 'en' ? '&lang=en' : ''), '_blank')
|
|
},
|
|
},
|
|
async del (item) {
|
|
async del (item) {
|
|
this.$toast.showConfirm('warn', this.langScenes.delwarn, async () => {
|
|
this.$toast.showConfirm('warn', this.langScenes.delwarn, async () => {
|