| | |
| | | #VITE_API_URL = 'http://192.168.0.76:8009' |
| | | |
| | | # VITE_API_URL = 'http://192.168.0.8:8008' |
| | | VITE_API_URL = 'http://192.168.0.76:8010' |
| | | VITE_API_URL = 'http://192.168.0.76:8009' |
| | | # VITE_API_URL = 'http://192.168.0.10:8008' |
| | | # VITE_API_URL = 'http://192.168.0.62:8008' |
| | |
| | | /> |
| | | </div> |
| | | <DailogAdd ref="openAdd" @navAddorUpdata="onAddorUpdata"></DailogAdd> |
| | | <DailogSearchUser ref="openUser"></DailogSearchUser> |
| | | <DailogSearchUser ref="openUser" @SearchUser="userId"></DailogSearchUser> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | pageSize: 10, |
| | | pageIndex: 1, |
| | | searchParams: { |
| | | personId: '1', ////员工 |
| | | personId: '', ////员工 |
| | | }, |
| | | }); |
| | | // 重置 |
| | |
| | | const openSearch=()=>{ |
| | | openUser.value.openDailog() |
| | | } |
| | | const userId=(val:any)=>{ |
| | | ruleForm.searchParams.personId=val.uid |
| | | |
| | | } |
| | | return { |
| | | ruleForm, |
| | | userId, |
| | | resetForm, |
| | | listApi, |
| | | handleClick, |
| | |
| | | <el-row> |
| | | <el-col :span="4"> |
| | | <el-form-item size="default"> |
| | | <el-select v-model="ruleForm.searchParams.examineDepartmentId" style="width: 100%" placeholder="请选择考核部门"> |
| | | <el-option label="Zone one" value="shanghai" /> |
| | | <el-option label="Zone two" value="beijing" /> |
| | | </el-select> |
| | | <el-tree-select v-model="ruleForm.searchParams.examineDepartmentId" :data="data" check-strictly="true" class="w100" :props="propse" placeholder="请选择" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | |
| | | }; |
| | | onMounted(() => { |
| | | listApis(); |
| | | department() |
| | | }); |
| | | const onAddorUpdatas = () => { |
| | | listApis(); |
| | |
| | | // }); |
| | | }); |
| | | }; |
| | | //部门树 |
| | | const department = () => { |
| | | goalManagementApi() |
| | | .getTreedepartment() |
| | | .then((res) => { |
| | | if (res.data.code == 200) { |
| | | data.value = res.data.data; |
| | | } else { |
| | | ElMessage.error(res.data.msg); |
| | | } |
| | | }); |
| | | }; |
| | | const propse = { |
| | | label: 'depName', |
| | | children: 'children', |
| | | value: 'depId', |
| | | }; |
| | | const data = ref(); |
| | | return { |
| | | department, |
| | | propse, |
| | | data, |
| | | activeName, |
| | | ruleForm, |
| | | resetForm, |
| | |
| | | <el-button type="primary" size="default" @click="daiAdd" :disabled="disabled">新增</el-button> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | <el-table :data="form.targetDivideDetailList" style="width: 100%"> |
| | | <el-table :data="formUp.targetDivideDetailList" style="width: 100%"> |
| | | <el-table-column align="center" property="dutyDepartmentId" label="责任部门" width="180" /> |
| | | <el-table-column align="center" property="value" label="考核指标" width="180" /> |
| | | <el-table-column align="center" property="makerDepartmentId" label="制定人部门" /> |
| | |
| | | delTargetDivideDetails: '', //要删除的目标指标分解ID,多个用逗号隔开 |
| | | targetDivideDetailList: [], //目标指标分解列表 |
| | | }); |
| | | const add = (e: any) => { |
| | | formUp.targetDivideDetailList.push(e); |
| | | const add = (val: any) => { |
| | | formUp.targetDivideDetailList.push(val); |
| | | // let obj=JSON.parse(JSON.stringify(form.value)) |
| | | }; |
| | | // 新增 |
| | |
| | | open: env.VITE_OPEN, |
| | | proxy: { |
| | | '/gitee': { |
| | | target: 'https://192.168.0.76:8010', |
| | | target: 'https://192.168.0.76:8009', |
| | | ws: true, |
| | | changeOrigin: true, |
| | | rewrite: (path) => path.replace(/^\/gitee/, ''), |