Browse Source

上传代码完善

master
jiangyy 5 years ago
parent
commit
1ead51066b
  1. 4
      epmet-oper-web/.env.development
  2. 15
      epmet-oper-web/src/App.vue
  3. 12
      epmet-oper-web/src/js/store/modules/app.js
  4. 3
      epmet-oper-web/src/js/store/type.js
  5. 1
      epmet-oper-web/src/views/components/CTable.vue
  6. 22
      epmet-oper-web/src/views/modules/code/CommitList.vue
  7. 27
      epmet-oper-web/src/views/modules/code/SubmitFailReason.vue
  8. 257
      epmet-oper-web/src/views/modules/code/SubmitForm.vue
  9. 128
      epmet-oper-web/src/views/modules/code/SubmitItem.vue
  10. 19
      epmet-oper-web/src/views/modules/customer-manage/RegisterList.vue

4
epmet-oper-web/.env.development

@ -1,5 +1,5 @@
NODE_ENV=development
# VUE_APP_API_SERVER = http://192.168.1.130:8080/api
VUE_APP_API_SERVER = http://192.168.1.130:8080/api
# VUE_APP_API_SERVER = http://10.10.10.98:8080/api
VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api
# VUE_APP_API_SERVER = https://epmet-dev.elinkservice.cn/api
VUE_APP_NODE_ENV=dev

15
epmet-oper-web/src/App.vue

