mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:41:07 +03:30
634 lines
22 KiB
JavaScript
Vendored
634 lines
22 KiB
JavaScript
Vendored
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[12],{
|
|
|
|
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/User/ListUsers.vue?vue&type=script&lang=js&":
|
|
/*!************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/User/ListUsers.vue?vue&type=script&lang=js& ***!
|
|
\************************************************************************************************************************************************************************/
|
|
/*! exports provided: default */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
|
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
|
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
data: function data() {
|
|
return {
|
|
headers: [{
|
|
sortable: true,
|
|
text: 'Operator',
|
|
value: 'operator'
|
|
}, {
|
|
sortable: true,
|
|
text: 'Date',
|
|
value: 'date'
|
|
}, {
|
|
sortable: true,
|
|
text: 'Hospital',
|
|
value: 'hospital'
|
|
}, {
|
|
sortable: true,
|
|
text: 'Action',
|
|
value: 'action',
|
|
align: 'right'
|
|
}],
|
|
items: [{
|
|
name: 'Fatemeh Shokouhi',
|
|
date: '12/05/1397',
|
|
operator: 'Shahid Beheshti',
|
|
action: ''
|
|
}, {
|
|
name: 'Fatemeh Fayyazi',
|
|
date: '12/05/1397',
|
|
operator: 'Emam Reza',
|
|
action: ''
|
|
}]
|
|
};
|
|
},
|
|
created: function created() {
|
|
this.load();
|
|
},
|
|
methods: {
|
|
load: function () {
|
|
var _load = _asyncToGenerator(
|
|
/*#__PURE__*/
|
|
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {
|
|
var result;
|
|
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
|
|
while (1) {
|
|
switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return ApiService.get(urls.listOpertor(medicalCenterId));
|
|
|
|
case 2:
|
|
result = _context.sent;
|
|
|
|
if (result && result.status == 200) {
|
|
this.items = result.data.data.users;
|
|
this.name = result.data.data.name;
|
|
} else {
|
|
this.$router.push({
|
|
name: "Dashboard"
|
|
});
|
|
}
|
|
|
|
case 4:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}
|
|
}, _callee, this);
|
|
}));
|
|
|
|
function load() {
|
|
return _load.apply(this, arguments);
|
|
}
|
|
|
|
return load;
|
|
}()
|
|
}
|
|
});
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/User/ListUsers.vue?vue&type=template&id=197b7024&scoped=true&":
|
|
/*!****************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/User/ListUsers.vue?vue&type=template&id=197b7024&scoped=true& ***!
|
|
\****************************************************************************************************************************************************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
|
var render = function() {
|
|
var _vm = this
|
|
var _h = _vm.$createElement
|
|
var _c = _vm._self._c || _h
|
|
return _c(
|
|
"v-container",
|
|
{ attrs: { "grid-list-xs": "" } },
|
|
[
|
|
_c(
|
|
"material-card",
|
|
{ attrs: { color: "black", title: "Member List" } },
|
|
[
|
|
_c(
|
|
"v-layout",
|
|
{
|
|
staticClass: "px-5 mb-3",
|
|
attrs: { "align-center": "", "justify-center": "", wrap: "" }
|
|
},
|
|
[
|
|
_c(
|
|
"v-flex",
|
|
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
|
[
|
|
_c("v-text-field", {
|
|
staticClass: "pa-2",
|
|
attrs: {
|
|
color: "black",
|
|
name: "name",
|
|
label: "Name",
|
|
id: "id1"
|
|
}
|
|
})
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-flex",
|
|
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
|
[
|
|
_c("v-text-field", {
|
|
staticClass: "pa-2",
|
|
attrs: {
|
|
color: "black",
|
|
name: "date",
|
|
label: "Date",
|
|
id: "id2"
|
|
}
|
|
})
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-flex",
|
|
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
|
[
|
|
_c("v-text-field", {
|
|
staticClass: "pa-2",
|
|
attrs: {
|
|
color: "black",
|
|
name: "hospital",
|
|
label: "Hospital",
|
|
id: "id3"
|
|
}
|
|
})
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-flex",
|
|
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
|
[
|
|
_c(
|
|
"v-btn",
|
|
{
|
|
staticClass: "WM-CyanBlueGradient-BG",
|
|
staticStyle: { padding: "10px 60px" }
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{ staticClass: "white--text mr-2 caption" },
|
|
[_vm._v("fas fa-search")]
|
|
),
|
|
_vm._v(" "),
|
|
_c("span", { staticClass: "white--text" }, [
|
|
_vm._v("Filter")
|
|
])
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
_c("v-layout", { staticClass: "px-4 my-3" }, [_c("v-divider")], 1),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-layout",
|
|
{
|
|
staticClass: "px-5 my-2",
|
|
attrs: { "align-center": "", "justify-center": "", wrap: "" }
|
|
},
|
|
[
|
|
_c(
|
|
"v-flex",
|
|
{ attrs: { xs12: "", md12: "", sm12: "" } },
|
|
[
|
|
_c("v-data-table", {
|
|
attrs: {
|
|
headers: _vm.headers,
|
|
items: _vm.items,
|
|
"hide-actions": ""
|
|
},
|
|
scopedSlots: _vm._u([
|
|
{
|
|
key: "headerCell",
|
|
fn: function(ref) {
|
|
var header = ref.header
|
|
return [
|
|
_c("span", {
|
|
staticClass:
|
|
"subheading font-weight-light text-white text--darken-3",
|
|
domProps: { textContent: _vm._s(header.text) }
|
|
})
|
|
]
|
|
}
|
|
},
|
|
{
|
|
key: "items",
|
|
fn: function(ref) {
|
|
var item = ref.item
|
|
return [
|
|
_c(
|
|
"td",
|
|
{ staticClass: "headline font-weight-light" },
|
|
[_vm._v(_vm._s(item.name))]
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"td",
|
|
{ staticClass: "title font-weight-light" },
|
|
[_vm._v(_vm._s(item.date))]
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"td",
|
|
{ staticClass: "title font-weight-light" },
|
|
[_vm._v(_vm._s(item.operator))]
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"td",
|
|
{ staticClass: "text-xs-right" },
|
|
[
|
|
_c(
|
|
"v-btn",
|
|
{
|
|
staticClass: "mr-2 WM-ActionButton",
|
|
attrs: { color: "purple" }
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{
|
|
staticClass: "white--text mr-1 caption"
|
|
},
|
|
[_vm._v("fas fa-envelope")]
|
|
),
|
|
_vm._v(" "),
|
|
_c("span", [_vm._v("SMS")])
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-btn",
|
|
{
|
|
staticClass: "mr-2 WM-ActionButton",
|
|
attrs: {
|
|
color:
|
|
item.status == "Active"
|
|
? "red"
|
|
: "green"
|
|
},
|
|
on: {
|
|
click: function($event) {
|
|
return _vm.changeStatus(item.id)
|
|
}
|
|
}
|
|
},
|
|
[
|
|
item.status == "Active"
|
|
? [
|
|
_c(
|
|
"v-icon",
|
|
{
|
|
staticClass:
|
|
"white--text mr-2 caption"
|
|
},
|
|
[_vm._v("fas fa-user-tag")]
|
|
),
|
|
_vm._v(" "),
|
|
item.status == "Active"
|
|
? _c("span", [_vm._v("Susspended")])
|
|
: _vm._e()
|
|
]
|
|
: [
|
|
_c(
|
|
"v-icon",
|
|
{
|
|
staticClass:
|
|
"white--text mr-2 caption"
|
|
},
|
|
[_vm._v("fas fa-user-tag")]
|
|
),
|
|
_vm._v(" "),
|
|
_c("span", [_vm._v("Active")])
|
|
]
|
|
],
|
|
2
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-btn",
|
|
{
|
|
staticClass: "mr-2 WM-ActionButton",
|
|
attrs: { color: "orange darken-1" }
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{
|
|
staticClass: "white--text mr-2 caption"
|
|
},
|
|
[_vm._v("fas fa-user-tag")]
|
|
),
|
|
_vm._v(" "),
|
|
_c("span", [_vm._v("Role")])
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-btn",
|
|
{
|
|
staticClass: " WM-ActionButton",
|
|
attrs: { color: "pink" }
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{
|
|
staticClass: "white--text mr-1 caption"
|
|
},
|
|
[_vm._v("fas fa-times")]
|
|
),
|
|
_vm._v(" "),
|
|
_c("span", [_vm._v("Remove")])
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
)
|
|
]
|
|
}
|
|
}
|
|
])
|
|
})
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
_c("v-layout", { staticClass: "px-4 my-3" }, [_c("v-divider")], 1),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-layout",
|
|
{
|
|
staticClass: "mt-3",
|
|
attrs: {
|
|
row: "",
|
|
wrap: "",
|
|
"align-center": "",
|
|
"justify-center": ""
|
|
}
|
|
},
|
|
[
|
|
_c(
|
|
"router-link",
|
|
{ attrs: { to: "/dashboard" } },
|
|
[
|
|
_c(
|
|
"v-btn",
|
|
{
|
|
staticClass:
|
|
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5"
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{ staticClass: "black--text mr-2 caption" },
|
|
[_vm._v("fas fa-chevron-left")]
|
|
),
|
|
_vm._v(" "),
|
|
_c("span", { staticClass: "black--text" }, [
|
|
_vm._v("Back")
|
|
])
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
)
|
|
}
|
|
var staticRenderFns = []
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./resources/js/vue/views/User/ListUsers.vue":
|
|
/*!***************************************************!*\
|
|
!*** ./resources/js/vue/views/User/ListUsers.vue ***!
|
|
\***************************************************/
|
|
/*! exports provided: default */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _ListUsers_vue_vue_type_template_id_197b7024_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ListUsers.vue?vue&type=template&id=197b7024&scoped=true& */ "./resources/js/vue/views/User/ListUsers.vue?vue&type=template&id=197b7024&scoped=true&");
|
|
/* harmony import */ var _ListUsers_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ListUsers.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/User/ListUsers.vue?vue&type=script&lang=js&");
|
|
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
|
|
|
|
|
|
|
|
|
|
|
/* normalize component */
|
|
|
|
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
_ListUsers_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
_ListUsers_vue_vue_type_template_id_197b7024_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
_ListUsers_vue_vue_type_template_id_197b7024_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
false,
|
|
null,
|
|
"197b7024",
|
|
null
|
|
|
|
)
|
|
|
|
/* hot reload */
|
|
if (false) { var api; }
|
|
component.options.__file = "resources/js/vue/views/User/ListUsers.vue"
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./resources/js/vue/views/User/ListUsers.vue?vue&type=script&lang=js&":
|
|
/*!****************************************************************************!*\
|
|
!*** ./resources/js/vue/views/User/ListUsers.vue?vue&type=script&lang=js& ***!
|
|
\****************************************************************************/
|
|
/*! exports provided: default */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ListUsers_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./ListUsers.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/User/ListUsers.vue?vue&type=script&lang=js&");
|
|
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ListUsers_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./resources/js/vue/views/User/ListUsers.vue?vue&type=template&id=197b7024&scoped=true&":
|
|
/*!**********************************************************************************************!*\
|
|
!*** ./resources/js/vue/views/User/ListUsers.vue?vue&type=template&id=197b7024&scoped=true& ***!
|
|
\**********************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ListUsers_vue_vue_type_template_id_197b7024_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./ListUsers.vue?vue&type=template&id=197b7024&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/User/ListUsers.vue?vue&type=template&id=197b7024&scoped=true&");
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ListUsers_vue_vue_type_template_id_197b7024_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_ListUsers_vue_vue_type_template_id_197b7024_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
}]); |