|
@@ -57,7 +57,7 @@
|
|
|
/>
|
|
|
<div>
|
|
|
<div class="table-title">流程追踪</div>
|
|
|
- <Table :list="lables"></Table>
|
|
|
+ <Tableid :list="lables"></Tableid>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<div v-if="destroy">
|
|
@@ -90,6 +90,7 @@
|
|
|
import Seach from "../../../components/el-search.vue";
|
|
|
import Tabs from "../../../components/el-tabs.vue";
|
|
|
import Table from "../../../components/el-form";
|
|
|
+ import Tableid from "../../../components/el-formid";
|
|
|
import WorkflowEntrance from "../../../components/workflowEntrance";
|
|
|
import {
|
|
|
getTodoBase,
|
|
@@ -101,6 +102,7 @@
|
|
|
components: {
|
|
|
Tabs,
|
|
|
Table,
|
|
|
+ Tableid,
|
|
|
Seach,
|
|
|
FormTable,
|
|
|
Workflow,
|
|
@@ -108,7 +110,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- tableName: "scsjdc_city_process",
|
|
|
+ tableName: "scsjdc_cit_process",
|
|
|
buttonStatus: true,
|
|
|
copyStatus: false,
|
|
|
dialogTitle: "",
|
|
@@ -141,13 +143,13 @@
|
|
|
// nextDealMan:'',
|
|
|
title: "title",
|
|
|
businessKey: "",
|
|
|
- processDefinitionKey: "scsjdc_city_process",
|
|
|
+ processDefinitionKey: "scsjdc_cit_process",
|
|
|
},
|
|
|
requestForm: {
|
|
|
// fresourceId: "7eb377e2-3304-11ed-a6ed-02427ba2d388", // 本地环境
|
|
|
- fresourceId: "canvas", // 生产环境
|
|
|
+ fresourceId: "dd20df6f-c312-11ed-afb6-e00084564cce", // 生产环境
|
|
|
// fresourceId: "bf79721c-33f3-11ed-ba0b-00505687dcd3", //测试环境
|
|
|
- processDefinitionKey: "scsjdc_city_process",
|
|
|
+ processDefinitionKey: "scsjdc_cit_process",
|
|
|
},
|
|
|
treeList: [], //候选人列表
|
|
|
treeCopyList: [], //抄送人列表
|
|
@@ -444,12 +446,24 @@
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- //oa跳转回来显示
|
|
|
- this.getQueryList();
|
|
|
- this.getMeDone();
|
|
|
- this.getMeLaunch();
|
|
|
|
|
|
- this.lable = this.todoBase;
|
|
|
+ let status = JSON.stringify(this.$route.query) == "{}";
|
|
|
+ if (status) {
|
|
|
+ //oa跳转回来显示
|
|
|
+ this.getQueryList();
|
|
|
+ this.getMeDone();
|
|
|
+ this.getMeLaunch();
|
|
|
+ this.lable = this.todoBase;
|
|
|
+
|
|
|
+ } else {
|
|
|
+ let { id, type } = this.$route.query;
|
|
|
+ let list = {
|
|
|
+ taskId: id,
|
|
|
+ tableName: this.tableName
|
|
|
+ };
|
|
|
+ this.getQueryList(0, list,0);//代办
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
//添加面包屑
|
|
@@ -873,8 +887,18 @@
|
|
|
if (this.fromList.id) {
|
|
|
this.setUpdateForm(this.$refs.formTable.form);
|
|
|
} else {
|
|
|
- this.getUserIds();
|
|
|
- this.setForm();
|
|
|
+ this.$http({
|
|
|
+ url: "/market/api/user/info/queryNodePers?params=" + JSON.parse(window.sessionStorage.userInfo).loginNo,
|
|
|
+ method: "post",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ },
|
|
|
+ }).then((res) => {
|
|
|
+ console.log(res);
|
|
|
+ this.request_form.userName = res.data[0].children[0].loginNameStr;
|
|
|
+ this.request_form.userId = res.data[0].children[0].loginNoStr;
|
|
|
+ this.setForm()
|
|
|
+ });
|
|
|
}
|
|
|
} else {
|
|
|
this.$message.error("请完善表单信息");
|
|
@@ -887,23 +911,21 @@
|
|
|
//获取自己idname
|
|
|
getUserIds() {
|
|
|
this.$http({
|
|
|
- url: "/market/waf/queryRoleByName",
|
|
|
+ url: "/market/api/user/info/queryNodePers?params=" + JSON.parse(window.sessionStorage.userInfo).loginNo,
|
|
|
method: "post",
|
|
|
headers: {
|
|
|
"Content-Type": "application/json",
|
|
|
},
|
|
|
- data: {
|
|
|
- userCode: JSON.parse(window.sessionStorage.userInfo).loginNo,
|
|
|
- },
|
|
|
}).then((res) => {
|
|
|
- this.request_form.userName = res.data.data.rows[0].name;
|
|
|
- this.request_form.userId = res.data.data.rows[0].userCode;
|
|
|
+ console.log(res);
|
|
|
+ this.request_form.userName = res.data[0].children[0].loginNameStr;
|
|
|
+ this.request_form.userId = res.data[0].children[0].loginNoStr;
|
|
|
});
|
|
|
},
|
|
|
|
|
|
|
|
|
setForm(e) {
|
|
|
- this.request_form.title = this.$refs.formTable.form.needName;
|
|
|
+ this.request_form.title = "[工作台]-地市生产数据导出-" + this.$refs.formTable.form.needName;
|
|
|
this.$http({
|
|
|
url: "/market/scsjdcCitProcess/add",
|
|
|
method: "post",
|
|
@@ -1098,11 +1120,11 @@
|
|
|
},
|
|
|
//点击查阅接口
|
|
|
//获取我的代办列表List
|
|
|
- getQueryList(e, status) {
|
|
|
- let list = {
|
|
|
- tableName: this.tableName,
|
|
|
- };
|
|
|
- getTodoBase(this.totalPage, "", list).then((res) => {
|
|
|
+ getQueryList(e, currentList, status) {
|
|
|
+ getTodoBase(this.totalPage, "", currentList || {tableName: this.tableName}).then((res) => {
|
|
|
+ if (status === 0) {
|
|
|
+ this.clickDemand("文件标题", res.data.data[0]);
|
|
|
+ }
|
|
|
this.tabList[0].number = res.data.totalRecord;
|
|
|
if (e !== "1") {
|
|
|
this.todoBase.data = res.data.data;
|