Commit b37819af authored by hanfeng zhang's avatar hanfeng zhang

Merge branch321 'main' of gitlab.33.cn:HF_web/OKR

parent eca57538
...@@ -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