|
|
@@ -60,7 +60,10 @@ |
|
|
|
@updateModelValue="handleDescriptionData" |
|
|
|
/> --> |
|
|
|
|
|
|
|
<equityDescription v-model="crudRef.form['productIntro']" v-if="equityDescriptionShow"/> |
|
|
|
<equityDescription |
|
|
|
v-model="crudRef.form['productIntro']" |
|
|
|
v-if="equityDescriptionShow" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
<template #descriptionInfo> |
|
|
|
<!-- <equityDescription |
|
|
@@ -71,6 +74,15 @@ |
|
|
|
查看简介 |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
<template #operation="{ scope }"> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
size="small" |
|
|
|
@click.stop="handleLabels(scope.row)" |
|
|
|
> |
|
|
|
标签 |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</crud-template> |
|
|
|
<!-- 审核接口 --> |
|
|
|
<el-dialog v-model="check" width="30%" title="审核"> |
|
|
@@ -93,9 +105,20 @@ |
|
|
|
<el-radio label="1">审核不通过</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="审核原因" prop="examineDes" v-if="autdis.examine == '1'"> |
|
|
|
<el-input v-trim clearable type="textarea" v-model="autdis.examineDes" :placeholder="`审核不通过原因`" |
|
|
|
maxlength="200" show-word-limit></el-input> |
|
|
|
<el-form-item |
|
|
|
label="审核原因" |
|
|
|
prop="examineDes" |
|
|
|
v-if="autdis.examine == '1'" |
|
|
|
> |
|
|
|
<el-input |
|
|
|
v-trim |
|
|
|
clearable |
|
|
|
type="textarea" |
|
|
|
v-model="autdis.examineDes" |
|
|
|
:placeholder="`审核不通过原因`" |
|
|
|
maxlength="200" |
|
|
|
show-word-limit |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<template #footer> |
|
|
@@ -106,31 +129,34 @@ |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
<descriptionInfoDialog v-model="isdescriptionInfoShow" :crudRef="crudRef" /> |
|
|
|
<labelsDialog v-model="isLabelsShow" :labelsList="labelsList" :currentLabel='currentLabel' |
|
|
|
@getLabelsList="getLabels" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<!-- 单项权益管理 --> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { ref, toRaw, onMounted, computed, onBeforeMount, onActivated,nextTick } from 'vue' |
|
|
|
import { |
|
|
|
ref, |
|
|
|
toRaw, |
|
|
|
onMounted, |
|
|
|
computed, |
|
|
|
onBeforeMount, |
|
|
|
onActivated, |
|
|
|
nextTick, |
|
|
|
} from 'vue' |
|
|
|
// @ts-ignore crudFrom模板 |
|
|
|
import CrudTemplate from '@/crud/index.vue' |
|
|
|
import $storeinitData from '@/store/initData' //引入tab vuex |
|
|
|
import BaseService from '@/utils/baseService' //引入接口请求 |
|
|
|
import { ElMessage } from 'element-plus' //提示 |
|
|
|
import { |
|
|
|
singleInterestList, |
|
|
|
singleInterestEdit, |
|
|
|
singleInterestAdd, |
|
|
|
interestedPartyList, |
|
|
|
singleInterestDel, |
|
|
|
singleInterestAudit, |
|
|
|
singleInterestStart, |
|
|
|
deductionChannel, |
|
|
|
} from '@/api/onlineBusinessHall/productManagement' |
|
|
|
|
|
|
|
import { useRoute } from 'vue-router' |
|
|
|
import { IsPermission } from '@/router/routerUtil' |
|
|
|
import moment from 'moment' |
|
|
|
import descriptionInfoDialog from './components/descriptionInfoDialog.vue' |
|
|
|
import equityDescription from './components/equityDescription.vue' |
|
|
|
import labelsDialog from './components/labelsDialog.vue' |
|
|
|
import { msgConfirm, typeTy } from '@/utils/msg' |
|
|
|
//或取路由传入过来的对象数据 |
|
|
|
const route = useRoute() |
|
|
@@ -180,13 +206,12 @@ const searchForm = ref({ |
|
|
|
let tableData: any = ref([]) |
|
|
|
const typeOption = ref('') |
|
|
|
onActivated(() => { |
|
|
|
console.log('onActivated内层'); |
|
|
|
console.log('onActivated内层') |
|
|
|
getAgenCy() |
|
|
|
getEquity() |
|
|
|
equityDescriptionShow.value = false |
|
|
|
nextTick(() => { |
|
|
|
equityDescriptionShow.value = true |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
onMounted(() => { |
|
|
@@ -201,6 +226,29 @@ function handleEdit(idx: any, row: any) { |
|
|
|
function handleInfo(value, row) { |
|
|
|
customSelectorSelection(row.validityFormat, validityFormat, {}) |
|
|
|
} |
|
|
|
function handleLabels(item) { |
|
|
|
console.log(item, 'label数据') |
|
|
|
isLabelsShow.value = true |
|
|
|
currentLabel.value = item |
|
|
|
|
|
|
|
getLabels() |
|
|
|
} |
|
|
|
const labelsList = ref([]) |
|
|
|
const isLabelsShow = ref(false) |
|
|
|
const currentLabel = ref({}) |
|
|
|
function getLabels() { |
|
|
|
BaseService.post('/managew/api/equity/single/getLabel', { |
|
|
|
id: currentLabel.value.id, |
|
|
|
}).then((res: any) => { |
|
|
|
if (res && res.statusCode === 0) { |
|
|
|
let data = res.data.labels || [] |
|
|
|
console.log(data, 'label数据') |
|
|
|
labelsList.value = data |
|
|
|
} else { |
|
|
|
ElMessage.error(res.message) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
const equityDescriptionShow = ref(true) //修改 |
|
|
|
// 新增 |
|
|
|
function add() { |
|
|
@@ -515,7 +563,7 @@ function getList() { |
|
|
|
//数据转换 |
|
|
|
let bizContent = res.data |
|
|
|
let data = bizContent.data || [] |
|
|
|
console.log(data,'数据'); |
|
|
|
console.log(data, '数据') |
|
|
|
data.forEach((item) => { |
|
|
|
if (item.cardType) { |
|
|
|
item.cardType = item.cardType.map((i) => i.toString()) |