fix
This commit is contained in:
@@ -64,8 +64,9 @@
|
||||
refuse
|
||||
</div>
|
||||
</div>
|
||||
<div v-else-if="column?.Operations">
|
||||
{{ record.status }}
|
||||
<div v-else-if="column?.Operations" class="operate_list">
|
||||
<div class="operate_item">{{ record.status }}</div>
|
||||
<div class="operate_item" @click="editAffiliate(record)">Edit</div>
|
||||
</div>
|
||||
<div v-else-if="column?.openType" @click="openDetail(record,column?.openType)">
|
||||
{{ text }} HDK
|
||||
@@ -74,6 +75,7 @@
|
||||
</a-table>
|
||||
</div>
|
||||
<itemAffiliateDetail ref="itemAffiliateDetail"></itemAffiliateDetail>
|
||||
<editAudit ref="editAudit"></editAudit>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
@@ -81,9 +83,10 @@ import { defineComponent, ref, createVNode, computed } from "vue";
|
||||
import { Https } from "@/tool/https";
|
||||
import { Modal, message } from "ant-design-vue";
|
||||
import itemAffiliateDetail from "./itemAffiliateDetail.vue";
|
||||
import editAudit from "./editAudit.vue";
|
||||
export default defineComponent({
|
||||
components: {
|
||||
itemAffiliateDetail,
|
||||
itemAffiliateDetail,editAudit
|
||||
},
|
||||
setup() {
|
||||
let renameData: any = ref({}); //修改名字选中的数据
|
||||
@@ -199,6 +202,7 @@ export default defineComponent({
|
||||
},
|
||||
])
|
||||
const itemAffiliateDetail = ref()
|
||||
const editAudit = ref()
|
||||
let collectionList: any = ref([]);
|
||||
let status: any = ref(0);
|
||||
const openDetail = (value:any,openType:string)=>{
|
||||
@@ -208,6 +212,9 @@ export default defineComponent({
|
||||
}
|
||||
itemAffiliateDetail.value.init(data)
|
||||
}
|
||||
const editAffiliate = (item:any)=>[
|
||||
editAudit.value.init(item)
|
||||
]
|
||||
return {
|
||||
columns,
|
||||
collectionList,
|
||||
@@ -217,6 +224,8 @@ export default defineComponent({
|
||||
itemAffiliateDetail,
|
||||
state,
|
||||
openDetail,
|
||||
editAudit,
|
||||
editAffiliate,
|
||||
};
|
||||
},
|
||||
data() {
|
||||
|
||||
@@ -0,0 +1,182 @@
|
||||
<template>
|
||||
<div class="editAudit" ref="editAudit"></div>
|
||||
<a-modal
|
||||
class="editAudit_modal generalModel"
|
||||
v-model:visible="operationsModal"
|
||||
:footer="null"
|
||||
:get-container="() => $refs.editAudit"
|
||||
width="50%"
|
||||
height="55rem"
|
||||
:maskClosable="false"
|
||||
:centered="true"
|
||||
:closable="false"
|
||||
:mask="true"
|
||||
wrapClassName="#app"
|
||||
:keyboard="false"
|
||||
>
|
||||
<div class="generalModel_btn">
|
||||
<div class="generalModel_closeIcon" @click.stop="cancelDsign">
|
||||
<svg
|
||||
width="100%" height="100%"
|
||||
viewBox="0 0 46 46"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<circle cx="23" cy="23" r="23" fill="black" fill-opacity="0.3" />
|
||||
<rect
|
||||
x="32.5063"
|
||||
y="12"
|
||||
width="3"
|
||||
height="29"
|
||||
rx="1.5"
|
||||
transform="rotate(45 32.5063 12)"
|
||||
fill="white"
|
||||
/>
|
||||
<rect
|
||||
x="34.6274"
|
||||
y="32.5059"
|
||||
width="3"
|
||||
height="29"
|
||||
rx="1.5"
|
||||
transform="rotate(135 34.6274 32.5059)"
|
||||
fill="white"
|
||||
/>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal_title_text">
|
||||
<div>{{ title }} </div>
|
||||
</div>
|
||||
<div class="allUserPoeration_center admin_page">
|
||||
<div class="admin_state_item">
|
||||
<span>Commission: <span>*</span></span>
|
||||
<input
|
||||
v-model="commission"
|
||||
placeholder="Please enter Commission"
|
||||
type="text"
|
||||
style="width: 250px"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="allUserPoeration_btn admin_page">
|
||||
<div class="admin_search_item" @click="cancelDsign">Close</div>
|
||||
<div class="admin_search_item" @click="setOk">OK</div>
|
||||
</div>
|
||||
</a-modal>
|
||||
<div class="mark_loading" v-show="loadingShow">
|
||||
<a-spin size="large" />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
defineComponent,
|
||||
ref,
|
||||
reactive,
|
||||
watch,
|
||||
onMounted,
|
||||
nextTick,
|
||||
toRefs,
|
||||
} from "vue";
|
||||
import { Https } from "@/tool/https";
|
||||
import { Modal, message } from "ant-design-vue";
|
||||
import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
|
||||
import md5 from "md5";
|
||||
export default defineComponent({
|
||||
components: {},
|
||||
emits: ["searchHistoryList"],
|
||||
props:{
|
||||
},
|
||||
setup(props, { emit }) {
|
||||
let operations = reactive({
|
||||
operationsModal: false,
|
||||
loadingShow: false,
|
||||
title: "",
|
||||
});
|
||||
let operationsData = reactive({
|
||||
id: "",
|
||||
commission: "",
|
||||
});
|
||||
let init = (data) => {
|
||||
let funStr = 'Edit'
|
||||
console.log(data)
|
||||
operations.operationsModal = true;
|
||||
operations.title = funStr;
|
||||
if (funStr == "Edit") {
|
||||
operationsData.id = data.id;
|
||||
operationsData.commission = data.commissionPercent;
|
||||
}
|
||||
};
|
||||
|
||||
let setEditData = () => {
|
||||
return {
|
||||
id: operationsData.id,
|
||||
commission: operationsData.commission,
|
||||
};
|
||||
};
|
||||
let cancelDsign = () => {
|
||||
operationsData.id = "";
|
||||
operationsData.commission = "";
|
||||
operations.operationsModal = false;
|
||||
};
|
||||
let setOk = () => {
|
||||
let data;
|
||||
data = setEditData();
|
||||
if (
|
||||
!data.commission
|
||||
)
|
||||
return message.warning("Please check the input box marked with *");
|
||||
Https.axiosGet(Https.httpUrls.updateCommission, {params:data}).then(
|
||||
(rv) => {
|
||||
if (rv) {
|
||||
cancelDsign();
|
||||
emit("searchHistoryList");
|
||||
}
|
||||
}
|
||||
);
|
||||
};
|
||||
return {
|
||||
...toRefs(operations),
|
||||
...toRefs(operationsData),
|
||||
cancelDsign,
|
||||
init,
|
||||
setOk,
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
mounted() {},
|
||||
methods: {},
|
||||
});
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
:deep(.editAudit_modal) {
|
||||
.ant-modal-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style lang="less" scoped>
|
||||
.editAudit_modal {
|
||||
.closeIcon {
|
||||
z-index: 2;
|
||||
}
|
||||
.allUserPoeration_btn {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: auto;
|
||||
justify-content: flex-end;
|
||||
padding: 1rem 0;
|
||||
.admin_search_item {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
.allUserPoeration_center {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -50,15 +50,18 @@
|
||||
<div class="allUserPoeration_center admin_page">
|
||||
<div class="admin_state_item">
|
||||
<span>Id: <span>*</span></span>
|
||||
<!-- input不可编辑 -->
|
||||
|
||||
<input
|
||||
v-model="id"
|
||||
placeholder="Please enter user name"
|
||||
placeholder="Please enter user Id"
|
||||
disabled
|
||||
type="text"
|
||||
style="width: 250px"
|
||||
/>
|
||||
</div>
|
||||
<div class="admin_state_item">
|
||||
<span>Amount: <span>*</span></span>
|
||||
<span>Amount: </span>
|
||||
<input
|
||||
v-model="amount"
|
||||
placeholder="Please enter email"
|
||||
@@ -67,7 +70,7 @@
|
||||
/>
|
||||
</div>
|
||||
<div class="admin_state_item">
|
||||
<span>Status: <span>*</span></span>
|
||||
<span>Status: </span>
|
||||
<a-select
|
||||
v-model:value="selectStatus"
|
||||
size="large"
|
||||
@@ -159,11 +162,9 @@ export default defineComponent({
|
||||
let data;
|
||||
data = setEditData();
|
||||
if (
|
||||
!data.id ||
|
||||
!data.amount
|
||||
!data.id
|
||||
)
|
||||
return message.warning("Please check the input box marked with *");
|
||||
console.log(123)
|
||||
Https.axiosPost(Https.httpUrls.editReferral, data).then(
|
||||
(rv) => {
|
||||
if (rv) {
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
<editReferral ref="editReferral" :stateList="[...state].splice(1,state.length-1)" @searchHistoryList="searchHistoryList"></editReferral>
|
||||
<editReferral ref="editReferral" :stateList="[...state].filter((_, index) => ![0,3].includes(index))" @searchHistoryList="searchHistoryList"></editReferral>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
@@ -175,8 +175,8 @@ export default defineComponent({
|
||||
value:'Pending',
|
||||
},
|
||||
{
|
||||
label:'Access',
|
||||
value:'Access',
|
||||
label:'Accept',
|
||||
value:'Accept',
|
||||
},
|
||||
{
|
||||
label: "Rejected",
|
||||
@@ -200,7 +200,12 @@ export default defineComponent({
|
||||
dataIndex: "commission",
|
||||
key: "commission",
|
||||
width:200,
|
||||
ellipsis:true
|
||||
ellipsis:true,
|
||||
customRender: (record: any) => {
|
||||
|
||||
return `${record.text}%`
|
||||
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "User Name",
|
||||
|
||||
Reference in New Issue
Block a user