| | |
| | | export function taskdepthospgetsonlist(data) { |
| | | return request({ |
| | | url: "/smartor/taskdept/list", |
| | | method: "get", |
| | | params: data, |
| | | method: "post", |
| | | data: data, |
| | | }); |
| | | } |
| | | // 删除科室病区模板分类 |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // 登录方法 |
| | | export function login(username, password, code, uuid,guid) { |
| | | export function login(username, password, code, uuid,orgid) { |
| | | const data = { |
| | | username, |
| | | password, |
| | | code, |
| | | uuid, |
| | | guid, |
| | | orgid, |
| | | } |
| | | return request({ |
| | | url: '/login', |
| | |
| | | actions: { |
| | | // 登录 |
| | | Login({ commit }, userInfo) { |
| | | console.log(userInfo,'user info'); |
| | | |
| | | const username = userInfo.username.trim() |
| | | const password = userInfo.password |
| | | const code = userInfo.code |
| | | const uuid = userInfo.uuid |
| | | const guid = userInfo.guid |
| | | const orgid = userInfo.orgid |
| | | return new Promise((resolve, reject) => { |
| | | login(username, password, code, uuid,guid).then(res => { |
| | | login(username, password, code, uuid,orgid).then(res => { |
| | | setToken(res.token) |
| | | commit('SET_TOKEN', res.token) |
| | | localStorage.setItem('guid', guid); |
| | | localStorage.setItem('orgid', orgid); |
| | | resolve() |
| | | }).catch(error => { |
| | | reject(error) |
| | |
| | | if (res.code === 200) { |
| | | this.tableDatatop = res.data.scriptResult.script; |
| | | this.tableDatatop.forEach((item) => { |
| | | if (item.scriptResult && item.scriptType != 2) { |
| | | console.log(item.scriptResultId,'scriptResultId'); |
| | | |
| | | if (item.scriptResultId && item.scriptType != 2) { |
| | | item.isoption = 3; |
| | | item.scriptResult = JSON.parse(item.scriptResult); |
| | | } else if (item.scriptResult && item.scriptType == 2) { |
| | | item.scriptResult = item.scriptResult; |
| | | } else if (item.scriptResultId && item.scriptType == 2) { |
| | | item.scriptResult = item.scriptResult.split("&"); |
| | | item.isoption = 3; |
| | | } |
| | |
| | | var objs = item.svyLibTemplateTargetoptions.find( |
| | | (items) => items.optioncontent == item.scriptResult |
| | | ); |
| | | |
| | | if (obj) { |
| | | if (objs.isabnormal) { |
| | | excep = 1; |
| | | } |
| | | } |
| | | |
| | | let obj = { |
| | |
| | | if (item.scriptType == 2 && item.scriptResult[0]) { |
| | | obj.asrtext = item.scriptResult.join("&"); |
| | | } else if (item.scriptType != 2 && item.scriptResult) { |
| | | obj.asrtext = JSON.stringify(item.scriptResult); |
| | | obj.asrtext = item.scriptResult; |
| | | } |
| | | |
| | | if (item.isoption == 3) { |
| | |
| | | </el-input> |
| | | </el-form-item> |
| | | <!-- 丽===================水 --> |
| | | <!-- <el-form-item prop="guid"> |
| | | <el-select style="width: 100%;" v-model="loginForm.guid" placeholder="请选择院区"> |
| | | <!-- <el-form-item prop="orgid"> |
| | | <el-select style="width: 100%;" v-model="loginForm.orgid" placeholder="请选择院区"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | |
| | | password: "", |
| | | rememberMe: false, |
| | | code: "", |
| | | uuid: "", |
| | | guid:'', |
| | | orgid:'1', |
| | | }, |
| | | options: [ |
| | | { value: "1", label: "景宁畲族自治县人民医院" }, |
| | |
| | | password: [ |
| | | { required: true, trigger: "blur", message: "请输入您的密码" }, |
| | | ], |
| | | // guid: [{ required: true, trigger: "blur", message: "请选择院区" }], |
| | | // orgid: [{ required: true, trigger: "blur", message: "请选择院区" }], |
| | | }, |
| | | loading: false, |
| | | // 验证码开关 |
| | |
| | | created() { |
| | | this.getCode(); |
| | | this.getCookie(); |
| | | if (localStorage.getItem('guid')) { |
| | | this.loginForm.guid = localStorage.getItem('guid'); |
| | | } |
| | | // if (localStorage.getItem('orgid')) { |
| | | // this.loginForm.orgid = localStorage.getItem('orgid'); |
| | | // } |
| | | }, |
| | | methods: { |
| | | getCode() { |
| | |
| | | Cookies.remove("password"); |
| | | Cookies.remove("rememberMe"); |
| | | } |
| | | localStorage.removeItem('guid'); |
| | | this.loginForm.orgid = '1', |
| | | this.$store |
| | | .dispatch("Login", this.loginForm) |
| | | .then(() => { |
| | |
| | | var obj = item.svyLibTemplateTargetoptions.find( |
| | | (items) => items.optioncontent == item.scriptResult |
| | | ); |
| | | console.log(obj,'obj'); |
| | | |
| | | if (obj) { |
| | | if (obj.isabnormal) { |
| | | console.log(obj.isabnormal); |
| | |
| | | } |
| | | }); |
| | | form.svyLibTemplateScriptVOS = arr; |
| | | form.type = 2; |
| | | Cachequestionnaire(form).then((res) => { |
| | | if (res.code == 200) { |
| | | if (subm) { |
| | |
| | | this.objyl.suitway = this.objyl.suitway.join(","); |
| | | } |
| | | this.objyl.templateid = this.objyl.svyid; |
| | | this.form.libtemplateid = this.objyl.svyid; |
| | | this.objyl.isoperation = 1; |
| | | this.objyl.svyTaskTemplateScriptVOS = this.objyl.svyTemplateLibScripts; |
| | | this.form.svyTaskTemplateVO=this.objyl; |
| | |
| | | proxy: { |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target: `http://192.168.2.13:8095`, |
| | | // target: `http://192.168.168.60:8095`, |
| | | // target: `http://10.202.20.185:8095`, |
| | | // target: `http://192.168.100.184:8095`, |
| | | // target:`http://localhost:8095`, |