Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing-opeartion
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gic-web
marketing-opeartion
Commits
eb762b53
Commit
eb762b53
authored
Nov 17, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 短信管理
parent
18ccf74c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
78 deletions
+22
-78
index.html
public/index.html
+0
-3
operation.js
src/api/operation.js
+11
-36
clipboard.js
src/utils/clipboard.js
+0
-36
index.vue
src/views/message/index.vue
+10
-2
vue.config.js
vue.config.js
+1
-1
No files found.
public/index.html
View file @
eb762b53
...
...
@@ -21,8 +21,5 @@
<script
src=
"//web-1251519181.file.myqcloud.com/components/steps.1.0.8.js"
></script>
<script
src=
"//web-1251519181.file.myqcloud.com/components/step.1.0.5.js"
></script>
<script
src=
"//web-1251519181.file.myqcloud.com/components/user-info.1.0.3.js"
></script>
<!-- <script src="//web-1251519181.file.myqcloud.com/components/layout.1.1.32.js"></script> -->
<!-- <script src="//web-1251519181.file.myqcloud.com/components/store-select.1.1.10.js"></script> -->
<!-- <script src="//web-1251519181.file.myqcloud.com/components/goods-rights-selector.1.0.6.js"></script> -->
</body>
</html>
src/api/operation.js
View file @
eb762b53
import
getFetch
from
'./getFetch.js'
;
let
api1
=
{
/** 登录信息 */
getUserInfo
:
'gic-authcenter/loginuser'
,
/** 列表 */
getList
:
{
url
:
'/goods-async-schedulers/config/list'
,
method
:
'get'
},
/** 下拉服务器ip列表 */
serverList
:
{
url
:
'/goods-async-schedulers/config/server-list'
,
/** 获取全部渠道 */
getAllChannel
:
{
url
:
'/sms/all-channel-list'
,
method
:
'get'
},
/** 开启同步 */
uploadSync
:
{
url
:
'/goods-async-schedulers/config/update-sync'
,
method
:
'post'
},
getDetail
:
{
url
:
'/goods-async-schedulers/config/detail'
,
method
:
'post'
},
update
:
{
url
:
'/goods-async-schedulers/config/update'
,
method
:
'post'
},
create
:
{
url
:
'/goods-async-schedulers/config/create'
,
method
:
'post'
},
importGoodsIndex
:
'/goods-async-schedulers/config/import-goods-index'
,
refreshGoodsIndex
:
'/goods-async-schedulers/config/refresh-goods-index'
,
refreshProductIndex
:
'/goods-async-schedulers/config/refresh-product-index'
,
// 索引重建并写入数据
productIndexMapping
:
'/goods-async-schedulers/config/product-index-mapping'
,
goodsIndexMapping
:
'/goods-async-schedulers/config/goods-index-mapping'
}
};
let
api2
=
{
/** 登录信息 */
getUserInfo
:
'gic-authcenter/loginuser'
};
// api = getFetch(api, '/gic-erp-manage
');
api
1
=
getFetch
(
api1
,
''
);
api1
=
getFetch
(
api1
,
'/gic-marketing-operation
'
);
api
2
=
getFetch
(
api2
,
''
);
export
default
{
...
api1
};
export
default
{
...
api1
,
...
api2
};
src/utils/clipboard.js
deleted
100644 → 0
View file @
18ccf74c
import
Vue
from
'vue'
;
import
Clipboard
from
'clipboard'
;
function
clipboardSuccess
()
{
Vue
.
prototype
.
$message
({
message
:
'Copy successfully'
,
type
:
'success'
,
duration
:
1500
});
}
function
clipboardError
()
{
Vue
.
prototype
.
$message
({
message
:
'Copy failed'
,
type
:
'error'
});
}
export
default
function
handleClipboard
(
text
,
event
)
{
const
clipboard
=
new
Clipboard
(
event
.
target
,
{
text
:
()
=>
text
});
clipboard
.
on
(
'success'
,
()
=>
{
clipboardSuccess
();
clipboard
.
off
(
'error'
);
clipboard
.
off
(
'success'
);
clipboard
.
destroy
();
});
clipboard
.
on
(
'error'
,
()
=>
{
clipboardError
();
clipboard
.
off
(
'error'
);
clipboard
.
off
(
'success'
);
clipboard
.
destroy
();
});
clipboard
.
onClick
(
event
);
}
src/views/message/index.vue
View file @
eb762b53
...
...
@@ -14,11 +14,11 @@
<span
v-else
>
{{
scope
.
row
[
v
.
prop
]
||
'--'
}}
</span>
</
template
>
</el-table-column>
<
!-- <
el-table-column label="操作">
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"{ row }"
>
<el-button
type=
"text"
@
click=
"toDetail(row)"
>
详情
</el-button>
</
template
>
</el-table-column>
-->
</el-table-column>
</el-table>
<dm-pagination
background
class=
"dm-pagination"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"tableData.currentPage"
:page-sizes=
"tableData.pageSizeList"
:page-size=
"tableData.pageSize"
layout=
"total, sizes, prev, pager, next"
:total=
"tableData.total"
hide-on-single-page
/>
</div>
...
...
@@ -26,6 +26,8 @@
</template>
<
script
>
import
requestApi
from
'@/api/operation'
;
const
{
getAllChannel
}
=
requestApi
;
export
default
{
data
()
{
return
{
...
...
@@ -59,6 +61,7 @@ export default {
},
created
()
{
this
.
getTableHeader
();
this
.
getChannelList
();
},
methods
:
{
// table methods
...
...
@@ -94,6 +97,11 @@ export default {
},
toDetail
(
row
)
{
console
.
log
(
row
);
},
// others
async
getChannelList
()
{
const
res
=
await
getAllChannel
();
console
.
log
(
res
);
}
}
};
...
...
vue.config.js
View file @
eb762b53
...
...
@@ -2,7 +2,7 @@ const path = require("path");
module
.
exports
=
{
productionSourceMap
:
process
.
env
.
NODE_ENV
!==
'production'
,
publicPath
:
process
.
env
.
NODE_ENV
===
'production'
?
'/g
oods
-operation'
:
'/'
,
publicPath
:
process
.
env
.
NODE_ENV
===
'production'
?
'/g
ic-marketing
-operation'
:
'/'
,
devServer
:
{
overlay
:
{
warnings
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment