Commit 13610dbf by lanyulei Committed by GitHub

Merge pull request #29 from lanyulei/dev

fix bug.
parents b9b38df1 6e718e20
......@@ -109,7 +109,15 @@
form
@on-close="previewVisible = false"
>
<generate-form v-if="previewVisible" ref="generateForm" insite="true" :data="widgetForm" :value="widgetModels" :remote="remoteFuncs" @on-change="handleDataChange">
<generate-form
v-if="previewVisible"
ref="generateForm"
insite="true"
:data="widgetForm"
:value="widgetModels"
:remote="remoteFuncs"
@on-change="handleDataChange"
>
<template slot-scope="scope">
Width <el-input v-model="scope.model.blank.width" style="width: 100px" />
......
......@@ -164,7 +164,6 @@ export default {
})
} else if (genList[i].type === 'subform') {
// this.generateModle(genList[i].columns.list)
console.log(genList[i].columns)
} else {
if (this.value && Object.keys(this.value).indexOf(genList[i].model) >= 0) {
this.models[genList[i].model] = this.value[genList[i].model]
......
......@@ -63,7 +63,9 @@
<template v-else>
<template v-if="widget.type === 'input'">
<el-input
v-if="widget.options.dataType === 'number' || widget.options.dataType === 'integer' || widget.options.dataType === 'float'"
v-if="widget.options.dataType === 'number'
|| widget.options.dataType === 'integer'
|| widget.options.dataType === 'float'"
v-model.number="dataModel"
:type="widget.options.dataType"
:placeholder="widget.options.placeholder"
......
......@@ -396,7 +396,6 @@
<el-checkbox v-if="Object.keys(data.options).indexOf('arrowControl')>=0" v-model="data.options.arrowControl">{{ $t('fm.config.widget.arrowControl') }}</el-checkbox>
<el-checkbox v-if="Object.keys(data.options).indexOf('isDelete')>=0" v-model="data.options.isDelete">{{ $t('fm.config.widget.isDelete') }}</el-checkbox>
<el-checkbox v-if="Object.keys(data.options).indexOf('isEdit')>=0" v-model="data.options.isEdit">{{ $t('fm.config.widget.isEdit') }}</el-checkbox>
</el-form-item>
<el-form-item :label="$t('fm.config.widget.validate')">
<div v-if="Object.keys(data.options).indexOf('required')>=0">
......
......@@ -19,29 +19,38 @@
<div v-for="item in processLists" :key="item.id">
<div v-if="item.process_list.length!==0">
<div class="workflow-classify-title">{{ item.name }}</div>
<div class="workflow-classify-title">
{{ item.name }}
</div>
<div style="margin-bottom: 15px;">
<el-button
v-for="buttonItem in item.process_list"
:key="buttonItem.id"
class="workflow-classify-button"
plain
@click="submitWorkOrder(buttonItem.id)"
>
<div class="process-button-div">
<div class="process-div-icon">
<e-icon class="process-div-el-icon" :icon-name="buttonItem.icon" />
<template v-for="buttonItem in item.process_list">
<el-tooltip :key="buttonItem.id" effect="dark" placement="top">
<div slot="content">
{{ buttonItem.name }}
<br>
{{ buttonItem.remarks }}
</div>
<div class="process-div-body">
<div class="process-div-title ellipsis">
{{ buttonItem.name }}
</div>
<div class="process-div-remarks ellipsis">
{{ buttonItem.remarks }}
<el-button
class="workflow-classify-button"
plain
@click="submitWorkOrder(buttonItem.id)"
>
<div class="process-button-div">
<div class="process-div-icon">
<e-icon class="process-div-el-icon" :icon-name="buttonItem.icon" />
</div>
<div class="process-div-body">
<div class="process-div-title ellipsis">
{{ buttonItem.name }}
</div>
<div class="process-div-remarks ellipsis">
{{ buttonItem.remarks }}
</div>
</div>
</div>
</div>
</div>
</el-button>
</el-button>
</el-tooltip>
</template>
</div>
</div>
</div>
......@@ -81,8 +90,8 @@ export default {
<style scoped>
.workflow-classify-title {
border-bottom: 1px solid #dddddd;
padding-bottom: 5px;
border-left: 3px solid rgb(64, 158, 255);
padding-left: 5px;
}
.workflow-classify-button {
......
......@@ -52,7 +52,7 @@
:data="tplItem.form_structure"
:disabled="currentNode.readonlyTpls===undefined ||
currentNode.readonlyTpls===null ||
currentNode.readonlyTpls.indexOf(tplItem.id)===-1?false:true"
currentNode.readonlyTpls.indexOf(tplItem.id)===-1?null:true"
/>
</template>
</div>
......
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 sign in to comment