<el-form-item label="点数" prop="totalCount">
<el-input v-model="form.totalCount" :readonly="form.totalCount_readonly" placeholder="请输入点数" />
</el-form-item>
<el-form-item label="知识库" prop="params.isSendConfluence">
<el-select style="width: 100%;padding: 0" v-model="form.params.isSendConfluence" :disabled="isSendConfluence_disabled" placeholder="是否发送到知识库">
<el-option label="发送" value="1"></el-option>
<el-option label="不发送" value="0"></el-option>
</el-select>
</el-form-item>
data() {
return {
//可以编辑
isSendConfluence_disabled:false,
}}
for (let key in this.form) {
if (key !== 'ausker') {
this.$set(this.form, key + '_readonly', true); // 添加一个新的字段表示只读状态
this.isSendConfluence_disabled = true;
}
}