zx 3 years ago
parent 7e00aa636d
commit 8ba800211f

@ -75,7 +75,7 @@
</template>
<script>
import {defineComponent, reactive, watch, getCurrentInstance} from 'vue'
import {defineComponent, reactive, ref, watch, getCurrentInstance} from 'vue'
import {groupFormatter} from './config.js'
export default defineComponent({
name: 'v-questList',
@ -94,6 +94,7 @@ export default defineComponent({
brandData: [],
groupData: [],
});
const selectedKeys = ref([]);
const { proxy } = getCurrentInstance();
const pagination = reactive({
total: 0,
@ -103,7 +104,7 @@ export default defineComponent({
return {
form,proxy,
apiData,tableData,
pagination,
pagination,selectedKeys,
groupFormatter
}
},
@ -156,7 +157,7 @@ export default defineComponent({
index.forEach(ele => {
arr.push(ele.id)
});
console.log(arr)
this.selectedKeys = arr;
},
goRelease() {
this.$router.push({ name: "MatUpload" })
@ -167,18 +168,28 @@ export default defineComponent({
//
singleDel(id) {
this.$alert(
'是否删除'+id+'?', //
'是否删除?', //
'删除', //
{type: 'warning'}
).then(() => {
this.proxy.$post("/reference/del", {id: id}).then(res => {
this.proxy.$post("/reference/del", {idList: [id]}).then(res => {
this.getData();
this.$message.success(res.data);
}).catch(() => {});
}).catch(() => {})
},
multiDel() {
this.$alert(
'是否删除选中的素材?', //
'删除', //
{type: 'warning'}
).then(() => {
this.proxy.$post("/reference/del", {idList: this.selectedKeys}).then(res => {
this.getData();
this.$message.success(res.data);
this.selectedKeys = [];
}).catch(() => {});
}).catch(() => {})
}
}
})

@ -23,7 +23,8 @@
<el-table-column prop="points" label="积分"></el-table-column>
<el-table-column prop="action" label="操作" fixed="right" width="240">
<template #default="scope">
<el-link type="primary" @click="changePoint(scope.row.id)"></el-link>
<el-link type="primary" @click="pointDetail(scope.row.id)"></el-link>
<el-link type="primary" style="margin-left: 8px" @click="changePoint(scope.row.id)"></el-link>
</template>
</el-table-column>
</el-table>
@ -56,6 +57,21 @@
<el-button @click="editComfirm" type="primary">确定</el-button>
</template>
</el-dialog>
<el-drawer v-model="detailVisible" title="积分明细">
<el-table :data="detailData" size="default">
<el-table-column prop="createDate" width="200" label="日期"></el-table-column>
<el-table-column prop="settlementMethodDSC" label="明细">
<template #default="scope">
{{scope.row.settlementMethodDSC}}{{scope.row.points}}
</template>
</el-table-column>
<el-table-column prop="typeDSC" label="类型"></el-table-column>
<el-table-column prop="remarks" label="备注"></el-table-column>
</el-table>
<template #footer>
<el-button type="primary" @click="detailVisible = false" size="default">确定</el-button>
</template>
</el-drawer>
</div>
</template>
@ -78,6 +94,8 @@ export default defineComponent({
const tableData = reactive({
data: [],
});
const detailData = ref([]);
const detailVisible = ref(false);
const pagination = reactive({
total: 0,
current: 1,
@ -88,6 +106,7 @@ export default defineComponent({
return {
form,proxy,setForm,
tableData,pagination,editVisible,
detailData,detailVisible,
statusFormatter
}
},
@ -146,6 +165,17 @@ export default defineComponent({
this.proxy.$download("/user/excel", this.form, '员工积分列表.xlsx').then(res => {
}).catch(() => {});
},
//
pointDetail(value) {
this.proxy.$post("/user/pointsRecords", {userId: value}).then(res => {
if(res.code == 200) {
this.detailData = res.data.records;
this.detailVisible = true;
} else {
this.$message.error(res.msg)
}
}).catch(() => {});
}
}
})

@ -19,12 +19,16 @@
<el-form-item label="任务标题">
<el-input v-model="form.taskTitle" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="时间范围">
<el-date-picker value-format="YYYY-MM-DD HH:mm:ss" @change="timeChange" v-model="selTime" type="daterange"></el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="confirm"> </el-button>
<el-button @click="reset"> </el-button>
</el-form-item>
</el-form>
</div>
<el-button size="default" type="primary" @click="download"></el-button>
<div class="area-table">
<el-table :data="tableData.data" size="default" border :header-cell-style="{background: '#EEE'}">
<el-table-column prop="providerName" label="申请人" width="200"></el-table-column>
@ -119,8 +123,10 @@ export default defineComponent({
const form = reactive({
status: 1,
departmentId: undefined,
providerName: '',
taskTitle: '',
providerName: undefined,
taskTitle: undefined,
beginTime: undefined,
endTime: undefined,
});
const reviewForm = reactive({
id: undefined,
@ -141,6 +147,7 @@ export default defineComponent({
current: 1,
pageSize: 10
})
const selTime = ref([]);
const transformValue = ref(0)
const platformType = ref(1);
const departmentList = ref([]);
@ -148,7 +155,7 @@ export default defineComponent({
const reviewVisible = ref(false);
return {
form,reviewForm,pagination,proxy,platformType,transformValue,
tableData,departmentList,
tableData,departmentList,selTime,
statusFormatter,
reviewVisible
}
@ -188,8 +195,11 @@ export default defineComponent({
},
reset() {
this.form.departmentId = undefined;
this.form.providerName = '';
this.form.taskTitle = '';
this.form.providerName = undefined;
this.form.taskTitle = undefined;
this.form.beginTime = undefined;
this.form.endTime = undefined;
this.selTime = [];
this.getData();
},
//
@ -239,6 +249,27 @@ export default defineComponent({
this.proxy.$post("/video/cal", this.reviewForm).then(res => {
this.transformValue = res.data
}).catch(() => {});
},
//
timeChange(value) {
this.form.beginTime = value[0];
this.form.endTime = value[1];
},
//
download() {
let obj = {
status: this.form.status,
departmentId: this.form.departmentId,
}
let filename = '传播效果审核列表.xlsx';
if (this.form.status == 1) {
filename = '待审核列表.xlsx'
} else if (this.form.status == 2) {
filename = '审核通过列表.xlsx'
} else {
filename = '审核不通过列表.xlsx'
}
this.proxy.$download("/video/excel", obj, filename).then(() => {}).catch(() => {});
}
}
})

@ -24,7 +24,7 @@
</el-table-column>
<el-table-column prop="cover" label="封面" >
<template #default="scope">
<img style="width: 200px;height: 90px" :src="$ImgUrl(scope.row.cover)" />
<img style="width: 160px;height: 120px" :src="$ImgUrl(scope.row.cover)" />
</template>
</el-table-column>
<el-table-column prop="action" label="操作" fixed="right" width="240">

Loading…
Cancel
Save