admin
2024-11-22 e973ff52c9cfe64e6f5cb0ab1ab298890fa05802
billion-generator/src/main/resources/vm/vue/index.vue.vm
@@ -61,7 +61,7 @@
#end
#end
#end
      <el-form-item>
      <el-form-item style="float: right">
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
@@ -110,11 +110,11 @@
          v-hasPermi="['${moduleName}:${businessName}:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
##      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
    <el-table v-loading="loading" :data="${businessName}List" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
    <el-table border v-loading="loading" :data="${businessName}List" @selection-change="handleSelectionChange">
      <el-table-column show-overflow-tooltip="true" type="selection" width="55" align="center" />
#foreach($column in $columns)
#set($javaField=$column.javaField)
#set($parentheseIndex=$column.columnComment.indexOf("("))
@@ -127,9 +127,6 @@
      <el-table-column label="${comment}" align="center" prop="${javaField}" />
#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}, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
#elseif($column.list && $column.htmlType == "imageUpload")
      <el-table-column label="${comment}" align="center" prop="${javaField}" width="100">
@@ -151,24 +148,24 @@
      <el-table-column label="${comment}" align="center" prop="${javaField}" />
#end
#end
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['${moduleName}:${businessName}:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['${moduleName}:${businessName}:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
##      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
##        <template slot-scope="scope">
##          <el-button
##            size="mini"
##            type="text"
##            icon="el-icon-edit"
##            @click="handleUpdate(scope.row)"
##            v-hasPermi="['${moduleName}:${businessName}:edit']"
##          >修改</el-button>
##          <el-button
##            size="mini"
##            type="text"
##            icon="el-icon-delete"
##            @click="handleDelete(scope.row)"
##            v-hasPermi="['${moduleName}:${businessName}:remove']"
##          >删除</el-button>
##        </template>
##      </el-table-column>
    </el-table>
    
    <pagination
@@ -353,7 +350,7 @@
</template>
<script>
import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName} } from "@/api/${moduleName}/${businessName}";
import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${BusinessName}, update${BusinessName} } from "@/api/main/${moduleName}/${businessName}";
export default {
  name: "${BusinessName}",
@@ -551,7 +548,7 @@
    /** 删除按钮操作 */
    handleDelete(row) {
      const ${pkColumn.javaField}s = row.${pkColumn.javaField} || this.ids;
      this.#[[$modal]]#.confirm('是否确认删除${functionName}编号为"' + ${pkColumn.javaField}s + '"的数据项?').then(function() {
      this.#[[$modal]]#.confirm('是否确认删除').then(function() {
        return del${BusinessName}(${pkColumn.javaField}s);
      }).then(() => {
        this.getList();