|
@@ -3,22 +3,22 @@
|
|
|
<div :span="24" class="flex-header">
|
|
|
<Tabs :tabList="tabListMain" @status="clickTabMains">
|
|
|
</Tabs>
|
|
|
- <el-button type="primary" @click="clickNewTag()">+新建</el-button>
|
|
|
+ <el-button v-if="clickTagName == 'first'" type="primary" @click="clickNewTag()">+新建</el-button>
|
|
|
</div>
|
|
|
<div class="flex-count">
|
|
|
- <Table v-loading="loading" @clickDemand="clickDemand" :list="lableTable" ref="TableList"
|
|
|
- @changeNum="changeNum" @changeSize="changeSize">
|
|
|
+ <Table v-loading="loading" @clickDemand="clickDemand" :list="lableTable" ref="TableList" @changeNum="changeNum"
|
|
|
+ @changeSize="changeSize">
|
|
|
<!-- <template v-slot:first>
|
|
|
- <Export :num="num" ref="export" :exportStatusList="exportStatus" @seachExportList="seachExportList"
|
|
|
- @export="batchExport" @clickApproval="clickApproval"></Export>
|
|
|
- </template> -->
|
|
|
+ <Export :num="num" ref="export" :exportStatusList="exportStatus" @seachExportList="seachExportList"
|
|
|
+ @export="batchExport" @clickApproval="clickApproval"></Export>
|
|
|
+ </template> -->
|
|
|
<!-- <template v-slot:first>
|
|
|
- <Seach :list="filterData" @seachList="seachList"></Seach>
|
|
|
- </template> -->
|
|
|
+ <Seach :list="filterData" @seachList="seachList"></Seach>
|
|
|
+ </template> -->
|
|
|
</Table>
|
|
|
</div>
|
|
|
- <el-dialog :title="dialogTitle" :visible.sync="dialogStatus" width="100%" :before-close="handleClose"
|
|
|
- :modal="false" v-if="dialogStatus" :destroy-on-close="true">
|
|
|
+ <el-dialog :title="dialogTitle" :visible.sync="dialogStatus" width="100%" :before-close="handleClose" :modal="false"
|
|
|
+ v-if="dialogStatus" :destroy-on-close="true">
|
|
|
<!-- 后期维护 -->
|
|
|
<div style="position: fixed; z-index: 10000;top: 55px;">
|
|
|
<el-button type="primary" v-if="startStatus" @click="clickHandles">处理</el-button>
|
|
@@ -38,8 +38,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="密级:" prop="secretlevel">
|
|
|
- <el-select v-model="fromList.secretlevel" placeholder="请选择密级" size="medium"
|
|
|
- :disabled="disabled">
|
|
|
+ <el-select v-model="fromList.secretlevel" placeholder="请选择密级" size="medium" :disabled="disabled">
|
|
|
<el-option v-for="item in secretleveloptions" :key="item.code" :label="item.name"
|
|
|
:value="item.code" />
|
|
|
</el-select>
|
|
@@ -91,12 +90,12 @@
|
|
|
</el-form>
|
|
|
<div v-if="dialoglablesStatus">
|
|
|
<div class="table-title">流程追踪</div>
|
|
|
- <Table :list="lables"></Table>
|
|
|
+ <TableId :list="lables"></TableId>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<div v-if="destroy">
|
|
|
- <el-dialog title="处理操作" width="100%" :visible.sync="handleStatus" :before-close="handleCloses"
|
|
|
- :modal="false" v-if="handleStatus" :destroy-on-close="true">
|
|
|
+ <el-dialog title="处理操作" width="100%" :visible.sync="handleStatus" :before-close="handleCloses" :modal="false"
|
|
|
+ v-if="handleStatus" :destroy-on-close="true">
|
|
|
<Workflow :list="fromList" v-if="isWorkflowStatus == true" @updateForm="updateForm"
|
|
|
:requestForm="requestForm" />
|
|
|
|
|
@@ -106,12 +105,12 @@
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import Tabs from "../../../components/el-tabs";
|
|
|
import Table from "../../../components/el-form";
|
|
|
+import TableId from "../../../components/el-formid";
|
|
|
import Seach from "../../../components/el-search";
|
|
|
import myUpload from "../../../components/workflowUpload";
|
|
|
import Workflow from "../../../components/workflowBase";
|
|
@@ -121,10 +120,14 @@ import {
|
|
|
getDoneBase,
|
|
|
getInitiateBase,
|
|
|
getNowdata,
|
|
|
+ queryReadBase,
|
|
|
+ queryReadDoneBase
|
|
|
} from "../../../http/api.js";//../../../http/api.js
|
|
|
+import { log } from "console";
|
|
|
export default {
|
|
|
components: {
|
|
|
Table,
|
|
|
+ TableId,
|
|
|
Tabs,
|
|
|
myUpload,
|
|
|
Workflow,
|
|
@@ -217,9 +220,9 @@ export default {
|
|
|
processDefinitionKey: "tygd_pro_process",//流程key
|
|
|
},
|
|
|
requestForm: {
|
|
|
- // fresourceId: "08368848-2fde-11ed-a6ed-02427ba2d388", // 本地环境
|
|
|
+ fresourceId: "08368848-2fde-11ed-a6ed-02427ba2d388", // 本地环境
|
|
|
// fresourceId: "canvas", // 生产环境
|
|
|
- fresourceId: "canvas", //测试91环境
|
|
|
+ // fresourceId: "4fdbb96e-8bfd-11ed-8988-00505687dcd3", //测试91环境
|
|
|
processDefinitionKey: "tygd_pro_process",
|
|
|
},
|
|
|
dialogStatus: false, //dialog显示
|
|
@@ -299,16 +302,16 @@ export default {
|
|
|
label: "我发起的",
|
|
|
number: 3,
|
|
|
},
|
|
|
- // {
|
|
|
- // index: "four",
|
|
|
- // label: "待阅",
|
|
|
- // number: 4,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // index: "five",
|
|
|
- // label: "已阅",
|
|
|
- // number: 5,
|
|
|
- // },
|
|
|
+ {
|
|
|
+ index: "four",
|
|
|
+ label: "待阅",
|
|
|
+ number: 4,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ index: "five",
|
|
|
+ label: "已阅",
|
|
|
+ number: 5,
|
|
|
+ },
|
|
|
],
|
|
|
lableTable: {},//传给子组件table
|
|
|
phone: '',
|
|
@@ -491,6 +494,140 @@ export default {
|
|
|
],
|
|
|
},
|
|
|
},
|
|
|
+ fourTable: {
|
|
|
+ name: "four",
|
|
|
+ titledata: [
|
|
|
+ {
|
|
|
+ label: "文件标题",
|
|
|
+ prop: "need_name",
|
|
|
+ width: 300,
|
|
|
+ color: "#0682CD",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起部门",
|
|
|
+ prop: "applydept",
|
|
|
+ width: 300,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起科室",
|
|
|
+ prop: "applydepartment",
|
|
|
+ width: 300,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起人",
|
|
|
+ prop: "proposer",
|
|
|
+ width: 200,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起时间",
|
|
|
+ prop: "proposer_time",
|
|
|
+ width: 300,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "状态",
|
|
|
+ prop: "taskName",
|
|
|
+ width: 200,
|
|
|
+ },
|
|
|
+ ], //表格头
|
|
|
+ data: [], //内容数据
|
|
|
+ loading: true,
|
|
|
+ pageData: {
|
|
|
+ total: 100, // 总条数
|
|
|
+ pageSizes: 10, // 每页数量
|
|
|
+ pageNum: 1, // 页码
|
|
|
+ },
|
|
|
+ isSelection: false, // 表格有多选时设置
|
|
|
+ isOperation: true, // 表格有操作列时设置
|
|
|
+ isIndex: false, // 列表序号
|
|
|
+ operation: {
|
|
|
+ // 表格有操作列时设置
|
|
|
+ label: "操作", // 列名
|
|
|
+ width: "100", // 根据实际情况给宽度
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ label: "查看", // 操作名称
|
|
|
+ type: "", //按钮类型
|
|
|
+ handleRow: (e, r, o) => {
|
|
|
+ this.fromList = r;
|
|
|
+ this.dialogStatus = true;
|
|
|
+ this.disabled = true;
|
|
|
+ this.buttonStatus = false;
|
|
|
+ this.getReadList(r.copytaskid);
|
|
|
+ this.clickForm(r);
|
|
|
+ }, // 自定义事件
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ },
|
|
|
+ fiveTable: {
|
|
|
+ name: "five",
|
|
|
+ titledata: [
|
|
|
+ {
|
|
|
+ label: "文件标题",
|
|
|
+ prop: "need_name",
|
|
|
+ width: 300,
|
|
|
+ color: "#0682CD",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起部门",
|
|
|
+ prop: "applydept",
|
|
|
+ width: 300,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起科室",
|
|
|
+ prop: "applydepartment",
|
|
|
+ width: 300,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起人",
|
|
|
+ prop: "proposer",
|
|
|
+ width: 200,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发起时间",
|
|
|
+ prop: "proposer_time",
|
|
|
+ width: 300,
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // label: "工单状态",
|
|
|
+ // prop: "taskName",
|
|
|
+ // width: 200,
|
|
|
+ // },
|
|
|
+ ], //表格头
|
|
|
+ data: [], //内容数据
|
|
|
+ loading: true,
|
|
|
+ pageData: {
|
|
|
+ total: 100, // 总条数
|
|
|
+ pageSizes: 10, // 每页数量
|
|
|
+ pageNum: 1, // 页码
|
|
|
+ },
|
|
|
+ isSelection: false, // 表格有多选时设置
|
|
|
+ isOperation: false, // 表格有操作列时设置
|
|
|
+ isIndex: false, // 列表序号
|
|
|
+ operation: {
|
|
|
+ // 表格有操作列时设置
|
|
|
+ label: "支撑状态", // 列名
|
|
|
+ width: "100", // 根据实际情况给宽度
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ label: "查看", // 操作名称
|
|
|
+ type: "", //按钮类型
|
|
|
+ handleRow: (e, r, o) => {
|
|
|
+ this.getReadList(r.copytaskid);
|
|
|
+ // if (r.needNo !== null) {
|
|
|
+ // this.$router.push({
|
|
|
+ // path: "/supportState",
|
|
|
+ // query: { id: r.needNo },
|
|
|
+ // });
|
|
|
+ // } else {
|
|
|
+ // this.$message.error("暂无支撑状态可查看");
|
|
|
+ // }
|
|
|
+ // this.getQuery()
|
|
|
+ }, // 自定义事件
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ },
|
|
|
filterData: {
|
|
|
timeSelect: false, //是否显示日期控件
|
|
|
sreach: true,
|
|
@@ -532,6 +669,23 @@ export default {
|
|
|
this.fromList.fileno = JSON.parse(window.sessionStorage.getItem('userInfo')).loginNoStr.charCodeAt() + getNowdata({ a: '', b: '', c: '' })
|
|
|
this.fromList.phone = this.phone
|
|
|
},
|
|
|
+ //点击查阅接口
|
|
|
+ async getReadList(e) {
|
|
|
+ let _this = this;
|
|
|
+ let obj = {
|
|
|
+ url: this.$url.formList.getReadList, //开始工作流接口
|
|
|
+ data: { copytaskid: e },
|
|
|
+ status: "form",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/x-www-form-urlencoded",
|
|
|
+ },
|
|
|
+ };
|
|
|
+
|
|
|
+ let res = await this.common.httpPost(obj, success);
|
|
|
+ function success(data) {
|
|
|
+ console.log(data);
|
|
|
+ }
|
|
|
+ },
|
|
|
//是否最后一个人
|
|
|
async getLastName() {
|
|
|
console.log(this.fromList);
|
|
@@ -682,6 +836,14 @@ export default {
|
|
|
this.threelabel.pageData.pageNum = e;
|
|
|
this.getMeLaunch()
|
|
|
}
|
|
|
+ if (this.clickTagName == 'four') {
|
|
|
+ this.fourTable.pageData.pageNum = e;
|
|
|
+ this.getToBeRead()
|
|
|
+ }
|
|
|
+ if (this.clickTagName == 'five') {
|
|
|
+ this.fiveTable.pageData.pageNum = e;
|
|
|
+ this.getBeReadList()
|
|
|
+ }
|
|
|
},
|
|
|
//获取页码
|
|
|
changeSize(e) {
|
|
@@ -735,10 +897,16 @@ export default {
|
|
|
this.disabled = true;
|
|
|
this.dialoglablesStatus = true
|
|
|
}
|
|
|
- this.dialogStatus = true
|
|
|
- this.fromList = res;
|
|
|
- this.clickForm(res);
|
|
|
- this.getFromQuery(res);
|
|
|
+
|
|
|
+ if (this.clickTagName === "four" || this.clickTagName === "five") {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.dialogStatus = true
|
|
|
+ this.fromList = res;
|
|
|
+ this.clickForm(res);
|
|
|
+ this.getFromQuery(res);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
//查询form表单数据
|
|
@@ -832,7 +1000,7 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
this.getUserIds();
|
|
|
- this.setForm();
|
|
|
+
|
|
|
}
|
|
|
} else {
|
|
|
this.$message.error("请完善表单信息");
|
|
@@ -843,17 +1011,15 @@ export default {
|
|
|
//获取自己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;
|
|
|
+ this.request_form.userName = res.data[0].children[0].loginNameStr;
|
|
|
+ this.request_form.userId = res.data[0].children[0].loginNoStr;
|
|
|
+ this.setForm();
|
|
|
console.log(this.request_form)
|
|
|
});
|
|
|
},
|
|
@@ -891,6 +1057,7 @@ export default {
|
|
|
|
|
|
let res = await this.common.httpPost(obj, success);
|
|
|
function success(data) {
|
|
|
+ // console.log(data);
|
|
|
_this.fromList.taskId = data.data;
|
|
|
_this.fromList.processId = data.data;
|
|
|
// _this.fromList.resourceId = data.data;
|
|
@@ -941,10 +1108,8 @@ export default {
|
|
|
},
|
|
|
getNextPath(e) {
|
|
|
let list = {
|
|
|
- // fresourceId: "bf79721c-33f3-11ed-ba0b-00505687dcd3", //测试环境
|
|
|
fresourceId: this.requestForm.fresourceId, // 本地环境
|
|
|
processId: this.requestForm.processDefinitionKey,
|
|
|
- // fresourceId: "0d94de8a-0281-11ed-a302-4ae7da54db39", // 本地环境
|
|
|
// processId: "request_form_process",
|
|
|
// resourceId: e,
|
|
|
};
|
|
@@ -964,6 +1129,7 @@ export default {
|
|
|
data: list,
|
|
|
}).then((res) => {
|
|
|
console.log(res);
|
|
|
+ console.log(this.fromList);
|
|
|
console.log(res.data.body);
|
|
|
console.log(res.data.body.nextShapes[0].multi);
|
|
|
if (res.data.body.nextShapes[0].multi) {
|
|
@@ -971,7 +1137,7 @@ export default {
|
|
|
this.getLastName();
|
|
|
}
|
|
|
}
|
|
|
- if (this.fromList.taskId) {
|
|
|
+ if (this.fromList.taskId || this.fromList.processId) {
|
|
|
this.destroy = true;
|
|
|
this.handleStatus = true;
|
|
|
this.getMetirialType();
|
|
@@ -1018,6 +1184,14 @@ export default {
|
|
|
this.lableTable = this.threelabel
|
|
|
this.getMeLaunch()
|
|
|
}
|
|
|
+ if (this.clickTagName == 'four') {
|
|
|
+ this.lableTable = this.fourTable
|
|
|
+ this.getToBeRead()
|
|
|
+ }
|
|
|
+ if (this.clickTagName == 'five') {
|
|
|
+ this.lableTable = this.fiveTable
|
|
|
+ this.getBeReadList()
|
|
|
+ }
|
|
|
},
|
|
|
clickTabMains(e) {
|
|
|
console.log(e);
|
|
@@ -1036,6 +1210,14 @@ export default {
|
|
|
this.lableTable = this.threelabel
|
|
|
this.getMeLaunch()
|
|
|
}
|
|
|
+ if (this.clickTagName == 'four') {
|
|
|
+ this.lableTable = this.fourTable
|
|
|
+ this.getToBeRead()
|
|
|
+ }
|
|
|
+ if (this.clickTagName == 'five') {
|
|
|
+ this.lableTable = this.fiveTable
|
|
|
+ this.getBeReadList()
|
|
|
+ }
|
|
|
},
|
|
|
adminhandleSizeChange(val) {
|
|
|
console.log(`每页 ${val} 条`);
|
|
@@ -1045,14 +1227,17 @@ export default {
|
|
|
},
|
|
|
|
|
|
//我的待办
|
|
|
- getQueryList() {
|
|
|
+ getQueryList(e, status) {
|
|
|
this.loading = true;
|
|
|
- getTodoBase(this.pageNo, "", { tableName: this.tableName, }).then((res) => {
|
|
|
+ getTodoBase(this.pageNo, "", e || { tableName: this.tableName }).then((res) => {
|
|
|
+ if (status === 0) {
|
|
|
+ this.clickDemand("文件标题", res.data.data[0]);
|
|
|
+ }
|
|
|
this.lableTable.data = res.data.data;
|
|
|
|
|
|
- this.lableTable.data.map((item) => {
|
|
|
- item.status = "1";
|
|
|
- });
|
|
|
+ // this.lableTable.data.map((item) => {
|
|
|
+ // item.status = "1";
|
|
|
+ // });
|
|
|
this.lableTable.pageData.total = res.data.totalRecord;
|
|
|
this.tabListMain[0].number = res.data.totalRecord
|
|
|
this.loading = false;
|
|
@@ -1064,26 +1249,52 @@ export default {
|
|
|
getDoneBase(this.pageNo, "", { tableName: this.tableName, }).then((res) => {
|
|
|
this.lableTable.data = res.data.data;
|
|
|
|
|
|
- this.lableTable.data.map((item) => {
|
|
|
- item.status = "2";
|
|
|
- });
|
|
|
+ // this.lableTable.data.map((item) => {
|
|
|
+ // item.status = "2";
|
|
|
+ // });
|
|
|
this.lableTable.pageData.total = res.data.totalRecord;
|
|
|
this.tabListMain[1].number = res.data.totalRecord
|
|
|
this.loading = false;
|
|
|
});
|
|
|
},
|
|
|
+ getToBeRead() {
|
|
|
+ this.loading = true;
|
|
|
+ queryReadBase(this.pageNo, "", { tableName: this.tableName, }).then((res) => {
|
|
|
+ this.lableTable.data = res.data.data;
|
|
|
+
|
|
|
+ // this.lableTable.data.map((item) => {
|
|
|
+ // item.status = "2";
|
|
|
+ // });
|
|
|
+ this.lableTable.pageData.total = res.data.totalRecord;
|
|
|
+ this.tabListMain[3].number = res.data.totalRecord
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ getBeReadList() {
|
|
|
+ this.loading = true;
|
|
|
+ queryReadDoneBase(this.pageNo, "", { tableName: this.tableName, }).then((res) => {
|
|
|
+ this.lableTable.data = res.data.data;
|
|
|
+
|
|
|
+ // this.lableTable.data.map((item) => {
|
|
|
+ // item.status = "2";
|
|
|
+ // });
|
|
|
+ this.lableTable.pageData.total = res.data.totalRecord;
|
|
|
+ this.tabListMain[4].number = res.data.totalRecord
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
//我发起的
|
|
|
getMeLaunch() {
|
|
|
this.loading = true;
|
|
|
getInitiateBase(this.pageNo, "", { tableName: this.tableName, }).then((res) => {
|
|
|
this.lableTable.data = res.data.data;
|
|
|
- this.lableTable.data.map((item) => {
|
|
|
- if (item.taskName === "起草") {
|
|
|
- item.status = "1";
|
|
|
- } else {
|
|
|
- item.status = "2";
|
|
|
- }
|
|
|
- });
|
|
|
+ // this.lableTable.data.map((item) => {
|
|
|
+ // if (item.taskName === "起草") {
|
|
|
+ // item.status = "1";
|
|
|
+ // } else {
|
|
|
+ // item.status = "2";
|
|
|
+ // }
|
|
|
+ // });
|
|
|
this.lableTable.pageData.total = res.data.totalRecord;
|
|
|
this.tabListMain[2].number = res.data.totalRecord
|
|
|
this.loading = false;
|
|
@@ -1099,39 +1310,58 @@ export default {
|
|
|
getTodoBase(this.pageNo, "", { tableName: this.tableName, }).then((res) => {
|
|
|
this.tabListMain[0].number = res.data.totalRecord
|
|
|
});
|
|
|
+ queryReadBase(this.pageNo, "", { tableName: this.tableName, }).then((res) => {
|
|
|
+ this.tabListMain[3].number = res.data.totalRecord
|
|
|
+ });
|
|
|
+ queryReadDoneBase(this.pageNo, "", { tableName: this.tableName, }).then((res) => {
|
|
|
+ this.tabListMain[4].number = res.data.totalRecord
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.lableTable = this.firstlabel
|
|
|
- this.getQueryList()
|
|
|
- this.usernumber()
|
|
|
- this.$http({
|
|
|
- url: "/market/tygdProProcess/getPhone",
|
|
|
- method: "post",
|
|
|
- headers: {
|
|
|
- "Content-Type": "application/json",
|
|
|
- },
|
|
|
- }).then((res) => {
|
|
|
- console.log(res.data);
|
|
|
- this.phone = res.data
|
|
|
- })
|
|
|
- this.$http({
|
|
|
- url: "/sysmgr/csysdept/queryGroupListByLoginNo",
|
|
|
- method: "post",
|
|
|
- headers: {
|
|
|
- "Content-Type": "application/json",
|
|
|
- },
|
|
|
- data: {},
|
|
|
- }).then((res) => {
|
|
|
- let a = res.data[0].description.split('/')
|
|
|
- if (a.length == 3) {
|
|
|
- this.dept = a[1]
|
|
|
- this.keshi = a[2]
|
|
|
- } else {
|
|
|
- this.dept = a[1]
|
|
|
- this.keshi = a[1]
|
|
|
- }
|
|
|
- });
|
|
|
+ let status = JSON.stringify(this.$route.query) == "{}";
|
|
|
+ if (status) {
|
|
|
+ this.lableTable = this.firstlabel
|
|
|
+ this.getQueryList()
|
|
|
+ this.usernumber()
|
|
|
+ this.$http({
|
|
|
+ url: "/market/tygdProProcess/getPhone",
|
|
|
+ method: "post",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ },
|
|
|
+ }).then((res) => {
|
|
|
+ console.log(res.data);
|
|
|
+ this.phone = res.data
|
|
|
+ })
|
|
|
+ this.$http({
|
|
|
+ url: "/sysmgr/csysdept/queryGroupListByLoginNo",
|
|
|
+ method: "post",
|
|
|
+ headers: {
|
|
|
+ "Content-Type": "application/json",
|
|
|
+ },
|
|
|
+ data: {},
|
|
|
+ }).then((res) => {
|
|
|
+ let a = res.data[0].description.split('/')
|
|
|
+ if (a.length == 3) {
|
|
|
+ this.dept = a[1]
|
|
|
+ this.keshi = a[2]
|
|
|
+ } else {
|
|
|
+ this.dept = a[1]
|
|
|
+ this.keshi = a[1]
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ let { id, type } = this.$route.query;
|
|
|
+ let list = {
|
|
|
+ taskId: id,
|
|
|
+ tableName: this.tableName
|
|
|
+ };
|
|
|
+ this.usernumber()
|
|
|
+ this.lableTable = this.firstlabel
|
|
|
+ this.getQueryList(list, 0);//代办
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|