|
@@ -393,11 +393,12 @@
|
|
</el-select>
|
|
</el-select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <!-- table表 -->
|
|
<div>
|
|
<div>
|
|
<el-table
|
|
<el-table
|
|
:data="contractUserList"
|
|
:data="contractUserList"
|
|
border
|
|
border
|
|
- height="500"
|
|
|
|
|
|
+ height="420"
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
>
|
|
>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -444,9 +445,22 @@
|
|
style='opacity: 0;position: absolute;height:1px;overflow:hidden;'
|
|
style='opacity: 0;position: absolute;height:1px;overflow:hidden;'
|
|
></el-input>
|
|
></el-input>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="martop10 flexEnd">
|
|
|
|
+ <el-pagination
|
|
|
|
+ background
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
|
+ :current-page.sync="pageindx"
|
|
|
|
+ :page-size="pagesize"
|
|
|
|
+ layout="total, prev, pager, next"
|
|
|
|
+ :total="total"
|
|
|
|
+ >
|
|
|
|
+ </el-pagination>
|
|
|
|
+ </div>
|
|
<div class="flex jc-al-c mg-t-20">
|
|
<div class="flex jc-al-c mg-t-20">
|
|
<span>添加项目人员</span>
|
|
<span>添加项目人员</span>
|
|
<el-select
|
|
<el-select
|
|
|
|
+ class="marleft10"
|
|
v-model="userId"
|
|
v-model="userId"
|
|
filterable
|
|
filterable
|
|
placeholder="请输入搜索"
|
|
placeholder="请输入搜索"
|
|
@@ -473,34 +487,29 @@
|
|
</div>
|
|
</div>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
-
|
|
|
|
- <div class="flex jc-sb">
|
|
|
|
- <div></div>
|
|
|
|
- <div>
|
|
|
|
- <el-button
|
|
|
|
- type="success"
|
|
|
|
- size="medium"
|
|
|
|
- :loading="btnLoad"
|
|
|
|
- @click="saveQuit"
|
|
|
|
- >保存并退出</el-button>
|
|
|
|
- <el-button
|
|
|
|
- type="info"
|
|
|
|
- size="medium"
|
|
|
|
- :loading="btnLoad"
|
|
|
|
- v-if="activeType != 1"
|
|
|
|
- @click="saveNext('p')"
|
|
|
|
- >保存并返回上一步</el-button>
|
|
|
|
- <el-button
|
|
|
|
- type="info"
|
|
|
|
- size="medium"
|
|
|
|
- :loading="btnLoad"
|
|
|
|
- v-if="activeType != 3"
|
|
|
|
- @click="saveNext('n')"
|
|
|
|
- >保存并进入下一步</el-button>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div class="flexEnd marbottom20">
|
|
|
|
+ <el-button
|
|
|
|
+ type="success"
|
|
|
|
+ size="medium"
|
|
|
|
+ :loading="btnLoad"
|
|
|
|
+ @click="saveQuit"
|
|
|
|
+ >保存并退出</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="info"
|
|
|
|
+ size="medium"
|
|
|
|
+ :loading="btnLoad"
|
|
|
|
+ v-if="activeType != 1"
|
|
|
|
+ @click="saveNext('p')"
|
|
|
|
+ >保存并返回上一步</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="info"
|
|
|
|
+ size="medium"
|
|
|
|
+ :loading="btnLoad"
|
|
|
|
+ v-if="activeType != 3"
|
|
|
|
+ @click="saveNext('n')"
|
|
|
|
+ >保存并进入下一步</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
</basic-container>
|
|
</basic-container>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -554,8 +563,12 @@ export default {
|
|
}
|
|
}
|
|
callback();
|
|
callback();
|
|
};
|
|
};
|
|
-
|
|
|
|
return {
|
|
return {
|
|
|
|
+ //#region
|
|
|
|
+ pageindx: 1,
|
|
|
|
+ pagesize: 10,
|
|
|
|
+ total: 0,
|
|
|
|
+ //#endregion
|
|
activeType: '1',
|
|
activeType: '1',
|
|
typeChang: {
|
|
typeChang: {
|
|
1: false,
|
|
1: false,
|
|
@@ -563,7 +576,6 @@ export default {
|
|
3: false,
|
|
3: false,
|
|
},
|
|
},
|
|
btnLoad: false,
|
|
btnLoad: false,
|
|
-
|
|
|
|
pid: '',
|
|
pid: '',
|
|
cid: '',
|
|
cid: '',
|
|
projectInfo: {},
|
|
projectInfo: {},
|
|
@@ -700,6 +712,18 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //#region //后加分页
|
|
|
|
+ handleSizeChange (val) {
|
|
|
|
+ this.pagesize = val
|
|
|
|
+ this.findAllUserByCondition()
|
|
|
|
+ },
|
|
|
|
+ handleCurrentChange (val) {
|
|
|
|
+ this.pageindx = val
|
|
|
|
+ this.findAllUserByCondition()
|
|
|
|
+ },
|
|
|
|
+ //#endregion
|
|
|
|
+
|
|
|
|
+ //#region 甘云杰
|
|
async searchRole () {
|
|
async searchRole () {
|
|
const { data: res } = await searchRole()
|
|
const { data: res } = await searchRole()
|
|
console.log(res);
|
|
console.log(res);
|
|
@@ -935,14 +959,17 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
findAllUserByCondition () {
|
|
findAllUserByCondition () {
|
|
-
|
|
|
|
findAllUserByCondition({
|
|
findAllUserByCondition({
|
|
- "cId": this.contractForm.id,
|
|
|
|
- "pId": this.pid,
|
|
|
|
|
|
+ cId: this.contractForm.id,
|
|
|
|
+ pId: this.pid,
|
|
// "postId": this.postId,
|
|
// "postId": this.postId,
|
|
- "rId": this.postId
|
|
|
|
- }).then((res) => {
|
|
|
|
- this.contractUserList = res.data.data;
|
|
|
|
|
|
+ rId: this.postId,
|
|
|
|
+ },
|
|
|
|
+ this.pagesize,
|
|
|
|
+ this.pageindx,
|
|
|
|
+ ).then((res) => {
|
|
|
|
+ this.contractUserList = res.data.data.records;
|
|
|
|
+ this.total = res.data.data.total
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
@@ -1103,7 +1130,8 @@ export default {
|
|
});
|
|
});
|
|
this.securityLevelList = res.data.data;
|
|
this.securityLevelList = res.data.data;
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ //#endregion
|
|
|
|
|
|
}
|
|
}
|
|
};
|
|
};
|