|
|
|
|
@ -245,6 +245,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
areas: [],
|
|
|
|
|
types: [],
|
|
|
|
|
diaolingleixing: [],
|
|
|
|
|
abilities: [],
|
|
|
|
|
select: {
|
|
|
|
|
area: [],
|
|
|
|
|
@ -613,6 +614,29 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},i.key))),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "调令类型",
|
|
|
|
|
key: "diaolingleixing",
|
|
|
|
|
width: 160,
|
|
|
|
|
align: "center",
|
|
|
|
|
render: (h, { row, index }) =>
|
|
|
|
|
h("Select", {
|
|
|
|
|
props: {
|
|
|
|
|
value: this.data[index].diaolingleixing,
|
|
|
|
|
size: "small"
|
|
|
|
|
},
|
|
|
|
|
on: {
|
|
|
|
|
['on-change']:e => {
|
|
|
|
|
this.data[index].diaolingleixing = e
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
this.diaolingleixing.map(i => h("Option",{
|
|
|
|
|
props: {
|
|
|
|
|
value: i.value
|
|
|
|
|
}
|
|
|
|
|
},i.key))),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "开启时间",
|
|
|
|
|
width: 140,
|
|
|
|
|
@ -1159,6 +1183,22 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.$bus.$emit("yinpaishui", this.abilities);
|
|
|
|
|
},
|
|
|
|
|
async getDiaolingleixing() {
|
|
|
|
|
const obj = (await show({ id: 85 }, false))?.select_item;
|
|
|
|
|
if (obj && typeof obj === "object") {
|
|
|
|
|
let keys = Object.keys(obj);
|
|
|
|
|
if (keys.length > 0) {
|
|
|
|
|
this.diaolingleixing = keys.map((key) => {
|
|
|
|
|
return {
|
|
|
|
|
key,
|
|
|
|
|
value: /^\d*$/.test(obj[key]) ? Number(obj[key]) : obj[key],
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log(this.diaolingleixing)
|
|
|
|
|
this.$bus.$emit("diaolingleixing", this.abilities);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
pickDate() {
|
|
|
|
|
this.$bus.$emit("pickDate", this.date);
|
|
|
|
|
@ -1259,6 +1299,7 @@ export default {
|
|
|
|
|
this.getType();
|
|
|
|
|
this.getAbility();
|
|
|
|
|
this.getEquipmentInfos();
|
|
|
|
|
this.getDiaolingleixing();
|
|
|
|
|
},
|
|
|
|
|
destroyed() {
|
|
|
|
|
this.$bus.$off("getDispatches");
|
|
|
|
|
@ -1273,7 +1314,10 @@ export default {
|
|
|
|
|
::v-deep .equip-number .ivu-checkbox ~ span {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
.flex-center {
|
|
|
|
|
::v-deep .ivu-checkbox-inner {
|
|
|
|
|
border-color: $primaryColor;
|
|
|
|
|
}
|
|
|
|
|
.flex-center {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|