|
@@ -455,23 +455,7 @@ export default {
|
|
|
});
|
|
|
// 查询字典
|
|
|
this.getdict()
|
|
|
- // // 军车值班接口
|
|
|
- militaryDuty().then(res=>{
|
|
|
- // console.log(res.rows)
|
|
|
- this.MilitaryDuty=res.rows
|
|
|
- // console.log(res.rows)
|
|
|
- this.MilitaryDuty.map((item)=>{
|
|
|
- this.ziDian.map((items)=>{
|
|
|
- console.log(items)
|
|
|
- if(item.modelInfo==items.dictValue){
|
|
|
- // console.log(items.dictLabel)
|
|
|
- return item.modelInfo=items.dictLabel
|
|
|
-
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- console.log(this.MilitaryDuty)
|
|
|
- })
|
|
|
+
|
|
|
|
|
|
// // 装备值班接口
|
|
|
equipment().then(res=>{
|
|
@@ -491,6 +475,26 @@ export default {
|
|
|
})
|
|
|
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ // // 军车值班接口
|
|
|
+ militaryDuty().then(res=>{
|
|
|
+ // console.log(res.rows)
|
|
|
+ this.MilitaryDuty=res.rows
|
|
|
+ // console.log(res.rows)
|
|
|
+ this.MilitaryDuty.map((item)=>{
|
|
|
+ this.ziDian.map((items)=>{
|
|
|
+ // console.log(items)
|
|
|
+ if(item.modelInfo==items.dictValue){
|
|
|
+ // console.log(items.dictLabel)
|
|
|
+ return item.modelInfo=items.dictLabel
|
|
|
+
|
|
|
+ }
|
|
|
+ this.MilitaryDuty=this.MilitaryDuty
|
|
|
+ })
|
|
|
+ })
|
|
|
+ // console.log(this.MilitaryDuty)
|
|
|
+ })
|
|
|
+ },
|
|
|
methods: {
|
|
|
// 查询字典
|
|
|
getdict() {
|