@ -39,10 +39,23 @@ export default {
})
})
},
...mapActions(['setClientHeight', 'setSize', 'setResolution'])
...mapActions(['setClientHeight', 'setSize', 'setResolution', 'setEnv'])
},
mounted () {
const that = this
let envShow = process.env.VUE_APP_NODE_ENV
let env = 'dev'
if (envShow === 'dev' || envShow === 'prod:sit') { //
env = 'dev'
} else if (envShow === 'prod:uat') { //
env = 'test'
} else if (envShow === 'prod') { //
env = 'prod'
}
// eslint-disable-next-line
// debugger
that.setEnv(env)
// size
if (document.documentElement.clientHeight < 800) {
// medium

12
epmet-oper-web/src/js/store/modules/app.js

@ -4,12 +4,14 @@ export default {
state: {
clientHeight: document.documentElement.clientHeight,
size: 'medium',
resolution: 'medium'
resolution: 'medium',
env: 'dev'
},
getters: {
clientHeight: state => state.clientHeight,
size: state => state.size,
resolution: state => state.resolution
resolution: state => state.resolution,
env: state => state.env
},
mutations: {
[type.client_height] (state, payload) {
@ -20,6 +22,9 @@ export default {
},
[type.resolution] (state, payload) {
state.resolution = payload
},
[type.env] (state, payload) {
state.env = payload
}
},
actions: {
@ -31,6 +36,9 @@ export default {
},
setResolution ({ commit }, payload) {
commit(type.resolution, payload)
},
setEnv ({ commit }, payload) {
commit(type.env, payload)
}
}
}

3
epmet-oper-web/src/js/store/type.js

@ -1,5 +1,6 @@
export default {
client_height: 'CLIENT_HEIGHT',
size: 'SIZE',
resolution: 'RESOLUTION'
resolution: 'RESOLUTION',
env: 'ENV'
}

1
epmet-oper-web/src/views/components/CTable.vue

@ -214,6 +214,7 @@ export default {
this.loadData()
},
loadData () {
// eslint-disable-next-line
this.loading = true
Object.keys(this.params).forEach(key => {
if (this.params[key] instanceof Array) {

22
epmet-oper-web/src/views/modules/code/CommitList.vue

@ -5,8 +5,7 @@
<div class="mod-demo__demo}">
<el-form :inline="true"
:model="tableParams"
@keyup.enter.native="loadTableData()">
:model="tableParams">
<el-form-item>
<el-select v-model="tableParams.customerId"
placeholder="客户"
@ -135,11 +134,11 @@ export default {
clientType: '', //
state: '', //
commitDate: '', //
submitDate: '' //
submitDate: '', //
source: this.env
},
//
tableUrl: '/third/code/uploadlist',
// tableUrl: 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/third/code/uploadlist',
//
operations: [
{
@ -317,7 +316,7 @@ export default {
tableHeight () {
return this.clientHeight - 60 - 80 - 80 - 90
},
...mapGetters(['clientHeight'])
...mapGetters(['clientHeight', 'env'])
},
methods: {
//
@ -326,6 +325,7 @@ export default {
},
//
loadTableData () {
this.tableParams.source = this.env
this.$nextTick(() => {
this.$refs.table.loadData() //
})
@ -344,9 +344,9 @@ export default {
//
submitCodeDiaShow (row) {
let feedbackShow = false
// if (row.status === 'audit_failed') {
if (row.status === 'audit_failed') {
feedbackShow = true
// }
}
this.$refs['ref_submit_form'].initData(row.id, feedbackShow)
},
@ -418,12 +418,12 @@ export default {
this.qrCodeDia.visible = false
},
async renderSelData () { // //
const customerUrl = '/third/pacustomer/registerbyauth'
// const customerUrl = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/third/pacustomer/registerbyauth'
const customerUrl = ' https://epmet-cloud.elinkservice.cn/api/third/pacustomer/registerbyauth'
const param = {
// initState: 1,
// workAuth: 1,
// resiAuth: 1,
workAuth: 1
source: this.env,
initState: 1
}
this.startLoading()
await window.app.ajax.post(customerUrl, param,

27
epmet-oper-web/src/views/modules/code/SubmitFailReason.vue

@ -65,20 +65,21 @@ export default {
this.codeId = codeId
this.diaVisible = true
this.dataForm.reason = '没有提供用户名密码失败失败没有提供用户名密码失败失败没有提供用户名密码失败失败没有提供用户名密码失败失败,没有提供用户名密码失败失败没有提供用户名密码失败失败没有提供用户名密码失败失败没有提供用户名密码失败失败'
this.dataForm.screenshotUrl = ['https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg', 'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg']
// const url = '/third/code/reason'
// const param = {
// codeId: row.id
// }
// window.app.ajax.post(url, param,
// (data, rspMsg) => {
// this.dataForm.reason = ','
// this.dataForm.screenshotUrl = ['https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg', 'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg']
const url = '/third/code/reason'
const param = {
codeId: codeId
}
window.app.ajax.post(url, param,
(data, rspMsg) => {
this.dataForm.reason = data.reason
this.dataForm.screenshotUrl = data.screenshotUrl
// this.$message.success(rspMsg)
// },
// (rspMsg, data) => {
// this.$message.error(rspMsg)
// })
},
(rspMsg, data) => {
this.$message.error(rspMsg)
})
},
getSrcList (index) {
return this.dataForm.screenshotUrl.slice(index).concat(this.dataForm.screenshotUrl.slice(0, index))

257
epmet-oper-web/src/views/modules/code/SubmitForm.vue

@ -37,13 +37,14 @@
:action="upload_url"
list-type="picture-card"
:name="upload_name"
:on-exceed="handleExceed"
:on-exceed="exceedPic"
:on-remove="removePic"
:file-list="picList"
:limit="3"
:limit="5"
:http-request="uploadPic">
<span class="font-14">选择图片</span>
<div slot="tip"
class="el-upload__tip">小程序页面截图最多3每张大小2M以内</div>
class="el-upload__tip">小程序页面截图最多5每张大小2M以内</div>
</el-upload>
</el-form-item>
@ -54,9 +55,10 @@
ref="uploadVedio"
:action="upload_url"
:name="upload_name"
:on-exceed="handleExceed"
:file-list="vedioList"
:limit="1"
:on-exceed="exceedVedio"
:on-remove="removeVedio"
:file-list="videoList"
:limit="2"
:http-request="uploadVedio">
<el-button size="small"
type="primary">选择视频</el-button>
@ -103,13 +105,14 @@
:action="upload_url"
list-type="picture-card"
:name="upload_name"
:on-exceed="handleExceed"
:on-exceed="exceedFeedbackPic"
:on-remove="removeFeedbackPic"
:file-list="feedbackPicList"
:limit="3"
:limit="5"
:http-request="uploadFeedbackPic">
<span class="font-14">选择图片</span>
<div slot="tip"
class="el-upload__tip">大小2M以内</div>
class="el-upload__tip">反馈图片最多5张大小2M以内</div>
</el-upload>
</el-form-item>
@ -223,10 +226,6 @@ export default {
sceneOtherDisabled: true, //
dataForm: {
versionDesc: '', //
previewInfo: { //
videoIdList: [],
picIdList: []
},
feedbackInfo: '', //
feedbackStuff: '', //
ugcDeclare: { // UGC
@ -237,16 +236,13 @@ export default {
auditDesc: '' // UGC,256
}
},
previewPicArray: [],
previewVedioArray: [],
feedbackPicArray: [],
//
dialogImageUrl: '/third/code/mediaupload',
upload_url: '', // URL
upload_name: '', //
picList: [], //
vedioList: [], //
videoList: [], //
feedbackPicList: [], //
//
@ -276,10 +272,6 @@ export default {
reseatDataForm () {
this.dataForm = {
versionDesc: '', //
previewInfo: { //
videoIdList: [],
picIdList: []
},
feedbackInfo: '', //
feedbackStuff: '', //
ugcDeclare: { // UGC
@ -296,77 +288,83 @@ export default {
this.$refs['ref_submit_item'].initData(this.codeId)
}
},
handleExceed: function () {
removeVedio (file) {
this.videoList.splice(this.videoList.findIndex(item => item.uid === file.uid), 1)
// console.log(this.videoList)
},
removePic (file) {
this.picList.splice(this.picList.findIndex(item => item.uid === file.uid), 1)
// console.log(this.picList)
},
removeFeedbackPic (file) {
this.feedbackPicList.splice(this.feedbackPicList.findIndex(item => item.uid === file.uid), 1)
// console.log(this.feedbackPicList)
},
exceedPic: function () {
this.$message({
message: '最多上传5张预览图片',
type: 'warning'
})
},
exceedVedio: function () {
this.$message({
message: '最多上传2个预览视频',
type: 'warning'
})
},
exceedFeedbackPic: function () {
this.$message({
message: '请先删除选择的图片或视频,再上传',
message: '最多上传5张反馈图片',
type: 'warning'
})
},
//
uploadVedio: function (params) {
// eslint-disable-next-line
debugger
let file = params.file
let fileType = file.type
let isVideo = fileType.indexOf('video') !== -1
let fileUrl = this.$refs.uploadVedio.uploadFiles[this.vedioList.length].url
let fileUrl = this.$refs.uploadVedio.uploadFiles[this.videoList.length].url
file.url = fileUrl
this.vedioList.push(file)
this.videoList.push(file)
let isLt2M = file.size / 1024 / 1024 < 2
if (!isLt2M) {
this.$message({
message: '上传视频大小不能超过 2MB!',
type: 'error'
})
this.$refs.upload.uploadFiles = []
return
}
if (!isVideo) {
this.$message({
message: '请选择视频!',
type: 'error'
type: 'warning'
})
this.$refs.upload.uploadFiles = []
this.videoList.pop()
return
}
let isMP4 = file.type === 'video/mp4'
if (!isMP4) {
if (!isVideo || !isMP4) {
this.$message({
message: '上传视频只支持 mp4 格式!',
type: 'error'
message: '请选择mp4格式的视频!',
type: 'warning'
})
this.$refs.upload.uploadFiles = []
this.videoList.pop()
return
}
this.startLoading()
this.upload_name = 'file_video[]'
let formData = new FormData()
// // eslint-disable-next-line
// debugger
formData.append('type', fileType)
formData.append('media', file)
formData.append('codeId', this.codeId)
window.app.ajax.post2(this.dialogImageUrl, formData,
(data, rspMsg) => {
// eslint-disable-next-line
debugger
this.endLoading()
if (data.code === 0) {
console.log('成功')
let obj = {
mediaid: data,
uid: file.uid
}
this.previewVedioArray.push(obj)
this.$message.success(rspMsg)
this.videoList[this.videoList.length - 1].mediaid = data.data
} else {
console.log('失败')
this.vedioList.pop()
this.videoList.pop()
this.$message.error(rspMsg)
}
},
(rspMsg, data) => {
this.vedioList.pop()
this.videoList.pop()
this.endLoading()
this.$message.error(rspMsg)
})
},
@ -379,51 +377,44 @@ export default {
file.url = fileUrl
this.picList.push(file)
// let isLt2M = file.size / 1024 / 1024 < 2
// if (!isLt2M) {
// this.$message({
// message: ' 2MB!',
// type: 'error'
// })
// this.$refs.upload.uploadFiles = []
// // return
// }
let isLt2M = file.size / 1024 / 1024 < 2
if (!isLt2M) {
this.$message({
message: '上传图片大小不能超过 2MB!',
type: 'warning'
})
this.picList.pop()
return
}
if (!isImage) {
this.$message({
message: '请选择图片!',
type: 'error'
type: 'warning'
})
this.$refs.uploadPic.uploadFiles = []
this.picList.pop()
return
}
// console.log(this.picList)
this.upload_name = 'file_img[]'
let formData = new FormData()
this.startLoading()
formData.append('type', fileType)
formData.append('media', file)
formData.append('codeId', this.codeId)
window.app.ajax.post2(this.dialogImageUrl, formData,
(data, rspMsg) => {
// eslint-disable-next-line
debugger
this.endLoading()
if (data.code === 0) {
console.log('成功')
let obj = {
mediaid: data,
uid: file.uid
}
this.previewPicArray.push(obj)
this.$message.success(rspMsg)
this.picList[this.picList.length - 1].mediaid = data.data
} else {
console.log('失败')
this.picList.pop()
this.$message.error(rspMsg)
}
},
(rspMsg, data) => {
this.picList.pop()
this.endLoading()
this.$message.error(rspMsg)
}, { headers: { 'Content-Type': 'multipart/form-data' } })
},
@ -436,24 +427,23 @@ export default {
file.url = fileUrl
this.feedbackPicList.push(file)
// let isLt2M = file.size / 1024 / 1024 < 2
// if (!isLt2M) {
// this.$message({
// message: ' 2MB!',
// type: 'error'
// })
// this.$refs.upload.uploadFiles = []
// // return
// }
let isLt2M = file.size / 1024 / 1024 < 2
if (!isLt2M) {
this.$message({
message: '上传图片大小不能超过 2MB!',
type: 'warning'
})
this.feedbackPicList.pop()
return
}
if (!isImage) {
this.$message({
message: '请选择图片!',
type: 'error'
type: 'warning'
})
this.$refs.uploadPic.uploadFiles = []
this.feedbackPicList.pop()
return
}
// console.log(this.picList)
this.upload_name = 'file_img[]'
let formData = new FormData()
@ -461,26 +451,20 @@ export default {
formData.append('type', fileType)
formData.append('media', file)
formData.append('codeId', this.codeId)
this.startLoading()
window.app.ajax.post2(this.dialogImageUrl, formData,
(data, rspMsg) => {
// eslint-disable-next-line
debugger
this.endLoading()
if (data.code === 0) {
console.log('成功')
let obj = {
mediaid: data,
uid: file.uid
}
this.feedbackPicArray.push(obj)
this.$message.success(rspMsg)
this.feedbackPicList[this.feedbackPicList.length - 1].mediaid = data.data
} else {
console.log('失败')
this.feedbackPicList.pop()
this.$message.error(rspMsg)
}
},
(rspMsg, data) => {
this.feedbackPicList.pop()
this.endLoading()
this.$message.error(rspMsg)
}, { headers: { 'Content-Type': 'multipart/form-data' } })
},
@ -511,32 +495,36 @@ export default {
this.dataForm.ugcDeclare.auditDesc = ''
},
submitCode () {
// const url = '/third/code/audit'
let params = {
codeId: this.codeId,
ugcDeclare: this.dataForm.ugcDeclare //
}
//
//
this.dataForm.previewInfo.picIdList = []
this.dataForm.previewInfo.videoIdList = []
this.previewPicArray.forEach(element => {
this.dataForm.previewInfo.picIdList.push(element.mediaid)
let picIdList = []
let videoIdList = []
this.picList.forEach(element => {
picIdList.push(element.mediaid)
})
this.previewVedioArray.forEach(element => {
this.dataForm.previewInfo.videoIdList.push(element.mediaid)
// // eslint-disable-next-line
// debugger
this.videoList.forEach(element => {
videoIdList.push(element.mediaid)
})
//
if (this.dataForm.previewInfo.picIdList.length > 0 || this.dataForm.previewInfo.videoIdList.length > 0) {
params.previewInfo = Object
if (this.dataForm.previewInfo.picIdList.length > 0) {
params.previewInfo.picIdList = this.dataForm.previewInfo.picIdList
if (picIdList.length > 0 || videoIdList.length > 0) {
params.previewInfo = {}
if (picIdList.length > 0) {
params.previewInfo.picIdList = picIdList
}
if (this.dataForm.previewInfo.videoIdList.length > 0) {
params.previewInfo.videoIdList = this.dataForm.previewInfo.videoIdList
if (videoIdList.length > 0) {
params.previewInfo.videoIdList = videoIdList
}
// console.log('')
// console.log(params.previewInfo.picIdList)
// console.log('')
// console.log(params.previewInfo.videoIdList)
}
//
@ -554,42 +542,51 @@ export default {
if (this.dataForm.feedbackInfo !== '') {
params.feedbackInfo = this.dataForm.feedbackInfo
}
this.dataForm.feedbackStuff = ''
this.feedbackPicList.forEach(element => {
this.dataForm.feedbackStuff = this.dataForm.feedbackStuff + element.mediaid + '|'
})
if (this.dataForm.feedbackStuff !== '') {
this.dataForm.feedbackStuff = this.dataForm.feedbackStuff.slice(0, this.dataForm.feedbackStuff.length - 1)
params.feedbackStuff = this.dataForm.feedbackStuff
}
console.log(params)
// this.startLoading()
// window.app.ajax.post(url, params,
// (data, rspMsg) => {
// this.endLoading()
// this.$message.success('')
// this.diaCancel()
// this.$emit('refresh')
// },
// (rspMsg, data) => {
// this.endLoading()
// this.$message.error(rspMsg)
// })
// console.log('')
// console.log(params.feedbackStuff)
const url = '/third/code/audit'
this.startLoading()
window.app.ajax.post(url, params,
(data, rspMsg) => {
this.endLoading()
this.$message.success('提交审核成功,请等待审核结果')
this.diaCancel()
this.$emit('refresh')
},
(rspMsg, data) => {
this.endLoading()
this.$message.error(rspMsg)
})
},
//
diaCancel () {
this.resetData()
this.activeName = 'desc'
this.diaVisible = false
},
resetData () {
this.reseatDataForm()
//
this.picList = []
this.previewPicArray = []
this.vedioList = []
this.previewVedioArray = []
this.videoList = []
//
this.$refs['ref_submit_item'].reseatData()
//
this.feedbackPicList = []
this.feedbackPicArray = []
//
},
//

128
epmet-oper-web/src/views/modules/code/SubmitItem.vue

@ -10,7 +10,7 @@
label-width="150px">
<el-select v-model="dataForm.address"
placeholder="页面列表"
style="width:300px"
style="width:600px"
filterable>
<el-option v-for="item in addressList"
:key="item.value"
@ -25,6 +25,8 @@
label-width="150px">
<el-input placeholder='请输入标签'
style="width:300px"
maxlength="20"
show-word-limit
v-model="dataForm.tag">
</el-input>
<div class="el-upload__tip">小程序的标签用空格分隔标签至多10个标签长度至多20</div>
@ -32,11 +34,9 @@
<el-form-item label="标题"
prop="title"
label-width="150px"
style="display:block">
label-width="150px">
<el-input placeholder='请输入标题'
style="width:500px"
type="textarea"
style="width:600px"
maxlength="32"
show-word-limit
v-model="dataForm.title">
@ -61,32 +61,32 @@
</template>
</el-table-column>
<el-table-column prop="first_class"
<el-table-column prop="firstClass"
label="一级名称"
min-width="100"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="first_id"
<el-table-column prop="firstId"
label="一级ID"
min-width="100"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="second_class"
<el-table-column prop="secondClass"
label="二级名称"
min-width="70"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="second_id"
<el-table-column prop="secondId"
label="二级ID"
min-width="100"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="third_class"
<el-table-column prop="thirdClass"
label="三级名称"
min-width="70"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="third_id"
<el-table-column prop="thirdId"
label="三级ID"
header-align="center"
min-width="100"
@ -120,36 +120,49 @@
header-align="center"
align="center"></el-table-column>
<el-table-column prop="first_class"
<el-table-column prop="firstClass"
label="一级名称"
min-width="100"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="first_id"
<el-table-column prop="firstId"
label="一级ID"
min-width="100"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="second_class"
<el-table-column prop="secondClass"
label="二级名称"
min-width="70"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="second_id"
<el-table-column prop="secondId"
label="二级ID"
min-width="100"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="third_class"
<el-table-column prop="thirdClass"
label="三级名称"
min-width="70"
header-align="center"
align="center"></el-table-column>
<el-table-column prop="third_id"
<el-table-column prop="thirdId"
label="三级ID"
header-align="center"
min-width="100"
align="center"></el-table-column>
<!--操作列-->
<el-table-column label="操作"
fixed="right"
:min-width="80"
header-align="center"
class="operate">
<template slot-scope="scope">
<el-button size="mini"
type="text"
@click.stop="deleteItem(scope.$index, scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
</div>
@ -184,19 +197,7 @@ export default {
operations: [],
//
itemTableData: [
// {
// address: 'index',
// tag: ' ',
// title: '',
// firstClass: '',
// firstId: 1,
// secondClass: '',
// secondId: 2,
// thirdClass: '',
// thirdId: null
// }
]
itemTableData: []
}
},
components: {
@ -220,6 +221,7 @@ export default {
},
methods: {
initData (codeId) {
this.reseatData()
this.codeId = codeId
const params = {
codeId: this.codeId
@ -239,20 +241,20 @@ export default {
window.app.ajax.post(this.categoryUrl, params,
(data, rspMsg) => {
data = [
{
'first_class': '社交',
'second_class': '社区/论坛',
'first_id': 684,
'second_id': 794
},
{
'first_class': '社交1',
'second_class': '社区/论坛1',
'first_id': 685,
'second_id': 796
}
]
// data = [
// {
// 'first_class': '',
// 'second_class': '/',
// 'first_id': 684,
// 'second_id': 794
// },
// {
// 'first_class': '1',
// 'second_class': '/1',
// 'first_id': 685,
// 'second_id': 796
// }
// ]
data.forEach((item, index) => {
item.id = index
})
@ -263,30 +265,43 @@ export default {
})
},
getRadioRow (index, row) {
console.log(row)
this.selCategory = row
},
//
addItem () {
let oneObj = this.selCategory
oneObj.address = this.dataForm.address
oneObj.title = this.dataForm.title
oneObj.tag = this.dataForm.tag
if (this.itemTableData.length === 5) {
this.$message.warning('最多填写5项审核项')
return false
}
// eslint-disable-next-line
// debugger
//
let repeatAdress = this.itemTableData.filter(item => item.address === oneObj.address)
// let result = this.itemTableData.fliter(function (value) {
// console.log(value)
// return value.address === oneObj.address
// })
const that = this
let result = this.itemTableData.some(function (value) {
return value.address === that.dataForm.address
})
if (repeatAdress.length > 0) {
if (result) {
this.$message.warning('当前页面已添加,请更换页面后重新添加')
return false
}
let oneObj = {}
oneObj.address = this.dataForm.address
oneObj.title = this.dataForm.title
oneObj.tag = this.dataForm.tag
oneObj.firstClass = this.selCategory.firstClass
oneObj.firstId = this.selCategory.firstId
oneObj.secondClass = this.selCategory.secondClass
oneObj.secondId = this.selCategory.secondId
oneObj.thirdClass = this.selCategory.thirdClass
oneObj.thirdId = this.selCategory.thirdId
this.itemTableData.push(oneObj)
},
deleteItem (index) {
this.itemTableData.splice(index, 1)
},
getItemList () {
return this.itemTableData
},
@ -296,6 +311,9 @@ export default {
tag: '',
title: ''
}
this.templateRadio = ''
this.addressList = []
this.categoryList = []
this.itemTableData = []
this.selCategory = {}
},

19
epmet-oper-web/src/views/modules/customer-manage/RegisterList.vue

@ -48,13 +48,10 @@ export default {
name: '' //
},
//
tableUrl: '/third/pacustomer/registerinfo',
tableUrl: 'https://epmet-cloud.elinkservice.cn/api/third/pacustomer/registerinfo',
// tableUrl: 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/third/pacustomer/registerinfo',
tableParams: {
type: Object, // table
default () {
return {}
}
source: this.env
},
//
operations: [
@ -155,13 +152,15 @@ export default {
})
},
mounted () {
this.tableParams.source = this.env
// eslint-disable-next-line
this.loadData()
},
computed: {
tableHeight () {
return this.clientHeight - 60 - 80 - 80 - 50
},
...mapGetters(['clientHeight'])
...mapGetters(['clientHeight', 'env'])
},
methods: {
//
@ -188,12 +187,12 @@ export default {
},
//
commitCode (row) {
const customerUrl = '/third/pacustomer/registerbyauth'
// const customerUrl = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/third/pacustomer/registerbyauth'
const customerUrl = 'https://epmet-cloud.elinkservice.cn/api/third/pacustomer/registerbyauth'
const param = {
// initState: 1,
// workAuth: 1,
// resiAuth: 1,
workAuth: 1
source: this.env,
initState: 1
}
this.startLoading()
window.app.ajax.post(customerUrl, param,

Loading…
Cancel
Save