更新
This commit is contained in:
parent
f4156096c5
commit
07c9a72aa3
@ -34,10 +34,32 @@
|
|||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">
|
<template slot="label">
|
||||||
粉丝数量
|
主页链接
|
||||||
</template>
|
</template>
|
||||||
{{ form.tel }}
|
<a :href="form.indexUrl" target="_blank">{{ form.indexUrl }}</a>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item>
|
||||||
|
<template slot="label">
|
||||||
|
微信号
|
||||||
|
</template>
|
||||||
|
<el-tooltip content="点击复制" placement="top">
|
||||||
|
<el-button type="text" @click="copyToClipboard(form.wxNum)">
|
||||||
|
{{ form.wxNum }}
|
||||||
|
</el-button>
|
||||||
|
</el-tooltip>
|
||||||
|
</el-descriptions-item>
|
||||||
|
|
||||||
|
<el-descriptions-item>
|
||||||
|
<template slot="label">
|
||||||
|
联系方式
|
||||||
|
</template>
|
||||||
|
<el-tooltip content="点击复制" placement="top">
|
||||||
|
<el-button type="text" @click="copyToClipboard(form.tel)">
|
||||||
|
{{ form.tel }}
|
||||||
|
</el-button>
|
||||||
|
</el-tooltip>
|
||||||
|
</el-descriptions-item>
|
||||||
|
|
||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">
|
<template slot="label">
|
||||||
商单自报价
|
商单自报价
|
||||||
@ -62,7 +84,8 @@
|
|||||||
:rows="2"
|
:rows="2"
|
||||||
placeholder="无"
|
placeholder="无"
|
||||||
readonly
|
readonly
|
||||||
v-model="form.content">
|
v-model="form.content"
|
||||||
|
>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
@ -86,7 +109,8 @@
|
|||||||
v-for="item in statusOptions"
|
v-for="item in statusOptions"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value">
|
:value="item.value"
|
||||||
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -107,16 +131,16 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getCard,updateCard} from "@/api/member/busiCard";
|
import { getCard, updateCard } from '@/api/member/busiCard'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "BusiCardForm",
|
name: 'BusiCardForm',
|
||||||
props:{
|
props: {
|
||||||
/**是否详情 */
|
/**是否详情 */
|
||||||
isDetail: {
|
isDetail: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -135,7 +159,7 @@ export default {
|
|||||||
}, {
|
}, {
|
||||||
value: '9',
|
value: '9',
|
||||||
label: '不通过'
|
label: '不通过'
|
||||||
}],
|
}]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -168,43 +192,52 @@ export default {
|
|||||||
createTime: null,
|
createTime: null,
|
||||||
updater: null,
|
updater: null,
|
||||||
updateTime: null,
|
updateTime: null,
|
||||||
|
wxNum: null,
|
||||||
|
indexUrl: null,
|
||||||
delFlag: null
|
delFlag: null
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
/**取消按钮*/
|
/**取消按钮*/
|
||||||
cancel() {
|
cancel() {
|
||||||
this.drawer = false;
|
this.drawer = false
|
||||||
this.reset();
|
this.reset()
|
||||||
},
|
},
|
||||||
/** 查看名片片详情 */
|
/** 查看名片片详情 */
|
||||||
getCardById(id) {
|
getCardById(id) {
|
||||||
this.reset();
|
this.reset()
|
||||||
getCard({id:id}).then(response => {
|
getCard({ id: id }).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data
|
||||||
});
|
})
|
||||||
|
},
|
||||||
|
copyToClipboard(text) {
|
||||||
|
navigator.clipboard.writeText(text).then(() => {
|
||||||
|
this.$message.success('复制成功')
|
||||||
|
}).catch(() => {
|
||||||
|
this.$message.error('复制失败')
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs['form'].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateCard(this.form).then(response => {
|
updateCard(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("审核成功");
|
this.$modal.msgSuccess('审核成功')
|
||||||
this.drawer = false;
|
this.drawer = false
|
||||||
this.$emit('success')
|
this.$emit('success')
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
},
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
/deep/.el-drawer__header {
|
/deep/ .el-drawer__header {
|
||||||
-webkit-box-align: center;
|
-webkit-box-align: center;
|
||||||
-ms-flex-align: center;
|
-ms-flex-align: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -216,10 +249,12 @@ export default {
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
}
|
}
|
||||||
/deep/.el-card__body {
|
|
||||||
|
/deep/ .el-card__body {
|
||||||
padding: 5px 5px 5px 9px;
|
padding: 5px 5px 5px 9px;
|
||||||
}
|
}
|
||||||
/deep/.el-card__header {
|
|
||||||
|
/deep/ .el-card__header {
|
||||||
padding: 7px 5px 5px;
|
padding: 7px 5px 5px;
|
||||||
min-height: 35px;
|
min-height: 35px;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user