diff --git a/src/views/business/form/drug/comp/ytbdList.vue b/src/views/business/form/drug/comp/ytbdList.vue
index 465cf8a..7b89a00 100644
--- a/src/views/business/form/drug/comp/ytbdList.vue
+++ b/src/views/business/form/drug/comp/ytbdList.vue
@@ -79,7 +79,7 @@
$t('form.detail') }}
{{
+ v-if="(scope.row.bdzt === 1||scope.row.bdzt === 7)&&id==scope.row.userId">{{
$t('form.edit') }}
diff --git a/src/views/business/form/nonTrial/comp/ytbdList.vue b/src/views/business/form/nonTrial/comp/ytbdList.vue
index 6557a49..12095da 100644
--- a/src/views/business/form/nonTrial/comp/ytbdList.vue
+++ b/src/views/business/form/nonTrial/comp/ytbdList.vue
@@ -79,7 +79,7 @@
$t('form.detail') }}
{{
+ v-if="(scope.row.bdzt === 1||scope.row.bdzt === 7)&&id==scope.row.userId">{{
$t('form.edit') }}
diff --git a/src/views/business/study/comp/jhbd/Bj.vue b/src/views/business/study/comp/jhbd/Bj.vue
index 8b34d2f..d91ccd6 100644
--- a/src/views/business/study/comp/jhbd/Bj.vue
+++ b/src/views/business/study/comp/jhbd/Bj.vue
@@ -41,7 +41,7 @@
-
@@ -70,15 +70,48 @@
-
- todo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/src/views/business/study/comp/sqbd/Bj.vue b/src/views/business/study/comp/sqbd/Bj.vue
index eb212a9..d4f3416 100644
--- a/src/views/business/study/comp/sqbd/Bj.vue
+++ b/src/views/business/study/comp/sqbd/Bj.vue
@@ -41,7 +41,7 @@
-
diff --git a/src/views/business/study/comp/ytbd/Bj.vue b/src/views/business/study/comp/ytbd/Bj.vue
index 1572949..54006d1 100644
--- a/src/views/business/study/comp/ytbd/Bj.vue
+++ b/src/views/business/study/comp/ytbd/Bj.vue
@@ -41,15 +41,15 @@
-
+
-
+
@@ -187,8 +187,8 @@ export default {
created() {
},
methods: {
- pre(){
- this.showIndex = 1
+ pre() {
+ this.showIndex = 1
},
next() {
this.$refs["form"].validate(valid => {
@@ -261,18 +261,22 @@ export default {
},
async saveNext() {
let content = await this.$refs.templateTable.getFormData()
- this.form.bdnr = JSON.stringify(content)
- this.$modal.loading()
- studyFormPre_bc(this.form).then(response => {
- this.$emit('close')
- this.$modal.closeLoading()
- }).finally(() => {
- this.$modal.closeLoading()
- })
+ if (content) {
+ this.form.bdnr = JSON.stringify(content)
+ this.$modal.loading()
+ studyFormPre_bc(this.form).then(response => {
+ this.$emit('close')
+ this.$modal.closeLoading()
+ }).finally(() => {
+ this.$modal.closeLoading()
+ })
+ }
},
async showtj() {
- await this.$refs.templateTable.getFormData()
+ let content = await this.$refs.templateTable.getFormData()
+ if (content) {
this.openSubmit = true
+ }
},
tj() {
this.$refs["formSubmit"].validate(valid => {
@@ -283,15 +287,17 @@ export default {
},
async dotj() {
let content = await this.$refs.templateTable.getFormData()
- this.form.bdnr = JSON.stringify(content)
- this.$modal.loading()
- studyFormPre_tj(this.form).then(response => {
- this.$emit('close')
- this.openSubmit = false
- this.$modal.closeLoading()
- }).finally(() => {
- this.$modal.closeLoading()
- })
+ if (content) {
+ this.form.bdnr = JSON.stringify(content)
+ this.$modal.loading()
+ studyFormPre_tj(this.form).then(response => {
+ this.$emit('close')
+ this.openSubmit = false
+ this.$modal.closeLoading()
+ }).finally(() => {
+ this.$modal.closeLoading()
+ })
+ }
}
}
}
diff --git a/src/views/business/study/comp/ytbdList.vue b/src/views/business/study/comp/ytbdList.vue
index c647016..284aa49 100644
--- a/src/views/business/study/comp/ytbdList.vue
+++ b/src/views/business/study/comp/ytbdList.vue
@@ -80,7 +80,7 @@
$t('form.detail') }}
{{
+ v-if="(scope.row.bdzt === 1||scope.row.bdzt === 7)&&id==scope.row.userId">{{
$t('form.edit') }}
diff --git a/vue.config.js b/vue.config.js
index fda6a2f..f82b590 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -34,8 +34,8 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
- target: `http://localhost:8080`,
- // target: `http://39.99.251.173:8080`,
+ //target: `http://localhost:8080`,
+ target: `http://39.99.251.173:8080`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''