Commit b7d2ba44 by 胡悦

Merge branch 'zj_dev_v1.5.0' into 'develop'

Zj dev v1.5.0

See merge request !1
2 parents f876b19b db75cdf8
......@@ -36,9 +36,10 @@ export default {
// 判断是否有权限
hasPermission() {
let id = this.uid;
let _name = this.name;
let list = this.$root.parentCommon.getAuthData();
console.log(list[0])
let idx = list.findIndex((k) => k.id == id);
let idx = list.findIndex((k) => k.id == id || k.label == _name);
if (idx < 0) {
return false;
} else {
......
......@@ -11,6 +11,10 @@ export default {
type: [String, Number],
default: "",
},
name: {
type: String,
default: "",
},
type: {
type: [String, Number],
default: "default",
......@@ -23,14 +27,14 @@ export default {
data() {
return {};
},
mounted() {
},
mounted() {},
methods: {
// 判断是否有权限
hasPermission() {
let id = this.uid;
let _name = this.name;
let list = this.$root.parentCommon.getAuthData();
let idx = list.findIndex((k) => k.id == id);
let idx = list.findIndex((k) => k.id == id || k.label == _name);
if (idx < 0) {
return false;
} else {
......
......@@ -241,9 +241,9 @@ export default {
devices: [{ sn: value }],
workOrderId: _this.editForm.id,
};
_this.gpsloading = true
_this.gpsloading = true;
VERIFY_WORKORDER_INFO(oParams).then((res) => {
_this.gpsloading = false
_this.gpsloading = false;
if (res.code == 200) {
console.log(res);
let m = _this.editForm.snList;
......@@ -264,7 +264,7 @@ export default {
// });
cb();
} else {
_this.gpsloading = false
_this.gpsloading = false;
cb(new Error(res.message));
}
});
......@@ -390,7 +390,7 @@ export default {
formRules: {},
logList: [],
isDisabled: false,
gpsloading:false
gpsloading: false,
};
},
watch: {
......@@ -789,23 +789,23 @@ export default {
let bsInfo = row.gpsBsData ? row.gpsBsData.bsLocation : {};
let oParams = {};
oParams.sn = row.sn;
oParams.sn = row.sn || "";
//oParams.gpsData
oParams.name = row.ownerName;
oParams.standNo = m.vin;
oParams.source = row.source;
oParams.name = row.ownerName || "";
oParams.standNo = m.vin || "";
oParams.source = row.source || "";
// gps 信息
oParams.lng = gpsInfo.lng;
oParams.lat = gpsInfo.lat;
oParams.address = gpsInfo.address;
oParams.time = gpsInfo.dateTime;
oParams.address = gpsInfo.address || "";
oParams.time = gpsInfo.dateTime || "";
//基站信息
oParams.bsLng = bsInfo.lng;
oParams.bsLat = bsInfo.lat;
oParams.bsAddress = row.address;
oParams.bsTime = row.dateTime;
oParams.bsAddress = bsInfo.address || "";
oParams.bsTime = bsInfo.dateTime || "";
// 定位类型
oParams.type = 2;
......
......@@ -65,7 +65,7 @@ export default {
},
},
mounted() {
console.log(this.status);
},
methods: {
// 监听选择图片
......
......@@ -92,7 +92,7 @@
<el-link class="el_link" type="primary" v-if="row.status == 0 ||row.status == 1" @click="lookDetail(row,3)">激活</el-link>
<el-link class="el_link" type="primary" v-if="row.status == 5" @click="lookDetail(row,4)">审核</el-link>
<!-- <el-link class="el_link" type="primary" v-if="row.status == 2" @click="lookDetail(row,5)">照片编辑</el-link> -->
<auth-link class="el_link" type="primary" v-if="row.status == 2" uid="14010101" @click.native="lookDetail(row,5)">照片编辑</auth-link>
<auth-link class="el_link" type="primary" v-if="row.status == 2" uid="14010101" name="照片编辑" @click.native="lookDetail(row,5)">照片编辑</auth-link>
</template>
</el-table-column>
</el-table>
......@@ -516,6 +516,7 @@ export default {
let oParams = {};
oParams.vin = row.vin;
let path = `/trialRun#/vehicleManage/vehicleList`;
this.$root.parentCommon.setBreadCrumbs(path);
history.pushState(oParams, "车辆列表", path);
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!