first commit
This commit is contained in:
@@ -0,0 +1,821 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["indexOtherManageAppVsersion"],{
|
||||
|
||||
/***/ "2638":
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var normalMerge=["attrs","props","domProps"],toArrayMerge=["class","style","directives"],functionalMerge=["on","nativeOn"],mergeJsxProps=function(a){return a.reduce(function(c,a){for(var b in a)if(!c[b])c[b]=a[b];else if(-1!==normalMerge.indexOf(b))c[b]=_extends({},c[b],a[b]);else if(-1!==toArrayMerge.indexOf(b)){var d=c[b]instanceof Array?c[b]:[c[b]],e=a[b]instanceof Array?a[b]:[a[b]];c[b]=d.concat(e)}else if(-1!==functionalMerge.indexOf(b)){for(var f in a[b])if(c[b][f]){var g=c[b][f]instanceof Array?c[b][f]:[c[b][f]],h=a[b][f]instanceof Array?a[b][f]:[a[b][f]];c[b][f]=g.concat(h)}else c[b][f]=a[b][f];}else if("hook"==b)for(var i in a[b])c[b][i]=c[b][i]?mergeFn(c[b][i],a[b][i]):a[b][i];else c[b]=a[b];return c},{})},mergeFn=function(a,b){return function(){a&&a.apply(this,arguments),b&&b.apply(this,arguments)}};module.exports=mergeJsxProps;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "27b4":
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "463b":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BaseLogic; });
|
||||
/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("96cf");
|
||||
/* harmony import */ var regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("1da1");
|
||||
/* harmony import */ var _Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("d4ec");
|
||||
/* harmony import */ var _Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("bee2");
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("9ab4");
|
||||
/* harmony import */ var _ann_Ioc_annotation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("4771");
|
||||
/* harmony import */ var _impl_User_service_impl__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("32f6");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020. bmy
|
||||
*/
|
||||
var _a;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* logic 层的父类
|
||||
* 主要实现 页面公共参数和ajax方法的地方
|
||||
*/
|
||||
|
||||
var BaseLogic = /*#__PURE__*/function () {
|
||||
function BaseLogic() {
|
||||
Object(_Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(this, BaseLogic);
|
||||
|
||||
this.page = 1;
|
||||
this.total_page = 1;
|
||||
this.count = 10; // 请求参数
|
||||
|
||||
this.PageParams = {
|
||||
limit: 10,
|
||||
page: 1
|
||||
};
|
||||
}
|
||||
/**
|
||||
* 【页面中公共的多次被用到的接口】可以在这个父类中定义,
|
||||
* 子类logic中直接使用,避免方法的冗余
|
||||
* @constructor
|
||||
*/
|
||||
|
||||
|
||||
Object(_Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(BaseLogic, [{
|
||||
key: "DepartmentListRequest",
|
||||
value: function () {
|
||||
var _DepartmentListRequest = Object(_Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
|
||||
function DepartmentListRequest() {
|
||||
return _DepartmentListRequest.apply(this, arguments);
|
||||
}
|
||||
|
||||
return DepartmentListRequest;
|
||||
}()
|
||||
}]);
|
||||
|
||||
return BaseLogic;
|
||||
}();
|
||||
|
||||
Object(tslib__WEBPACK_IMPORTED_MODULE_4__[/* __decorate */ "a"])([Object(_ann_Ioc_annotation__WEBPACK_IMPORTED_MODULE_5__[/* Inject */ "a"])(), Object(tslib__WEBPACK_IMPORTED_MODULE_4__[/* __metadata */ "b"])("design:type", typeof (_a = typeof _impl_User_service_impl__WEBPACK_IMPORTED_MODULE_6__["UserServiceImpl"] !== "undefined" && _impl_User_service_impl__WEBPACK_IMPORTED_MODULE_6__["UserServiceImpl"]) === "function" ? _a : Object)], BaseLogic.prototype, "UserServiceImpl", void 0);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "8eef":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js
|
||||
var helper = __webpack_require__("2638");
|
||||
var helper_default = /*#__PURE__*/__webpack_require__.n(helper);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
|
||||
var runtime = __webpack_require__("96cf");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
||||
var asyncToGenerator = __webpack_require__("1da1");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
||||
var classCallCheck = __webpack_require__("d4ec");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
||||
var createClass = __webpack_require__("bee2");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
||||
var assertThisInitialized = __webpack_require__("257e");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
|
||||
var inherits = __webpack_require__("262e");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 4 modules
|
||||
var createSuper = __webpack_require__("2caf");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
||||
var tslib_es6 = __webpack_require__("9ab4");
|
||||
|
||||
// EXTERNAL MODULE: ./src/application/assets/less/page/Login.less
|
||||
var Login = __webpack_require__("ce7c");
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/vue-property-decorator/lib/vue-property-decorator.js
|
||||
var vue_property_decorator = __webpack_require__("60a3");
|
||||
|
||||
// EXTERNAL MODULE: ./src/application/layout/base.layout.ts
|
||||
var base_layout = __webpack_require__("cb9f");
|
||||
|
||||
// EXTERNAL MODULE: ./src/application/logic/Base.logic.ts
|
||||
var Base_logic = __webpack_require__("463b");
|
||||
|
||||
// EXTERNAL MODULE: ./src/core/annotation/Ioc.annotation.ts + 1 modules
|
||||
var Ioc_annotation = __webpack_require__("4771");
|
||||
|
||||
// EXTERNAL MODULE: ./src/core/service/impl/Tool.service.impl.ts
|
||||
var Tool_service_impl = __webpack_require__("e98d");
|
||||
|
||||
// CONCATENATED MODULE: ./src/application/logic/page/AppVsersionLogic.ts
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var _a;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var AppVsersionLogic_AppVsersionLogic = /*#__PURE__*/function (_BaseLogic) {
|
||||
Object(inherits["a" /* default */])(AppVsersionLogic, _BaseLogic);
|
||||
|
||||
var _super = Object(createSuper["a" /* default */])(AppVsersionLogic);
|
||||
|
||||
function AppVsersionLogic(point) {
|
||||
var _this;
|
||||
|
||||
Object(classCallCheck["a" /* default */])(this, AppVsersionLogic);
|
||||
|
||||
_this = _super.call(this);
|
||||
_this.params = {
|
||||
count: _this.count,
|
||||
page: _this.page,
|
||||
update_version: '',
|
||||
update_force: ''
|
||||
};
|
||||
_this.updateList = [];
|
||||
_this.isShowAddNewUpdate = false;
|
||||
_this.updateForce = false;
|
||||
_this.addNewsuUpdate = {
|
||||
update_version: "",
|
||||
update_version_code: null,
|
||||
update_down_url: "",
|
||||
update_content: "",
|
||||
update_force: 0
|
||||
};
|
||||
_this._ = point;
|
||||
return _this;
|
||||
}
|
||||
|
||||
Object(createClass["a" /* default */])(AppVsersionLogic, [{
|
||||
key: "StartUp",
|
||||
value: function () {
|
||||
var _StartUp = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return this.GetUpdateList();
|
||||
|
||||
case 2:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
function StartUp() {
|
||||
return _StartUp.apply(this, arguments);
|
||||
}
|
||||
|
||||
return StartUp;
|
||||
}() // apk上传接口
|
||||
|
||||
}, {
|
||||
key: "UploadFile",
|
||||
value: function () {
|
||||
var _UploadFile = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(file) {
|
||||
var formdata, res;
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
formdata = new FormData();
|
||||
formdata.append("file", file);
|
||||
_context2.next = 4;
|
||||
return this.toolServiceImpl.UploadFile(formdata);
|
||||
|
||||
case 4:
|
||||
res = _context2.sent;
|
||||
console.log("====== res: ", res);
|
||||
this.addNewsuUpdate.update_down_url = res.img_url;
|
||||
|
||||
case 7:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}
|
||||
}, _callee2, this);
|
||||
}));
|
||||
|
||||
function UploadFile(_x) {
|
||||
return _UploadFile.apply(this, arguments);
|
||||
}
|
||||
|
||||
return UploadFile;
|
||||
}()
|
||||
}, {
|
||||
key: "SetaddNewsuUpdate",
|
||||
value: function () {
|
||||
var _SetaddNewsuUpdate = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
||||
var res;
|
||||
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
||||
while (1) {
|
||||
switch (_context3.prev = _context3.next) {
|
||||
case 0:
|
||||
_context3.next = 2;
|
||||
return this.toolServiceImpl.addNewUpdate(this.addNewsuUpdate);
|
||||
|
||||
case 2:
|
||||
res = _context3.sent;
|
||||
_context3.next = 5;
|
||||
return this.GetUpdateList();
|
||||
|
||||
case 5:
|
||||
this.isShowAddNewUpdate = false;
|
||||
|
||||
case 6:
|
||||
case "end":
|
||||
return _context3.stop();
|
||||
}
|
||||
}
|
||||
}, _callee3, this);
|
||||
}));
|
||||
|
||||
function SetaddNewsuUpdate() {
|
||||
return _SetaddNewsuUpdate.apply(this, arguments);
|
||||
}
|
||||
|
||||
return SetaddNewsuUpdate;
|
||||
}()
|
||||
}, {
|
||||
key: "GetUpdateList",
|
||||
value: function () {
|
||||
var _GetUpdateList = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
||||
var res;
|
||||
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
||||
while (1) {
|
||||
switch (_context4.prev = _context4.next) {
|
||||
case 0:
|
||||
_context4.next = 2;
|
||||
return this.toolServiceImpl.UpdateList(this.params);
|
||||
|
||||
case 2:
|
||||
res = _context4.sent;
|
||||
this.updateList = res.result;
|
||||
console.log(res);
|
||||
|
||||
case 5:
|
||||
case "end":
|
||||
return _context4.stop();
|
||||
}
|
||||
}
|
||||
}, _callee4, this);
|
||||
}));
|
||||
|
||||
function GetUpdateList() {
|
||||
return _GetUpdateList.apply(this, arguments);
|
||||
}
|
||||
|
||||
return GetUpdateList;
|
||||
}()
|
||||
}]);
|
||||
|
||||
return AppVsersionLogic;
|
||||
}(Base_logic["a" /* BaseLogic */]);
|
||||
|
||||
Object(tslib_es6["a" /* __decorate */])([Object(Ioc_annotation["a" /* Inject */])(), Object(tslib_es6["b" /* __metadata */])("design:type", typeof (_a = typeof Tool_service_impl["ToolServiceImpl"] !== "undefined" && Tool_service_impl["ToolServiceImpl"]) === "function" ? _a : Object)], AppVsersionLogic_AppVsersionLogic.prototype, "toolServiceImpl", void 0);
|
||||
// EXTERNAL MODULE: ./src/application/components/PageHeader.tsx
|
||||
var PageHeader = __webpack_require__("e294");
|
||||
|
||||
// CONCATENATED MODULE: ./src/application/page/index/OtherManage/AppVsersion.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Copyright (c) 2021. bmy
|
||||
* Email:2271608011@qq.com
|
||||
* Github:https://github.com/helpcode
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var AppVsersion_AppVsersion = /*#__PURE__*/function (_VueType) {
|
||||
Object(inherits["a" /* default */])(AppVsersion, _VueType);
|
||||
|
||||
var _super = Object(createSuper["a" /* default */])(AppVsersion);
|
||||
|
||||
function AppVsersion() {
|
||||
var _this;
|
||||
|
||||
Object(classCallCheck["a" /* default */])(this, AppVsersion);
|
||||
|
||||
_this = _super.apply(this, arguments);
|
||||
_this.service = new AppVsersionLogic_AppVsersionLogic(Object(assertThisInitialized["a" /* default */])(_this));
|
||||
_this.RouterMeta = {
|
||||
title: 'App版本管理',
|
||||
isLogin: true
|
||||
};
|
||||
return _this;
|
||||
}
|
||||
|
||||
Object(createClass["a" /* default */])(AppVsersion, [{
|
||||
key: "created",
|
||||
value: function () {
|
||||
var _created = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return this.service.StartUp();
|
||||
|
||||
case 2:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
function created() {
|
||||
return _created.apply(this, arguments);
|
||||
}
|
||||
|
||||
return created;
|
||||
}()
|
||||
}, {
|
||||
key: "beforeRouteEnter",
|
||||
// 路由拦截器
|
||||
value: function beforeRouteEnter(to, from, next) {
|
||||
next();
|
||||
}
|
||||
}, {
|
||||
key: "AddNewUpdate",
|
||||
value: function AddNewUpdate() {
|
||||
var _this2 = this;
|
||||
|
||||
var h = this.$createElement;
|
||||
return h("el-dialog", {
|
||||
"attrs": {
|
||||
"title": "发布新版本",
|
||||
"destroy-on-close": true,
|
||||
"show-close": false,
|
||||
"visible": this.service.isShowAddNewUpdate,
|
||||
"width": "40%"
|
||||
}
|
||||
}, [h("el-form", {
|
||||
"ref": "form",
|
||||
"attrs": {
|
||||
"label-width": "100px"
|
||||
}
|
||||
}, [h("el-form-item", {
|
||||
"attrs": {
|
||||
"label": "App版本号"
|
||||
}
|
||||
}, [h("el-input", {
|
||||
"attrs": {
|
||||
"placeholder": "请输入App版本号,例如:1.0.2"
|
||||
},
|
||||
"model": {
|
||||
value: _this2.service.addNewsuUpdate.update_version,
|
||||
callback: function callback($$v) {
|
||||
_this2.$set(_this2.service.addNewsuUpdate, "update_version", $$v);
|
||||
}
|
||||
}
|
||||
})]), h("el-form-item", {
|
||||
"attrs": {
|
||||
"label": "版本号整型"
|
||||
}
|
||||
}, [h("el-input", {
|
||||
"attrs": {
|
||||
"placeholder": "请输入版本号整型,例如:102"
|
||||
},
|
||||
"model": {
|
||||
value: _this2.service.addNewsuUpdate.update_version_code,
|
||||
callback: function callback($$v) {
|
||||
_this2.$set(_this2.service.addNewsuUpdate, "update_version_code", $$v);
|
||||
}
|
||||
}
|
||||
})]), h("el-form-item", {
|
||||
"attrs": {
|
||||
"label": "App安装地址"
|
||||
}
|
||||
}, [h("el-upload", {
|
||||
"class": "upload-demo",
|
||||
"attrs": {
|
||||
"action": "/",
|
||||
"multiple": false,
|
||||
"accept": ".apk",
|
||||
"http-request": function httpRequest(param) {
|
||||
_this2.service.UploadFile(param.file);
|
||||
},
|
||||
"limit": 1,
|
||||
"file-list": []
|
||||
},
|
||||
"on": {
|
||||
"preview": "handlePreview"
|
||||
}
|
||||
}, [h("el-button", {
|
||||
"attrs": {
|
||||
"type": "primary"
|
||||
}
|
||||
}, ["\u8BF7\u9009\u62E9Apk\u5B89\u88C5\u5305", h("i", {
|
||||
"class": "el-icon-upload el-icon--right"
|
||||
})]), h("div", {
|
||||
"slot": "tip",
|
||||
"class": "el-upload__tip"
|
||||
}, ["\u53EA\u80FD\u4E0A\u4F20apk\u6587\u4EF6\uFF0C\u4E14\u4E0D\u8D85\u8FC7500MB"])])]), h("el-form-item", {
|
||||
"attrs": {
|
||||
"label": "App更新介绍"
|
||||
}
|
||||
}, [h("el-input", {
|
||||
"attrs": {
|
||||
"type": "textarea",
|
||||
"rows": 5,
|
||||
"placeholder": "请输入App更新介绍,多行请换行。例如:\n1:完善XXX功能\n2: 实现xxx功能"
|
||||
},
|
||||
"model": {
|
||||
value: _this2.service.addNewsuUpdate.update_content,
|
||||
callback: function callback($$v) {
|
||||
_this2.$set(_this2.service.addNewsuUpdate, "update_content", $$v);
|
||||
}
|
||||
}
|
||||
})]), h("el-form-item", {
|
||||
"attrs": {
|
||||
"label": "是否强制更新"
|
||||
}
|
||||
}, [h("el-switch", {
|
||||
"on": {
|
||||
"change": function change(e) {
|
||||
e ? _this2.service.addNewsuUpdate.update_force = 1 : _this2.service.addNewsuUpdate.update_force = 0;
|
||||
console.log(_this2.service.addNewsuUpdate.update_force);
|
||||
}
|
||||
},
|
||||
"model": {
|
||||
value: _this2.service.updateForce,
|
||||
callback: function callback($$v) {
|
||||
_this2.$set(_this2.service, "updateForce", $$v);
|
||||
}
|
||||
}
|
||||
})])]), h("span", {
|
||||
"slot": "footer",
|
||||
"class": "dialog-footer"
|
||||
}, [h("el-button", {
|
||||
"on": {
|
||||
"click": function click() {
|
||||
_this2.service.isShowAddNewUpdate = false;
|
||||
}
|
||||
}
|
||||
}, ["\u53D6 \u6D88"]), h("el-button", {
|
||||
"attrs": {
|
||||
"type": "primary"
|
||||
},
|
||||
"on": {
|
||||
"click": function click() {
|
||||
return _this2.service.SetaddNewsuUpdate();
|
||||
}
|
||||
}
|
||||
}, ["\u786E \u5B9A"])])]);
|
||||
}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
var _this3 = this;
|
||||
|
||||
var h = arguments[0];
|
||||
return h("div", {
|
||||
"class": "AppVsersion"
|
||||
}, [this.AddNewUpdate(), h(PageHeader["a" /* default */], {
|
||||
"attrs": {
|
||||
"title": "App版本管理",
|
||||
"subtitle": "发布,删除,查看App版本"
|
||||
}
|
||||
}), h("el-form", {
|
||||
"attrs": {
|
||||
"inline": true
|
||||
},
|
||||
"on": {
|
||||
"input": function input() {}
|
||||
},
|
||||
"class": "demo-form-inline"
|
||||
}, [h("el-form-item", {
|
||||
"attrs": {
|
||||
"label": "版本号"
|
||||
}
|
||||
}, [h("el-input", {
|
||||
"attrs": {
|
||||
"clearable": true,
|
||||
"placeholder": "请输入App版本号"
|
||||
},
|
||||
"model": {
|
||||
value: _this3.service.params.update_version,
|
||||
callback: function callback($$v) {
|
||||
_this3.$set(_this3.service.params, "update_version", $$v);
|
||||
}
|
||||
}
|
||||
})]), h("el-form-item", {
|
||||
"attrs": {
|
||||
"label": "是否强制更新"
|
||||
}
|
||||
}, [h("el-select", {
|
||||
"attrs": {
|
||||
"clearable": true,
|
||||
"placeholder": "请选择类型"
|
||||
},
|
||||
"on": {
|
||||
"change": function change() {
|
||||
return _this3.service.params.page = 1;
|
||||
}
|
||||
},
|
||||
"model": {
|
||||
value: _this3.service.params.update_force,
|
||||
callback: function callback($$v) {
|
||||
_this3.$set(_this3.service.params, "update_force", $$v);
|
||||
}
|
||||
}
|
||||
}, [h("el-option", {
|
||||
"attrs": {
|
||||
"label": "强制",
|
||||
"value": "1"
|
||||
}
|
||||
}), h("el-option", {
|
||||
"attrs": {
|
||||
"label": "不强制",
|
||||
"value": "0"
|
||||
}
|
||||
})])]), h("el-form-item", [h("el-button", {
|
||||
"attrs": {
|
||||
"type": "primary"
|
||||
},
|
||||
"on": {
|
||||
"click": /*#__PURE__*/Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
||||
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
_context2.next = 2;
|
||||
return _this3.service.GetUpdateList();
|
||||
|
||||
case 2:
|
||||
return _context2.abrupt("return", _context2.sent);
|
||||
|
||||
case 3:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}
|
||||
}, _callee2);
|
||||
}))
|
||||
}
|
||||
}, ["\u67E5\u8BE2"]), h("el-button", {
|
||||
"attrs": {
|
||||
"type": "success"
|
||||
},
|
||||
"on": {
|
||||
"click": function click() {
|
||||
_this3.service.isShowAddNewUpdate = true;
|
||||
}
|
||||
}
|
||||
}, ["\u53D1\u5E03\u65B0\u7248\u672C"])])]), h("el-table", {
|
||||
"attrs": {
|
||||
"data": this.service.updateList,
|
||||
"border": true,
|
||||
"stripe": true,
|
||||
"default-sort": {
|
||||
prop: 'opus_id',
|
||||
order: 'ascending'
|
||||
}
|
||||
},
|
||||
"style": "width: 100%"
|
||||
}, [h("el-table-column", {
|
||||
"attrs": {
|
||||
"prop": "update_id",
|
||||
"sortable": true,
|
||||
"label": "版本编号"
|
||||
}
|
||||
}), h("el-table-column", {
|
||||
"attrs": {
|
||||
"prop": "update_version",
|
||||
"sortable": true,
|
||||
"label": "版本号"
|
||||
}
|
||||
}), h("el-table-column", {
|
||||
"attrs": {
|
||||
"prop": "update_version_code",
|
||||
"sortable": true,
|
||||
"label": "版本号整型"
|
||||
}
|
||||
}), h("el-table-column", helper_default()([{
|
||||
"attrs": {
|
||||
"prop": "update_size"
|
||||
}
|
||||
}, {
|
||||
scopedSlots: {
|
||||
default: function _default(data) {
|
||||
return h("span", [data.row.update_size / 1000000, "MB"]);
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"attrs": {
|
||||
"sortable": true,
|
||||
"label": "App大小"
|
||||
}
|
||||
}])), h("el-table-column", helper_default()([{}, {
|
||||
scopedSlots: {
|
||||
default: function _default(data) {
|
||||
return h("el-link", {
|
||||
"attrs": {
|
||||
"type": "info",
|
||||
"icon": "el-icon-download",
|
||||
"href": data.row.update_down_url,
|
||||
"target": "_blank"
|
||||
}
|
||||
}, ["\u70B9\u51FB\u4E0B\u8F7D"]);
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"attrs": {
|
||||
"label": "App下载地址"
|
||||
}
|
||||
}])), h("el-table-column", {
|
||||
"attrs": {
|
||||
"prop": "update_content",
|
||||
"label": "更新的功能介绍"
|
||||
}
|
||||
}), h("el-table-column", helper_default()([{
|
||||
"attrs": {
|
||||
"prop": "update_force"
|
||||
}
|
||||
}, {
|
||||
scopedSlots: {
|
||||
default: function _default(data) {
|
||||
return data.row.update_force == 1 ? h("el-link", {
|
||||
"attrs": {
|
||||
"type": "danger",
|
||||
"underline": false
|
||||
}
|
||||
}, ["\u5F3A\u5236"]) : h("el-link", {
|
||||
"attrs": {
|
||||
"type": "warning",
|
||||
"underline": false
|
||||
}
|
||||
}, ["\u4E0D\u5F3A\u5236"]);
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"attrs": {
|
||||
"label": "是否强制更新"
|
||||
}
|
||||
}])), h("el-table-column", {
|
||||
"attrs": {
|
||||
"prop": "update_down_count",
|
||||
"sortable": true,
|
||||
"label": "下次次数"
|
||||
}
|
||||
}), h("el-table-column", {
|
||||
"attrs": {
|
||||
"prop": "update_time",
|
||||
"sortable": true,
|
||||
"label": "发布时间"
|
||||
}
|
||||
})])]);
|
||||
}
|
||||
}]);
|
||||
|
||||
return AppVsersion;
|
||||
}(base_layout["a" /* VueType */]);
|
||||
|
||||
AppVsersion_AppVsersion = Object(tslib_es6["a" /* __decorate */])([vue_property_decorator["a" /* Component */]], AppVsersion_AppVsersion);
|
||||
/* harmony default export */ var OtherManage_AppVsersion = __webpack_exports__["default"] = (AppVsersion_AppVsersion);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "ce7c":
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "e294":
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony import */ var _Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d4ec");
|
||||
/* harmony import */ var _Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("bee2");
|
||||
/* harmony import */ var _Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("262e");
|
||||
/* harmony import */ var _Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("2caf");
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("9ab4");
|
||||
/* harmony import */ var vue_property_decorator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("60a3");
|
||||
/* harmony import */ var _componentsLess_PageHeader_less__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("27b4");
|
||||
/* harmony import */ var _componentsLess_PageHeader_less__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_componentsLess_PageHeader_less__WEBPACK_IMPORTED_MODULE_6__);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Copyright (c) 2021. bmy
|
||||
* Email:2271608011@qq.com
|
||||
* Github:https://github.com/helpcode
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
var PageHeader = /*#__PURE__*/function (_Vue) {
|
||||
Object(_Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(PageHeader, _Vue);
|
||||
|
||||
var _super = Object(_Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_createSuper__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(PageHeader);
|
||||
|
||||
function PageHeader() {
|
||||
Object(_Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(this, PageHeader);
|
||||
|
||||
return _super.apply(this, arguments);
|
||||
}
|
||||
|
||||
Object(_Users_bmy_Desktop_TsxVueClassApi_node_modules_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(PageHeader, [{
|
||||
key: "mounted",
|
||||
value: function mounted() {}
|
||||
}, {
|
||||
key: "render",
|
||||
value: function render() {
|
||||
var h = arguments[0];
|
||||
return h("div", {
|
||||
"class": "page_header"
|
||||
}, [h("i", {
|
||||
"class": "el-icon-back"
|
||||
}), h("h1", [this.title]), h("span", [this.subtitle])]);
|
||||
}
|
||||
}]);
|
||||
|
||||
return PageHeader;
|
||||
}(vue_property_decorator__WEBPACK_IMPORTED_MODULE_5__[/* Vue */ "c"]);
|
||||
|
||||
Object(tslib__WEBPACK_IMPORTED_MODULE_4__[/* __decorate */ "a"])([Object(vue_property_decorator__WEBPACK_IMPORTED_MODULE_5__[/* Prop */ "b"])({
|
||||
default: ''
|
||||
}), Object(tslib__WEBPACK_IMPORTED_MODULE_4__[/* __metadata */ "b"])("design:type", String)], PageHeader.prototype, "title", void 0);
|
||||
|
||||
Object(tslib__WEBPACK_IMPORTED_MODULE_4__[/* __decorate */ "a"])([Object(vue_property_decorator__WEBPACK_IMPORTED_MODULE_5__[/* Prop */ "b"])({
|
||||
default: ''
|
||||
}), Object(tslib__WEBPACK_IMPORTED_MODULE_4__[/* __metadata */ "b"])("design:type", String)], PageHeader.prototype, "subtitle", void 0);
|
||||
|
||||
PageHeader = Object(tslib__WEBPACK_IMPORTED_MODULE_4__[/* __decorate */ "a"])([vue_property_decorator__WEBPACK_IMPORTED_MODULE_5__[/* Component */ "a"]], PageHeader);
|
||||
/* harmony default export */ __webpack_exports__["a"] = (PageHeader);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Reference in New Issue
Block a user