| | |
| | | #elseif($column.list && $column.htmlType == "datetime")
|
| | | <el-table-column label="${comment}" align="center" prop="${javaField}" width="180">
|
| | | <template slot-scope="scope">
|
| | | <span>{{ parseTime(scope.row.${javaField}) }}</span>
|
| | | <span>{{ parseTime(scope.row.${javaField}, '{y}-{m}-{d}') }}</span>
|
| | | </template>
|
| | | </el-table-column>
|
| | | #elseif($column.list && "" != $column.dictType)
|
| | |
| | | </el-table>
|
| | |
|
| | | <!-- 添加或修改${functionName}对话框 -->
|
| | | <el-dialog :title="title" :visible.sync="open" width="500px">
|
| | | <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
| | | #foreach($column in $columns)
|
| | | #set($field=$column.javaField)
|
| | |
| | | v-for="dict in ${field}Options"
|
| | | :key="dict.dictValue"
|
| | | :label="dict.dictLabel"
|
| | | :value="dict.dictValue"
|
| | | #if($column.javaType == "Integer" || $column.javaType == "Long"):value="parseInt(dict.dictValue)"#else:value="dict.dictValue"#end
|
| | |
|
| | | ></el-option>
|
| | | </el-select>
|
| | | </el-form-item>
|
| | |
| | | <el-radio
|
| | | v-for="dict in ${field}Options"
|
| | | :key="dict.dictValue"
|
| | | :label="dict.dictValue"
|
| | | #if($column.javaType == "Integer" || $column.javaType == "Long"):label="parseInt(dict.dictValue)"#else:label="dict.dictValue"#end
|
| | |
|
| | | >{{dict.dictLabel}}</el-radio>
|
| | | </el-radio-group>
|
| | | </el-form-item>
|
| | |
| | | #end
|
| | | #if(${column.dictType} != '')
|
| | | // $comment字典
|
| | | ${column.javaField}Options: []#if($velocityCount != $columns.size()),#end
|
| | |
|
| | | ${column.javaField}Options: [],
|
| | | #end
|
| | | #end
|
| | | // 查询参数
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|