gaoshp
2024-11-03 3e091224ab26252d8624b42b461ba773ee8bee0f
src/views/console/basic-data/work-process.vue
@@ -171,8 +171,8 @@
            },
            isAddData0: false,
            isAddData1: false,
            uploadUrl: "/api/blade-cps/employee/import-employee",
            exportUrl: "/api/blade-cps/employee/export-template",
            uploadUrl: "/api/smis/employee/import-employee",
            exportUrl: "/api/smis/employee/export-template",
            categoryList: [],
            selection: [],
            searchData: {
@@ -220,7 +220,7 @@
               selStr += item.id + ","
            })
            selStr = selStr.replace(/,$/, '');
            var url = `/api/blade-cps/process/remove?processIds=${selStr}&type=${type}`;
            var url = `/api/smis/process/remove?processIds=${selStr}&type=${type}`;
            this.$HTTP.delete(url).then(res=> {
               if(res.code == 200) {
                  this.$message.success("操作成功");
@@ -231,7 +231,7 @@
            })
         },
         delTypeDataSingle(type) {
            var url = `/api/blade-cps/process/remove?processIds=${this.leftId}&type=${type}`;
            var url = `/api/smis/process/remove?processIds=${this.leftId}&type=${type}`;
            this.$HTTP.delete(url).then(res=> {
               if(res.code == 200) {
                  this.$message.success("操作成功");
@@ -242,7 +242,7 @@
            })
         },
         addData0Submit0() {
            this.$HTTP.post(`/api/blade-cps/process/save`,this.addData0).then(res => {
            this.$HTTP.post(`/api/smis/process/save`,this.addData0).then(res => {
               if (res.code == 200) {
                  this.getData();
                  this.clearData0();
@@ -263,7 +263,7 @@
         },
         addData0Submit1() {
            this.addData1.processId = this.id;
            this.$HTTP.post(`/api/blade-cps/process-association/save`,this.addData1).then(res => {
            this.$HTTP.post(`/api/smis/process-association/save`,this.addData1).then(res => {
               if (res.code == 200) {
                  this.getPage1();
                  this.clearData1();
@@ -295,14 +295,14 @@
            })
         },
         getBizIdList() {
            this.$HTTP.get(`/api/blade-cps/workstation/page?workstationCode=&workstationName=&size=-1&groupId=&keyWord=`).then(res => {
            this.$HTTP.get(`/api/smis/workstation/page?workstationCode=&workstationName=&size=-1&groupId=&keyWord=`).then(res => {
               if (res.code == 200) {
                  this.bizIdList = res.data.records;
               }
            })
         },
         getExport() {
            this.$HTTP.get(`/api/blade-cps/process/export-process?keyword=&status=1`).then(res => {
            this.$HTTP.get(`/api/smis/process/export-process?keyword=&status=1`).then(res => {
               if (res.code == 200) {
                  window.open(res.data.link);
               }
@@ -315,14 +315,14 @@
            this.getData();
         },
         getWorkDetail(id) {
            this.$HTTP.get(`/api/blade-cps/process/get?processId=${this.id}`).then(res=> {
            this.$HTTP.get(`/api/smis/process/get?processId=${this.id}`).then(res=> {
               if(res.code == 200) {
                  this.workDetail = res.data;
               }
            })
         },
         getData() {
            this.$HTTP.get(`/api/blade-cps/process/page?status=${this.searchData.status}&keyword=${this.searchData.keyword}&current=${this.searchData.current}&size=${this.searchData.size}`).then(res=> {
            this.$HTTP.get(`/api/smis/process/page?status=${this.searchData.status}&keyword=${this.searchData.keyword}&current=${this.searchData.current}&size=${this.searchData.size}`).then(res=> {
               if(res.code == 200) {
                  this.tableData0 = res.data.records;
                  if(this.tableData0.length != 0) {
@@ -341,7 +341,7 @@
            })
         },
         getPage1() {
            this.$HTTP.get(`/api/blade-cps/process-association/page?processId=${this.id}`).then(res=> {
            this.$HTTP.get(`/api/smis/process-association/page?processId=${this.id}`).then(res=> {
               if(res.code == 200) {
                  this.tableData1 = res.data.workstationList;
               }
@@ -354,7 +354,7 @@
         },
         //删除
         biz_table_del(row) {
            var url = `/api/blade-cps/process-association/remove?bizId=${row.id}&processId=${this.id}`;
            var url = `/api/smis/process-association/remove?bizId=${row.id}&processId=${this.id}`;
            this.$HTTP.delete(url).then(res=> {
               if(res.code == 200) {
                  this.$message.success("操作成功");