| | |
| | | |
| | | // 获取Url |
| | | getUrl: () => { |
| | | // debugger |
| | | return request({ |
| | | url: import.meta.env.VITE_API_URL_SOCKET + `/ws/namesrv/get/one?srv=safeplatform-websocket`, |
| | | method: 'get' |
| | |
| | | // window.location.href = '/' |
| | | // return Promise.reject(response) |
| | | // const res = response.data; |
| | | // debugger |
| | | // if (res.code && res.code !== 0) { |
| | | // // `token` 过期或者账号已在别处登录 |
| | | // if (res.code === 401 || res.code === 4001) { |
| | |
| | | }; |
| | | |
| | | // const recursion = (children: any, value: number | string) => { |
| | | // debugger; |
| | | // return children.find((item: any) => { |
| | | // if (item.children.length !== 0) { |
| | | // if (item.depId === value) { |
| | |
| | | alert('您的浏览器不支持socket'); |
| | | } else { |
| | | // 实例化socket |
| | | // debugger |
| | | let uid = userInfos.value.uid.toString() |
| | | var url = state.path + uid + '*' + id; |
| | | console.log(url,'url',uid,'uid') |
| | |
| | | // 登录成功,跳到转首页 |
| | | // 如果是复制粘贴的路径,非首页/登录页,那么登录成功后重定向到对应的路径中 |
| | | // if (route.query?.redirect) { |
| | | // debugger; |
| | | router.push('/newMenu'); |
| | | // router.push({ |
| | | // path: <string>route.query?.redirect, |
| | |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <!-- </el-col>--> |
| | | <el-col v-if="approveItemForm.type === 2 || approveItemForm.type === 3" :span="24" style="margin-bottom: 24px"> |
| | | <el-col v-if="(approveItemForm.type === 2 || approveItemForm.type === 3) && personType !== 3" :span="24" style="margin-bottom: 24px"> |
| | | <el-form-item label="措施名称" prop="measureId"> |
| | | <el-select v-model="approveItemForm.measureId" placeholder="请选择措施" class="input-add" clearable filterable> |
| | | <el-option v-for="item in actionList" :key="item.id" :value="item.id" :label="item.context"></el-option> |
| | |
| | | </template> |
| | | |
| | | <script lang="ts"> |
| | | import { reactive, toRefs, ref, onMounted, nextTick } from 'vue'; |
| | | import { reactive, toRefs, ref, nextTick } from 'vue'; |
| | | import { ElMessage } from 'element-plus/es'; |
| | | import { userApi } from '/@/api/systemManage/user'; |
| | | import { safetyActionApi } from '/@/api/specialWorkSystem/safetyAction'; |
| | | import approveRule from '/@/views/specialWorkSystem/workFlow/approveRule/index.vue'; |
| | | import { approveBasicApi } from '/@/api/specialWorkSystem/approveBasic/index'; |
| | | interface dataState { |
| | | title: string; |
| | | activeName: string; |
| | |
| | | smTypeList: Array<type>; |
| | | standardList: []; |
| | | order: number | null; |
| | | personType: number | null; |
| | | } |
| | | interface step { |
| | | itemName: string | null; |
| | |
| | | { id: 2, name: '措施' } |
| | | ], |
| | | standardList: [], |
| | | order: null |
| | | order: null, |
| | | personType: null, |
| | | }); |
| | | |
| | | const showApproveItemDialog = (type: string, value: {}, index: number, approveLevelForm: { type: number }, standardList: [], actionList: []) => { |
| | |
| | | data.actionList = actionList; |
| | | data.order = index; |
| | | if (approveLevelForm.type === 3) { |
| | | data.personType = 3 |
| | | data.typeList = [ |
| | | { id: 1, name: '数值' }, |
| | | { id: 2, name: '选项' }, |
| | | { id: 3, name: '填空' } |
| | | ]; |
| | | } else { |
| | | data.personType = 2 |
| | | data.typeList = [ |
| | | { id: 2, name: '选项' }, |
| | | { id: 3, name: '填空' } |
| | |
| | | import { reactive, toRefs, ref } from 'vue'; |
| | | import { ElMessage } from 'element-plus/es'; |
| | | import { approveRuleApi } from '/@/api/specialWorkSystem/approveRule'; |
| | | import { Edit, View, Plus, Delete, Refresh, Search, Download } from '@element-plus/icons-vue'; |
| | | import approveLevelDialog from '/@/views/specialWorkSystem/workFlow/approveRule/components/approveLevelDialog.vue'; |
| | | interface dataState { |
| | | title: string; |
| | |
| | | } |
| | | export default { |
| | | name: 'approveRuleDialog', |
| | | components: { approveLevelDialog }, |
| | | components: { approveLevelDialog,Plus }, |
| | | setup(props: any, context: any) { |
| | | const approveRuleFormRef = ref(); |
| | | const approveLevelDialogRef = ref(); |
| | |
| | | |
| | | return { |
| | | ...toRefs(data), |
| | | Plus, |
| | | clearValue, |
| | | parseNumber, |
| | | approveLevelDialog, |
| | |
| | | <template> |
| | | <template> |
| | | <div class="home-container"> |
| | | <div style="height: 100%"> |
| | | <el-form :model="form" label-width="150px" :rules="applyRules" ref="ruleFormRef"> |