Commit 5a9afdaa by 前端

分享上传

1 parent 18eef479
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
"node-sass": "4.14.1", "node-sass": "4.14.1",
"sass-loader": "7.3.1", "sass-loader": "7.3.1",
"sha1": "^1.1.1", "sha1": "^1.1.1",
"md5": "^2.3.0",
"vue": "^2.6.11" "vue": "^2.6.11"
}, },
"devDependencies": { "devDependencies": {
......
import request from './request' import request from './request'
import Vue from 'vue' import Vue from 'vue'
const commonApi = { const commonApi = {
uploadImgApi(data = {}) { uploadImgApi(data) {
data.method = 'glsx.accounts.biz.common.pictureUpload' data.method = 'glsx.accounts.biz.common.pictureUpload'
return request( return request(
data, data,
'glsx.accounts.biz.common.pictureUpload', 'glsx.accounts.biz.common.pictureUpload',
[], ['file'],
Vue.prototype.fileUploadURL Vue.prototype.fileUploadURL,
true
) )
}, },
} }
......
...@@ -3,22 +3,35 @@ import axios from 'axios' ...@@ -3,22 +3,35 @@ import axios from 'axios'
import qs from 'qs' import qs from 'qs'
// import GlsxVueCommon from 'glsx-vue-common' // import GlsxVueCommon from 'glsx-vue-common'
import sign from './sign' import sign from './sign'
import { import { GlAxios } from 'glsx-vue-common'
GlAxios const request = (
} from 'glsx-vue-common' params = {},
const request = (params = {}, method = RequestMethods.GET, noSignAttr = [], url = '') => { method = RequestMethods.GET,
noSignAttr = [],
url = '',
isMd5 = false
) => {
params.source = 'glsx-oss-withdrawal-data' params.source = 'glsx-oss-withdrawal-data'
params.appKey = '48e5e13229b82c1b4e6e8c96151f0637' params.appKey = '48e5e13229b82c1b4e6e8c96151f0637'
params.timestamp = new Date().getTime() params.timestamp = new Date().getTime()
params.v = '1.0.0' params.v = '1.0.0'
params.format = 'json' params.format = 'json'
// params.createBy = this.$get_session_config().user.id // params.createBy = this.$get_session_config().user.id
var data = sign(params, noSignAttr) if (isMd5) {
params.app_key = params.appKey
delete params.appKey
// return axios.post(`${url}/router?method=${method}`, qs.stringify(data))
}
var data = isMd5 ? sign(params, noSignAttr, true) : sign(params, noSignAttr)
if (url) { if (url) {
console.log(232323)
console.log(data, 'params')
return axios.post(`${url}/router?method=${method}`, qs.stringify(data)) return axios.post(`${url}/router?method=${method}`, qs.stringify(data))
} }
return method === RequestMethods.GET ? GlAxios.get('router', { return method === RequestMethods.GET
params: sign(params, noSignAttr) ? GlAxios.get('router', {
}) : GlAxios.post('router', data) params: sign(params, noSignAttr),
})
: GlAxios.post('router', data)
} }
export default request export default request
import sha1 from 'sha1' import sha1 from 'sha1'
import md5 from 'md5'
import qs from 'qs' import qs from 'qs'
import _ from 'lodash' import _ from 'lodash'
const secret = window.location.href.includes('dj.glsx.com.cn') ? '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353' : 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b' const secret = window.location.href.includes('dj.glsx.com.cn')
const sign = (params, noSignAttr = []) => { ? '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
const sign = (params, noSignAttr = [], isMd5) => {
console.log(isMd5, 'isMd5')
delete params.sign delete params.sign
var objStr = qs.stringify(_.cloneDeep(params), { var objStr = qs.stringify(_.cloneDeep(params), {
arrayFormat: 'indices', arrayFormat: 'indices',
allowDots: true, allowDots: true,
encodeValuesOnly: true encodeValuesOnly: true,
}) })
var objVal = objStr.split('&') var objVal = objStr.split('&')
var realObj = {} var realObj = {}
objVal.forEach(item => { objVal.forEach((item) => {
const idx = item.indexOf('=') const idx = item.indexOf('=')
realObj[item.split('=')[0]] = decodeURIComponent(item.slice(idx + 1)) realObj[item.split('=')[0]] = decodeURIComponent(item.slice(idx + 1))
}) })
...@@ -27,10 +31,14 @@ const sign = (params, noSignAttr = []) => { ...@@ -27,10 +31,14 @@ const sign = (params, noSignAttr = []) => {
} }
realObj[key] = obj realObj[key] = obj
} }
keys.forEach(e => { keys.forEach((e) => {
!noSignAttr.includes(e) && str.push(e + realObj[e]) !noSignAttr.includes(e) && str.push(e + realObj[e])
}) })
realObj.sign = sha1(secret + str.join('') + secret).toUpperCase() console.log(str)
realObj.sign = isMd5
? md5(secret + str.join('') + secret).toUpperCase()
: sha1(secret + str.join('') + secret).toUpperCase()
console.log(realObj)
return realObj return realObj
} }
export default sign export default sign
...@@ -2,15 +2,51 @@ import request from './request' ...@@ -2,15 +2,51 @@ import request from './request'
import Vue from 'vue' import Vue from 'vue'
// const path = 'scrm.api.renewal.insurance.customer.name.list.' // const path = 'scrm.api.renewal.insurance.customer.name.list.'
// const defaultPath = 'scrm.api.renewal.order.' // const defaultPath = 'scrm.api.renewal.order.'
// 获取任务列表详情
const taskApi = { const taskApi = {
getMerchantsList(data = {}) { // 获取活动列表
data.method = 'merchants.api.open.findMerchantList' findMissionList(data) {
data.method = 'merchants.api.mission.findMissionList'
return request(data)
},
// 任务状态更新
updateStatusMission(data) {
data.method = 'merchants.api.mission.updateStatusMission'
return request(data)
},
// 通过业务场景获取商户
findMerchantByScene(data) {
data.method = 'scrm.api.busassistant.merchant.byscene'
return request(
data,
'scrm.api.busassistant.merchant.byscene',
[],
Vue.prototype.businessURL
)
},
// 获取所有未结束活动
getActivityBypage(data) {
data.method = 'scrm.api.shopmall.crowd.activity.page'
return request( return request(
data, data,
'merchants.api.open.findMerchantList', 'scrm.api.shopmall.crowd.activity.page',
[], [],
Vue.prototype.otherUrl Vue.prototype.otherUrl
) )
}, },
// 新建任务
creatMission(data) {
data.method = 'merchants.api.mission.createMission'
return request(data, 'post')
},
// getMerchantsList(data = {}) {
// data.method = 'merchants.api.open.findMerchantList'
// return request(
// data,
// 'merchants.api.open.findMerchantList',
// [],
// Vue.prototype.otherUrl
// )
// },
} }
export { taskApi } export { taskApi }
...@@ -2,12 +2,13 @@ ...@@ -2,12 +2,13 @@
<div class="ly-emotion"> <div class="ly-emotion">
<slot></slot> <slot></slot>
</div> </div>
</template> </template>
<script> <script>
import emoji from '../../utils/emo' import emoji from '../../utils/emo'
export default { export default {
name: 'ly-emotion', name: 'ly-emotion',
mounted() { mounted() {
console.log(123123)
const name = this.$el.innerHTML const name = this.$el.innerHTML
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(name)) + 1 let index = parseInt(list.indexOf(name)) + 1
...@@ -20,10 +21,10 @@ export default { ...@@ -20,10 +21,10 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.$el.innerHTML = imgHTML this.$el.innerHTML = imgHTML
}) })
} },
} }
</script> </script>
<style scoped> <style scoped>
.ly-emotion { .ly-emotion {
display: inline-block; display: inline-block;
} }
......
...@@ -6,6 +6,7 @@ base.getConfig().then((data) => { ...@@ -6,6 +6,7 @@ base.getConfig().then((data) => {
const { vue, config } = data const { vue, config } = data
Vue.prototype.otherUrl = config.axios.otherURL Vue.prototype.otherUrl = config.axios.otherURL
Vue.prototype.fileUploadURL = config.axios.fileUploadURL Vue.prototype.fileUploadURL = config.axios.fileUploadURL
Vue.prototype.businessURL = config.axios.businessURL
vue.use(GlsxVueCommon, config) vue.use(GlsxVueCommon, config)
base.render(App) base.render(App)
}) })
...@@ -7,34 +7,34 @@ ...@@ -7,34 +7,34 @@
:before-close="handleClose" :before-close="handleClose"
> >
<div class="activity-box"> <div class="activity-box">
<div class="model-item-panel" v-if="data.list.length"> <div class="model-item-panel" v-if="activityData.length">
<div <div
class="model-item" class="model-item"
:class="{ checked: selectItem == item }" :class="{ checked: selectItem == item }"
v-for="(item, index) in data.list" v-for="(item, index) in activityData"
:key="index" :key="index"
@click="handleSelectItem(item)" @click="handleSelectItem(item)"
> >
<div class="model-item-title" :title="item.name"> <img class="model-item-img" :src="item.activityImg" alt="" />
{{ item.name }} <div class="model-item-title" :title="item.activityName">
{{ item.activityName }}
</div> </div>
<div class="model-item-content"></div>
<div class="model-item-content"> <div class="model-item-content">
开始时间: 开始时间:
{{ item.createdDate }} {{ item.startTime }}
</div> </div>
<div class="model-item-content"> <div class="model-item-content">
结束时间: 结束时间:
{{ item.endDate }} {{ item.endTime }}
</div> </div>
</div> </div>
<el-pagination <el-pagination
background background
layout="sizes, total, prev, pager, next, jumper" layout="sizes, total, prev, pager, next, jumper"
:page-sizes="[12, 24, 48]" :page-sizes="[12, 24, 48]"
:page-size="data.pageSize" :page-size="pageParam.pageSize"
:total="data.total" :total="pageParam.total"
:current-page="data.pageNum" :current-page="pageParam.currentPage"
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
> >
...@@ -53,73 +53,45 @@ ...@@ -53,73 +53,45 @@
</template> </template>
<script> <script>
import * as dayjs from 'dayjs'
import { taskApi } from '../../../../api/task'
export default { export default {
name: 'activityDia', name: 'activityDia',
data() { data() {
return { return {
activityDiaVisible: false, activityDiaVisible: false,
loading: false, loading: false,
data: { activityData: [],
pageNum: 1, selectItem: {},
pageParam: {
currentPage: 1,
pageSize: 12, pageSize: 12,
total: 31, total: 0,
list: [
{
id: 1100,
name: '4天',
createdDate: '2022-08-20 17:56:05',
endDate: '2022-08-23',
},
{
id: 112,
name: '优惠券0826',
createdDate: '2022-08-20 17:56:05',
endDate: '2022-08-26',
},
{
id: 113,
name: '优惠券0826',
createdDate: '2022-08-20 17:56:05',
endDate: '2022-08-26',
},
{
id: 114,
name: '优惠ff券0826',
createdDate: '2022-08-20 17:56:05',
endDate: '2022-08-26',
},
{
id: 115,
name: '优惠f券0826',
createdDate: '2022-08-20 17:56:05',
endDate: '2022-08-26',
},
{
id: 116,
name: '优惠s券0826',
createdDate: '2022-08-20 17:56:05',
endDate: '2022-08-26',
},
{
id: 117,
name: '优惠f券0826',
createdDate: '2022-08-20 17:56:05',
endDate: '2022-08-26',
},
{
id: 118,
name: '优s惠券0826',
createdDate: '2022-08-20 17:56:05',
endDate: '2022-08-26',
},
],
}, },
selectItem: {},
} }
}, },
methods: { methods: {
init() { init(merchantId) {
this.activityDiaVisible = true this.activityDiaVisible = true
this.getActivityData(merchantId)
},
getActivityData(merchantId) {
let params = {
currentPage: 1,
pageSize: 12,
merchantId: merchantId,
activityStatuList: [1, 2],
}
taskApi.getActivityBypage(params).then((res) => {
this.activityData = res.data.data.list
this.pageParam.total = res.data.data.total
// 活动时间戳转化
this.activityData.map((item) => {
item.startTime = dayjs(item.startTime).format('YYYY-MM-DD')
item.endTime = dayjs(item.endTime).format('YYYY-MM-DD')
})
console.log(this.activityData, 'this.activityData')
})
}, },
handleSelectItem(item) { handleSelectItem(item) {
console.log(item) console.log(item)
...@@ -144,10 +116,12 @@ export default { ...@@ -144,10 +116,12 @@ export default {
this.activityDiaVisible = false this.activityDiaVisible = false
}, },
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val} 条`) this.pageParam.pageSize = val
this.getActivityData()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
console.log(`当前页: ${val}`) this.pageParam.currentPage = val
this.getActivityData()
}, },
}, },
} }
...@@ -172,7 +146,7 @@ export default { ...@@ -172,7 +146,7 @@ export default {
margin-right: 16px; margin-right: 16px;
margin-bottom: 16px; margin-bottom: 16px;
position: relative; position: relative;
height: 128px; height: 190px;
background: #f9f9f9; background: #f9f9f9;
border-radius: 4px; border-radius: 4px;
padding: 14px 16px; padding: 14px 16px;
...@@ -184,22 +158,24 @@ export default { ...@@ -184,22 +158,24 @@ export default {
margin-right: 0px; margin-right: 0px;
} }
&-title { &-title {
font-size: 16px; font-size: 12px;
font-weight: 600; font-weight: 400;
color: #333333; color: #333333;
line-height: 25px; line-height: 25px;
margin-bottom: 5px;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
} }
&-img {
width: 100%;
height: 100px;
}
&-content { &-content {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
line-height: 16px; line-height: 16px;
height: 16px; height: 16px;
margin-top: 6px;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div> <div>
<el-form :inline="true" :model="searchForm"> <el-form :inline="true" :model="searchForm">
<el-form-item label="业务场景:"> <el-form-item label="业务场景:">
<el-select v-model="searchForm.scene" size="small"> <el-select v-model="searchForm.businessScene" size="small">
<el-option <el-option
v-for="(item, index) in sceneOption" v-for="(item, index) in sceneOption"
:key="index" :key="index"
...@@ -14,20 +14,20 @@ ...@@ -14,20 +14,20 @@
</el-form-item> </el-form-item>
<el-form-item label="商户:"> <el-form-item label="商户:">
<el-input <el-input
v-model="searchForm.name" v-model="searchForm.merchantName"
size="small" size="small"
placeholder="请输入商户名称" placeholder="请输入商户名称"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="活动/产品:"> <el-form-item label="活动/产品:">
<el-input <el-input
v-model="searchForm.code" v-model="searchForm.activityName"
size="small" size="small"
placeholder="请输入活动/产品名称" placeholder="请输入活动/产品名称"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="状态:"> <el-form-item label="状态:">
<el-select v-model="searchForm.status" size="small"> <el-select v-model="searchForm.activityStatus" size="small">
<el-option <el-option
v-for="(item, index) in taskStatus" v-for="(item, index) in taskStatus"
:key="index" :key="index"
...@@ -59,40 +59,46 @@ ...@@ -59,40 +59,46 @@
:pageConf="pageConf" :pageConf="pageConf"
:tableData="tableData" :tableData="tableData"
> >
<div slot="status" slot-scope="scope"> <div slot="activityStatus" slot-scope="scope">
<span v-if="scope.scope.status == statusNum.UNPUBLISH">未发布</span> <span v-if="scope.scope.activityStatus == statusNum.UNPUBLISH"
<span v-if="scope.scope.status == statusNum.PUBLISHED">已发布</span> >未发布</span
<span v-if="scope.scope.status == statusNum.FINISHIED">已结束</span> >
<span v-if="scope.scope.activityStatus == statusNum.PUBLISHED"
>已发布</span
>
<span v-if="scope.scope.activityStatus == statusNum.FINISHIED"
>已结束</span
>
</div> </div>
<template slot="auth-button" slot-scope="scope"> <template slot="auth-button" slot-scope="scope">
<el-button <el-button
type="text" type="text"
v-if="scope.scope.status == statusNum.UNPUBLISH" v-if="scope.scope.activityStatus == statusNum.UNPUBLISH"
@click="handleEdit(scope.scope, 1)" @click="handleEdit(scope.scope, 1)"
>编辑</el-button >编辑</el-button
> >
<el-button <el-button
type="text" type="text"
v-if="scope.scope.status != statusNum.UNPUBLISH" v-if="scope.scope.activityStatus != statusNum.UNPUBLISH"
@click="handleAnalyze(scope.scope)" @click="handleAnalyze(scope.scope)"
>任务分析</el-button >任务分析</el-button
> >
<el-button <el-button
type="text" type="text"
v-if="scope.scope.status == statusNum.UNPUBLISH" v-if="scope.scope.activityStatus == statusNum.UNPUBLISH"
@click="handleDelete(scope.scope)" @click="handleDelete(scope.scope)"
style="color: red" style="color: red"
>删除</el-button >删除</el-button
> >
<el-button <el-button
type="text" type="text"
v-if="scope.scope.status == statusNum.UNPUBLISH" v-if="scope.scope.activityStatus == statusNum.UNPUBLISH"
@click="handleActive(scope.scope)" @click="handleActive(scope.scope)"
>发布</el-button >发布</el-button
> >
<el-button <el-button
type="text" type="text"
v-if="scope.scope.status == statusNum.PUBLISHED" v-if="scope.scope.activityStatus == statusNum.PUBLISHED"
@click="handleInactive(scope.scope)" @click="handleInactive(scope.scope)"
>结束</el-button >结束</el-button
> >
...@@ -101,7 +107,7 @@ ...@@ -101,7 +107,7 @@
> >
<el-button <el-button
type="text" type="text"
v-if="scope.scope.status != statusNum.UNPUBLISH" v-if="scope.scope.activityStatus != statusNum.UNPUBLISH"
@click="handleViewDetail(scope.scope)" @click="handleViewDetail(scope.scope)"
>查看</el-button >查看</el-button
> >
...@@ -166,49 +172,49 @@ export default { ...@@ -166,49 +172,49 @@ export default {
taskStatus, taskStatus,
statusNum, statusNum,
searchForm: { searchForm: {
scene: '', businessScene: '',
name: '', merchantName: '',
code: '', activityName: '',
status: '', activityStatus: '',
}, },
// 表格参数 // 表格参数
tableParams: { tableParams: {
// btnId: new Date().getTime() + parseInt(Math.random() * 1000), // btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'data.list', listName: 'data.data',
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: [
{ {
label: '业务场景', label: '业务场景',
prop: 'scene', prop: 'businessSceneName',
width: 150, width: 150,
}, },
{ {
label: '商户', label: '商户',
prop: 'merchant', prop: 'merchantName',
width: 150, width: 150,
}, },
{ {
label: '活动/产品', label: '活动/产品',
prop: 'activity', prop: 'activityName',
width: 200, width: 200,
}, },
{ {
label: '任务数', label: '任务数',
prop: 'taskNum', prop: 'missionCount',
}, },
{ {
label: '创建人', label: '创建人',
prop: 'creatPerson', prop: 'createdBy',
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'creatTime', prop: 'createdTime',
width: 150, width: 150,
}, },
{ {
label: '状态', label: '状态',
prop: 'status', prop: 'activityStatus',
addHtml: 'status', addHtml: 'activityStatus',
}, },
], ],
}, },
...@@ -217,94 +223,8 @@ export default { ...@@ -217,94 +223,8 @@ export default {
pageNum: 'pageNum', pageNum: 'pageNum',
totalCount: 'data.total', totalCount: 'data.total',
}, },
tableData: [
{
id: 11,
scene: '1.3业务场景',
merchant: '我是商户名称',
activity: '氛围灯众筹活动',
taskNum: '10',
creatPerson: '用户名',
creatTime: '2021-10-11 16:00:00',
taskList: [
{
date: '2022-10-12',
taskData: [
{
taskType: '1',
taskName: 'fff',
taskDetail: 'fff',
awardIntegral: 33,
},
],
},
{
date: '2022-10-13',
taskData: [
{
taskType: '1',
taskName: 'fff',
taskDetail: 'fff',
awardIntegral: 33,
},
],
},
{
date: '2022-10-14',
taskData: [
{
taskType: '1',
taskName: 'fff',
taskDetail: 'fff',
awardIntegral: 33,
},
],
},
{
date: '2022-10-15',
taskData: [
{
taskType: '1',
taskName: 'fff',
taskDetail: 'fff',
awardIntegral: 33,
},
],
},
{
date: '完整周期',
taskData: [],
},
],
status: '1',
},
{
id: 22,
scene: '1.3业务场景',
merchant: '我是商户名称',
activity: '360众筹活动',
taskNum: '10',
creatPerson: '用户名',
creatTime: '2021-10-27 16:00:00',
startTime: '2022-10-01 16:00:00',
endTime: '2022-10-05 16:00:00',
status: '2',
},
{
id: 33,
scene: '1.1业务场景',
merchant: '我是商户名称',
activity: 'AR导航',
taskNum: '10',
creatPerson: '用户名',
creatTime: '2021-10-27 16:00:00',
startTime: '2022-10-15 16:00:00',
endTime: '2022-10-20 16:00:00',
status: '3',
},
],
// 获取订单列表 // 获取订单列表
// getListApi: customerApi.getOrderList getListApi: taskApi.findMissionList,
} }
}, },
methods: { methods: {
...@@ -316,9 +236,10 @@ export default { ...@@ -316,9 +236,10 @@ export default {
// 重置搜索框搜索 // 重置搜索框搜索
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
name: '', businessScene: '',
code: '', merchantName: '',
status: '', activityName: '',
activityStatus: '',
} }
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.taskTable.refreshTable() this.$refs.taskTable.refreshTable()
...@@ -361,7 +282,7 @@ export default { ...@@ -361,7 +282,7 @@ export default {
this.secondConfirm( this.secondConfirm(
'提示', '提示',
'任务计划删除后,无法恢复。是否确定删除?', '任务计划删除后,无法恢复。是否确定删除?',
'', 3,
scope.id scope.id
) )
}, },
...@@ -370,7 +291,7 @@ export default { ...@@ -370,7 +291,7 @@ export default {
this.secondConfirm( this.secondConfirm(
'提示', '提示',
'任务计划发布后,任务会自动下发给对应的员工。是否确定发布?', '任务计划发布后,任务会自动下发给对应的员工。是否确定发布?',
'', 1,
scope.id scope.id
) )
}, },
...@@ -379,7 +300,7 @@ export default { ...@@ -379,7 +300,7 @@ export default {
this.secondConfirm( this.secondConfirm(
'提示', '提示',
'任务计划结束后,整个任务计划将无法再使用。是否确定结束?', '任务计划结束后,整个任务计划将无法再使用。是否确定结束?',
'', 2,
scope.id scope.id
) )
}, },
...@@ -413,14 +334,15 @@ export default { ...@@ -413,14 +334,15 @@ export default {
]) ])
}, },
// 二次确认 // 二次确认
secondConfirm(title, txt, apiName, apiParams, fn) { secondConfirm(title, txt, apiParams, fn) {
var params = { activityStatus: apiParams }
this.$confirm(txt, title, { this.$confirm(txt, title, {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning',
callback: (action) => { callback: (action) => {
if (action == 'confirm') { if (action == 'confirm') {
taskApi[apiName](apiParams).then((res) => { taskApi.updateStatusMission(params).then((res) => {
this.$message({ this.$message({
message: res.code == '0' ? '操作成功' : '操作失败', message: res.code == '0' ? '操作成功' : '操作失败',
type: res.code == '0' ? 'success' : 'error', type: res.code == '0' ? 'success' : 'error',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!