wangting
2025-01-15 a0d36d46fcc10b52408ecd12d0cb319b35d7bd03
调整按钮大小,修改流程模板页面
已修改7个文件
已添加2个文件
289 ■■■■■ 文件已修改
Source/plt-web/plt-web-ui/src/api/processTemplate/define.js 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/api/processTemplate/type.js 31 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/attributePool/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/businessType/index.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/enumType/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/linkType/index.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/versioning/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/processTemplate/customDefine/index.vue 173 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/views/processTemplate/customType/index.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/api/processTemplate/define.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,31 @@
import request from '@/router/axios';
// åˆ—表查询
export function getProcessTempList(params) {
  return request({
    url: "/api/pvolumesController/getPvolumesPage",
    method: "get",
    params
  });
}
export function saveProcessTemp(params) {
  return request({
    url: "/api/pvolumesController/savePvolume",
    method: "post",
    data: params
  });
}
export function updateProcessTemp(params) {
  return request({
    url: "/api/pvolumesController/updatePvolume",
    method: "post",
    data: params
  });
}
export function deleteProcessTemp(params) {
  return request({
    url: "/api/pvolumesController/deletePvolume",
    method: "delete",
    params
  })
}
Source/plt-web/plt-web-ui/src/api/processTemplate/type.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,31 @@
import request from '@/router/axios';
// åˆ—表查询
export function getTypeList(params) {
  return request({
    url: "/api/pvolumesController/getPvolumesPage",
    method: "get",
    params
  });
}
export function saveType(params) {
  return request({
    url: "/api/pvolumesController/savePvolume",
    method: "post",
    data: params
  });
}
export function updateType(params) {
  return request({
    url: "/api/pvolumesController/updatePvolume",
    method: "post",
    data: params
  });
}
export function deleteType(params) {
  return request({
    url: "/api/pvolumesController/deletePvolume",
    method: "delete",
    params
  })
}
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/attributePool/index.vue
@@ -516,8 +516,8 @@
        </el-form>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="addSaveHandler">ç¡® å®š</el-button>
        <el-button @click="addEscHandler">取 æ¶ˆ</el-button>
        <el-button size="small" type="primary" @click="addSaveHandler">ç¡® å®š</el-button>
        <el-button size="small" @click="addEscHandler">取 æ¶ˆ</el-button>
      </span>
    </el-dialog>
    <!--导入    -->
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/businessType/index.vue
@@ -319,8 +319,8 @@
        </avue-crud>
      </div>
      <span slot="footer" class="dialog-footer">
         <el-button type="primary" @click="addDialogSavaHandler">ç¡® å®š</el-button>
         <el-button @click="addDialogClose">取 æ¶ˆ</el-button>
         <el-button size="small" type="primary" @click="addDialogSavaHandler">ç¡® å®š</el-button>
         <el-button size="small" @click="addDialogClose">取 æ¶ˆ</el-button>
        </span>
    </el-dialog>
@@ -350,8 +350,8 @@
      >
      </avue-crud>
      <span slot="footer" class="dialog-footer">
         <el-button type="primary" @click="dialogAttrAddClickHandler">ç¡® å®š</el-button>
         <el-button @click="dialogAttrClose">取 æ¶ˆ</el-button>
         <el-button size="small" type="primary" @click="dialogAttrAddClickHandler">ç¡® å®š</el-button>
         <el-button size="small" @click="dialogAttrClose">取 æ¶ˆ</el-button>
        </span>
    </el-dialog>
@@ -394,8 +394,8 @@
        :table-loading="conCheckLoading">
      </avue-crud>
      <span slot="footer" class="dialog-footer">
         <el-button type="primary" @click="repairClickHandler">ä¿® å¤</el-button>
         <el-button @click="conCheckVisible = false">取 æ¶ˆ</el-button>
         <el-button size="small" type="primary" @click="repairClickHandler">ä¿® å¤</el-button>
         <el-button size="small" @click="conCheckVisible = false">取 æ¶ˆ</el-button>
        </span>
    </el-dialog>
@@ -459,8 +459,8 @@
        </span>
      </el-dialog>
      <span slot="footer" class="dialog-footer">
         <el-button type="primary" @click="indexClickAddHandler">保 å­˜</el-button>
         <el-button @click="indexDialogClose">取 æ¶ˆ</el-button>
         <el-button size="small" type="primary" @click="indexClickAddHandler">保 å­˜</el-button>
         <el-button size="small" @click="indexDialogClose">取 æ¶ˆ</el-button>
        </span>
    </el-dialog>
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/enumType/index.vue
@@ -114,8 +114,8 @@
            </el-row>
          </el-form>
          <span slot="footer" class="dialog-footer">
            <el-button type="primary" @click="rowSaveHandler">ç¡® å®š</el-button>
            <el-button @click="dialogVisible = false">取 æ¶ˆ</el-button>
            <el-button size="small" type="primary" @click="rowSaveHandler">ç¡® å®š</el-button>
            <el-button size="small" @click="dialogVisible = false">取 æ¶ˆ</el-button>
          </span>
        </el-dialog>
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/linkType/index.vue
@@ -294,8 +294,8 @@
        </avue-crud>
      </div>
      <span slot="footer" class="dialog-footer">
         <el-button type="primary" @click="addDialogSavaHandler">ç¡® å®š</el-button>
         <el-button @click="addDialogClose">取 æ¶ˆ</el-button>
         <el-button size="small" type="primary" @click="addDialogSavaHandler">ç¡® å®š</el-button>
         <el-button size="small" @click="addDialogClose">取 æ¶ˆ</el-button>
      </span>
      <!-- å±žæ€§æ± åˆ—表 -->
@@ -324,8 +324,8 @@
        >
        </avue-crud>
        <span slot="footer" class="dialog-footer">
         <el-button type="primary" @click="dialogAttrAddClickHandler">ç¡® å®š</el-button>
         <el-button @click="dialogAttrClose">取 æ¶ˆ</el-button>
         <el-button size="small" type="primary" @click="dialogAttrAddClickHandler">ç¡® å®š</el-button>
         <el-button size="small" @click="dialogAttrClose">取 æ¶ˆ</el-button>
        </span>
      </el-dialog>
    </el-dialog>
@@ -345,8 +345,8 @@
        :table-loading="conCheckLoading">
      </avue-crud>
      <span slot="footer" class="dialog-footer">
         <el-button @click="conCheckVisible = false">取 æ¶ˆ</el-button>
         <el-button type="primary" @click="repairClickHandler">ä¿® å¤</el-button>
         <el-button size="small" @click="conCheckVisible = false">取 æ¶ˆ</el-button>
         <el-button size="small" type="primary" @click="repairClickHandler">ä¿® å¤</el-button>
        </span>
    </el-dialog>
@@ -372,8 +372,8 @@
      </avue-crud>
      <span slot="footer" class="dialog-footer">
         <el-button type="primary" @click="bizTypeAddHandler">ç¡® å®š</el-button>
         <el-button @click="bizTypeVisible = false">取 æ¶ˆ</el-button>
         <el-button size="small" type="primary" @click="bizTypeAddHandler">ç¡® å®š</el-button>
         <el-button size="small" @click="bizTypeVisible = false">取 æ¶ˆ</el-button>
        </span>
    </el-dialog>
Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/versioning/index.vue
@@ -97,8 +97,8 @@
        </el-row>
      </el-form>
      <span slot="footer" class="dialog-footer">
         <el-button type="primary" @click="addSaveHandler">ç¡® å®š</el-button>
         <el-button @click="visibleCloseHandler">取 æ¶ˆ</el-button>
         <el-button size="small" type="primary" @click="addSaveHandler">ç¡® å®š</el-button>
         <el-button size="small" @click="visibleCloseHandler">取 æ¶ˆ</el-button>
        </span>
    </el-dialog>
Source/plt-web/plt-web-ui/src/views/processTemplate/customDefine/index.vue
@@ -20,12 +20,104 @@
        æŸ¥è¯¢
      </el-button>
    </div>
    <div>
      <el-main>
        <basic-container>
          <avue-crud
            ref="userCrud"
            :data="tableData"
            :option="option"
            :table-loading="tableLoading"
            @on-load="getTableList"
            @refresh-change="handleRefresh"
            @search-change="handleSearch"
            @search-reset="handleReset"
            @selection-change="selectChange"
            @row-click="rowClickHandler"
          >
            <template slot="menuLeft" slot-scope="scope">
              <el-button v-if="permissionList.addBtn" class="button-custom-icon" plain size="small" type="primary"
                         @click="rowSaveHandlerClick">
                <icon-show :name="permissionList.addBtn.source"></icon-show>
                åˆ›å»º
              </el-button>
              <el-button v-if="permissionList.delBtn" class="button-custom-icon" plain size="small" type="danger"
                         @click="allDelHandler">
                <icon-show :name="permissionList.delBtn.source"></icon-show>
                åˆ é™¤
              </el-button>
              <el-button v-if="permissionList.viewTheScopeBtn" class="button-custom-icon" plain size="small"
                         type="primary"
                         @click="chekView">
                <icon-show :name="permissionList.viewTheScopeBtn.source"></icon-show>
                æŸ¥çœ‹ä½¿ç”¨èŒƒå›´
              </el-button>
              <el-button v-if="permissionList.downloadImportTemplateBtn" class="button-custom-icon" plain size="small"
                         type="primary" @click="downloadTemplateHandler">
                <icon-show :name="permissionList.downloadImportTemplateBtn.source"></icon-show>
                ä¸‹è½½å¯¼å…¥æ¨¡æ¿
              </el-button>
              <el-button v-if="permissionList.importBtn" class="button-custom-icon" plain size="small" type="primary"
                         @click="uploadUser">
                <icon-show :name="permissionList.importBtn.source"></icon-show>
                å¯¼å…¥
              </el-button>
              <el-button v-if="permissionList.exportBtn" class="button-custom-icon" plain size="small" type="primary"
                         @click="downloadHandler">
                <icon-show :name="permissionList.exportBtn.source"></icon-show>
                å¯¼å‡º
              </el-button>
            </template>
            <template slot="menu" slot-scope="scope">
              <el-button v-if="permissionList.editBtn" size="small" type="text"
                         @click="editBtnClick(scope.row)">
                <icon-show :name="permissionList.editBtn.source"></icon-show>
                ç¼–辑
              </el-button>
              <el-button v-if="permissionList.delBtn" size="small" type="text"
                         @click="rowDeleteHandler(scope.row)">
                <icon-show :name="permissionList.delBtn.source"></icon-show>
                åˆ é™¤
              </el-button>
            </template>
          </avue-crud>
          <!-- åˆ›å»ºç¼–辑自定义对话框    -->
          <el-dialog
            v-dialogDrag
            v-loading="dialogLoading"
            :title="dialogType === 'add' ? ' åˆ›å»º' : '编辑'"
            :visible.sync="dialogVisible"
            append-to-body="true"
            class="avue-dialog"
            width="1000px"
            @close="dialogClose"
          >
            <span slot="footer" class="dialog-footer">
              <el-button size="small" type="primary" @click="rowSaveHandler">ç¡® å®š</el-button>
              <el-button size="small" @click="dialogVisible = false">取 æ¶ˆ</el-button>
            </span>
          </el-dialog>
        </basic-container>
      </el-main>
      <el-aside width="35%">
        <basic-container>
        </basic-container>
      </el-aside>
    </div>
  </basic-container>
</template>
<script>
import {mapGetters} from "vuex";
import basicOption from "@/util/basic-option";
import {deleteType, getTypeList, saveType, updateType} from "@/api/processTemplate/type";
import {getProcessTempList,saveProcessTemp,updateProcessTemp,deleteProcessTemp} from "@/api/processTemplate/define";
import func from "@/util/func";
export default {
  name: "index",
@@ -85,11 +177,90 @@
  },
  methods:{
    getTableList(){
      this.tableLoading = true;
      getProcessTempList().then(res => {
        this.tableData = res.data.data;
        this.tableLoading = false;
      })
    },
    //流程分类选择
    tempTypeChange(val){
      this.getTableList();
    },
    // æ–°å¢ž
    saveHandler(row, done, loading) {
      saveProcessTemp(row).then(res => {
        if (res.data.code === 200) {
          this.$message.success(res.data.obj);
          this.getTableList();
          done();
    }
      }).catch(err => {
        loading()
      });
    },
    handleEdit(row,index){
      this.$refs.crud.rowEdit(row, index);
    },
    // ç¼–辑
    updateHandler(row, index, done, loading) {
      updateProcessTemp(row).then(res => {
        if (res.data.code === 200) {
          this.$message.success(res.data.obj);
          this.getTableList();
          done()
        }
      }).catch(err => {
        loading()
      });
    },
    // åˆ é™¤
    handleDel(row,index) {
      let params = {
        ids: row.id
      }
      this.$confirm('您确定要删除当前数据吗?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        deleteProcessTemp(params).then(res => {
          if (res.data.code === 200) {
            this.$message.success(res.data.obj);
            this.getTableList();
          }
        });
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
    },
    //选择的行
    selectionChange(list) {
      this.selectionList = list;
    },
    // è¡Œå•选
    rowClickHandler(row) {
      func.rowClickHandler(
        row,
        this.$refs.crud,
        this.lastIndex,
        (newIndex) => {
          this.lastIndex = newIndex;
        },
        () => {
          this.selectionList = [row];
        }
      );
    },
  }
}
</script>
Source/plt-web/plt-web-ui/src/views/processTemplate/customType/index.vue
@@ -51,7 +51,7 @@
<script>
import {mapGetters} from "vuex";
import basicOption from "@/util/basic-option";
import {deletePvolume, getPvolumesPage, savePvolume, updatePvolume} from "@/api/system/fileCab/api";
import {getTypeList, saveType, updateType, deleteType} from "@/api/processTemplate/type";
import func from "@/util/func";
export default {
@@ -112,7 +112,7 @@
    // è¡¨æ ¼è¯·æ±‚
    getTableList() {
      this.tableLoading = true;
      getPvolumesPage().then(res => {
      getTypeList().then(res => {
        this.tableData = res.data.data;
        this.tableLoading = false;
      })
@@ -120,7 +120,7 @@
    // æ–°å¢ž
    rowSaveHandler(row, done, loading) {
      savePvolume(row).then(res => {
      saveType(row).then(res => {
        if (res.data.code === 200) {
          this.$message.success(res.data.obj);
          this.getTableList();
@@ -137,7 +137,7 @@
    // ç¼–辑
    rowUpdateHandler(row, index, done, loading) {
      updatePvolume(row).then(res => {
      updateType(row).then(res => {
        if (res.data.code === 200) {
          this.$message.success(res.data.obj);
          this.getTableList();
@@ -159,7 +159,7 @@
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        deletePvolume(params).then(res => {
        deleteType(params).then(res => {
          if (res.data.code === 200) {
            this.$message.success(res.data.obj);
            this.getTableList();