| | |
| | | #elseif($column.list && "" != $column.dictType)
|
| | | <el-table-column label="${comment}" align="center" prop="${javaField}">
|
| | | <template slot-scope="scope">
|
| | | #if($column.htmlType == "checkbox")
|
| | | <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.${javaField} ? scope.row.${javaField}.split(',') : []"/>
|
| | | #else
|
| | | <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.${javaField}"/>
|
| | | #end
|
| | | </template>
|
| | | </el-table-column>
|
| | | #elseif($column.list && "" != $javaField)
|
| | |
| | | /** ${subTable.functionName}删除按钮操作 */
|
| | | handleDelete${subClassName}() {
|
| | | if (this.checked${subClassName}.length == 0) {
|
| | | this.msgError("请先选择要删除的${subTable.functionName}数据");
|
| | | this.#[[$modal]]#.msgError("请先选择要删除的${subTable.functionName}数据");
|
| | | } else {
|
| | | const ${subclassName}List = this.${subclassName}List;
|
| | | const checked${subClassName} = this.checked${subClassName};
|
| | |
| | | handleExport() {
|
| | | this.download('${moduleName}/${businessName}/export', {
|
| | | ...this.queryParams
|
| | | }, `${moduleName}_${businessName}.xlsx`)
|
| | | }, `${businessName}_#[[${new Date().getTime()}]]#.xlsx`)
|
| | | }
|
| | | }
|
| | | };
|