优化邮箱详情表格
This commit is contained in:
+7
-6
@@ -28,8 +28,9 @@ export default {
|
||||
* 自定义列保存处理
|
||||
* @tableName scTable组件的props->tableName
|
||||
* @column 用户配置好的列
|
||||
* otherParams 冗余的参数
|
||||
*/
|
||||
columnSettingSave: function (tableName, column ,params) {
|
||||
columnSettingSave: function (tableName, column ,params, otherParams) {
|
||||
column.forEach((item,index)=>{
|
||||
item.sort = index+1;
|
||||
})
|
||||
@@ -38,12 +39,12 @@ export default {
|
||||
resolve(false)
|
||||
return
|
||||
}
|
||||
let data = {
|
||||
let data = Object.assign({},{
|
||||
column_config:column,
|
||||
save_column:true,
|
||||
page:1,
|
||||
pageSize:this.pageSize
|
||||
}
|
||||
},otherParams);
|
||||
http.post(params.url, data).then(res=>{
|
||||
if(res.code == 200 && res.data.column){
|
||||
resolve(true)
|
||||
@@ -58,17 +59,17 @@ export default {
|
||||
* @tableName scTable组件的props->tableName
|
||||
* @column 组件接受到的props->column
|
||||
*/
|
||||
columnSettingConfigSave: function (tableName, config, params) {
|
||||
columnSettingConfigSave: function (tableName, config, params, otherParams) {
|
||||
return new Promise((resolve) => {
|
||||
if(!params.url || params.url==''){
|
||||
resolve(false)
|
||||
return
|
||||
}
|
||||
let data = {
|
||||
let data = Object.assign({},{
|
||||
table_config:config,
|
||||
page:1,
|
||||
pageSize:this.pageSize
|
||||
}
|
||||
},otherParams);
|
||||
http.post(params.url, data).then(res=>{
|
||||
if(res.code == 200 && res.data.column){
|
||||
resolve(true)
|
||||
|
||||
Reference in New Issue
Block a user