Commit 4f72c4ec by 吴娟华

'1.2.1'

1 parent 44b5113d
......@@ -440,7 +440,7 @@ export default {
sn: item.sns.join(',')
}
})}).then((res)=>{
this.refresh()
})
},
userListModalChange(isOpen){
......@@ -541,7 +541,7 @@ export default {
cancelButtonText: "取消",
type: "warning",
}).then(() => {
deleteVehicle({ tempId: scope.tempId }).then((res) => {
deleteVehicle({ tempId: scope.vdId }).then((res) => {
const { code, message } = res;
if (code == 200) {
this.$message({
......
......@@ -393,10 +393,11 @@ export default {
const userdata = [];
this.chosenList.forEach((obj) => {
userdata.push(obj);
console.log(obj)
console.log(obj)
});
this.$emit("onUpdateUserData", userdata);
this.$emit("onUserListModalChange", false);
this.checkedCancel = true
},
search() {
this.resultList = [];
......
......@@ -602,6 +602,10 @@ export default {
},
],
vehicleRules: {
ownerName: [
{min: 2, max: 5, message: '长度在 2 到 50 个字符', trigger: 'blur'},
{validator: this.$Common.checkName, trigger: "blur"}
],
organizationName: [
{ required: true, message: "请选择所属组织", trigger: "blur" },
{ validator: checkShopName, trigger: "blur" },
......@@ -704,7 +708,7 @@ export default {
_arr.push(k);
}
});
this.vehicleTitle = "新增 车辆";
this.vehicleTitle = "新增车辆";
this.vehicleHasOk = true;
this.vehicleForm = {};
this.vehicleData = _arr;
......@@ -743,7 +747,7 @@ export default {
this.$set(this.vehicleForm, item, data[item] + "");
else this.$set(this.vehicleForm, item, data[item]);
});
this.vehicleForm.tempId = data.id;
this.vehicleForm.id = scope.id;
this.snForm.deviceArr = data.deviceInfoDtos.map((item, i)=>{
//this.snRules['device'+i] = this.snRules['device0']
......@@ -804,8 +808,8 @@ export default {
type: "warning",
}).then(() => {
deleteNewVehicle({
vehicleId: scope.id,
sn: scope.sn
vehicleId: scope.vdId,
//sn: scope.sn
}).then((res) => {
const { code, message } = res;
if (code == 200) {
......@@ -829,7 +833,7 @@ export default {
cancelButtonText: "取消",
type: "warning",
}).then(() => {
unbindVehicle({ tempId: scope.tempId }).then((res) => {
unbindVehicle({ id: scope.id }).then((res) => {
const { code, message } = res;
if (code == 200) {
this.$message({
......@@ -890,7 +894,7 @@ export default {
console.log(arr)
let api = addNewVehicle;
if (params.tempId) api = updateNewVehicle;
if (params.id) api = updateNewVehicle;
api(params).then((res) => {
const { code, message } = res;
if (code == 200) {
......@@ -939,7 +943,7 @@ export default {
console.log(params)
return;
let api = addVehicle;
if (params.tempId) api = editVehicle;
if (params.id) api = editVehicle;
api(params).then((res) => {
const { code, message } = res;
if (code == 200) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!