Browse Source

ecrf编辑功能完成

360view
bianyaqi 2 years ago
parent
commit
15a8de7091
  1. 4
      public/index.html
  2. 2
      src/page-subspecialty/views/modules/scientificManagement/subjectMgt/ecrf/add-or-update.vue
  3. 13
      src/page-subspecialty/views/modules/scientificManagement/subjectMgt/ecrf/index.vue

4
public/index.html

@ -39,9 +39,9 @@
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<script>
//http://121.36.16.195:9002/huimu-admin/swagger-ui/index.html
// window.SITE_CONFIG['apiURL'] = 'http://47.110.224.240:8036/xiangan-crf';
window.SITE_CONFIG['apiURL'] = 'http://47.110.224.240:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://192.168.0.167:8036/xiangan-crf';
window.SITE_CONFIG['apiURL'] = 'http://192.168.4.174:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://192.168.4.174:8036/xiangan-crf';
</script>
<% } %>
<!-- 测试环境 -->

2
src/page-subspecialty/views/modules/scientificManagement/subjectMgt/ecrf/add-or-update.vue

@ -94,7 +94,7 @@ export default {
},
//
getInfo() {
this.$http.get('/crf/template', { params: { crfId: this.dataForm.id }}).then(({ data: res }) => {
this.$http.get(`/project/crf/template/${this.dataForm.id}`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}

13
src/page-subspecialty/views/modules/scientificManagement/subjectMgt/ecrf/index.vue

@ -30,7 +30,7 @@
<el-button
type="text"
size="small"
@click="addOrUpdateHandle(scope.row.id,scope.row)"
@click="addOrUpdateHandle(scope.row.id,{...scope.row})"
>{{ $t('update') }}</el-button>
<el-button
type="text"
@ -102,6 +102,17 @@ export default {
})
})
}
// addOrUpdateCrf() {
// this.addOrUpdateVisible = true
// this.$nextTick(() => {
// this.$refs.addOrUpdate.dataForm.id = id
// noParams ? '' : this.$refs.addOrUpdate.params = params || {}
// this.$refs.addOrUpdate.dataForm.title = title
// // BUGparams
// // this.$refs.addOrUpdate.dataForm = { id, ...params, title }
// this.$refs.addOrUpdate.init()
// })
// }
}
}
</script>

Loading…
Cancel
Save