提交 124962d8 编写于 作者: 麦嘉得's avatar 麦嘉得

①更换人员选择器开发v230130

上级 7d901a45
此差异已折叠。
此差异已折叠。
......@@ -173,6 +173,30 @@ function dateConvert(dateParms){
return time;
}
/*
* JSON数组去重
* @param: [array] json Array
* @param: [string] 唯一的key名,根据此键名进行去重
*/
function uniqueArray(array, key){
var result = [array[0]];
for(var i = 1; i < array.length; i++){
var item = array[i];
var repeat = false;
for (var j = 0; j < result.length; j++) {
if (item[key] == result[j][key]) {
repeat = true;
break;
}
}
if (!repeat) {
result.push(item);
}
}
return result;
}
export default {
getCookie, setCookie, delCookie, GetQueryValue,arrRemoveIndex,IdCard,transData,getCurrentTime,dateConvert
getCookie, setCookie, delCookie, GetQueryValue,arrRemoveIndex,IdCard,transData,getCurrentTime,dateConvert,uniqueArray
}
\ No newline at end of file
此差异已折叠。
......@@ -6,11 +6,11 @@ import util from './common/util'
import api from "./interface/index"
import Vconsole from 'vconsole';
//import Vconsole from 'vconsole';
let vConsole = new Vconsole();
//let vConsole = new Vconsole();
Vue.prototype.$api = api.commonUrl
Vue.config.productionTip = false;
......@@ -19,7 +19,7 @@ Vue.prototype.UTIL = util;
import getBankcardinfo from 'bankcardinfo'
Vue.prototype.$getBankcardinfo = getBankcardinfo
import { Button,Icon,Form,Field,Notify,Card,Panel,Divider,SubmitBar,Tag,Cell, CellGroup,Collapse, CollapseItem,RadioGroup,Radio,Popup,Col, Row,Toast,Dialog,NavBar,Loading,Overlay,Uploader,Search,Picker,Image as VanImage,Skeleton,Tabbar, TabbarItem,ImagePreview,createApp,ActionSheet,Cascader,PullRefresh,NoticeBar,List,Step, Steps,Empty,Area,Switch,Sticky,Popover,Checkbox, CheckboxGroup } from 'vant';
import { Button,Icon,Form,Field,Notify,Card,Panel,Divider,SubmitBar,Tag,Cell, CellGroup,Collapse, CollapseItem,RadioGroup,Radio,Popup,Col, Row,Toast,Dialog,NavBar,Loading,Overlay,Uploader,Search,Picker,Image as VanImage,Skeleton,Tabbar, TabbarItem,ImagePreview,createApp,ActionSheet,Cascader,PullRefresh,NoticeBar,List,Step, Steps,Empty,Area,Switch,Sticky,Popover,Checkbox, CheckboxGroup,Sidebar, SidebarItem } from 'vant';
Vue.use(Button);
Vue.use(Icon);
......@@ -67,6 +67,8 @@ Vue.use(Sticky);
Vue.use(Popover);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Sidebar);
Vue.use(SidebarItem);
//Toast.setDefaultOptions({ duration: 2000 });
// 生成签名插件
......
......@@ -19,9 +19,9 @@ export default {
methods: {
SSO(code, sign, timestamp) {
//测试阶段
//TestSSO({ card: "syjs381" }).then((resp) => {
TestSSO({ card: "asc666" }).then((resp) => {
//部署阶段
wxSSO({ code: code, sign: sign, timestamp: timestamp }).then((resp) => {
//wxSSO({ code: code, sign: sign, timestamp: timestamp }).then((resp) => {
this.UTIL.setCookie(
"XGTLTOKEN-COLLECTOR",
resp.access_token.token_content
......
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或