|
@@ -1,9 +1,20 @@
|
|
<template>
|
|
<template>
|
|
<!-- 全流程管理列表组件 -->
|
|
<!-- 全流程管理列表组件 -->
|
|
<div id="WholeProcessManagement">
|
|
<div id="WholeProcessManagement">
|
|
- <el-form :inline="true" ref="myTaskForm" :model="formInline" style="padding: 10px">
|
|
|
|
|
|
+ <el-form
|
|
|
|
+ :inline="true"
|
|
|
|
+ ref="myTaskForm"
|
|
|
|
+ :model="formInline"
|
|
|
|
+ style="padding: 10px"
|
|
|
|
+ >
|
|
<el-form-item label="项目类型">
|
|
<el-form-item label="项目类型">
|
|
- <el-select size="mini" v-model="formInline.c_task_type" placeholder="项目类型" clearable filterable>
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ size="mini"
|
|
|
|
+ v-model="formInline.c_task_type"
|
|
|
|
+ placeholder="项目类型"
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
|
|
+ >
|
|
<el-option
|
|
<el-option
|
|
v-for="item in selectSelectDataMap['projectType']"
|
|
v-for="item in selectSelectDataMap['projectType']"
|
|
:key="item.index"
|
|
:key="item.index"
|
|
@@ -13,7 +24,13 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="所属街镇">
|
|
<el-form-item label="所属街镇">
|
|
- <el-select size="mini" v-model="formInline.c_owning_street_town" placeholder="所属街镇" clearable filterable>
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ size="mini"
|
|
|
|
+ v-model="formInline.c_owning_street_town"
|
|
|
|
+ placeholder="所属街镇"
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
|
|
+ >
|
|
<el-option
|
|
<el-option
|
|
v-for="item in selectSelectDataMap['associatedItems']"
|
|
v-for="item in selectSelectDataMap['associatedItems']"
|
|
:key="item.index"
|
|
:key="item.index"
|
|
@@ -50,7 +67,8 @@
|
|
>
|
|
>
|
|
<el-table-column type="index" width="50"> </el-table-column>
|
|
<el-table-column type="index" width="50"> </el-table-column>
|
|
<el-table-column prop="c_project_id" label="项目编号"> </el-table-column>
|
|
<el-table-column prop="c_project_id" label="项目编号"> </el-table-column>
|
|
- <el-table-column prop="c_project_name" label="项目名称"> </el-table-column>
|
|
|
|
|
|
+ <el-table-column prop="c_project_name" label="项目名称">
|
|
|
|
+ </el-table-column>
|
|
<el-table-column prop="c_task_type" label="项目类型">
|
|
<el-table-column prop="c_task_type" label="项目类型">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{ getSelectByIndex("projectType", scope.row.c_task_type) }}
|
|
{{ getSelectByIndex("projectType", scope.row.c_task_type) }}
|
|
@@ -58,7 +76,9 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="c_owning_street_town" label="所属街镇">
|
|
<el-table-column prop="c_owning_street_town" label="所属街镇">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ getSelectByIndex("associatedItems", scope.row.c_owning_street_town) }}
|
|
|
|
|
|
+ {{
|
|
|
|
+ getSelectByIndex("associatedItems", scope.row.c_owning_street_town)
|
|
|
|
+ }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="c_create_date" label="创建时间">
|
|
<el-table-column prop="c_create_date" label="创建时间">
|
|
@@ -71,7 +91,11 @@
|
|
<Pagination :paginationData="paginationData" />
|
|
<Pagination :paginationData="paginationData" />
|
|
</div>
|
|
</div>
|
|
<!-- 全流程管理流程组件 -->
|
|
<!-- 全流程管理流程组件 -->
|
|
- <StepsMyBox id="stepsBox" v-show="StepsMyBoxShowState" @hideStepsMyBoxState="StepsMyBoxShowState = false" />
|
|
|
|
|
|
+ <StepsMyBox
|
|
|
|
+ id="stepsBox"
|
|
|
|
+ v-show="StepsMyBoxShowState"
|
|
|
|
+ @hideStepsMyBoxState="StepsMyBoxShowState = false"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -91,14 +115,14 @@ export default {
|
|
// 数据字典暂存对象
|
|
// 数据字典暂存对象
|
|
selectSelectDataMap: {
|
|
selectSelectDataMap: {
|
|
projectType: [],
|
|
projectType: [],
|
|
- associatedItems: []
|
|
|
|
|
|
+ associatedItems: [],
|
|
},
|
|
},
|
|
StepsMyBoxShowState: false,
|
|
StepsMyBoxShowState: false,
|
|
// 查询条件
|
|
// 查询条件
|
|
formInline: {
|
|
formInline: {
|
|
c_task_type: "",
|
|
c_task_type: "",
|
|
c_owning_street_town: "",
|
|
c_owning_street_town: "",
|
|
- c_create_date: ""
|
|
|
|
|
|
+ c_create_date: "",
|
|
},
|
|
},
|
|
// 我的任务form表单
|
|
// 我的任务form表单
|
|
tableData: [],
|
|
tableData: [],
|
|
@@ -107,13 +131,13 @@ export default {
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSizes: [5, 10, 20, 50],
|
|
pageSizes: [5, 10, 20, 50],
|
|
total: 0,
|
|
total: 0,
|
|
- currentChange: val => {
|
|
|
|
|
|
+ currentChange: (val) => {
|
|
this.handleCurrentChange(val);
|
|
this.handleCurrentChange(val);
|
|
},
|
|
},
|
|
- handleSizeChange: val => {
|
|
|
|
|
|
+ handleSizeChange: (val) => {
|
|
this.handleSizeChange(val);
|
|
this.handleSizeChange(val);
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
props: {},
|
|
props: {},
|
|
@@ -131,12 +155,12 @@ export default {
|
|
params.append("type", type);
|
|
params.append("type", type);
|
|
params.append("cName", cName);
|
|
params.append("cName", cName);
|
|
this.$Post(this.urlsCollection.selectByCNameAType, params).then(
|
|
this.$Post(this.urlsCollection.selectByCNameAType, params).then(
|
|
- res => {
|
|
|
|
|
|
+ (res) => {
|
|
if (res.code === 200 && res.content.length > 0) {
|
|
if (res.code === 200 && res.content.length > 0) {
|
|
this.selectSelectDataMap[keyName] = res.content;
|
|
this.selectSelectDataMap[keyName] = res.content;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- error => {
|
|
|
|
|
|
+ (error) => {
|
|
this.$message.error(error);
|
|
this.$message.error(error);
|
|
console.log(error);
|
|
console.log(error);
|
|
}
|
|
}
|
|
@@ -145,8 +169,11 @@ export default {
|
|
// 数据字典对照显示
|
|
// 数据字典对照显示
|
|
getSelectByIndex(selectName, index) {
|
|
getSelectByIndex(selectName, index) {
|
|
let slotValue = "";
|
|
let slotValue = "";
|
|
- if (this.selectSelectDataMap[selectName] && this.selectSelectDataMap[selectName].length > 0) {
|
|
|
|
- this.selectSelectDataMap[selectName].forEach(item => {
|
|
|
|
|
|
+ if (
|
|
|
|
+ this.selectSelectDataMap[selectName] &&
|
|
|
|
+ this.selectSelectDataMap[selectName].length > 0
|
|
|
|
+ ) {
|
|
|
|
+ this.selectSelectDataMap[selectName].forEach((item) => {
|
|
if (item.index == index) {
|
|
if (item.index == index) {
|
|
slotValue = item.name;
|
|
slotValue = item.name;
|
|
}
|
|
}
|
|
@@ -168,7 +195,7 @@ export default {
|
|
},
|
|
},
|
|
// 查询事件
|
|
// 查询事件
|
|
onSubmit() {
|
|
onSubmit() {
|
|
- if(!this.tableInitLoading){
|
|
|
|
|
|
+ if (!this.tableInitLoading) {
|
|
this.tableInitLoading = true;
|
|
this.tableInitLoading = true;
|
|
}
|
|
}
|
|
let params = new FormData();
|
|
let params = new FormData();
|
|
@@ -182,8 +209,8 @@ export default {
|
|
field: "c_task_type",
|
|
field: "c_task_type",
|
|
searchType: "1",
|
|
searchType: "1",
|
|
content: {
|
|
content: {
|
|
- value: this.formInline.c_task_type
|
|
|
|
- }
|
|
|
|
|
|
+ value: this.formInline.c_task_type,
|
|
|
|
+ },
|
|
};
|
|
};
|
|
searchParam.push(param1);
|
|
searchParam.push(param1);
|
|
}
|
|
}
|
|
@@ -192,8 +219,8 @@ export default {
|
|
field: "c_owning_street_town",
|
|
field: "c_owning_street_town",
|
|
searchType: "1",
|
|
searchType: "1",
|
|
content: {
|
|
content: {
|
|
- value: this.formInline.c_owning_street_town
|
|
|
|
- }
|
|
|
|
|
|
+ value: this.formInline.c_owning_street_town,
|
|
|
|
+ },
|
|
};
|
|
};
|
|
searchParam.push(param1);
|
|
searchParam.push(param1);
|
|
}
|
|
}
|
|
@@ -203,31 +230,26 @@ export default {
|
|
searchType: "3",
|
|
searchType: "3",
|
|
content: {
|
|
content: {
|
|
start: this.formInline.c_create_date[0],
|
|
start: this.formInline.c_create_date[0],
|
|
- end: this.formInline.c_create_date[0]
|
|
|
|
- }
|
|
|
|
|
|
+ end: this.formInline.c_create_date[0],
|
|
|
|
+ },
|
|
};
|
|
};
|
|
searchParam.push(param1);
|
|
searchParam.push(param1);
|
|
}
|
|
}
|
|
params.append("search", JSON.stringify(searchParam));
|
|
params.append("search", JSON.stringify(searchParam));
|
|
this.$Post(this.urlsCollection.selectContentList, params).then(
|
|
this.$Post(this.urlsCollection.selectContentList, params).then(
|
|
- res => {
|
|
|
|
- if (res.code === 200 && res.content.count > 0) {
|
|
|
|
- this.paginationData.total = res.content.count;
|
|
|
|
- console.log("请求到的总条数为:", res.content.count, this.paginationData.total);
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- error => {
|
|
|
|
- console.log(error);
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
- this.$Post(this.urlsCollection.selectContentListInfo, params).then(
|
|
|
|
- res => {
|
|
|
|
- if (res.code === 200 && res.content.length > 0) {
|
|
|
|
- this.tableData = res.content;
|
|
|
|
|
|
+ (res) => {
|
|
|
|
+ if (res.code === 200 && res.content.data.length > 0) {
|
|
|
|
+ this.tableData = res.content.data;
|
|
this.tableInitLoading = false;
|
|
this.tableInitLoading = false;
|
|
|
|
+ this.paginationData.total = res.content.count;
|
|
|
|
+ console.log(
|
|
|
|
+ "请求到的总条数为:",
|
|
|
|
+ res.content.count,
|
|
|
|
+ this.paginationData.total
|
|
|
|
+ );
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- error => {
|
|
|
|
|
|
+ (error) => {
|
|
this.tableInitLoading = false;
|
|
this.tableInitLoading = false;
|
|
console.log(error);
|
|
console.log(error);
|
|
}
|
|
}
|
|
@@ -238,7 +260,7 @@ export default {
|
|
this.formInline = {
|
|
this.formInline = {
|
|
c_task_type: "",
|
|
c_task_type: "",
|
|
c_owning_street_town: "",
|
|
c_owning_street_town: "",
|
|
- c_create_date: ""
|
|
|
|
|
|
+ c_create_date: "",
|
|
};
|
|
};
|
|
this.onSubmit();
|
|
this.onSubmit();
|
|
},
|
|
},
|
|
@@ -255,8 +277,8 @@ export default {
|
|
ToView(index) {
|
|
ToView(index) {
|
|
this.StepsMyBoxShowState = true;
|
|
this.StepsMyBoxShowState = true;
|
|
console.log("选中的历史项目的index:", index);
|
|
console.log("选中的历史项目的index:", index);
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|