|
|
@@ -1238,6 +1238,28 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</a-card>
|
|
|
+ <a-card v-if='isPhoneshow' ref="floatButton"
|
|
|
+ class="float-infoPhone">
|
|
|
+ <div class="clearfix">
|
|
|
+ <a-upload
|
|
|
+ list-type="picture-card"
|
|
|
+ :file-list="phoneList"
|
|
|
+ @preview="handlePreview"
|
|
|
+ @change="handleChange"
|
|
|
+ >
|
|
|
+ </a-upload>
|
|
|
+ <a-modal :visible="previewVisible" :footer="null" @cancel="handleCancel">
|
|
|
+ <img alt="example" style="width: 100%" :src="previewImage" />
|
|
|
+ </a-modal>
|
|
|
+ </div>
|
|
|
+ </a-card>
|
|
|
+ <div @click='showPhone'
|
|
|
+ ref="floatButton"
|
|
|
+ class="float-info"
|
|
|
+ :style="{'width': 80 + 'px', 'height': 80 + 'px', 'left': 90+'%' , 'top': 80 + '%'}"
|
|
|
+ >
|
|
|
+ <a-icon type="folder-add" :style="{ fontSize: '30px', color: '#08c' }"/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
@@ -1251,7 +1273,14 @@ import {snippetsOutlined, StarFilled, StarTwoTone} from '@ant-design/icons-vue';
|
|
|
import noDataPng from '@/assets/nodata.png'
|
|
|
|
|
|
let Base64 = require('js-base64').Base64
|
|
|
-
|
|
|
+function getBase64(file) {
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ const reader = new FileReader();
|
|
|
+ reader.readAsDataURL(file);
|
|
|
+ reader.onload = () => resolve(reader.result);
|
|
|
+ reader.onerror = error => reject(error);
|
|
|
+ });
|
|
|
+}
|
|
|
export default {
|
|
|
name: "TaskUploadData",
|
|
|
mixins: [JeecgListMixin],
|
|
|
@@ -1259,6 +1288,11 @@ export default {
|
|
|
components: {noDataPng},
|
|
|
data() {
|
|
|
return {
|
|
|
+ btnStyle:{
|
|
|
+ "fontSize":'small',
|
|
|
+ "top":'60vh',
|
|
|
+ "left":'90vw'
|
|
|
+ },
|
|
|
rules:{
|
|
|
scene: [
|
|
|
{required: true, message: '必须输入'},
|
|
|
@@ -1428,6 +1462,8 @@ export default {
|
|
|
//弹窗
|
|
|
previewImage: "",
|
|
|
previewVisible: false,
|
|
|
+ isPhoneshow:false,
|
|
|
+ phoneList:'',
|
|
|
url: {
|
|
|
"getTask":"/smsTurck/customerData/query/getTask",
|
|
|
"getInfoDataById": "/smsCheck/customerInfo/queryById",
|
|
|
@@ -1734,6 +1770,36 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleCancel() {
|
|
|
+ this.previewVisible = false;
|
|
|
+ },
|
|
|
+ async handlePreview(file) {
|
|
|
+ if (!file.url && !file.preview) {
|
|
|
+ file.preview = await getBase64(file.originFileObj);
|
|
|
+ }
|
|
|
+ this.previewImage = file.url || file.preview ||file.urlBase ;
|
|
|
+ this.previewVisible = true;
|
|
|
+ },
|
|
|
+ handleChange({ fileList }) {
|
|
|
+ this.fileList = fileList;
|
|
|
+ },
|
|
|
+ showPhone(){
|
|
|
+ if (this.isPhoneshow===false){
|
|
|
+ this.isPhoneshow = true;
|
|
|
+ }else {
|
|
|
+ this.isPhoneshow = false;
|
|
|
+ }
|
|
|
+
|
|
|
+ var data = {
|
|
|
+ customerNo: this.infoModel.customerNo,
|
|
|
+ }
|
|
|
+ getAction('/smsCheck/customerInfo/phone/customerPhone', data).then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ this.phoneList=JSON.parse(res.result);
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
backDate(name){
|
|
|
if (name==='contractDate'){
|
|
|
this.infoModel.contractDateIs="1"
|
|
|
@@ -2328,6 +2394,39 @@ h3 {
|
|
|
//margin-top:-20px;/*设置有序列表项之间的间隔*/
|
|
|
font-size:13px;
|
|
|
}
|
|
|
+.float-info{
|
|
|
+ box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
|
|
|
+ transition: all 0.3s;
|
|
|
+ position: fixed;
|
|
|
+ bottom: 50px;
|
|
|
+ right: 30px;
|
|
|
+ width: 55px;
|
|
|
+ height: 55px;
|
|
|
+ display: flex;
|
|
|
+ flex-flow: column;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ z-index: 999;
|
|
|
+ background: #b3d4fc;
|
|
|
+ border-radius: 50%;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
+.float-infoPhone{
|
|
|
+ margin-bottom:10px;
|
|
|
+ float: left;
|
|
|
+ right: 11%;
|
|
|
+ box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
|
|
|
+ transition: all 0.3s;
|
|
|
+ position: fixed;
|
|
|
+ bottom:3%;
|
|
|
+ display: flex;
|
|
|
+ flex-flow: column;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ z-index: 999;
|
|
|
+ //background: #b3d4fc;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
</style>
|
|
|
|
|
|
|