Commit abb35241 authored by sixiaofeng's avatar sixiaofeng

Merge remote-tracking branch 'origin/main'

parents e579c17e cffb5ab2
module.exports = { module.exports = {
root: true, "ecmaFeatures": {
"env": { "modules": true,
"browser": true, "spread" : true,
"es6": true "restParams" : true
}, },
"parser":"vue-eslint-parser", "env" : {
// "extends": [ "browser" : true,
// "eslint:recommended", "node" : true,
// "plugin:vue/essential", "es6" : true
// "plugin:@typescript-eslint/eslint-recommended" },
// ] // "rules" : {
// "no-unused-vars" : 2,
// "no-undef" : 2
// },
"parserOptions": {
"sourceType": "module"
}
} }
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -38,7 +38,7 @@ export default class BaseService { ...@@ -38,7 +38,7 @@ export default class BaseService {
let token; let token;
let headerItems:{[key:string]:string|number} ={} let headerItems:{[key:string]:string|number} ={}
if(!routerConfig.method) routerConfig.method = 'post' if(!routerConfig.method) routerConfig.method = 'post'
if(routerConfig.crediential) token = signAuth() || 'MOCK' if(routerConfig.crediential) token = 'MOCK'
switch(routerConfig.method){ switch(routerConfig.method){
case 'post': case 'post':
routerConfig.crediential&&Object.assign(headerItems,{'FZM-SIGNATURE':token}) routerConfig.crediential&&Object.assign(headerItems,{'FZM-SIGNATURE':token})
......
...@@ -16,6 +16,16 @@ enum BridgeMethods{ ...@@ -16,6 +16,16 @@ enum BridgeMethods{
SIGN='sign' SIGN='sign'
} }
export function isAppEnv(){
const env = window.navigator.userAgent || navigator.userAgent
if(env.includes(';FZM-3SYXIN;')){
return true;
}else{
return false;
}
}
/** /**
* 获取用户的资料 * 获取用户的资料
* @returns * @returns
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
@click="$router.push('/team/select-team')" @click="$router.push('/team/select-team')"
/> />
</group-cell> </group-cell>
<c-button round class="mt-10"> <c-button round class="mt-10" @click="addDepConfirm">
确定 确定
</c-button> </c-button>
</div> </div>
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { useRequest } from 'ahooks-vue'
import Vue from 'vue' import Vue from 'vue'
export default Vue.extend({ export default Vue.extend({
...@@ -51,10 +53,35 @@ export default Vue.extend({ ...@@ -51,10 +53,35 @@ export default Vue.extend({
data() { data() {
return { return {
name: '产品部', name: '产品部',
check: false check: false,
addDepObj:{},
enterpriseInfoObj:{
data:null as any,
loading:true as any,
error:null as any
}
} }
}, },
async mounted(){
},
methods: { methods: {
// enterpriseInfo(){
// const { data, loading, error} =useRequest(this.$service.enterprise.getEnterpriseInfo({
// "id": "166961152260050944"
// }))
// this.enterpriseInfoObj.data = data
// this.enterpriseInfoObj.loading = loading
// this.enterpriseInfoObj.error = error
// },
addDepConfirm(){
const { data, loading, error, run} =useRequest(this.$service.department.addDep({
"entId": "entId",
"leaderId": "leaderId",
"name": "name",
"parentId": "parentId"
}))
},
selectCharger() { selectCharger() {
this.$router.push({ this.$router.push({
path: '/team/team-frame', path: '/team/team-frame',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment