Compare commits

..

No commits in common. "4b771a9d7051e8b7d41874fc73e57ed90a48c4ee" and "b9f3b2460857c25fa5330bded6f6c437e0f4f309" have entirely different histories.

5 changed files with 22 additions and 26 deletions

View File

@ -2,7 +2,7 @@
ENV = 'usa' ENV = 'usa'
NODE_ENV = 'usa' NODE_ENV = 'usa'
# base public path # base public path
VUE_APP_BASE_PATH = 'https://ei-code-prod.s3.amazonaws.com/2024-08-12/' VUE_APP_BASE_PATH = 'https://ei-code-prod.s3.amazonaws.com/2024-08-09/'
# 是否开启登陆限制 true:是 false:否 # 是否开启登陆限制 true:是 false:否
VUE_APP_LOGIN_FOR_PERMISSION = true VUE_APP_LOGIN_FOR_PERMISSION = true

View File

@ -2,7 +2,7 @@
ENV = 'usa' ENV = 'usa'
NODE_ENV = 'usa' NODE_ENV = 'usa'
# base public path # base public path
VUE_APP_BASE_PATH = 'https://ei-code-prod.s3.amazonaws.com/2024-08-12/' VUE_APP_BASE_PATH = 'https://ei-code-prod.s3.amazonaws.com/2024-07-30/'
# 是否开启登陆限制 true:是 false:否 # 是否开启登陆限制 true:是 false:否
VUE_APP_LOGIN_FOR_PERMISSION = true VUE_APP_LOGIN_FOR_PERMISSION = true

View File

@ -17,6 +17,21 @@
v-model="form.QuestionName" v-model="form.QuestionName"
/> />
</el-form-item> </el-form-item>
<el-form-item
:label="$t('common:title:languageType')"
prop="LanguageType"
>
<el-select
v-model="form.LanguageType"
>
<el-option
v-for="item of $d.LanguageType"
:key="item.value"
:value="item.value"
:label="item.label"
/>
</el-select>
</el-form-item>
<!-- 类型 --> <!-- 类型 -->
<el-form-item <el-form-item
:label="$t('trials:qcCfg:table:type')" :label="$t('trials:qcCfg:table:type')"

View File

@ -326,7 +326,7 @@
</box-content> </box-content>
</template> </template>
<script> <script>
import { addDefaultQuestions , batchDeteteCriterionMedicineQuestion, getReadingMedicineTrialQuestionList, deleteReadingMedicineTrialQuestion, confirmReadingMedicineQuestion, verifyReadingMedicineQuestion, verifyIsCanConfirm } from '@/api/trials' import { batchDeteteCriterionMedicineQuestion, getReadingMedicineTrialQuestionList, deleteReadingMedicineTrialQuestion, confirmReadingMedicineQuestion, verifyReadingMedicineQuestion, verifyIsCanConfirm } from '@/api/trials'
import { getTrialCriterionList } from '@/api/trials/reading' import { getTrialCriterionList } from '@/api/trials/reading'
import BoxContent from '@/components/BoxContent' import BoxContent from '@/components/BoxContent'
import DefaultQS from './components/DefaultQsLang' import DefaultQS from './components/DefaultQsLang'
@ -334,7 +334,7 @@ import QSForm from './components/QSForm'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import QuestionsPreview from './components/QuestionsPreview' import QuestionsPreview from './components/QuestionsPreview'
import SignForm from '@/views/trials/components/newSignForm' import SignForm from '@/views/trials/components/newSignForm'
import const_ from '@/const/sign-code'; import const_ from '@/const/sign-code'
const searchDataDefault = () => { const searchDataDefault = () => {
return { return {
QuestionName: '', QuestionName: '',
@ -382,6 +382,7 @@ export default {
this.CurrentCriterionType = this.trialCriterionList.find(v => { this.CurrentCriterionType = this.trialCriterionList.find(v => {
return v.TrialReadingCriterionId === this.trialReadingCriterionId return v.TrialReadingCriterionId === this.trialReadingCriterionId
}).CriterionType }).CriterionType
console.log(this.CurrentCriterionType)
} }
}, },
mounted() { mounted() {
@ -389,23 +390,6 @@ export default {
this.getTrialCriterionList() this.getTrialCriterionList()
}, },
methods: { methods: {
//
addDefaultQuestions(){
let data = {
TrialId: this.$route.query.trialId,
TrialReadingCriterionId: this.trialReadingCriterionId,
LanguageType: 0
}
if( this.otherInfo.LanguageType === null ){
data.LanguageType = this.$i18n.locale === 'zh' ? 0 : 1
} else {
data.LanguageType = this.otherInfo.LanguageType
}
addDefaultQuestions(data).then(res => {
this.$message.success(this.$t('common:message:savedSuccessfully'))
this.getList();
})
},
handleSelectionChange(value) { handleSelectionChange(value) {
this.selectedList = value this.selectedList = value
}, },
@ -449,8 +433,7 @@ export default {
}, },
// //
handleAdd() { handleAdd() {
// this.addVisible = true this.addVisible = true
this.addDefaultQuestions();
}, },
handleEdit(row) { handleEdit(row) {
this.currentRow = { ...row } this.currentRow = { ...row }

View File

@ -1272,9 +1272,7 @@ export default {
// ",", // ",",
// " | " // " | "
// ); // );
let BodyPartTypes = res.BodyPartTypes; this.form.BodyPartTypeList = this.form.BodyPartTypes.split("|");
this.form.BodyPartTypes = "";
this.form.BodyPartTypeList = BodyPartTypes.split("|");
let r = await this.getTrialBodyPartList(); let r = await this.getTrialBodyPartList();
if (r) { if (r) {
var bodyPartTypes = this.form.BodyPartTypeList.map((i) => { var bodyPartTypes = this.form.BodyPartTypeList.map((i) => {