懒羊羊
2023-12-26 1aec611b8b2173acf089be0e313447a49a976b79
配方
已修改1个文件
29 ■■■■ 文件已修改
jcdm-generator/src/main/resources/vm/vue/index.vue.vm 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jcdm-generator/src/main/resources/vm/vue/index.vue.vm
@@ -1,5 +1,6 @@
<template>
  <div class="app-container">
    <el-card class="box-card">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
#foreach($column in $columns)
#if($column.query)
@@ -61,12 +62,14 @@
#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>
    </el-form>
    </el-card>
    <el-card style="margin-top: 10px" class="box-card">
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
@@ -113,7 +116,7 @@
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
    <el-table v-loading="loading" :data="${businessName}List" @selection-change="handleSelectionChange">
        <el-table border v-loading="loading" :data="${businessName}List" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
#foreach($column in $columns)
#set($javaField=$column.javaField)
@@ -151,18 +154,22 @@
      <el-table-column label="${comment}" align="center" prop="${javaField}" />
#end
#end
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
          <el-table-column fixed="right" width="200" label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
                type="success"
                plain
                style="width: 72px"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['${moduleName}:${businessName}:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
                type="danger"
                plain
                style="width: 72px"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['${moduleName}:${businessName}:remove']"
@@ -170,6 +177,7 @@
        </template>
      </el-table-column>
    </el-table>
    </el-card>
    
    <pagination
      v-show="total>0"
@@ -180,7 +188,11 @@
    />
    <!-- 添加或修改${functionName}对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
    <el-dialog v-dialogpop-up :title="title" :visible.sync="open" width="500px" append-to-body>
      <span slot="title">
        <i class="el-icon-s-order"></i>
        {{titleName}}
      </span>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
#foreach($column in $columns)
#set($field=$column.javaField)
@@ -364,6 +376,7 @@
    return {
      // 遮罩层
      loading: true,
      titleName: "",
      // 选中数组
      ids: [],
#if($table.sub)
@@ -500,7 +513,7 @@
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加${functionName}";
      this.titleName = "添加${functionName}";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
@@ -517,7 +530,7 @@
        this.${subclassName}List = response.data.${subclassName}List;
#end
        this.open = true;
        this.title = "修改${functionName}";
        this.titleName = "修改${functionName}";
      });
    },
    /** 提交按钮 */