vue2-client 1.2.54 → 1.2.55-test

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -220,7 +220,7 @@
220
220
  <a-divider style="font-size: 14px;margin-top: 0">数据源相关</a-divider>
221
221
  <a-form-model-item label="数据源类型" prop="selectType">
222
222
  <a-select v-model="item.selectType" placeholder="请选择数据源类型" @change="changeSelectKType">
223
- <a-select-option v-for="selectDataTypeItem in selectDataType" :key="selectDataTypeItem.key">{{ selectDataTypeItem.label }}</a-select-option>
223
+ <a-select-option v-for="selectDataTypeItem in selectDataType.filter(h=>!h.noMatch.includes(item.formType))" :key="selectDataTypeItem.key">{{ selectDataTypeItem.label }}</a-select-option>
224
224
  <a-popover
225
225
  slot="suffixIcon"
226
226
  placement="bottom"
@@ -358,7 +358,7 @@ import {
358
358
  addOrEditType,
359
359
  selectDataType
360
360
  } from '@vue2-client/config/CreateQueryConfig'
361
- import { commonApi, post } from '@/services/api'
361
+ import { commonApi, post } from '@vue2-client/services/api'
362
362
  import JsonViewer from 'vue-json-viewer'
363
363
 
364
364
  const DemoJson = [{
@@ -83,11 +83,11 @@ export default {
83
83
  formData.append('filesize', (info.file.size / 1024 / 1024).toFixed(4))
84
84
  formData.append('f_operator', this.currUser.username)
85
85
 
86
- let url = '/webmeteruploadapi/upload'
87
- if (process.env.NODE_ENV === 'production') {
88
- url = `/${this.model.stockAlias}/webmeteruploadapi/upload`
89
- }
90
- post(url, formData, { headers }).then(res => {
86
+ // const url = '/webmeteruploadapi/resource'
87
+ // if (process.env.NODE_ENV === 'production') {
88
+ // url = `/${this.model.stockAlias}/webmeteruploadapi/resource`
89
+ // }
90
+ post('/webmeterresourceapi/resource', formData, { headers }).then(res => {
91
91
  // 根据服务端返回的结果判断成功与否,设置文件条目的状态
92
92
  if (res.success) {
93
93
  fileInfo.status = 'done'