|
@@ -109,6 +109,11 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+ import {
|
|
|
+ addGenmutipor,
|
|
|
+ addGenmutiporuder,
|
|
|
+ addGenmutiportree
|
|
|
+ } from "@/api/activiti/definition";
|
|
|
export default {
|
|
|
name: "Mutiple",
|
|
|
props: {
|
|
@@ -196,7 +201,7 @@ export default {
|
|
|
columns: [],
|
|
|
treeNewData: [],
|
|
|
showTree: this.open,
|
|
|
- component: [
|
|
|
+ componentt: [
|
|
|
{
|
|
|
tab: "筛选结果",
|
|
|
columns: [
|
|
@@ -234,14 +239,14 @@ export default {
|
|
|
// let data = Object.assign(this.component, this.componentData);
|
|
|
// return data;
|
|
|
if (this.isMutiple) {
|
|
|
- this.component[0].columns.unshift({
|
|
|
- type: "selection",
|
|
|
- align: "center",
|
|
|
- fixed: "left",
|
|
|
- width: 30
|
|
|
- });
|
|
|
+ // this.componentt[0].columns.unshift({
|
|
|
+ // type: "selection",
|
|
|
+ // align: "center",
|
|
|
+ // fixed: "left",
|
|
|
+ // width: 30
|
|
|
+ // });
|
|
|
}
|
|
|
- return this.component;
|
|
|
+ return this.componentt;
|
|
|
},
|
|
|
resultMessage() {
|
|
|
// let data = Object.assign(this.resultRightData, this.resultData);
|
|
@@ -253,7 +258,7 @@ export default {
|
|
|
handler(newValue, oldValue) {
|
|
|
if (newValue) {
|
|
|
//执行请求
|
|
|
- this.component[0].pageNum = 1
|
|
|
+ this.componentt[0].pageNum = 1
|
|
|
this.getTreeData();
|
|
|
if (this.resultData.list) {
|
|
|
this.resultRightData = this.deepCopy(this.resultData);
|
|
@@ -313,8 +318,7 @@ export default {
|
|
|
//当item的TYPE为供应商时
|
|
|
// 当item的TYPE为组织时
|
|
|
if (val[0].TYPE === "CP_C_HRORG_ID") {
|
|
|
- this.$network
|
|
|
- .post("/p/c/identity/org/treequery", { CP_C_ORGUP_ID: valID })
|
|
|
+ addGenmutipor({ CP_C_ORGUP_ID: valID })
|
|
|
.then(res => {
|
|
|
if (res.data.resultCode === 0) {
|
|
|
let HRORG = "in ("; //储存键名为CP_C_HRORG_ID对象的ID
|
|
@@ -370,7 +374,7 @@ export default {
|
|
|
},
|
|
|
pageChange(index) {
|
|
|
this.$emit("on-change-page", index, this);
|
|
|
- this.component[0].pageNum = index;
|
|
|
+ this.componentt[0].pageNum = index;
|
|
|
let param = Object.assign(this.obj, { page: index, pageSize: 10 });
|
|
|
if (this.table.search !== "") {
|
|
|
param.ENAME = this.table.search;
|
|
@@ -379,7 +383,7 @@ export default {
|
|
|
},
|
|
|
pageChangeSize(index) {
|
|
|
this.$emit("on-change-pageSize", index, this);
|
|
|
- this.component[0].pageSize = index;
|
|
|
+ this.componentt[0].pageSize = index;
|
|
|
let param = Object.assign(this.obj, { page: 1, pageSize: index });
|
|
|
if (this.table.search !== "") {
|
|
|
param.ENAME = this.table.search;
|
|
@@ -436,7 +440,7 @@ export default {
|
|
|
},
|
|
|
Onselect(selection, row) {
|
|
|
if (this.isMutiple) {
|
|
|
- this.component[0].list.map(item => {
|
|
|
+ this.componentt[0].list.map(item => {
|
|
|
if (row.ID === item.ID) {
|
|
|
item._checked = true;
|
|
|
}
|
|
@@ -448,7 +452,7 @@ export default {
|
|
|
this.$emit("on-select", selection, row);
|
|
|
},
|
|
|
onSelectCancel(selection, row) {
|
|
|
- this.component[0].list.map(item => {
|
|
|
+ this.componentt[0].list.map(item => {
|
|
|
if (row.ID === item.ID) {
|
|
|
item._checked = false;
|
|
|
}
|
|
@@ -459,14 +463,14 @@ export default {
|
|
|
},
|
|
|
onSelectAll(selection) {
|
|
|
this.selectRow = [];
|
|
|
- this.component[0].list.map(item => {
|
|
|
+ this.componentt[0].list.map(item => {
|
|
|
item._checked = true;
|
|
|
});
|
|
|
this.selectRow = selection;
|
|
|
this.$emit("on-select-all", selection);
|
|
|
},
|
|
|
onSelectAllCancel(selection) {
|
|
|
- this.component[0].list.map(item => {
|
|
|
+ this.componentt[0].list.map(item => {
|
|
|
item._checked = false;
|
|
|
});
|
|
|
this.selectRow = [];
|
|
@@ -593,10 +597,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
//刷新表格数据
|
|
|
- this.component[0].list.map(item => {
|
|
|
+ this.componentt[0].list.map(item => {
|
|
|
item._checked = false;
|
|
|
});
|
|
|
- this.component[0].list = this.component[0].list.concat([]);
|
|
|
+ this.componentt[0].list = this.componentt[0].list.concat([]);
|
|
|
if (this.selectRow.length > 0) {
|
|
|
//选中状态的清除
|
|
|
this.selectRow = [];
|
|
@@ -655,16 +659,16 @@ export default {
|
|
|
this.$emit("on-deleBtn", this);
|
|
|
this.resultRightData.total = 0;
|
|
|
this.resultRightData.list = [];
|
|
|
- this.component[0].list.map(item => {
|
|
|
+ this.componentt[0].list.map(item => {
|
|
|
item._checked = false;
|
|
|
});
|
|
|
- this.component[0].list = this.component[0].list.concat([]);
|
|
|
+ this.componentt[0].list = this.componentt[0].list.concat([]);
|
|
|
this.$emit("getResult", this.resultRightData);
|
|
|
},
|
|
|
//查找用户信息
|
|
|
findUser(param) {
|
|
|
this.tableLoading = true;
|
|
|
- this.$network.post("/p/c/identity/user/list", param).then(res => {
|
|
|
+ addGenmutiporuder( param).then(res => {
|
|
|
this.tableLoading = false;
|
|
|
let data = res.data;
|
|
|
if (data.code === 0) {
|
|
@@ -679,9 +683,9 @@ export default {
|
|
|
},
|
|
|
//表格体数据转化
|
|
|
transferTbody(data) {
|
|
|
- this.component[0].total = data.totalRowCount;
|
|
|
- this.component[0].pageOptions = data.selectrange;
|
|
|
- this.component[0].list = [];
|
|
|
+ this.componentt[0].total = data.totalRowCount;
|
|
|
+ this.componentt[0].pageOptions = data.selectrange;
|
|
|
+ this.componentt[0].list = [];
|
|
|
data.row.map(item => {
|
|
|
let tem = {};
|
|
|
let temval = {};
|
|
@@ -689,13 +693,13 @@ export default {
|
|
|
tem[inner] = item[inner].val;
|
|
|
});
|
|
|
temval = Object.assign({}, tem);
|
|
|
- this.component[0].list.push(tem);
|
|
|
+ this.componentt[0].list.push(tem);
|
|
|
});
|
|
|
},
|
|
|
//获取树数据
|
|
|
getTreeData() {
|
|
|
this.tree_loading = true;
|
|
|
- this.$network.post("/p/c/identity/org/treeload", {}).then(res => {
|
|
|
+ addGenmutiportree().then(res => {
|
|
|
this.tree_loading = false;
|
|
|
if (res.data.resultCode === 0) {
|
|
|
this.treeNewData = [];
|
|
@@ -839,7 +843,7 @@ export default {
|
|
|
// this.table.search = "";
|
|
|
// }
|
|
|
// }
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
destroyed() {
|
|
|
if (this.selectRow.length > 0) {
|
|
@@ -1024,4 +1028,3 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
</style>
|
|
|
-
|