| | |
| | | <el-input |
| | | v-model="upform.name" |
| | | autocomplete="off" |
| | | style="width:75%" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <el-input |
| | | v-model="upform.type" |
| | | autocomplete="off" |
| | | style="width:75%" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <el-select |
| | | v-model="upform.dirid" |
| | | placeholder="请选择" |
| | | style="width:75%" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | > |
| | | <el-option :value="upform.dirid" :label="upform.dirName" style="height: auto"> |
| | | <el-option :value="upform.dirid" :label="upform.dirName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }"> |
| | | <el-tree |
| | | ref="tree" |
| | | :data="editcatalogOption" |
| | | default-expand-all |
| | | :default-expand-all="defaultexpand" |
| | | node-key="id" |
| | | :props="defaultProps" |
| | | @node-click="handleNodeClickto" |
| | |
| | | <el-select |
| | | v-model="upform.depid" |
| | | placeholder="请选择" |
| | | style="width:75%" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | > |
| | | <el-option :value="upform.depid" :label="upform.depName" style="height: auto"> |
| | | <el-option :value="upform.depid" :label="upform.depName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }"> |
| | | <el-tree |
| | | ref="tree" |
| | | :data="editCompanyOption" |
| | | default-expand-all |
| | | :default-expand-all="defaultexpand" |
| | | node-key="id" |
| | | :props="defaultProps" |
| | | @node-click="handleNodeClick" |
| | |
| | | <el-input |
| | | v-model="upform.ver" |
| | | autocomplete="off" |
| | | style="width:75%" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | > |
| | | <el-select |
| | | v-model="upform.status" |
| | | style="width:75%" |
| | | style="width:85%" |
| | | :placeholder="$t('common.choose')" |
| | | > |
| | | <el-option |
| | |
| | | <el-input |
| | | v-model="upform.precision" |
| | | autocomplete="off" |
| | | style="width:75%" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <el-input |
| | | v-model="upform.descr" |
| | | autocomplete="off" |
| | | style="width:75%" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | v-model="upform.fileGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:62%" |
| | | style="width:70%" |
| | | ></el-input> |
| | | <input |
| | | name="file1" |
| | |
| | | @change="editFile(0)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 8px;" |
| | | style="margin-left: 6px;" |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | |
| | | v-model="upform.viewGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:62%" |
| | | style="width:70%" |
| | | ></el-input> |
| | | <input |
| | | name="file1" |
| | |
| | | @change="editFile(1)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 8px;" |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | |
| | | <el-input |
| | | v-model="upform.bak" |
| | | autocomplete="off" |
| | | style="width:75%" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | :label="$t('dataManage.styleObj.dirid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-cascader |
| | | <el-select |
| | | v-model="insertform.dirid" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | > |
| | | <el-option :value="insertform.dirid" :label="insertform.dirName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }"> |
| | | <el-tree |
| | | ref="tree" |
| | | :data="catalogOption" |
| | | :default-expand-all="defaultexpand" |
| | | node-key="id" |
| | | :props="defaultProps" |
| | | @node-click="handcatalogChange" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-cascader |
| | | v-model="insertform.dirid" |
| | | :options="catalogOption" |
| | | @change="catalogChange" |
| | | :props="cascader" |
| | | style="width:730px" |
| | | ></el-cascader> |
| | | ></el-cascader> --> |
| | | <!-- <el-input |
| | | v-model="insertform.dirValue" |
| | | disabled |
| | |
| | | :label="$t('dataManage.styleObj.depid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-cascader |
| | | <el-select |
| | | v-model="insertform.depid" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | > |
| | | <el-option :value="insertform.depid" :label="insertform.depName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }"> |
| | | <el-tree |
| | | ref="tree" |
| | | :data="companyOption" |
| | | :default-expand-all="defaultexpand" |
| | | node-key="id" |
| | | :props="cascader" |
| | | @node-click="handcompanyChange" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-cascader |
| | | v-model="insertform.depid" |
| | | :options="companyOption" |
| | | @change="companyChange" |
| | | :props="cascader" |
| | | style="width:730px" |
| | | ></el-cascader> |
| | | ></el-cascader> --> |
| | | <!-- <el-input |
| | | v-model="insertform.depValue" |
| | | disabled |
| | |
| | | children: "children", |
| | | label: "name", |
| | | }, |
| | | selectOptionWidth: '', |
| | | selectheight: 'auto', |
| | | defaultexpand: false |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | this.upform.dirid = res; |
| | | |
| | | }, |
| | | handcatalogChange(data, node, nodeData) { |
| | | this.$set(this.insertform, 'dirid', data.id) |
| | | this.$set(this.insertform, 'dirName', data.name) |
| | | // this.insertform.dirid = data.id; |
| | | // this.insertform.dirName = data.name |
| | | }, |
| | | handleNodeClickto(data, node, nodeData) { |
| | | this.insertform.depid = data.id |
| | | this.upform.dirid = data.id; |
| | |
| | | this.insertform.depid = res; |
| | | |
| | | }, |
| | | handcompanyChange(data, node, nodeData) { |
| | | this.$set(this.insertform, 'depid', data.id) |
| | | // this.insertform.depid = data.id; |
| | | this.$set(this.insertform, 'depName', data.name) |
| | | // this.insertform.depName = data.name; |
| | | }, |
| | | //新增数据 |
| | | setInsertShow() { |
| | | this.InsertFormdialog = true; |
| | | this.$set(this, 'insertform', {}) |
| | | }, |
| | | //目录列表获取 |
| | | async getSelectdirTab() { |
| | |
| | | return father.pid == 0; // 返回一级菜单 |
| | | }); |
| | | }, |
| | | setOptionWidth(event) { |
| | | // 下拉框聚焦,设置弹框的宽度 |
| | | this.$nextTick(() => { |
| | | this.selectOptionWidth = event.srcElement.offsetWidth + 'px'; |
| | | }); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |