Browse Source

feat: [模板管理] 细胞选择其他

ouqian
memorylkf 1 month ago
parent
commit
cdda2d0b53
2 changed files with 4 additions and 18 deletions
  1. +1
    -15
      src/components/Template/SelectTable.vue
  2. +3
    -3
      src/views/business/comps/template/dialog/SelectMixReagentDialog.vue

+ 1
- 15
src/components/Template/SelectTable.vue View File

@ -39,11 +39,6 @@
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
/> />
</div> </div>
<div v-if="selectType==='9' || selectType==='11'" style="margin-top:10px">
<el-checkbox v-model="checked">其他</el-checkbox>
<el-input v-model="inputVal" :placeholder="$t('form.placeholderInput')" v-if="checked" style="width:300px;margin-left:10px"></el-input>
</div>
</div> </div>
</div> </div>
</template> </template>
@ -57,10 +52,6 @@ export default {
type: Object, type: Object,
default: () => {}, default: () => {},
}, },
selectType: {//+
type: String,
default: "1",
},
checkType: {// checkType: {//
type: String, type: String,
default: "radio", default: "radio",
@ -108,10 +99,7 @@ export default {
pageSize: 10, pageSize: 10,
total: 0, total: 0,
}, },
dataSource: [],
checked:false,
inputVal:''
dataSource: []
} }
}, },
watch: { watch: {
@ -130,8 +118,6 @@ export default {
this.localSelectedId = '' this.localSelectedId = ''
this.initSearchForm(); this.initSearchForm();
this.getList(); this.getList();
this.checked = false
this.inputVal = ''
}, },
// //
initSearchForm() { initSearchForm() {

+ 3
- 3
src/views/business/comps/template/dialog/SelectMixReagentDialog.vue View File

@ -9,11 +9,11 @@
</el-radio-group> </el-radio-group>
<SelectTable ref="selectSjRef" :columns="columns" :selectedId="selectedId" :searchForm="searchForm" <SelectTable ref="selectSjRef" :columns="columns" :selectedId="selectedId" :searchForm="searchForm"
:checkType="checkType" :checkType="checkType"
:selectType="selectType"
:studyFormId="studyFormId" :studyId="studyId" :listApi="listApi" :selectedCode="selectedCode" @radioSelect="handleSelect" /> :studyFormId="studyFormId" :studyId="studyId" :listApi="listApi" :selectedCode="selectedCode" @radioSelect="handleSelect" />
<!-- 只有步骤才会又这个选项 -->
<div v-if="sourceFrom === 'step'" class="other-reagent">
<!-- 只有步骤才会又这个选项 -->
<!-- xb+xj也会 -->
<div v-if="sourceFrom === 'step' || selectType==='9' || selectType==='11'" class="other-reagent">
<el-checkbox v-model="otherChecked" @change="handleOtherChange">其他</el-checkbox> <el-checkbox v-model="otherChecked" @change="handleOtherChange">其他</el-checkbox>
<el-input class="other-reagent-input" v-model="otherReagent"></el-input> <el-input class="other-reagent-input" v-model="otherReagent"></el-input>
</div> </div>

Loading…
Cancel
Save