1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- var app = new Vue({
- el:'#outer',
- data:{
- domainParams : [
- {
- DomainName : '',
- RegistrantProfileId : '',
- }
- ],
- searchParam : {
- domain : '',
- status : '',
- },
- pagination:{
- page_total: 1,
- page_rows:20,
- p:1,
- nowPage:1,
- },
- tableData : [],//表格数据
- result : '',
- modelTitle : '',
- modelValue : '',
- appList : [],
- checkboxChecked : [],
- isBatch : true,//是否批量解析域名
- status : ['部分失败','全部失败','提交中','成功']//-2 部分失败, -1 全部失败, 0 提交中, 1 成功
- },
- created: function(){
- },
- components:{
- 'Selectd': componentSelect,
- 'Options': componentOption,
- 'Pagination': componentPage,
- },
- methods: {
- init: function(){
- showLoading();
- var _this = this;
- var data = {
- domain : this.searchParam.domain,
- status : this.searchParam.status,
- page : this.pagination.p,
- }
- getAjax(data, 'post', ' /api/taskList', function(result){
- _this.result = result;
- _this.tableData = result.data;
- _this.pagination.page_total = result.page.Count * 1
- hideLoading();
- });
- },
- // 分页
- nowPage:function(page, page_rows){
- this.pagination.p = page;
- this.pagination.page_rows = page_rows;
- this.init();
- },
- /**
- * 重启
- * @param {[json]} item [任务相关信息]
- * @return {[type]} [description]
- */
- restart(item){
- var _this = this;
- var task_no = item.RegisterTask.task_no
- getAjax({task_no:task_no}, 'post', '/api/registerDomain', function(result){
- weile.F.alert('重启成功');
- $('#_global_modal_alert').on('hide.bs.modal', function () {
- _this.init();
- })
- });
- },
- /**
- * 刷新
- * @param {[json]} item [任务相关信息]
- */
- refresh(item){
- var _this = this;
- var task_no = item.RegisterTask.task_no
- getAjax({taskno:task_no}, 'post', '/api/queryTaskDetailList', function(result){
- weile.F.alert('刷新成功');
- $('#_global_modal_alert').on('hide.bs.modal', function () {
- _this.init();
- })
-
- });
- },
- },
- mounted: function(){
- this.init();
- },
- })
|