| | |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="数据权限" prop="createDept"> |
| | | <el-tree-select clearable @node-click="nodeClickTree" v-model="form.createDept" :data="tree" |
| | | <el-tree-select :props="{ |
| | | label: 'title', |
| | | id: 'id', |
| | | }" clearable @node-click="nodeClickTree" v-model="form.createDept" :data="tree" |
| | | :check-on-click-node="true" style="width: 240px"> |
| | | <template #default="{ data: { title } }"> |
| | | {{ title }}</template> |
| | | <!-- <template #default="{ data: { title } }"> |
| | | {{ title }}</template> --> |
| | | </el-tree-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | Object.keys(this.form).forEach(key => { |
| | | this.form[key] = params[key] |
| | | }) |
| | | if (this.form.calendarCode) this.form.calendarCodeWaiting = this.form.calendarCodeWaiting || this.form.calendarCode |
| | | this.$HTTP.get(`/api/blade-cps/workstation/get?workstationId=${params.id}`).then(res => { |
| | | |
| | | this.$HTTP.get(`/api/smis/workstation/get?workstationId=${params.id}`).then(res => { |
| | | this.form = res?.data |
| | | this.$HTTP.get(`/api/blade-cps/workstation-workbench/listWorkbench?workstationId=${params.id}`).then(res => { |
| | | if (this.form.calendarCode && !this.form.calendarCodeWaiting) this.form.calendarCodeWaiting = this.form.calendarCode |
| | | this.$HTTP.get(`/api/smis/workstation-workbench/listWorkbench?workstationId=${params.id}`).then(res => { |
| | | this.form.workbenchVOList = res?.data?.workstationList || [] |
| | | }) |
| | | }) |