|
|
@@ -1951,6 +1951,52 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
//
|
|
|
//
|
|
|
//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
+//
|
|
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
|
props: ['asset', 'pcextraStart'],
|
|
|
data: function data() {
|
|
|
@@ -1962,10 +2008,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
mounted: function mounted() {
|
|
|
var _this = this;
|
|
|
|
|
|
- console.log(this.pcextra);
|
|
|
Echo.channel('assets').listen('AssetUpdated', function (e) {
|
|
|
_this.data = JSON.parse(e.data);
|
|
|
+ _this.pcextra = JSON.parse(e.pcextra);
|
|
|
});
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ updateAsset: function updateAsset() {
|
|
|
+ this.data.pcextra = this.pcextra;
|
|
|
+ axios.put('/api/asset/' + this.data.pcid, this.data).then(function (response) {})["catch"](function (error) {});
|
|
|
+ $('#asseteditModal').modal('hide');
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -48413,24 +48466,309 @@ var render = function() {
|
|
|
var _vm = this
|
|
|
var _h = _vm.$createElement
|
|
|
var _c = _vm._self._c || _h
|
|
|
- return _c("div", [
|
|
|
- _c("h4", { staticClass: "text-center" }, [
|
|
|
- _vm._v(_vm._s(this.data.pcmanu) + " " + _vm._s(this.data.pcmake) + " - "),
|
|
|
- _c("small", { staticClass: "text-muted" }, [
|
|
|
- _vm._v(_vm._s(this.data.pcnickname))
|
|
|
- ])
|
|
|
- ]),
|
|
|
- _vm._v(" "),
|
|
|
- _c("p", [_vm._v("OS: " + _vm._s(this.pcextra[2]))]),
|
|
|
- _vm._v(" "),
|
|
|
- _c("p", [_vm._v("S/N: " + _vm._s(this.pcextra[104]))]),
|
|
|
- _vm._v(" "),
|
|
|
- _c("p", [_vm._v("CPU: " + _vm._s(this.pcextra[101]))]),
|
|
|
- _vm._v(" "),
|
|
|
- _c("p", [_vm._v("RAM: " + _vm._s(this.pcextra[100]))]),
|
|
|
- _vm._v(" "),
|
|
|
- _c("p", [_vm._v("Graphics: " + _vm._s(this.pcextra[4]))])
|
|
|
- ])
|
|
|
+ return _c(
|
|
|
+ "div",
|
|
|
+ [
|
|
|
+ _c(
|
|
|
+ "modal",
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ id: "asseteditModal",
|
|
|
+ tabindex: "-1",
|
|
|
+ role: "dialog",
|
|
|
+ "aria-labelledby": "asseteditModalLabel"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [
|
|
|
+ _c(
|
|
|
+ "h5",
|
|
|
+ {
|
|
|
+ staticClass: "modal-title",
|
|
|
+ attrs: { slot: "header", id: "asseteditModalLabel" },
|
|
|
+ slot: "header"
|
|
|
+ },
|
|
|
+ [_vm._v("\n Edit Work Order Information\n ")]
|
|
|
+ ),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("div", { attrs: { slot: "body" }, slot: "body" }, [
|
|
|
+ _c("div", { staticClass: "form-group" }, [
|
|
|
+ _c("label", { attrs: { for: "manufacturer" } }, [
|
|
|
+ _vm._v("Manufacturer")
|
|
|
+ ]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("input", {
|
|
|
+ directives: [
|
|
|
+ {
|
|
|
+ name: "model",
|
|
|
+ rawName: "v-model",
|
|
|
+ value: _vm.data.pcmanu,
|
|
|
+ expression: "data.pcmanu"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ staticClass: "form-control",
|
|
|
+ attrs: {
|
|
|
+ type: "text",
|
|
|
+ name: "manufacturer",
|
|
|
+ id: "manufacturer"
|
|
|
+ },
|
|
|
+ domProps: { value: _vm.data.pcmanu },
|
|
|
+ on: {
|
|
|
+ input: function($event) {
|
|
|
+ if ($event.target.composing) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _vm.$set(_vm.data, "pcmanu", $event.target.value)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("div", { staticClass: "form-group" }, [
|
|
|
+ _c("label", { attrs: { for: "make" } }, [_vm._v("Make")]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("input", {
|
|
|
+ directives: [
|
|
|
+ {
|
|
|
+ name: "model",
|
|
|
+ rawName: "v-model",
|
|
|
+ value: _vm.data.pcmake,
|
|
|
+ expression: "data.pcmake"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ staticClass: "form-control",
|
|
|
+ attrs: { type: "text", name: "make", id: "make" },
|
|
|
+ domProps: { value: _vm.data.pcmake },
|
|
|
+ on: {
|
|
|
+ input: function($event) {
|
|
|
+ if ($event.target.composing) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _vm.$set(_vm.data, "pcmake", $event.target.value)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("div", { staticClass: "form-group" }, [
|
|
|
+ _c("label", { attrs: { for: "nickname" } }, [_vm._v("Nickname")]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("input", {
|
|
|
+ directives: [
|
|
|
+ {
|
|
|
+ name: "model",
|
|
|
+ rawName: "v-model",
|
|
|
+ value: _vm.data.pcnickname,
|
|
|
+ expression: "data.pcnickname"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ staticClass: "form-control",
|
|
|
+ attrs: { type: "text", name: "nickname", id: "nickname" },
|
|
|
+ domProps: { value: _vm.data.pcnickname },
|
|
|
+ on: {
|
|
|
+ input: function($event) {
|
|
|
+ if ($event.target.composing) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _vm.$set(_vm.data, "pcnickname", $event.target.value)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("div", { staticClass: "form-group" }, [
|
|
|
+ _c("label", { attrs: { for: "os" } }, [_vm._v("OS")]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("input", {
|
|
|
+ directives: [
|
|
|
+ {
|
|
|
+ name: "model",
|
|
|
+ rawName: "v-model",
|
|
|
+ value: _vm.pcextra[2],
|
|
|
+ expression: "pcextra[2]"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ staticClass: "form-control",
|
|
|
+ attrs: { type: "text", name: "os", id: "os" },
|
|
|
+ domProps: { value: _vm.pcextra[2] },
|
|
|
+ on: {
|
|
|
+ input: function($event) {
|
|
|
+ if ($event.target.composing) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _vm.$set(_vm.pcextra, 2, $event.target.value)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("div", { staticClass: "form-group" }, [
|
|
|
+ _c("label", { attrs: { for: "serial" } }, [
|
|
|
+ _vm._v("Serial Number")
|
|
|
+ ]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("input", {
|
|
|
+ directives: [
|
|
|
+ {
|
|
|
+ name: "model",
|
|
|
+ rawName: "v-model",
|
|
|
+ value: _vm.pcextra[104],
|
|
|
+ expression: "pcextra[104]"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ staticClass: "form-control",
|
|
|
+ attrs: { type: "text", id: "serial", name: "serial" },
|
|
|
+ domProps: { value: _vm.pcextra[104] },
|
|
|
+ on: {
|
|
|
+ input: function($event) {
|
|
|
+ if ($event.target.composing) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _vm.$set(_vm.pcextra, 104, $event.target.value)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("div", { staticClass: "form-group" }, [
|
|
|
+ _c("label", { attrs: { for: "cpu" } }, [_vm._v("CPU")]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("input", {
|
|
|
+ directives: [
|
|
|
+ {
|
|
|
+ name: "model",
|
|
|
+ rawName: "v-model",
|
|
|
+ value: _vm.pcextra[101],
|
|
|
+ expression: "pcextra[101]"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ staticClass: "form-control",
|
|
|
+ attrs: { type: "text", id: "cpu", name: "cpu" },
|
|
|
+ domProps: { value: _vm.pcextra[101] },
|
|
|
+ on: {
|
|
|
+ input: function($event) {
|
|
|
+ if ($event.target.composing) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _vm.$set(_vm.pcextra, 101, $event.target.value)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("div", { staticClass: "form-group" }, [
|
|
|
+ _c("label", { attrs: { for: "ram" } }, [_vm._v("RAM")]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("input", {
|
|
|
+ directives: [
|
|
|
+ {
|
|
|
+ name: "model",
|
|
|
+ rawName: "v-model",
|
|
|
+ value: _vm.pcextra[100],
|
|
|
+ expression: "pcextra[100]"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ staticClass: "form-control",
|
|
|
+ attrs: { type: "text", name: "ram", id: "ram" },
|
|
|
+ domProps: { value: _vm.pcextra[100] },
|
|
|
+ on: {
|
|
|
+ input: function($event) {
|
|
|
+ if ($event.target.composing) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _vm.$set(_vm.pcextra, 100, $event.target.value)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("div", { staticClass: "form-group" }, [
|
|
|
+ _c("label", { attrs: { for: "graphics" } }, [_vm._v("Graphics")]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("input", {
|
|
|
+ directives: [
|
|
|
+ {
|
|
|
+ name: "model",
|
|
|
+ rawName: "v-model",
|
|
|
+ value: _vm.pcextra[4],
|
|
|
+ expression: "pcextra[4]"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ staticClass: "form-control",
|
|
|
+ attrs: { type: "text", name: "graphics", id: "grapics" },
|
|
|
+ domProps: { value: _vm.pcextra[4] },
|
|
|
+ on: {
|
|
|
+ input: function($event) {
|
|
|
+ if ($event.target.composing) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ _vm.$set(_vm.pcextra, 4, $event.target.value)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ])
|
|
|
+ ]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("div", { attrs: { slot: "footer" }, slot: "footer" }, [
|
|
|
+ _c(
|
|
|
+ "button",
|
|
|
+ {
|
|
|
+ staticClass: "btn btn-secondary",
|
|
|
+ attrs: { type: "button", "data-dismiss": "modal" }
|
|
|
+ },
|
|
|
+ [_vm._v("Close")]
|
|
|
+ ),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c(
|
|
|
+ "button",
|
|
|
+ {
|
|
|
+ staticClass: "btn btn-primary",
|
|
|
+ attrs: { type: "button" },
|
|
|
+ on: {
|
|
|
+ click: function($event) {
|
|
|
+ return _vm.updateAsset()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [_vm._v("Save")]
|
|
|
+ )
|
|
|
+ ])
|
|
|
+ ]
|
|
|
+ ),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("h4", { staticClass: "text-center" }, [
|
|
|
+ _vm._v(
|
|
|
+ _vm._s(this.data.pcmanu) + " " + _vm._s(this.data.pcmake) + " - "
|
|
|
+ ),
|
|
|
+ _c("small", { staticClass: "text-muted" }, [
|
|
|
+ _vm._v(_vm._s(this.data.pcnickname))
|
|
|
+ ])
|
|
|
+ ]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("p", [_vm._v("OS: " + _vm._s(this.pcextra[2]))]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("p", [_vm._v("S/N: " + _vm._s(this.pcextra[104]))]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("p", [_vm._v("CPU: " + _vm._s(this.pcextra[101]))]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("p", [_vm._v("RAM: " + _vm._s(this.pcextra[100]))]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c("p", [_vm._v("Graphics: " + _vm._s(this.pcextra[4]))]),
|
|
|
+ _vm._v(" "),
|
|
|
+ _c(
|
|
|
+ "button",
|
|
|
+ {
|
|
|
+ staticClass: "btn btn-primary",
|
|
|
+ attrs: {
|
|
|
+ type: "button",
|
|
|
+ "data-toggle": "modal",
|
|
|
+ "data-target": "#asseteditModal"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [_vm._v("Edit")]
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ 1
|
|
|
+ )
|
|
|
}
|
|
|
var staticRenderFns = []
|
|
|
render._withStripped = true
|