Browse Source

深i企登录

master
chenrui 3 years ago
parent
commit
033c368cf8
  1. 4
      src/api/Home.js
  2. 14
      src/views/Home.vue
  3. 8
      src/views/administrative/appointment.vue
  4. 2
      src/views/administrative/appointmentEdit.vue
  5. 22
      src/views/administrative/appointmentList.vue
  6. 2
      src/views/enforce/userFilter.vue
  7. 2
      src/views/enterprise/caseFilter.vue
  8. 17
      src/views/enterprise/enterpriseInspectionList.vue
  9. 2
      src/views/enterprise/registrationList.vue

4
src/api/Home.js

@ -10,3 +10,7 @@ export const getDict = (params, success, error) => _get("/system/dict/data/query
//查询用户关联企业授权信息
export const getEnterpriseMerchantAuthorization = (params, success, error) => _get("/code/authorization/queryList",params,success,error);
//深i企登录
export const getSiqLoginAuth = (params, success, error) => _get("/thirdLogin/siqLogin",params,success,error);

14
src/views/Home.vue

@ -47,12 +47,11 @@
</template>
<script setup name="Home">
import {getEnterpriseMerchantAuthorization} from '../api/Home';
import {getEnterpriseMerchantAuthorization,getSiqLoginAuth} from '@/api/Home';
const { useCommon } = $globalStore;
const router = useRouter();
const route = useRoute();
let carouselList = reactive([]); // 轮播列表
let boutique = reactive([]); // 精品数据
let recommend = reactive([]); // 推荐
let freshMap = reactive({
refreshLoad: false, // 是否刷新
listLoading: false, // 是否加载中
@ -122,7 +121,14 @@ const onLoad = () => {
};
onMounted(() => {
console.log(useCommon.phonenumber)
// console.log(useCommon.phonenumber)
// useCommon.SET_USER_PHONENUMBER(success.data.phonenumber);
// useCommon.SET_USER_ID(success.data.userId);
getSiqLoginAuth({userId:"",userName:""},success =>{
console.log(success.data)
},error =>{
})
getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber},success =>{
console.log(success)
if(!(success.data == null && success.data.length == 0)){

8
src/views/administrative/appointment.vue

@ -276,7 +276,7 @@ const dataFillIn = () => {
data.checkRequireText =success.data['params'].checkRequireText;
submitData.lawEnforcerText =success.data['lawEnforcer'];
submitData.lawEnforcerTextTwo =success.data['lawEnforcerTwo'];
showSuccessToast('保存成功');
// showSuccessToast('保存成功');
}
},error=>{
console.log("保存失败")
@ -284,7 +284,7 @@ const dataFillIn = () => {
}
const tmpSave = () => {
showSuccessToast('临时保存');
// showSuccessToast('临时保存');
addEnterpriseLawEnforcement(submitData,success =>{
//跳转企业二维码地址
if(success.success){
@ -300,7 +300,7 @@ const tmpSave = () => {
}
const submit112 = () =>{
showSuccessToast('登记成功');
// showSuccessToast('登记成功');
editEnterpriseLawEnforcement(submitData,success =>{
//跳转企业二维码地址
if(success.success){
@ -353,7 +353,7 @@ const getLinkageByParentIdToGA = (parentId) => {
//初始化参数,获取扫码的企业统一信用编码
onMounted(() =>{
// 数据填充
dataFillIn();
// dataFillIn();
//查询当前登录人员信息
queryUserInfo({},success =>{

2
src/views/administrative/appointmentEdit.vue

@ -278,7 +278,7 @@
data.checkRequireText =success.data['params'].checkRequireText;
submitData.lawEnforcerText =success.data['lawEnforcer'];
submitData.lawEnforcerTextTwo =success.data['lawEnforcerTwo'];
showSuccessToast('保存成功');
// showSuccessToast('保存成功');
}
},error=>{
console.log("保存失败")

22
src/views/administrative/appointmentList.vue

@ -225,10 +225,7 @@
const goAdd = () => {
router.push({
path: "/appointment",
query: {
enterpriseNumber: "123",
}
path: "/appointment"
});
}
@ -456,5 +453,22 @@ const formattedTime = (dateTime) =>{
right: 1%;
}
}
/deep/ .van-hairline--bottom {
margin: 0 0 2% 0;
height: 0;
background-color: transparent;
border: 1px;
}
/deep/ .card_box_span:first-child {
color: #c1bfbf;
}
/deep/ .card_box_span:nth-child(2) p {
font-size: 0.4rem;
font-weight: bold;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>

2
src/views/enforce/userFilter.vue

@ -51,7 +51,7 @@ export default {
}
},
created(){
this.queryList()
// this.queryList()
},
methods: {
closePopup() {

2
src/views/enterprise/caseFilter.vue

@ -108,8 +108,8 @@
</div>
</div>
</template>
<script>
import { ref } from 'vue'
import {queryRegistrationList} from '../../api/enterprise'
import {queryLinkageDictByValueAndParentId,queryLinkage,queryLinkageById} from '@/api/linkage'

17
src/views/enterprise/enterpriseInspectionList.vue

@ -418,5 +418,22 @@ const cancelSelectDate = () =>{
right: 1%;
}
}
/deep/ .van-hairline--bottom {
margin: 0 0 2% 0;
height: 0;
background-color: transparent;
border: 1px;
}
/deep/ .card_box_span:first-child {
color: #c1bfbf;
}
/deep/ .card_box_span:nth-child(2) p {
font-size: 0.4rem;
font-weight: bold;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>

2
src/views/enterprise/registrationList.vue

@ -63,7 +63,7 @@
<div style="border-color: aqua; border: 2px;" class="van-hairline--bottom"></div>
<div @click="toDetailView(item.id)">
<div class="card_box_span">
<p style="font-size: 16px;font-weight: bold;">{{ item.lawEnforcementItem }}</p>
<p style="font-size: 16px;font-weight: bold;">{{ item.lawEnforcementItemText }}</p>
</div>
<div class="card_box_span">

Loading…
Cancel
Save