| | |
| | | <el-input |
| | | v-model="upform.name" |
| | | autocomplete="off" |
| | | style="width:75%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <el-input |
| | | v-model="upform.type" |
| | | autocomplete="off" |
| | | style="width:75%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.dirid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-cascader |
| | | <el-select |
| | | v-model="upform.dirid" |
| | | placeholder="请选择" |
| | | style="width:75%" |
| | | > |
| | | <el-option :value="upform.dirid" :label="upform.dirName" style="height: auto"> |
| | | <el-tree |
| | | ref="tree" |
| | | :data="editcatalogOption" |
| | | default-expand-all |
| | | node-key="id" |
| | | :props="defaultProps" |
| | | @node-click="handleNodeClickto" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-cascader |
| | | v-model="upform.dirid" |
| | | :options="editcatalogOption" |
| | | @change="catalogChange" |
| | | :props="cascader" |
| | | style="width:730px" |
| | | ></el-cascader> |
| | | style="width:75%" |
| | | ></el-cascader> --> |
| | | <!-- <el-input |
| | | v-model="upform.dirValue" |
| | | disabled |
| | |
| | | :label="$t('dataManage.styleObj.depid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-cascader |
| | | <el-select |
| | | v-model="upform.depid" |
| | | placeholder="请选择" |
| | | style="width:75%" |
| | | > |
| | | <el-option :value="upform.depid" :label="upform.depName" style="height: auto"> |
| | | <el-tree |
| | | ref="tree" |
| | | :data="editCompanyOption" |
| | | default-expand-all |
| | | node-key="id" |
| | | :props="defaultProps" |
| | | @node-click="handleNodeClick" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-cascader |
| | | v-model="upform.depid" |
| | | :options="editCompanyOption" |
| | | @change="editcompanyChange" |
| | | :props="cascader" |
| | | style="width:730px" |
| | | ></el-cascader> |
| | | style="width:75%" |
| | | ></el-cascader> --> |
| | | |
| | | <!-- <el-input |
| | | v-model="upform.depValue" |
| | | disabled |
| | |
| | | <el-input |
| | | v-model="upform.ver" |
| | | autocomplete="off" |
| | | style="width:75%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | > |
| | | <el-select |
| | | v-model="upform.status" |
| | | style="width: 745px" |
| | | style="width:75%" |
| | | :placeholder="$t('common.choose')" |
| | | > |
| | | <el-option |
| | |
| | | <el-input |
| | | v-model="upform.precision" |
| | | autocomplete="off" |
| | | style="width:75%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <el-input |
| | | v-model="upform.descr" |
| | | autocomplete="off" |
| | | style="width:75%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | v-model="upform.fileGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:62%" |
| | | ></el-input> |
| | | <input |
| | | name="file1" |
| | |
| | | style="display: none" |
| | | @change="editFile(0)" |
| | | /> |
| | | <el-link |
| | | <el-button |
| | | style="margin-left: 8px;" |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="geteditFile(0)" |
| | | >选择</el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="seteditFile(0)" |
| | | >上传</el-button> |
| | | <!-- <el-link |
| | | :underline="false" |
| | | @click="geteditFile(0)" |
| | | style="margin-left: 10px" |
| | |
| | | :underline="false" |
| | | @click="seteditFile(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.viewguid')" |
| | |
| | | v-model="upform.viewGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:62%" |
| | | ></el-input> |
| | | <input |
| | | name="file1" |
| | |
| | | style="display: none" |
| | | @change="editFile(1)" |
| | | /> |
| | | <el-link |
| | | <el-button |
| | | style="margin-left: 8px;" |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="geteditFile(1)" |
| | | >选择</el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="seteditFile(1)" |
| | | >上传</el-button> |
| | | <!-- <el-link |
| | | :underline="false" |
| | | @click="geteditFile(1)" |
| | | style="margin-left: 10px" |
| | |
| | | :underline="false" |
| | | @click="seteditFile(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.bak')" |
| | |
| | | <el-input |
| | | v-model="upform.bak" |
| | | autocomplete="off" |
| | | style="width:75%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | children: 'children', |
| | | checkStrictly: true, |
| | | emitPath: false, |
| | | }, |
| | | defaultProps: { |
| | | children: "children", |
| | | label: "name", |
| | | }, |
| | | }; |
| | | }, |
| | |
| | | this.upform.dirid = res; |
| | | |
| | | }, |
| | | handleNodeClickto(data, node, nodeData) { |
| | | this.insertform.depid = data.id |
| | | this.upform.dirid = data.id; |
| | | this.upform.dirName = data.name; |
| | | }, |
| | | |
| | | editcompanyChange(res) { |
| | | this.upform.depid = res; |
| | | }, |
| | |
| | | this.companyOption = this.treeData(res.result); |
| | | this.editCompanyOption = this.treeData(res.result); |
| | | }, |
| | | handleNodeClick(data, node, nodeData) { |
| | | this.upform.depid = data.id |
| | | this.upform.depName = data.name; |
| | | }, |
| | | //树列表生成 |
| | | treeData(source) { |
| | | let cloneData = JSON.parse(JSON.stringify(source)); // 对源数据深度克隆 |