|
|
|
@ -329,12 +329,20 @@ |
|
|
|
@click="handleDelete(scope.row.eqpbookId)" |
|
|
|
>{{ $t("share.delete") }}</el-button |
|
|
|
> |
|
|
|
<el-button size="mini" type="text" icon="el-icon-s-promotion" @click="goToAboutPage(scope.row.eqpbookId)">{{ |
|
|
|
$t("equipment.thoroughfare") |
|
|
|
}}</el-button> |
|
|
|
<el-button size="mini" type="text" icon="el-icon-upload" @click="uploadImg">{{ |
|
|
|
$t("equipment.uploadPictures") |
|
|
|
}}</el-button> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-s-promotion" |
|
|
|
@click="goToAboutPage(scope.row.eqpbookId)" |
|
|
|
>{{ $t("equipment.thoroughfare") }}</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-upload" |
|
|
|
@click="uploadImg" |
|
|
|
>{{ $t("equipment.uploadPictures") }}</el-button |
|
|
|
> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -441,6 +449,12 @@ |
|
|
|
" |
|
|
|
style="display: block; width: 100%" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
:label="item.mainSystemName || item.mainSystemCode" |
|
|
|
:value="item.mainSystemCode" |
|
|
|
v-for="item in mainSystemData" |
|
|
|
:key="item.mainSystemId" |
|
|
|
></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -680,6 +694,7 @@ import { |
|
|
|
video_mode, |
|
|
|
eqpbook, |
|
|
|
edit, |
|
|
|
mainsystemList |
|
|
|
} from "@/api/equipment/equipment"; |
|
|
|
import Treeselect from "@riophae/vue-treeselect"; |
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
|
|
|
@ -711,6 +726,7 @@ export default { |
|
|
|
useModeData: [], |
|
|
|
videoModeData: [], |
|
|
|
type: 0, |
|
|
|
mainSystemData: [], |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
@ -731,6 +747,7 @@ export default { |
|
|
|
this.videoModeData = res.data; |
|
|
|
} |
|
|
|
}); |
|
|
|
this.getMainsystemList(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
init() { |
|
|
|
@ -745,6 +762,13 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
getMainsystemList() { |
|
|
|
mainsystemList().then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
this.mainSystemData = res.rows; |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
getDeviceTypeInit() { |
|
|
|
getDeviceType().then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
@ -858,7 +882,7 @@ export default { |
|
|
|
// 保存 |
|
|
|
onSubmit() { |
|
|
|
if (this.type == 0) { |
|
|
|
console.log(type,1111111) |
|
|
|
console.log(type, 1111111); |
|
|
|
// 新增 |
|
|
|
eqpbook(this.dialogForm).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
@ -886,11 +910,11 @@ export default { |
|
|
|
}, |
|
|
|
// 导出 |
|
|
|
handleExport() {}, |
|
|
|
goToAboutPage(id){ |
|
|
|
this.$router.push('/basedata/eqpbook/channel') |
|
|
|
goToAboutPage(id) { |
|
|
|
this.$router.push("/basedata/eqpbook/channel"); |
|
|
|
}, |
|
|
|
// 图片上传弹框 |
|
|
|
uploadImg(){} |
|
|
|
uploadImg() {}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|