|
|
@ -1,6 +1,6 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div class="u-flex" style="align-items: normal">
|
|
|
|
<div v-if="user.roles[0].level == 5" class="u-flex" style="align-items: normal">
|
|
|
|
<div class="app-container flex-1" style="margin-bottom: 0;margin-right: 10px;">
|
|
|
|
<div class="app-container flex-1" style="margin-bottom: 0;margin-right: 10px;">
|
|
|
|
<div class="margin-auto">
|
|
|
|
<div class="margin-auto">
|
|
|
|
<el-upload
|
|
|
|
<el-upload
|
|
|
@ -22,6 +22,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div slot="tip" class="el-upload__tip">
|
|
|
|
<div slot="tip" class="el-upload__tip">
|
|
|
|
只能上传.xls,.xlsx文件,且不超过100M
|
|
|
|
只能上传.xls,.xlsx文件,且不超过100M
|
|
|
|
|
|
|
|
<a href="https://baiyee.vip/file/exchange.xlsx" class="link-type pl-5">模板下载</a><br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-upload>
|
|
|
|
</el-upload>
|
|
|
|
<div class="line-text">
|
|
|
|
<div class="line-text">
|
|
|
@ -33,7 +34,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mb-10 u-flex">
|
|
|
|
<div class="mb-10 u-flex">
|
|
|
|
<label>方式类型:</label>
|
|
|
|
<label>方式类型:</label>
|
|
|
|
<el-select v-model="uploadType" size="small" class="filter-item" clearable placeholder="请选择状态">
|
|
|
|
<el-select v-model="uploadType" size="small" class="filter-item" clearable placeholder="请选择类型">
|
|
|
|
<el-option v-for="(item, index) in uploadTypeList" :key="index" :label="item.key" :value="item.value" />
|
|
|
|
<el-option v-for="(item, index) in uploadTypeList" :key="index" :label="item.key" :value="item.value" />
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -73,9 +74,9 @@
|
|
|
|
class="filter-item"
|
|
|
|
class="filter-item"
|
|
|
|
@keyup.enter.native="crud.toQuery"
|
|
|
|
@keyup.enter.native="crud.toQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<el-select v-model="query.recordStatus" size="small" class="filter-item" style="width: 130px" clearable placeholder="请选择状态" @change="crud.toQuery">
|
|
|
|
<!-- <el-select v-if="user.roles[0].level == 5" v-model="query.recordStatus" size="small" class="filter-item" style="width: 130px" clearable placeholder="请选择状态" @change="crud.toQuery">
|
|
|
|
<el-option v-for="(item, index) in statusList" :key="index" :label="item.key" :value="item.value" />
|
|
|
|
<el-option v-for="(item, index) in statusList" :key="index" :label="item.key" :value="item.value" />
|
|
|
|
</el-select>
|
|
|
|
</el-select> -->
|
|
|
|
<rrOperation />
|
|
|
|
<rrOperation />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--表格渲染-->
|
|
|
|
<!--表格渲染-->
|
|
|
@ -86,6 +87,52 @@
|
|
|
|
:header-cell-style="{ 'text-align': 'left' }"
|
|
|
|
:header-cell-style="{ 'text-align': 'left' }"
|
|
|
|
style="width: 100%;"
|
|
|
|
style="width: 100%;"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-table-column type="expand">
|
|
|
|
|
|
|
|
<template slot-scope="props">
|
|
|
|
|
|
|
|
<el-table :data="props.row.treeList" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}" style="width: 100%;">
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
|
|
prop="tagStr"
|
|
|
|
|
|
|
|
label="tag值"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
|
|
prop="uploadNum"
|
|
|
|
|
|
|
|
label="上传数量"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
|
|
prop="analysisNum"
|
|
|
|
|
|
|
|
label="解析数量"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
|
|
prop="recordStatus"
|
|
|
|
|
|
|
|
width="110"
|
|
|
|
|
|
|
|
label="状态"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<span>{{ statecCmparison('statusList', scope.row.recordStatus) }}</span>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="user.roles[0].level == 1"
|
|
|
|
|
|
|
|
width="75"
|
|
|
|
|
|
|
|
label="操作"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
slot="reference"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
:disabled="scope.row.recordStatus !== 1"
|
|
|
|
|
|
|
|
@click="openModeling(scope.row, 'single')"
|
|
|
|
|
|
|
|
>建模</el-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column :show-overflow-tooltip="true" prop="id" label="ID" width="35" />
|
|
|
|
<el-table-column :show-overflow-tooltip="true" prop="id" label="ID" width="35" />
|
|
|
|
<el-table-column
|
|
|
|
<el-table-column
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
@ -122,7 +169,7 @@
|
|
|
|
<span>{{ statecCmparison('uploadTypeList', scope.row.recordType) }}</span>
|
|
|
|
<span>{{ statecCmparison('uploadTypeList', scope.row.recordType) }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column
|
|
|
|
<!-- <el-table-column
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
prop="recordStatus"
|
|
|
|
prop="recordStatus"
|
|
|
|
width="110"
|
|
|
|
width="110"
|
|
|
@ -131,6 +178,28 @@
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<span>{{ statecCmparison('statusList', scope.row.recordStatus) }}</span>
|
|
|
|
<span>{{ statecCmparison('statusList', scope.row.recordStatus) }}</span>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column> -->
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
|
|
v-if="user.roles[0].level == 1"
|
|
|
|
|
|
|
|
width="120"
|
|
|
|
|
|
|
|
label="操作"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
slot="reference"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
:disabled="scope.row.treeList == null || scope.row.treeList.filter(item => item.recordStatus == 1).length == 0"
|
|
|
|
|
|
|
|
@click="openModeling(scope.row, 'multiple')"
|
|
|
|
|
|
|
|
>多选建模</el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
slot="reference"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
:disabled="!scope.row.downUrl"
|
|
|
|
|
|
|
|
@click="downFile(scope.row)"
|
|
|
|
|
|
|
|
>下载</el-button>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<template #empty>
|
|
|
|
<template #empty>
|
|
|
|
<div style="width: 100%; height: 450px;display: flex; flex-direction: column; justify-content: center;align-items: center">
|
|
|
|
<div style="width: 100%; height: 450px;display: flex; flex-direction: column; justify-content: center;align-items: center">
|
|
|
@ -143,6 +212,33 @@
|
|
|
|
<pagination />
|
|
|
|
<pagination />
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<el-dialog title="建模创建" :visible.sync="dialogFormVisible" width="520px" @close="closeDialog">
|
|
|
|
|
|
|
|
<el-form ref="refForm" :model="modelingForm" label-width="80px">
|
|
|
|
|
|
|
|
<el-form-item v-if="selectModel == 'multiple'" label="tag" prop="ids" :rules="[{ required: true, message: '请选择tag'}]">
|
|
|
|
|
|
|
|
<el-select v-model="modelingForm.ids" multiple placeholder="请选择" style="width: 370px;">
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in selectTagList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
:label="item.tagStr"
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<span style="float: left">{{ item.tagStr }}</span>
|
|
|
|
|
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.analysisNum }}</span>
|
|
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="活动ID" prop="actId" :rules="[{ required: true, message: '请输入活动id'}]">
|
|
|
|
|
|
|
|
<el-input v-model="modelingForm.actId" autocomplete="off" style="width: 370px;" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="活动名称" prop="actName" :rules="[{ required: true, message: '请输入活动名称'}]">
|
|
|
|
|
|
|
|
<el-input v-model="modelingForm.actName" autocomplete="off" style="width: 370px;" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
|
<el-button type="text" @click="dialogFormVisible = false">取 消</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" @click="recordBuildFun">确 定</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -154,7 +250,8 @@ import DateRangePicker from '@/components/DateRangePicker'
|
|
|
|
import { getAdvertisingQualityScore } from '@/api/login.js'
|
|
|
|
import { getAdvertisingQualityScore } from '@/api/login.js'
|
|
|
|
import advertisingQualityscore from '@/components/Echarts/Radar'
|
|
|
|
import advertisingQualityscore from '@/components/Echarts/Radar'
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
modeUploadFiles
|
|
|
|
modeUploadFiles,
|
|
|
|
|
|
|
|
recordBuild
|
|
|
|
} from '@/api/index'
|
|
|
|
} from '@/api/index'
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
import { mapGetters } from 'vuex'
|
|
|
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
|
|
|
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
|
|
|
@ -183,6 +280,12 @@ export default {
|
|
|
|
taskValue: '',
|
|
|
|
taskValue: '',
|
|
|
|
uploadType: '',
|
|
|
|
uploadType: '',
|
|
|
|
uploading: false,
|
|
|
|
uploading: false,
|
|
|
|
|
|
|
|
dialogFormVisible: false,
|
|
|
|
|
|
|
|
modelingForm: {
|
|
|
|
|
|
|
|
ids: [],
|
|
|
|
|
|
|
|
actId: '',
|
|
|
|
|
|
|
|
actName: ''
|
|
|
|
|
|
|
|
},
|
|
|
|
uploadTypeList: [
|
|
|
|
uploadTypeList: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
key: '方式一',
|
|
|
|
key: '方式一',
|
|
|
@ -219,6 +322,8 @@ export default {
|
|
|
|
value: '3'
|
|
|
|
value: '3'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
selectModel: 'single',
|
|
|
|
|
|
|
|
selectTagList: [],
|
|
|
|
advertisingQualityScoreData: {} // 充值记录模块消费统计柱状图
|
|
|
|
advertisingQualityScoreData: {} // 充值记录模块消费统计柱状图
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -226,7 +331,9 @@ export default {
|
|
|
|
...mapGetters(['user', 'fileUpload'])
|
|
|
|
...mapGetters(['user', 'fileUpload'])
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
this.getAdvertisingQualityScoreData()
|
|
|
|
if (this.user.roles[0].level !== 1) {
|
|
|
|
|
|
|
|
this.getAdvertisingQualityScoreData()
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted: function() {
|
|
|
|
mounted: function() {
|
|
|
|
const that = this
|
|
|
|
const that = this
|
|
|
@ -235,6 +342,30 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
openModeling(row, type) {
|
|
|
|
|
|
|
|
this.selectModel = type
|
|
|
|
|
|
|
|
if (type === 'single') {
|
|
|
|
|
|
|
|
this.modelingForm.ids = [row.id]
|
|
|
|
|
|
|
|
} else if (type === 'multiple') {
|
|
|
|
|
|
|
|
this.selectTagList = row.treeList.filter(item => item.recordStatus === 1).sort((a, b) => a.analysisNum - b.analysisNum)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.dialogFormVisible = true
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
closeDialog() {
|
|
|
|
|
|
|
|
this.modelingForm.ids = []
|
|
|
|
|
|
|
|
this.$refs.refForm.resetFields()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
recordBuildFun() {
|
|
|
|
|
|
|
|
this.$refs.refForm.validate((valid) => {
|
|
|
|
|
|
|
|
if (valid) {
|
|
|
|
|
|
|
|
recordBuild(this.modelingForm).then(res => {
|
|
|
|
|
|
|
|
this.$message.success('操作成功')
|
|
|
|
|
|
|
|
this.dialogFormVisible = false
|
|
|
|
|
|
|
|
this.crud.resetQuery()
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
// 获取广告质量分
|
|
|
|
// 获取广告质量分
|
|
|
|
async getAdvertisingQualityScoreData() {
|
|
|
|
async getAdvertisingQualityScoreData() {
|
|
|
|
const res = await getAdvertisingQualityScore()
|
|
|
|
const res = await getAdvertisingQualityScore()
|
|
|
@ -244,6 +375,10 @@ export default {
|
|
|
|
this.$message.error(res.msg)
|
|
|
|
this.$message.error(res.msg)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 下载源文件
|
|
|
|
|
|
|
|
downFile(params) {
|
|
|
|
|
|
|
|
window.open(params.downUrl)
|
|
|
|
|
|
|
|
},
|
|
|
|
// 上传
|
|
|
|
// 上传
|
|
|
|
updtaFils(file) {
|
|
|
|
updtaFils(file) {
|
|
|
|
this.fileData.append('file', file.file)
|
|
|
|
this.fileData.append('file', file.file)
|
|
|
|