| | |
| | | <el-input |
| | | :placeholder="$t('dataManage.layerObj.prompt4')" |
| | | style="width: 60%;" |
| | | v-model="formInline.url" |
| | | v-model="formInline.serviceUrl" |
| | | :disabled="formInline.service =='1'" |
| | | ></el-input> |
| | | </el-form-item> |
| | |
| | | :disabled="insertData.service =='1'" |
| | | :placeholder="$t('dataManage.layerObj.prompt4')" |
| | | style="width: 60%;" |
| | | v-model="insertData.url" |
| | | v-model="insertData.serviceUrl" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <!-- 是否显示 --> |
| | |
| | | isLayer: null, |
| | | category: null, |
| | | status: null, |
| | | service: '0' |
| | | service: '0', |
| | | serviceUrl: null |
| | | }, |
| | | serveType: null, |
| | | dataType: null, |
| | |
| | | if (this.multipleSelection.length <= 0) { |
| | | return this.$message("未选择资源数据"); |
| | | } |
| | | |
| | | var url; |
| | | var url, serviceUrl; |
| | | if (this.multipleSelection.status == 1) { |
| | | serviceUrl = this.multipleSelection.url; |
| | | url = this.multipleSelection.url; |
| | | } else if (this.multipleSelection.status == 2) { |
| | | var token = getToken() |
| | | url = BASE_URL + this.multipleSelection.proxy.replaceAll('{token}', token); |
| | | serviceUrl = BASE_URL + this.multipleSelection.proxy.replaceAll('{token}', token); |
| | | url = this.multipleSelection.proxy; |
| | | } |
| | | |
| | | if (this.dialogVisible) { |
| | | this.insertData.cnName = this.multipleSelection.cnName; |
| | | this.insertData.enName = this.multipleSelection.enName; |
| | | this.insertData.type = this.multipleSelection.type; |
| | | this.insertData.resid = this.multipleSelection.id |
| | | this.insertData.serviceUrl = serviceUrl; |
| | | this.insertData.url = url; |
| | | this.insertData.service = '1' |
| | | this.insertData.status = this.multipleSelection.status; |
| | | } else { |
| | | this.formInline.cnName = this.multipleSelection.cnName; |
| | | this.formInline.enName = this.multipleSelection.enName; |
| | | this.formInline.type = this.multipleSelection.type; |
| | | this.formInline.resid = this.multipleSelection.id |
| | | this.formInline.serviceUrl = serviceUrl; |
| | | this.formInline.url = url; |
| | | this.formInline.service = '1' |
| | | this.formInline.status = this.multipleSelection.status; |
| | | } |
| | | |
| | | |
| | | |
| | | this.dialogService = false |
| | | |
| | | }, |
| | | setServiceRest() { |
| | | this.listData = { |
| | |
| | | async submitForm() { |
| | | var val = this.insertData; |
| | | val.status = parseInt(val.status); |
| | | |
| | | // val.isProject = parseInt(val.isProject); |
| | | const data = await layer_insert(val); |
| | | if (data.code != 200) { |
| | |
| | | this.formInline = result; |
| | | this.formInline.isLayer = res.isLayer.toString(); |
| | | this.formInline.status = result.status.toString(); |
| | | var url; |
| | | if (result.status == '1') { |
| | | url = result.url; |
| | | } else if (result.status == '2') { |
| | | var token = getToken() |
| | | url = BASE_URL + result.proxy.replaceAll('{token}', token); |
| | | } |
| | | this.formInline.serviceUrl = url; |
| | | if (res.resid && res.resid > 0) { |
| | | this.formInline.service = '1' |
| | | } else { |
| | |
| | | isProject: '0', |
| | | enName: '', |
| | | isLayer: null, |
| | | category: null |
| | | category: null, |
| | | serviceUrl: null |
| | | } |
| | | }, |
| | | //获取权限 |