main.js 7.98 KB
global.webpackJsonp([28],{

/***/ 208:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _vue = __webpack_require__(1);

var _vue2 = _interopRequireDefault(_vue);

var _index = __webpack_require__(209);

var _index2 = _interopRequireDefault(_index);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var app = new _vue2.default(_index2.default);
app.$mount();

exports.default = {
  config: {
    navigationBarTitleText: '请假'
  }
};

/***/ }),

/***/ 209:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_mpvue_loader_lib_selector_type_script_index_0_index_vue__ = __webpack_require__(211);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_mpvue_loader_lib_selector_type_script_index_0_index_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_mpvue_loader_lib_selector_type_script_index_0_index_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_mpvue_loader_lib_template_compiler_index_id_data_v_553ed357_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_mpvue_loader_lib_selector_type_template_index_0_index_vue__ = __webpack_require__(212);
var disposed = false
function injectStyle (ssrContext) {
  if (disposed) return
  __webpack_require__(210)
}
var normalizeComponent = __webpack_require__(0)
/* script */

/* template */

/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-553ed357"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_mpvue_loader_lib_selector_type_script_index_0_index_vue___default.a,
  __WEBPACK_IMPORTED_MODULE_1__node_modules_mpvue_loader_lib_template_compiler_index_id_data_v_553ed357_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_mpvue_loader_lib_selector_type_template_index_0_index_vue__["a" /* default */],
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)
Component.options.__file = "src\\pages\\leaveInfo\\index.vue"
if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key.substr(0, 2) !== "__"})) {console.error("named exports are not supported in *.vue files.")}
if (Component.options.functional) {console.error("[vue-loader] index.vue: functional components are not supported with templates, they should use render functions.")}

/* hot reload */
if (false) {(function () {
  var hotAPI = require("vue-hot-reload-api")
  hotAPI.install(require("vue"), false)
  if (!hotAPI.compatible) return
  module.hot.accept()
  if (!module.hot.data) {
    hotAPI.createRecord("data-v-553ed357", Component.options)
  } else {
    hotAPI.reload("data-v-553ed357", Component.options)
  }
  module.hot.dispose(function (data) {
    disposed = true
  })
})()}

/* harmony default export */ __webpack_exports__["default"] = (Component.exports);


/***/ }),

/***/ 210:
/***/ (function(module, exports) {

// removed by extract-text-webpack-plugin

/***/ }),

/***/ 211:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

exports.default = {
  data: function data() {
    return {
      leave: null,
      id: null,
      sysNewsId: 1,
      createDate: null,
      userName: '',
      startDate: '',
      endDate: '',
      name: '',
      cause: '',
      status: '',
      loaded: false
    };
  },

  methods: {
    loadArticles: function loadArticles() {
      this.getList();
    },
    getList: function getList() {
      var _this = this;

      wx.showLoading({ title: '正在加载' });
      wx.request({
        url: this.rootUrl + 'leave/getLeave',
        method: 'get',
        header: { 'content-type': 'application/x-www-form-urlencoded' },
        data: {
          id: this.id,
          sessionID: wx.getStorageSync('sessionID'),
          sysNewsId: this.sysNewsId
        },
        success: function success(res) {
          if (res.statusCode == '500') {
            _this.service.getUnionId(_this.rootAvatar, _this.rootUrl).then(function (res) {
              console.log(res);
              _this.loadArticles();
            });
          } else {
            console.log(res.data);
            _this.createDate = _this.service.correctTime(res.data.createDate, 'full');
            _this.leave = res.data;
            _this.userName = res.data.user_name;
            _this.startDate = res.data.start_Date;
            _this.endDate = res.data.end_Date;
            _this.name = res.data.name;
            _this.cause = res.data.cause;
            _this.status = res.data.status;
            // this.createDate = util.formatTime(res.data.createDate)
            wx.hideLoading();
          }
        },
        fail: function fail(res) {
          console.log(res);
        }
      });
    }
  },
  onLoad: function onLoad() {
    this.id = this.$root.$mp.query.id;
    this.sysNewsId = this.$root.$mp.query.sysNewsId;
    this.getList();
  },
  onShow: function onShow() {
    this.loadArticles();
  },
  onUnload: function onUnload() {
    this.leave = null;
    this.id = null;
    this.sysNewsId = 1;
    this.loaded = false;
  }
};

/***/ }),

/***/ 212:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    staticClass: "container"
  }, [_c('div', {
    staticClass: "row"
  }, [_c('span', {
    staticClass: "title"
  }, [_vm._v("申请时间")]), _vm._v(" "), _c('span', {
    staticClass: "cont"
  }, [_vm._v(_vm._s(_vm.createDate))])]), _vm._v(" "), _c('div', {
    staticClass: "row"
  }, [_c('span', {
    staticClass: "title"
  }, [_vm._v("申请人")]), _vm._v(" "), _c('span', {
    staticClass: "cont"
  }, [_vm._v(_vm._s(_vm.userName))])]), _vm._v(" "), _c('div', {
    staticClass: "row"
  }, [_c('span', {
    staticClass: "title"
  }, [_vm._v("开始时间")]), _vm._v(" "), _c('span', {
    staticClass: "cont"
  }, [_vm._v(_vm._s(_vm.startDate))])]), _vm._v(" "), _c('div', {
    staticClass: "row"
  }, [_c('span', {
    staticClass: "title"
  }, [_vm._v("结束时间")]), _vm._v(" "), _c('span', {
    staticClass: "cont"
  }, [_vm._v(_vm._s(_vm.endDate))])]), _vm._v(" "), _c('div', {
    staticClass: "row"
  }, [_c('span', {
    staticClass: "title"
  }, [_vm._v("请假事由")]), _vm._v(" "), _c('span', {
    staticClass: "cont"
  }, [_vm._v(_vm._s(_vm.cause))])]), _vm._v(" "), _c('div', {
    staticClass: "row"
  }, [_c('span', {
    staticClass: "title"
  }, [_vm._v("审批人")]), _vm._v(" "), _c('span', {
    staticClass: "cont"
  }, [_vm._v(_vm._s(_vm.name))])]), _vm._v(" "), _c('div', {
    staticClass: "row"
  }, [_c('span', {
    staticClass: "title"
  }, [_vm._v("审批状态")]), _vm._v(" "), _c('span', {
    staticClass: "cont"
  }, [(_vm.status == 0) ? _c('span', {
    staticClass: "status ongoing"
  }, [_vm._v("律所审核中")]) : _vm._e(), _vm._v(" "), (_vm.status == 1) ? _c('span', {
    staticClass: "status ongoing"
  }, [_vm._v("司法审核中")]) : _vm._e(), _vm._v(" "), (_vm.status == 2) ? _c('span', {
    staticClass: "status finish"
  }, [_vm._v("已审核")]) : _vm._e()])])])
}
var staticRenderFns = []
render._withStripped = true
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ __webpack_exports__["a"] = (esExports);
if (false) {
  module.hot.accept()
  if (module.hot.data) {
     require("vue-hot-reload-api").rerender("data-v-553ed357", esExports)
  }
}

/***/ })

},[208]);
//# sourceMappingURL=main.js.map