readonly
This commit is contained in:
1 parent
b3fa84e828
commit
16e446e50f
4 files changed
+13
-10
No files matched your search
@@ -18,17 +18,17 @@
|
|||||||
v-on="on"
|
v-on="on"
|
||||||
placeholder='请选择日期'
|
placeholder='请选择日期'
|
||||||
:value="date"
|
:value="date"
|
||||||
:disabled="disabled"
|
:readonly="disabled"
|
||||||
></v-text-field>
|
></v-text-field>
|
||||||
</template>
|
</template>
|
||||||
<v-date-picker no-title scrollable v-model="date"></v-date-picker>
|
<v-date-picker no-title scrollable v-model="date"></v-date-picker>
|
||||||
</v-menu>
|
</v-menu>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="3" class="ma-0 pa-0">
|
<v-col cols="3" class="ma-0 pa-0">
|
||||||
<v-select class="jh-v-input ml-1" v-model="hour" dense filled single-line :items="_.map(_.range(24), String)" label="时" :disabled="disabled"></v-select>
|
<v-select class="jh-v-input ml-1" v-model="hour" dense filled single-line :items="_.map(_.range(24), String)" label="时" :readonly="disabled"></v-select>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="3" class="ma-0 pa-0">
|
<v-col cols="3" class="ma-0 pa-0">
|
||||||
<v-select class="jh-v-input ml-1" v-model="minute" dense filled single-line :items="_.map(_.range(60), String)" label="分钟" :disabled="disabled"></v-select>
|
<v-select class="jh-v-input ml-1" v-model="minute" dense filled single-line :items="_.map(_.range(60), String)" label="分钟" :readonly="disabled"></v-select>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<v-row class="ma-4 mt-2">
|
<v-row class="ma-4 mt-2">
|
||||||
<v-col cols="12" v-for="(formItem, index) in taskData.workflowForm" :key="index" class="px-2 py-1 ma-0">
|
<v-col cols="12" v-for="(formItem, index) in taskData.workflowForm" :key="index" class="px-2 py-1 ma-0">
|
||||||
<span class="jh-input-label">{{ index + 1 }}. {{ formItem.statement }}<span v-show="formItem.isRequire" class="red--text ml-1">*</span></span>
|
<span class="jh-input-label">{{ index + 1 }}. {{ formItem.statement }}<span v-show="formItem.isRequire" class="red--text ml-1">*</span></span>
|
||||||
<form-component-list v-if="isDrawerShown" :form-item="formItem" :disabled='false' @calc-workflow="getWorkflow" ></form-component-list>
|
<form-component-list v-if="isDrawerShown" :form-item="formItem" :disabled='false' :readonly='false' @calc-workflow="getWorkflow" ></form-component-list>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
<v-divider class="jh-divider"></v-divider>
|
<v-divider class="jh-divider"></v-divider>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<!-- 单选 -->
|
<!-- 单选 -->
|
||||||
<v-list-item-content v-if="formItem.type === 'single'" class="py-0">
|
<v-list-item-content v-if="formItem.type === 'single'" class="py-0">
|
||||||
<template v-if="formItem.optionList.length > 0">
|
<template v-if="formItem.optionList.length > 0">
|
||||||
<v-radio-group :disabled='disabled' v-model="formItem.answer" @change="calcWorkflow" >
|
<v-radio-group :readonly='readonly' v-model="formItem.answer" @change="calcWorkflow" >
|
||||||
<v-radio hide-details v-for="(option, optionIndex) in formItem.optionList"
|
<v-radio hide-details v-for="(option, optionIndex) in formItem.optionList"
|
||||||
:key="optionIndex" :label="option" :value="option"></v-radio>
|
:key="optionIndex" :label="option" :value="option"></v-radio>
|
||||||
</v-radio-group>
|
</v-radio-group>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
<v-list-item-content v-if="formItem.type === 'multiple'" class="py-0">
|
<v-list-item-content v-if="formItem.type === 'multiple'" class="py-0">
|
||||||
<template v-if="formItem.optionList.length > 0">
|
<template v-if="formItem.optionList.length > 0">
|
||||||
<div v-for="(option, optionIndex) in formItem.optionList" :key="optionIndex">
|
<div v-for="(option, optionIndex) in formItem.optionList" :key="optionIndex">
|
||||||
<v-checkbox class="mt-0" :disabled='disabled' :label="option" :value="option" hide-details v-model="formItem.answer" @click="calcWorkflow"></v-checkbox>
|
<v-checkbox class="mt-0" :readonly='readonly' :label="option" :value="option" hide-details v-model="formItem.answer" @click="calcWorkflow"></v-checkbox>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div v-else class="text-caption">请添加选项~</div>
|
<div v-else class="text-caption">请添加选项~</div>
|
||||||
@@ -23,12 +23,12 @@
|
|||||||
|
|
||||||
<!-- 多行文本 -->
|
<!-- 多行文本 -->
|
||||||
<v-list-item-content v-if="formItem.type === 'textarea'" class="py-0">
|
<v-list-item-content v-if="formItem.type === 'textarea'" class="py-0">
|
||||||
<v-textarea class="jh-v-input" dense outlined hide-details :disabled='disabled' :rows="4" placeholder='请输入' v-model="formItem.answer" />
|
<v-textarea class="jh-v-input" dense outlined hide-details :readonly="readonly" :rows="4" placeholder='请输入' v-model="formItem.answer" />
|
||||||
</v-list-item-content>
|
</v-list-item-content>
|
||||||
|
|
||||||
<!-- 单行文本 -->
|
<!-- 单行文本 -->
|
||||||
<v-list-item-content v-if="formItem.type === 'input'" class="py-0">
|
<v-list-item-content v-if="formItem.type === 'input'" class="py-0">
|
||||||
<v-text-field class="jh-v-input" dense outlined :disabled='disabled' placeholder='请输入' v-model="formItem.answer"></v-text-field>
|
<v-text-field class="jh-v-input" dense outlined :readonly='readonly' placeholder='请输入' v-model="formItem.answer"></v-text-field>
|
||||||
</v-list-item-content>
|
</v-list-item-content>
|
||||||
|
|
||||||
<!-- 文件 -->
|
<!-- 文件 -->
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
<!-- 数字 -->
|
<!-- 数字 -->
|
||||||
<v-list-item-content v-if="formItem.type === 'number'" class="py-0">
|
<v-list-item-content v-if="formItem.type === 'number'" class="py-0">
|
||||||
<v-text-field class="jh-v-input" type="number" dense outlined :disabled='disabled' placeholder='请输入' v-model="formItem.answer" @input="calcWorkflow"></v-text-field>
|
<v-text-field class="jh-v-input" type="number" dense outlined :readonly='readonly' placeholder='请输入' v-model="formItem.answer" @input="calcWorkflow"></v-text-field>
|
||||||
</v-list-item-content>
|
</v-list-item-content>
|
||||||
|
|
||||||
<!-- 日期选择器 -->
|
<!-- 日期选择器 -->
|
||||||
@@ -97,6 +97,10 @@ Vue.component("form-component-list", {
|
|||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
readonly: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -182,7 +182,6 @@
|
|||||||
{% block vueScript %}
|
{% block vueScript %}
|
||||||
|
|
||||||
<!-- 加载页面组件 >>>>>>>>>>>>> -->
|
<!-- 加载页面组件 >>>>>>>>>>>>> -->
|
||||||
{% include 'component/formItem.html' %}
|
|
||||||
{% include 'component/createTaskDrawer.html' %}
|
{% include 'component/createTaskDrawer.html' %}
|
||||||
{% include 'component/workflowEditorDrawer.html' %}
|
{% include 'component/workflowEditorDrawer.html' %}
|
||||||
{% include 'common/jianghuJs/fixedTableHeightV4.html' %}
|
{% include 'common/jianghuJs/fixedTableHeightV4.html' %}
|
||||||
|
|||||||
Reference in new issue
Block a user