Browse Source

feat:[模板管理][update]

lkf
luojie 3 months ago
parent
commit
5268589cb9
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      src/components/Template/HandleFormItem.vue

+ 13
- 1
src/components/Template/HandleFormItem.vue View File

@ -34,7 +34,7 @@
</div> </div>
<!-- qc才能操作 --> <!-- qc才能操作 -->
<div class="handle-row" v-if="isShowHandle()"> <div class="handle-row" v-if="isShowHandle()">
<el-checkbox :checked="getChecked()" v-if="this.templateFillType === 'qc'" class="mr-5"
<el-checkbox :checked="getChecked()" v-if="getIsShowCheckboxIcon()" :disabled="getCheckboxDisabled()" class="mr-5"
@change="onCheckboxChange"></el-checkbox> @change="onCheckboxChange"></el-checkbox>
<div class="handle-icon" v-if="getIsShowQuestionIcon()" @click="onClickQuestion" <div class="handle-icon" v-if="getIsShowQuestionIcon()" @click="onClickQuestion"
@mouseenter="(e) => onMouseEnter('replyRecord', e)" @mouseleave="onMouseLeave"> @mouseenter="(e) => onMouseEnter('replyRecord', e)" @mouseleave="onMouseLeave">
@ -453,6 +453,18 @@ export default {
} }
this.$emit("clickable", item) this.$emit("clickable", item)
}, },
//
getCheckboxDisabled(){
//qccheckbox
return this.templateFillType !== 'qc'
},
//
getIsShowCheckboxIcon() {
if(this.templateFillType === 'qc'){
return true;
}
return this.getChecked();
},
// //
getIsShowCopyIcon() { getIsShowCopyIcon() {
const { copyFrom } = this.item; const { copyFrom } = this.item;

Loading…
Cancel
Save