|
@@ -4,7 +4,7 @@
|
|
|
<toolList @iconCli='iconCli' :tooltit='tooltit'></toolList>
|
|
|
<div class="search">
|
|
|
<mySearch :searchList="searchList" @searchInfo="searchInfo"></mySearch>
|
|
|
- <el-button class="btn-check" size="medium" type="primary" @click='jumpadd'>添加
|
|
|
+ <el-button class="btn-check" size="medium" type="primary" @click='jumpadd' v-if="(userInfo.cityName==null&&userInfo.countyName==null)||(userInfo.cityName!=null&&userInfo.countyName==null)">添加
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<div class="tabbox">
|
|
@@ -39,12 +39,17 @@
|
|
|
<el-button size="mini" type="primary" @click="jump(1, scope.row)" v-if="(loginNoStr == scope.row.nextOpNo && ((scope.row.provinceCity == 1 && scope.row.nextStep != 12) || (scope.row.provinceCity == 2 && scope.row.nextStep != 10) || (scope.row.provinceCity == 3 && scope.row.nextStep != 11))) && (scope.row.sts != 2 && scope.row.sts != 3)">审批</el-button>
|
|
|
<el-button size="mini" type="primary" @click="jump(3, scope.row)" v-if="(loginNoStr == scope.row.nextOpNo && ((scope.row.provinceCity == 1 && scope.row.nextStep ==7) || (scope.row.provinceCity == 1 && scope.row.nextStep ==11) || (scope.row.provinceCity == 2 && scope.row.nextStep == 9) || (scope.row.provinceCity == 3 && scope.row.nextStep == 10))) && (scope.row.sts != 3)">子任务列表</el-button>
|
|
|
<el-button size="mini" type="danger" @click="delLine(scope.row)" v-if="(loginNoStr == scope.row.opNo && ((scope.row.provinceCity == 1 && scope.row.nextStep <= 7) || (scope.row.provinceCity == 2 && scope.row.nextStep <= 10) || (scope.row.provinceCity == 3 && scope.row.nextStep <= 11)) && (scope.row.sts != 3))">删除</el-button>
|
|
|
- <el-button size="mini" type="primary" @click="jump(4, scope.row)" v-if="((scope.row.provinceCity == 1 && scope.row.nextStep == 12) || (scope.row.provinceCity == 2 && scope.row.nextStep == 10) || (scope.row.provinceCity == 3 && scope.row.nextStep == 11)) && scope.row.countrySts != 3">验收</el-button>
|
|
|
+ <el-button size="mini" type="primary" @click="jump(4, scope.row)" v-if="((scope.row.provinceCity == 1 && scope.row.nextStep == 12) || (scope.row.provinceCity == 2 && scope.row.nextStep == 10) || (scope.row.provinceCity == 3 && scope.row.nextStep == 11)) && (scope.row.countrySts == 0 || scope.row.countrySts == 2)">验收</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <el-pagination class="pageBox" @current-change="currchange" layout="prev, pager, next" background
|
|
|
- :total="total">
|
|
|
+ <el-pagination
|
|
|
+ class="pageBox"
|
|
|
+ @current-change="currchange"
|
|
|
+ layout="prev, pager, next"
|
|
|
+ background
|
|
|
+ :total="total"
|
|
|
+ >
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -315,7 +320,7 @@
|
|
|
// this.$router.push("/materialApplicationExa?id=" + n.id + "");
|
|
|
this.$router.push({
|
|
|
path: '/materialApplicationExa',
|
|
|
- query: {id: n.id, btnS: 1}
|
|
|
+ query: {cityWoId: n.cityWoId, id: n.id, btnS: 1}
|
|
|
})
|
|
|
|
|
|
}else if(v === 2){
|
|
@@ -407,8 +412,8 @@
|
|
|
data: v,
|
|
|
}).then((res) => {
|
|
|
this.tableData = res.data.body.pageList.data;
|
|
|
- // this.total = res.data.totalRecord;
|
|
|
-
|
|
|
+ this.total = res.data.body.pageList.totalRecord;
|
|
|
+ // console.log(this.tableData);
|
|
|
this.loading = false;
|
|
|
|
|
|
});
|
|
@@ -559,6 +564,7 @@
|
|
|
getUser() {
|
|
|
this.userInfo = JSON.parse(window.sessionStorage.userInfo);
|
|
|
this.loginNoStr = this.userInfo.loginNoStr;
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|