Commit f93110e4 authored by jingnan's avatar jingnan 👀

问题进展组件修改

parent 74e63b11
...@@ -11,6 +11,13 @@ export default { ...@@ -11,6 +11,13 @@ export default {
defaultValue: '', defaultValue: '',
name: 'el-input' name: 'el-input'
} }
},
{
key: 'readOnly',
title: '只读',
component: {
name: 'el-checkbox'
}
} }
] ]
} }
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
v-model="item.progressTime" v-model="item.progressTime"
size="small" size="small"
type="date" type="date"
:disabled="itemObj.readOnly"
value-format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择日期" placeholder="选择日期"
/> />
...@@ -28,10 +29,10 @@ ...@@ -28,10 +29,10 @@
<!-- :rules="[ <!-- :rules="[
{required: true, message: '该项必填', trigger: 'blur'}, {required: true, message: '该项必填', trigger: 'blur'},
]" --> ]" -->
<el-input v-model="item.progressItem" autosize type="textarea" size="small" @change="changeVal" /> <el-input v-model="item.progressItem" :disabled="itemObj.readOnly" autosize type="textarea" size="small" @change="changeVal" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2"> <el-col v-if="!itemObj.readOnly" :span="2">
<el-form-item class="btn-box"> <el-form-item class="btn-box">
<span v-if="index+1 == resultFormData.length" class="btn-item" title="新增" @click="addItem" @change="changeVal"> <span v-if="index+1 == resultFormData.length" class="btn-item" title="新增" @click="addItem" @change="changeVal">
<img src="/icons/c-add.png" alt=""> <img src="/icons/c-add.png" alt="">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment