添加自定义模型

master
sgjj 6 years ago
parent ad7d54027e
commit f1a1ee7e87
  1. 590
      src/main/webapp/WEB-INF/manager/cms/content/form.ftl
  2. 1
      src/main/webapp/WEB-INF/manager/cms/content/main.ftl
  3. 4
      src/main/webapp/static/plugins/tree-select/tree.js

@ -1,242 +1,272 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>文章</title> <title>文章</title>
<#include "../../include/head-file.ftl"> <#include "../../include/head-file.ftl">
</head> </head>
<body> <body>
<div id="form" v-cloak> <div id="form" v-cloak>
<el-header class="ms-header ms-tr" height="50px"> <el-header class="ms-header ms-tr" height="50px">
<el-button type="primary" icon="iconfont icon-baocun" size="mini" @click="save()" :loading="saveDisabled">保存</el-button> <el-button type="primary" icon="iconfont icon-baocun" size="mini" @click="save()" :loading="saveDisabled">保存
<el-button size="mini" icon="iconfont icon-fanhui" plain onclick="javascript:history.go(-1)" v-if="returnIsShow">返回</el-button> </el-button>
</el-header> <el-button size="mini" icon="iconfont icon-fanhui" plain onclick="javascript:history.go(-1)"
<el-main class="ms-container"> v-if="returnIsShow">返回
<el-scrollbar class="ms-scrollbar" style="height: 100%;"> </el-button>
<el-form ref="form" :model="form" :rules="rules" label-width="120px" size="mini"> </el-header>
<el-row <el-main class="ms-container">
gutter="0" <el-tabs v-model="activeName" style="height: calc(100% - 10px);">
justify="start" align="top"> <el-tab-pane v-for="(item, index) in editableTabs"
<el-col span="12"> :key="index"
<el-form-item label="文章标题" prop="contentTitle"> :label="item.title"
<el-input v-model="form.contentTitle" :name="item.name">
:disabled="false" <el-scrollbar class="ms-scrollbar" style="height: 100%;">
:style="{width: '100%'}" <el-form ref="form" :model="form" :rules="rules" label-width="120px" size="mini">
:clearable="true" <el-row
placeholder="请输入文章标题"> gutter="0"
</el-input> justify="start" align="top">
</el-form-item> <el-col span="12">
</el-col> <el-form-item label="文章标题" prop="contentTitle">
<el-col span="12"> <el-input v-model="form.contentTitle"
<el-form-item label="所属栏目" prop="contentCategoryId"> :disabled="false"
<tree-select :props="{value: 'id',label: 'categoryTitle',children: 'children'}" :style="{width: '100%'}"
:options="contentCategoryIdOptions" :style="{width:'100%'}" :clearable="true"
v-model="form.contentCategoryId"></tree-select> placeholder="请输入文章标题">
</el-form-item> </el-input>
</el-col> </el-form-item>
</el-row> </el-col>
<el-row <el-col span="12">
gutter="0" <el-form-item label="所属栏目" prop="contentCategoryId">
justify="start" align="top"> <tree-select :props="{value: 'id',label: 'categoryTitle',children: 'children'}"
<el-col span="12"> :options="contentCategoryIdOptions" :style="{width:'100%'}"
<el-form-item label="文章类型" prop="contentType"> @change="categoryChange"
<el-select v-model="form.contentType" v-model="form.contentCategoryId"></tree-select>
:style="{width: '100%'}" </el-form-item>
:filterable="false" </el-col>
:disabled="false" </el-row>
:multiple="true" :clearable="true" <el-row
placeholder="请选择文章类型"> gutter="0"
<el-option v-for='item in contentTypeOptions' :key="item.dictValue" :value="item.dictValue" justify="start" align="top">
:label="item.dictLabel"></el-option> <el-col span="12">
</el-select> <el-form-item label="文章类型" prop="contentType">
</el-form-item> <el-select v-model="form.contentType"
</el-col> :style="{width: '100%'}"
<el-col span="12"> :filterable="false"
<el-form-item label="发布时间" prop="contentDatetime"> :disabled="false"
<el-date-picker :multiple="true" :clearable="true"
v-model="form.contentDatetime" placeholder="请选择文章类型">
placeholder="请选择发布时间" <el-option v-for='item in contentTypeOptions' :key="item.dictValue"
start-placeholder="" :value="item.dictValue"
end-placeholder="" :label="item.dictLabel"></el-option>
:readonly="false" </el-select>
:disabled="false" </el-form-item>
:editable="true" </el-col>
:clearable="true" <el-col span="12">
format="yyyy-MM-dd HH:mm:ss" <el-form-item label="发布时间" prop="contentDatetime">
value-format="yyyy-MM-dd HH:mm:ss" <el-date-picker
:style="{width:'100%'}" v-model="form.contentDatetime"
type="datetime"> placeholder="请选择发布时间"
</el-date-picker> start-placeholder=""
</el-form-item> end-placeholder=""
</el-col> :readonly="false"
</el-row> :disabled="false"
<el-row :editable="true"
gutter="0" :clearable="true"
justify="start" align="top"> format="yyyy-MM-dd HH:mm:ss"
<el-col span="12"> value-format="yyyy-MM-dd HH:mm:ss"
<el-form-item label="文章作者" prop="contentAuthor"> :style="{width:'100%'}"
<el-input v-model="form.contentAuthor" type="datetime">
:disabled="false" </el-date-picker>
:style="{width: '100%'}" </el-form-item>
:clearable="true" </el-col>
placeholder="请输入文章作者"> </el-row>
</el-input> <el-row
</el-form-item> gutter="0"
</el-col> justify="start" align="top">
<el-col span="12"> <el-col span="12">
<el-form-item label="文章来源" prop="contentSource"> <el-form-item label="文章作者" prop="contentAuthor">
<el-input v-model="form.contentSource" <el-input v-model="form.contentAuthor"
:disabled="false" :disabled="false"
:style="{width: '100%'}" :style="{width: '100%'}"
:clearable="true" :clearable="true"
placeholder="请输入文章来源"> placeholder="请输入文章作者">
</el-input> </el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> <el-col span="12">
<el-row <el-form-item label="文章来源" prop="contentSource">
gutter="0" <el-input v-model="form.contentSource"
justify="start" align="top"> :disabled="false"
<el-col span="12"> :style="{width: '100%'}"
<el-form-item label="" prop="contentDisplay"> :clearable="true"
<template slot='label'>是否显示 placeholder="请输入文章来源">
<el-popover slot="label" placement="top-start" title="提示" width="200" trigger="hover" content="选择否后前端将不显示,需要重新生成才有效果"> </el-input>
<i class="el-icon-question" slot="reference"></i> </el-form-item>
</el-popover> </el-col>
</template> </el-row>
<el-radio-group v-model="form.contentDisplay" <el-row
:style="{width: ''}" gutter="0"
:disabled="false"> justify="start" align="top">
<el-radio :style="{display: true ? 'inline-block' : 'block'}" :label="item.value" <el-col span="12">
v-for='(item, index) in contentDisplayOptions' :key="item.value + index"> <el-form-item label="" prop="contentDisplay">
{{true? item.label : item.value}} <template slot='label'>是否显示
</el-radio> <el-popover slot="label" placement="top-start" title="提示" width="200" trigger="hover"
</el-radio-group> content="选择否后前端将不显示,需要重新生成才有效果">
</el-form-item> <i class="el-icon-question" slot="reference"></i>
</el-col> </el-popover>
<el-col span="12"> </template>
<el-form-item label="自定义顺序" prop="contentSort"> <el-radio-group v-model="form.contentDisplay"
<el-input-number :style="{width: ''}"
v-model="form.contentSort" :disabled="false">
:disabled="false" <el-radio :style="{display: true ? 'inline-block' : 'block'}" :label="item.value"
controls-position=""> v-for='(item, index) in contentDisplayOptions' :key="item.value + index">
</el-input-number> {{true? item.label : item.value}}
</el-form-item> </el-radio>
</el-col> </el-radio-group>
</el-row> </el-form-item>
<el-form-item label="" prop="contentImg"> </el-col>
<template slot='label'>文章缩略图 <el-col span="12">
<el-popover slot="label" placement="top-start" title="提示" width="200" trigger="hover" content="文章缩略图,支持jpg格式"> <el-form-item label="自定义顺序" prop="contentSort">
<i class="el-icon-question" slot="reference"></i> <el-input-number
</el-popover> v-model="form.contentSort"
</template> :disabled="false"
<el-upload controls-position="">
:file-list="form.contentImg" </el-input-number>
:action="ms.base+'/file/upload.do'" </el-form-item>
:on-remove="contentImghandleRemove" </el-col>
:style="{width:''}" </el-row>
:limit="1" <el-form-item label="" prop="contentImg">
:on-exceed="contentImghandleExceed" <template slot='label'>文章缩略图
:disabled="false" <el-popover slot="label" placement="top-start" title="提示" width="200" trigger="hover"
:data="{uploadPath:'/cms/content','isRename':true}" content="文章缩略图,支持jpg格式">
:on-success="contentImgSuccess" <i class="el-icon-question" slot="reference"></i>
accept="image/*" </el-popover>
list-type="picture-card"> </template>
<i class="el-icon-plus"></i> <el-upload
<div slot="tip" class="el-upload__tip">最多上传1张图片</div> :file-list="form.contentImg"
</el-upload> :action="ms.base+'/file/upload.do'"
</el-form-item> :on-remove="contentImghandleRemove"
<el-form-item label="描述" prop="contentDescription"> :style="{width:''}"
<el-input :limit="1"
type="textarea" :rows="5" :on-exceed="contentImghandleExceed"
:disabled="false" :disabled="false"
:data="{uploadPath:'/cms/content','isRename':true}"
:on-success="contentImgSuccess"
accept="image/*"
list-type="picture-card">
<i class="el-icon-plus"></i>
<div slot="tip" class="el-upload__tip">最多上传1张图片</div>
</el-upload>
</el-form-item>
<el-form-item label="描述" prop="contentDescription">
<el-input
type="textarea" :rows="5"
:disabled="false"
v-model="form.contentDescription" v-model="form.contentDescription"
:style="{width: '100%'}" :style="{width: '100%'}"
placeholder="请输入对该文章的简短描述,以便用户查看文章简略"> placeholder="请输入对该文章的简短描述,以便用户查看文章简略">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="关键字" prop="contentKeyword"> <el-form-item label="关键字" prop="contentKeyword">
<el-input <el-input
type="textarea" :rows="5" type="textarea" :rows="5"
:disabled="false" :disabled="false"
v-model="form.contentKeyword" v-model="form.contentKeyword"
:style="{width: '100%'}" :style="{width: '100%'}"
placeholder="请输入文章关键字"> placeholder="请输入文章关键字">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="文章内容" prop="contentDetails"> <el-form-item label="文章内容" prop="contentDetails">
<vue-ueditor-wrap style="line-height: 0px" v-model="form.contentDetails" :config="editorConfig"></vue-ueditor-wrap> <vue-ueditor-wrap style="line-height: 0px" v-model="form.contentDetails"
</el-form-item> :config="editorConfig"></vue-ueditor-wrap>
</el-form-item>
</el-form> </el-form>
</el-scrollbar> <div :id="'model'+index" v-else></div>
</el-main> </el-scrollbar>
</div> </el-tab-pane>
</body> </el-tabs>
</html> </el-main>
</div>
</body>
</html>
<script> <script>
var form = new Vue({ var form = new Vue({
el: '#form', el: '#form',
data() { data() {
return { return {
date1574910623000_52656:null,
saveDisabled: false, saveDisabled: false,
editorConfig:{ activeName: 'form',
imageScaleEnabled :true, model:undefined,//自定义模型实例
editableTabs:[{title:'文章编辑',name:'form'}],
editorConfig: {
imageScaleEnabled: true,
autoHeightEnabled: true, autoHeightEnabled: true,
autoFloatEnabled: false, autoFloatEnabled: false,
scaleEnabled: true, scaleEnabled: true,
compressSide:0, compressSide: 0,
maxImageSideLength:1000, maxImageSideLength: 1000,
maximumWords: 2000, maximumWords: 2000,
initialFrameWidth: '100%', initialFrameWidth: '100%',
initialFrameHeight: 400, initialFrameHeight: 400,
serverUrl: ms.base+"/static/plugins/ueditor/1.4.3.1/jsp/editor.do?jsonConfig=%7BvideoUrlPrefix:\'"+ms.base+"\',fileUrlPrefix:\'"+ms.base+"\',imageUrlPrefix:\'"+ms.base+"\',imagePathFormat:\'/upload/cms/content/editor/%7Btime%7D\',filePathFormat:\'/upload/cms/content/editor/%7Btime%7D\',videoPathFormat:\'/upload/cms/content/editor/%7Btime%7D\'%7D", serverUrl: ms.base + "/static/plugins/ueditor/1.4.3.1/jsp/editor.do?jsonConfig=%7BvideoUrlPrefix:\'" + ms.base + "\',fileUrlPrefix:\'" + ms.base + "\',imageUrlPrefix:\'" + ms.base + "\',imagePathFormat:\'/upload/cms/content/editor/%7Btime%7D\',filePathFormat:\'/upload/cms/content/editor/%7Btime%7D\',videoPathFormat:\'/upload/cms/content/editor/%7Btime%7D\'%7D",
UEDITOR_HOME_URL: ms.base+'/static/plugins/ueditor/1.4.3.1/' UEDITOR_HOME_URL: ms.base + '/static/plugins/ueditor/1.4.3.1/'
}, },
contentCategoryIdOptions:[], contentCategoryIdOptions: [],
returnIsShow:true, returnIsShow: true,
//表单数据 //表单数据
form: { form: {
// 文章标题 // 文章标题
contentTitle:'', contentTitle: '',
// 所属栏目 // 所属栏目
contentCategoryId: '', contentCategoryId: '',
// 文章类型 // 文章类型
contentType: [], contentType: [],
// 是否显示 // 是否显示
contentDisplay:'0', contentDisplay: '0',
// 文章作者 // 文章作者
contentAuthor:'', contentAuthor: '',
// 文章来源 // 文章来源
contentSource:'', contentSource: '',
// 自定义顺序 // 自定义顺序
contentSort:0, contentSort: 0,
// 文章缩略图 // 文章缩略图
contentImg: [], contentImg: [],
// 描述 // 描述
contentDescription:'', contentDescription: '',
// 关键字 // 关键字
contentKeyword:'', contentKeyword: '',
// 文章内容 // 文章内容
contentDetails:'', contentDetails: '',
}, },
contentTypeOptions:[], contentTypeOptions: [],
contentDisplayOptions:[{"value":"0","label":"是"},{"value":"1","label":"否"}], contentDisplayOptions: [{"value": "0", "label": "是"}, {"value": "1", "label": "否"}],
rules:{ rules: {
// 文章标题 // 文章标题
contentTitle: [{"required":true,"message":"请选择文章标题"}], contentTitle: [{"required": true, "message": "请选择文章标题"}],
// 发布时间 // 发布时间
contentDatetime: [{"required":true,"message":"发布时间不能为空"}], contentDatetime: [{"required": true, "message": "发布时间不能为空"}],
}, },
} }
}, },
watch:{ watch: {},
computed:{
currCategory(){
var that = this;
return this.contentCategoryIdOptions.find(function(value){
return value.id===that.form.contentCategoryId
})
},
}, },
methods: { methods: {
save() { save() {
var that = this; var that = this;
//自定义模型需要验证
if(this.model&&!this.model.validate()){
this.activeName = 'custom-name';
return;
}
var url = ms.manager + "/cms/content/save.do" var url = ms.manager + "/cms/content/save.do"
if (that.form.id > 0) { if (that.form.id > 0) {
url = ms.manager + "/cms/content/update.do"; url = ms.manager + "/cms/content/update.do";
@ -249,6 +279,11 @@
data.contentImg = JSON.stringify(data.contentImg); data.contentImg = JSON.stringify(data.contentImg);
ms.http.post(url, data).then(function (data) { ms.http.post(url, data).then(function (data) {
if (data.result) { if (data.result) {
//保存时需要赋值关联ID
if(that.model){
that.model.form.linkId = data.id;
that.model.save()
}
that.$notify({ that.$notify({
title: '成功', title: '成功',
message: '保存成功', message: '保存成功',
@ -265,29 +300,92 @@
that.saveDisabled = false; that.saveDisabled = false;
}); });
} else { } else {
this.activeName = 'form';
return false; return false;
} }
}) })
}, },
getValue(data){ removeModel(){
var that =this;
var model= document.getElementById('model1')
var custom= document.getElementById('c_model')
if(custom){
model.removeChild(custom)
}
that.model = undefined;
},
categoryChange(){
this.changeModel();
},
changeModel(){
var that = this;
that.editableTabs = [that.editableTabs[0]];
this.removeModel();
if(this.currCategory){
if(this.currCategory.categoryCmId){
ms.http.get(ms.manager + "/mdiy/model/get.do",{
id:this.currCategory.categoryCmId
}).then(function (data) {
if(data.id){
that.rederModel(data,JSON.parse(data.modelJson))
}
})
}
}
},
rederModel(modelEntity,data){
var that =this;
that.editableTabs.push({
title: modelEntity.modelName,
name: 'custom-name',
});
this.removeModel();
that.$nextTick(function () {
var div=document.createElement('div')
div.id='c_model'
var model= document.getElementById('model1')
model.appendChild(div)
var s=document.createElement('script')
s.innerHTML=data.script
var con=document.createElement('div')
con.id='custom-model';
con.innerHTML=data.html;
div.appendChild(s);
div.appendChild(con);
//初始化自定义模型并传入关联参数
that.model = new custom_model(
{
data:{
title:modelEntity.modelName,
modelId:modelEntity.id,
form:{
linkId:that.id
},
}
})
})
},
getValue(data) {
this.form.contentCategoryId = data.id; this.form.contentCategoryId = data.id;
}, },
//获取当前文章 //获取当前文章
get(id) { get(id) {
var that = this; var that = this;
ms.http.get(ms.manager + "/cms/content/get.do", {"id":id}).then(function (res) { ms.http.get(ms.manager + "/cms/content/get.do", {"id": id}).then(function (res) {
if(res.result&&res.data){ if (res.result && res.data) {
if(res.data.contentType){ if (res.data.contentType) {
res.data.contentType = res.data.contentType.split(','); res.data.contentType = res.data.contentType.split(',');
} }
if(res.data.contentImg){ if (res.data.contentImg) {
res.data.contentImg = JSON.parse(res.data.contentImg); res.data.contentImg = JSON.parse(res.data.contentImg);
res.data.contentImg.forEach(function(value){ res.data.contentImg.forEach(function (value) {
value.url= ms.base + value.path value.url = ms.base + value.path
}) })
}else{ } else {
res.data.contentImg=[] res.data.contentImg = []
} }
that.changeModel();
that.form = res.data; that.form = res.data;
} }
}).catch(function (err) { }).catch(function (err) {
@ -297,28 +395,28 @@
//获取contentCategoryId数据源 //获取contentCategoryId数据源
contentCategoryIdOptionsGet() { contentCategoryIdOptionsGet() {
var that = this; var that = this;
ms.http.get(ms.manager+"/cms/category/list.do",{pageSize:9999}).then(function(res){ ms.http.get(ms.manager + "/cms/category/list.do", {pageSize: 9999}).then(function (res) {
if(res.result){ if (res.result) {
that.contentCategoryIdOptions = ms.util.treeData(res.data.rows,'id','categoryId','children'); that.contentCategoryIdOptions = ms.util.treeData(res.data.rows, 'id', 'categoryId', 'children');
} }
}).catch(function(err){ }).catch(function (err) {
console.log(err); console.log(err);
}); });
}, },
//获取contentType数据源 //获取contentType数据源
contentTypeOptionsGet() { contentTypeOptionsGet() {
var that = this; var that = this;
ms.http.get(ms.base+'/mdiy/dict/list.do', {dictType:'文章属性',pageSize:99999}).then(function (data) { ms.http.get(ms.base + '/mdiy/dict/list.do', {dictType: '文章属性', pageSize: 99999}).then(function (data) {
that.contentTypeOptions = data.rows; that.contentTypeOptions = data.rows;
}).catch(function (err) { }).catch(function (err) {
console.log(err); console.log(err);
}); });
}, },
//contentImg文件上传完成回调 //contentImg文件上传完成回调
contentImgSuccess:function(response, file, fileList) { contentImgSuccess: function (response, file, fileList) {
this.form.contentImg.push({url:file.url,name:file.name,path:response,uid:file.uid}); this.form.contentImg.push({url: file.url, name: file.name, path: response, uid: file.uid});
}, },
contentImghandleRemove:function(file, files) { contentImghandleRemove: function (file, files) {
var index = -1; var index = -1;
index = this.form.contentImg.findIndex(text => text == file); index = this.form.contentImg.findIndex(text => text == file);
if (index != -1) { if (index != -1) {
@ -326,14 +424,14 @@
} }
}, },
//contentImg文件上传完成回调 //contentImg文件上传完成回调
contentImgSuccess:function(response, file, fileList) { contentImgSuccess: function (response, file, fileList) {
this.form.contentImg.push({url:file.url,name:file.name,path:response,uid:file.uid}); this.form.contentImg.push({url: file.url, name: file.name, path: response, uid: file.uid});
}, },
//上传超过限制 //上传超过限制
contentImghandleExceed:function(files, fileList) { contentImghandleExceed: function (files, fileList) {
this.$notify({ title: '当前最多上传1个文件', type: 'warning' }); this.$notify({title: '当前最多上传1个文件', type: 'warning'});
}, },
contentImghandleRemove:function(file, files) { contentImghandleRemove: function (file, files) {
var index = -1; var index = -1;
index = this.form.contentImg.findIndex(text => text == file); index = this.form.contentImg.findIndex(text => text == file);
if (index != -1) { if (index != -1) {
@ -341,53 +439,55 @@
} }
}, },
//查询列表 //查询列表
list: function(contentCategoryId) { list: function (contentCategoryId) {
var that = this; var that = this;
ms.http.post(ms.manager+"/cms/content/list.do",{ ms.http.post(ms.manager + "/cms/content/list.do", {
contentCategoryId:contentCategoryId, contentCategoryId: contentCategoryId,
}).then(function(res) { }).then(function (res) {
if(res.result&&res.data.total>0){ if (res.result && res.data.total > 0) {
if(res.data.rows[0].contentType){ if (res.data.rows[0].contentType) {
res.data.rows[0].contentType = res.data.rows[0].contentType.split(','); res.data.rows[0].contentType = res.data.rows[0].contentType.split(',');
} }
if(res.data.rows[0].contentImg){ if (res.data.rows[0].contentImg) {
res.data.rows[0].contentImg = JSON.parse(res.data.rows[0].contentImg); res.data.rows[0].contentImg = JSON.parse(res.data.rows[0].contentImg);
res.data.rows[0].contentImg.forEach(function(value){ res.data.rows[0].contentImg.forEach(function (value) {
value.url= ms.base + value.path value.url = ms.base + value.path
}) })
}else{ } else {
res.data.rows[0].contentImg=[] res.data.rows[0].contentImg = []
} }
that.form = res.data.rows[0]; that.form = res.data.rows[0];
} }
}).catch(function(err) { }).catch(function (err) {
console.log(err); console.log(err);
}); });
}, },
}, },
created() { created() {
this.contentCategoryIdOptionsGet(); this.contentCategoryIdOptionsGet();
this.contentTypeOptionsGet(); this.contentTypeOptionsGet();
this.form.id = ms.util.getParameter("id"); this.form.id = ms.util.getParameter("id");
this.form.contentCategoryId = ms.util.getParameter("categoryId"); this.form.contentCategoryId = ms.util.getParameter("categoryId");
if (this.form.id) { if (this.form.id) {
this.get(this.form.id); this.get(this.form.id);
} }
if(this.form.contentCategoryId){ if (this.form.contentCategoryId) {
this.list(this.form.contentCategoryId); this.list(this.form.contentCategoryId);
this.returnIsShow = false; this.returnIsShow = false;
} }
} }
}); });
</script> </script>
<style> <style>
.el-select{ .el-select {
width: 100%; width: 100%;
} }
body{
body {
overflow: hidden; overflow: hidden;
} }
#form{
#form {
overflow: hidden; overflow: hidden;
} }
</style> </style>

@ -180,6 +180,7 @@
if (!res.result||res.data.total <= 0) { if (!res.result||res.data.total <= 0) {
that.emptyText = '暂无数据' that.emptyText = '暂无数据'
that.dataList = []; that.dataList = [];
that.total = 0;
} else { } else {
that.emptyText = ''; that.emptyText = '';
that.total = res.data.total; that.total = res.data.total;

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save