|
@@ -2,18 +2,29 @@
|
|
|
<!-- 分派计划 -->
|
|
|
<div class="homeworkPath">
|
|
|
<div class="top">
|
|
|
- <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
|
|
|
+ <el-input
|
|
|
+ class="el-input"
|
|
|
+ placeholder="请输入内容"
|
|
|
+ v-model="input"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
|
<i class="el-icon-search"></i>查询
|
|
|
</el-button>
|
|
|
</div>
|
|
|
+
|
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
<!--接收 -->
|
|
|
<el-tab-pane label="待接收" name="zero">
|
|
|
<dilTable v-bind.sync="zero" ref="table">
|
|
|
<el-table-column fixed="right" label="操作" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button @click="receiveClick(scope.row.planId)" type="text" size="small">
|
|
|
+ <el-button
|
|
|
+ @click="receiveClick(scope.row.planId)"
|
|
|
+ type="text"
|
|
|
+ size="small"
|
|
|
+ >
|
|
|
接收
|
|
|
</el-button>
|
|
|
</template>
|
|
@@ -51,8 +62,8 @@ export default {
|
|
|
status: "",
|
|
|
input: "",
|
|
|
activeName: "zero",
|
|
|
- zero:{
|
|
|
- requestUrl: "/api/v1/ams/getAllPurPlan?apiId=79&status=1",
|
|
|
+ zero: {
|
|
|
+ requestUrl: "/api/v1/ams/getAllPurPlan?apiId=79&status=1",
|
|
|
},
|
|
|
option1: {
|
|
|
//待分解
|
|
@@ -81,13 +92,10 @@ export default {
|
|
|
message: "接收成功!",
|
|
|
});
|
|
|
// console.log(this.arr[0].text_prop);
|
|
|
- this.axios
|
|
|
- .post(
|
|
|
- "/api/v1/ams/receptionPurPlan/" + planId
|
|
|
- )
|
|
|
- .then(() => {
|
|
|
- this.zero.requestUrl = "/api/v1/ams/getAllPurPlan?apiId=79&status=1&q=1"
|
|
|
- });
|
|
|
+ this.axios.post("/api/v1/ams/receptionPurPlan/" + planId).then(() => {
|
|
|
+ this.zero.requestUrl =
|
|
|
+ "/api/v1/ams/getAllPurPlan?apiId=79&status=1&q=1";
|
|
|
+ });
|
|
|
})
|
|
|
.catch(() => {
|
|
|
this.$message({
|
|
@@ -97,15 +105,18 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
onclick() {
|
|
|
- if(this.activeName=='zero'){
|
|
|
- this.zero.requestUrl = "/api/v1/ams/getAllPurPlan?apiId=79&status=1&con=" + this.input
|
|
|
- }else if(this.activeName == 'first'){
|
|
|
+ if (this.activeName == "zero") {
|
|
|
+ this.zero.requestUrl =
|
|
|
+ "/api/v1/ams/getAllPurPlan?apiId=79&status=1&con=" + this.input;
|
|
|
+ } else if (this.activeName == "first") {
|
|
|
this.option1.requestUrl =
|
|
|
- "/api/v1/ams/getDecomposedPlan?apiId=82&status=2&con=" + this.input;
|
|
|
- }else{
|
|
|
- this.option2.requestUrl = "/api/v1/ams/getDecomposedPlan?apiId=82&status=2&planStatus=1&con=" + this.input
|
|
|
+ "/api/v1/ams/getDecomposedPlan?apiId=82&status=2&con=" + this.input;
|
|
|
+ } else {
|
|
|
+ this.option2.requestUrl =
|
|
|
+ "/api/v1/ams/getDecomposedPlan?apiId=82&status=2&planStatus=1&con=" +
|
|
|
+ this.input;
|
|
|
}
|
|
|
- },
|
|
|
+ },
|
|
|
seeClick(planId) {
|
|
|
console.log(planId);
|
|
|
this.$router.push("/breakdownPlanAdd/" + planId);
|
|
@@ -116,10 +127,16 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
-<style lang='scss' scoped>
|
|
|
+<style lang='scss'>
|
|
|
.homeworkPath {
|
|
|
.top {
|
|
|
- padding: 1.25rem 1.875rem;
|
|
|
+ padding: 1.25rem 0.375rem;
|
|
|
+ .el-input el-input--suffix {
|
|
|
+ .el-input__inner {
|
|
|
+ width: 20%;
|
|
|
+ margin-right: 1.25rem;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|