| | |
| | | `${$t('dataManage.styleManage')}`, |
| | | ]"></My-bread> |
| | | <el-divider /> |
| | | <div class="searchComp subpage_Div"> |
| | | <div |
| | | class="searchComp subpage_Div" |
| | | ref="container" |
| | | > |
| | | <el-form |
| | | ref="ruleForm" |
| | | :model="ruleForm" |
| | | :inline="true" |
| | | > |
| | | <el-form-item |
| | | :label="$t('dataManage.vmobj.keyword')" |
| | | prop="name" |
| | | > |
| | | <el-input |
| | | v-model="ruleForm.name" |
| | | :placeholder="$t('common.pleaseInput')" |
| | | style="width:200px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item style="float: right;"> |
| | | <el-button |
| | | v-if="btnStatus.insert" |
| | | @click="setInsertShow()" |
| | | icon="el-icon-edit" |
| | | type="success" |
| | | size="small" |
| | | >{{ $t('common.append') }}</el-button> |
| | | <el-button |
| | | v-if="btnStatus.delete" |
| | | @click="delStyleData" |
| | | icon="el-icon-delete" |
| | | type="danger" |
| | | size="small" |
| | | >{{ $t('common.delete') }}</el-button> |
| | | <el-button |
| | | @click="submitForm('ruleForm')" |
| | | icon="el-icon-search" |
| | | type="primary" |
| | | size="small" |
| | | >{{ $t('common.iquery') }}</el-button> |
| | | <el-button |
| | | @click="resetForm('ruleForm')" |
| | | icon="el-icon-refresh" |
| | | type="info" |
| | | size="small" |
| | | >{{ $t('common.empty') }}</el-button> |
| | | </el-form-item> |
| | | <div class="flex_box"> |
| | | <div style="margin-right: auto"> |
| | | <el-form-item |
| | | size="small" |
| | | :label="$t('dataManage.vmobj.keyword')" |
| | | prop="name" |
| | | > |
| | | <!-- suffix-icon="el-icon-edit" |
| | | :placeholder="$t('common.pleaseInput')"--> |
| | | <el-input |
| | | v-model="ruleForm.name" |
| | | :placeholder="$t('shuJuGuanLi.lable1')" |
| | | style="width:200px" |
| | | ><i |
| | | slot="suffix" |
| | | class="el-icon-search" |
| | | @click="submitForm('ruleForm')" |
| | | style="padding-right: 8px" |
| | | ></i></el-input> |
| | | </el-form-item> |
| | | </div> |
| | | <div> |
| | | <el-form-item> |
| | | <el-button |
| | | v-if="btnStatus.insert" |
| | | @click="setInsertShow()" |
| | | icon="el-icon-edit" |
| | | type="success" |
| | | size="small" |
| | | >{{ $t('common.append') }} |
| | | </el-button> |
| | | <el-button |
| | | v-if="btnStatus.delete" |
| | | @click="delStyleData" |
| | | icon="el-icon-delete" |
| | | type="danger" |
| | | size="small" |
| | | >{{ $t('common.delete') }} |
| | | </el-button> |
| | | <!-- <el-button |
| | | @click="submitForm('ruleForm')" |
| | | icon="el-icon-search" |
| | | type="primary" |
| | | size="small" |
| | | >{{ $t('common.iquery') }} |
| | | </el-button>--> |
| | | <el-button |
| | | @click="resetForm('ruleForm')" |
| | | icon="el-icon-refresh" |
| | | type="info" |
| | | size="small" |
| | | >{{ $t('common.empty') }} |
| | | </el-button> |
| | | <el-button |
| | | @click="handleDownload('ruleForm')" |
| | | icon="el-icon-download" |
| | | type="success" |
| | | size="small" |
| | | >{{ $t('common.download') }} |
| | | </el-button> |
| | | </el-form-item> |
| | | </div> |
| | | </div> |
| | | |
| | | </el-form> |
| | | </div> |
| | | <div class="bottom"> |
| | | <div class="rightTable"> |
| | | <div class="table_box"> |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | height="100%" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="55" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | type="index" |
| | | :label="$t('dataManage.styleObj.index')" |
| | | width="70px" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="id" |
| | | v-if="false" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="name" |
| | | :label="$t('dataManage.styleObj.name')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="type" |
| | | :label="$t('dataManage.styleObj.type')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="dirName" |
| | | :label="$t('dataManage.styleObj.dirid')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="depName" |
| | | :label="$t('dataManage.styleObj.depid')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="ver" |
| | | :label="$t('dataManage.styleObj.ver')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="status" |
| | | :label="$t('dataManage.styleObj.status')" |
| | | :formatter="formatStatus" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="precision" |
| | | :label="$t('dataManage.styleObj.precision')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="descr" |
| | | :label="$t('dataManage.styleObj.descr')" |
| | | /> |
| | | <!-- <el-table-column |
| | | align="center" |
| | | prop="bak" |
| | | :label="$t('dataManage.styleObj.bak')" |
| | | /> --> |
| | | <el-table-column |
| | | min-width="120" |
| | | :label="$t('common.operate')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | @click="showDetail(scope.$index, scope.row)" |
| | | type="primary" |
| | | plain |
| | | size="small" |
| | | >{{ $t('common.see') }}</el-button> |
| | | <el-button |
| | | @click="handleEdit(scope.$index, scope.row)" |
| | | type="warning" |
| | | plain |
| | | size="small" |
| | | >{{ $t('common.update') }}</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <div |
| | | style="margin-top: 20px;" |
| | | class="pagination_box" |
| | | <div class="dividing-line"></div> |
| | | <div |
| | | class="table_box" |
| | | :style="styleVar" |
| | | > |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | border |
| | | height="calc(100% - 57px)" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="55" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | type="index" |
| | | :label="$t('dataManage.styleObj.index')" |
| | | width="70px" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="id" |
| | | v-if="false" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="name" |
| | | :label="$t('dataManage.styleObj.name')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="type" |
| | | :label="$t('dataManage.styleObj.type')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="dirName" |
| | | :label="$t('dataManage.styleObj.dirid')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="depName" |
| | | :label="$t('dataManage.styleObj.depid')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="ver" |
| | | :label="$t('dataManage.styleObj.ver')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="status" |
| | | :label="$t('dataManage.styleObj.status')" |
| | | :formatter="formatStatus" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="precision" |
| | | :label="$t('dataManage.styleObj.precision')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="descr" |
| | | :label="$t('dataManage.styleObj.descr')" |
| | | /> |
| | | <!-- <el-table-column |
| | | align="center" |
| | | prop="bak" |
| | | :label="$t('dataManage.styleObj.bak')" |
| | | /> --> |
| | | <el-table-column |
| | | min-width="200" |
| | | :label="$t('common.operate')" |
| | | > |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="listData.pageIndex" |
| | | :page-sizes="[10, 20, 50, 100]" |
| | | :page-size="listData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | @click="showDetail(scope.$index, scope.row)" |
| | | type="primary" |
| | | plain |
| | | size="small" |
| | | >{{ $t('common.see') }} |
| | | </el-button> |
| | | <el-button |
| | | @click="handleEdit(scope.$index, scope.row)" |
| | | type="warning" |
| | | plain |
| | | size="small" |
| | | >{{ $t('common.update') }} |
| | | </el-button> |
| | | <!-- <el-button |
| | | @click="handleDownload(scope.$index, scope.row)" |
| | | type="success" |
| | | plain |
| | | size="small" |
| | | >{{ $t('common.download') }} --> |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div |
| | | class="pagination_box" |
| | | style="margin-top: 15px" |
| | | > |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="listData.pageIndex" |
| | | :page-sizes="[10, 50,100,200]" |
| | | :page-size="listData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | |
| | | <div |
| | | class="infoBox subpage_Div box_div" |
| | | class="infoBox_box" |
| | | v-show="showinfoBox" |
| | | > |
| | | <div class="infoBox subpage_Div box_div"> |
| | | |
| | | <div |
| | | slot="header" |
| | | class="clearfix" |
| | | > |
| | | <span>{{ $t('dataManage.styleObj.deInformation') }}</span> |
| | | <div |
| | | style="float: right; cursor: pointer" |
| | | @click="closeDetial" |
| | | slot="header" |
| | | class="clearfix" |
| | | > |
| | | <i class="el-icon-close"></i> |
| | | <span>{{ $t('dataManage.styleObj.deInformation') }}</span> |
| | | <div |
| | | style="float: right; cursor: pointer" |
| | | @click="closeDetial" |
| | | > |
| | | <i class="el-icon-close"></i> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-divider></el-divider> |
| | | <div class="contentBox"> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.name') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.name }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.type') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.type }}</label> |
| | | </p> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.dirid') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.dirName }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.depid') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.depName }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.ver') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.ver }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.status') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.status }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.descr') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.descr }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.fileguid') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.fname }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.viewguid') }}:</label> |
| | | <label class="boxlabel"> |
| | | <div style="width:440px;height:200px;"> |
| | | <img |
| | | style="width:100%; height:100%" |
| | | :src="itemdetail.imageFile" |
| | | alt="" |
| | | /> |
| | | </div> |
| | | </label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.createUser') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.createUser }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.createTime') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.createTime }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.updateUser') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.updateUser }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.updateTime') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.updateTime }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.bak') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.bak }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | </div> |
| | | <div class="contentBox"> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.name') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.name }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.type') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.type }}</label> |
| | | </p> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.dirid') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.dirName }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.depid') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.depName }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.ver') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.ver }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.status') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.status }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.descr') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.descr }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.fileguid') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.fname }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.viewguid') }}:</label> |
| | | <label class="boxlabel"> |
| | | <div style="width:440px;height:200px;"> |
| | | <img |
| | | style="width:100%; height:100%" |
| | | :src="itemdetail.imageFile" |
| | | alt="" |
| | | /> |
| | | </div> |
| | | </label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.createUser') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.createName }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.createTime') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.createTime }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.updateUser') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.updateName }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.updateTime') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.updateTime }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | <label> {{ $t('dataManage.styleObj.bak') }}:</label> |
| | | <label class="boxlabel">{{ itemdetail.bak }}</label> |
| | | </p> |
| | | <el-divider></el-divider> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | <el-dialog |
| | | :title="$t('dataManage.styleObj.modifyStyleData')" |
| | | top="2vh" |
| | | style="overflow: hidden" |
| | | :before-close="removeUpdate" |
| | | :visible.sync="dialogFormVisible" |
| | | > |
| | | <el-form :model="upform"> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.name')" |
| | | :label-width="formLabelWidth" |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form |
| | | :model="upform" |
| | | label-position="top" |
| | | > |
| | | <el-input |
| | | v-model="upform.name" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.type')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="upform.type" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.dirid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | v-model="upform.dirid" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.name')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-option |
| | | :value="upform.dirid" |
| | | :label="upform.dirName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }" |
| | | > |
| | | <el-tree |
| | | ref="tree" |
| | | :data="editcatalogOption" |
| | | :default-expand-all="defaultexpand" |
| | | 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:75%" |
| | | ></el-cascader> --> |
| | | <!-- <el-input |
| | | v-model="upform.dirValue" |
| | | disabled |
| | | autocomplete="off" |
| | | ></el-input |
| | | ><el-link |
| | | :underline="false" |
| | | @click="showDirTree(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i |
| | | ></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.depid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | v-model="upform.depid" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | <el-input |
| | | v-model="upform.name" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.type')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-option |
| | | :value="upform.depid" |
| | | :label="upform.depName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }" |
| | | <el-input |
| | | v-model="upform.type" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.dirid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | v-model="upform.dirid" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | > |
| | | <el-tree |
| | | ref="tree" |
| | | :data="editCompanyOption" |
| | | :default-expand-all="defaultexpand" |
| | | 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:75%" |
| | | ></el-cascader> --> |
| | | <el-option |
| | | :value="upform.dirid" |
| | | :label="upform.dirName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }" |
| | | > |
| | | <el-tree |
| | | ref="tree" |
| | | :data="editcatalogOption" |
| | | :default-expand-all="defaultexpand" |
| | | 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:75%" |
| | | ></el-cascader> --> |
| | | <!-- <el-input |
| | | v-model="upform.dirValue" |
| | | disabled |
| | | autocomplete="off" |
| | | ></el-input |
| | | ><el-link |
| | | :underline="false" |
| | | @click="showDirTree(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i |
| | | ></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.depid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | v-model="upform.depid" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | > |
| | | <el-option |
| | | :value="upform.depid" |
| | | :label="upform.depName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }" |
| | | > |
| | | <el-tree |
| | | ref="tree" |
| | | :data="editCompanyOption" |
| | | :default-expand-all="defaultexpand" |
| | | 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:75%" |
| | | ></el-cascader> --> |
| | | |
| | | <!-- <el-input |
| | | v-model="upform.depValue" |
| | | disabled |
| | | autocomplete="off" |
| | | ></el-input> |
| | | <el-link |
| | | :underline="false" |
| | | @click="showDepTree(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i |
| | | ></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.ver')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="upform.ver" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.status')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | v-model="upform.status" |
| | | style="width:85%" |
| | | :placeholder="$t('common.choose')" |
| | | <!-- <el-input |
| | | v-model="upform.depValue" |
| | | disabled |
| | | autocomplete="off" |
| | | ></el-input> |
| | | <el-link |
| | | :underline="false" |
| | | @click="showDepTree(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i |
| | | ></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.ver')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-option |
| | | value="0" |
| | | :label="$t('dataManage.styleObj.deactivate')" |
| | | ></el-option> |
| | | <el-option |
| | | value="1" |
| | | :label="$t('dataManage.styleObj.enable')" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.precision')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="upform.precision" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.descr')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="upform.descr" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.fileguid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <!-- --> |
| | | <div class="BoxFlex"> |
| | | <div class="BoxFlexinput"> |
| | | <el-input |
| | | v-model="upform.fileGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:100%" |
| | | ></el-input> |
| | | <el-input |
| | | v-model="upform.ver" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.status')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | v-model="status" |
| | | style="width:85%" |
| | | :placeholder="$t('common.choose')" |
| | | > |
| | | <el-option |
| | | value='0' |
| | | :label="$t('dataManage.styleObj.deactivate')" |
| | | ></el-option> |
| | | <el-option |
| | | value='1' |
| | | :label="$t('dataManage.styleObj.enable')" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.precision')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="upform.precision" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.descr')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="upform.descr" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.fileguid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <!-- --> |
| | | <div class="BoxFlex"> |
| | | <div class="BoxFlexinput"> |
| | | <el-input |
| | | v-model="upform.fileGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:100%" |
| | | ></el-input> |
| | | </div> |
| | | <div class="BoxFlexbutton"> |
| | | <input |
| | | name="file1" |
| | | type="file" |
| | | id="editFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="editFile(0)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 6px;" |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="geteditFile(0)" |
| | | >选择 |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="seteditFile(0)" |
| | | >上传 |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | <div class="BoxFlexbutton"> |
| | | <input |
| | | name="file1" |
| | | type="file" |
| | | id="editFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="editFile(0)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 6px;" |
| | | 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" |
| | | ><i class="el-icon-plus"></i></el-link> |
| | | <el-link |
| | | v-if="btnStatus.upload" |
| | | :title="$t('common.upload')" |
| | | :underline="false" |
| | | @click="seteditFile(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.viewguid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <div class="BoxFlex"> |
| | | <div class="BoxFlexinput"> |
| | | <el-input |
| | | v-model="upform.viewGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:100%" |
| | | ></el-input> |
| | | </div> |
| | | <div> |
| | | <input |
| | | name="file1" |
| | | :accept="'.jpg,.png'" |
| | | type="file" |
| | | id="editimageFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="editFile(1)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 6px;" |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="geteditFile(1)" |
| | | >选择 |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="seteditFile(1)" |
| | | >上传 |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- --> |
| | | <!-- <el-link |
| | | :underline="false" |
| | | @click="geteditFile(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i></el-link> |
| | | <el-link |
| | | v-if="btnStatus.upload" |
| | | :title="$t('common.upload')" |
| | | :underline="false" |
| | | @click="seteditFile(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.viewguid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <div class="BoxFlex"> |
| | | <div class="BoxFlexinput"> |
| | | <el-input |
| | | v-model="upform.viewGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:100%" |
| | | ></el-input> |
| | | </div> |
| | | <div> |
| | | <input |
| | | name="file1" |
| | | :accept="'.jpg,.png'" |
| | | type="file" |
| | | id="editimageFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="editFile(1)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 6px;" |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="geteditFile(1)" |
| | | >选择</el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="seteditFile(1)" |
| | | >上传</el-button> |
| | | </div> |
| | | </div> |
| | | <!-- |
| | | --> |
| | | <!-- <el-link |
| | | :underline="false" |
| | | @click="geteditFile(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i></el-link> |
| | | <el-link |
| | | :title="$t('common.upload')" |
| | | :underline="false" |
| | | @click="seteditFile(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.bak')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="upform.bak" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <!-- |
| | | --> |
| | | <!-- <el-link |
| | | :underline="false" |
| | | @click="geteditFile(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i></el-link> |
| | | <el-link |
| | | :title="$t('common.upload')" |
| | | :underline="false" |
| | | @click="seteditFile(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.bak')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="upform.bak" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div |
| | | slot="footer" |
| | | class="dialog-footer" |
| | |
| | | type="info" |
| | | size="small" |
| | | @click="removeUpdate" |
| | | >{{$t('common.close')}}</el-button> |
| | | >{{ $t('common.close') }} |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | @click="updateForm" |
| | | size="small" |
| | | >{{$t('common.confirm')}}</el-button> |
| | | >{{ $t('common.confirm') }} |
| | | </el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="$t('dataManage.styleObj.addStyleData')" |
| | | top="2vh" |
| | | style="overflow: hidden" |
| | | :visible.sync="InsertFormdialog" |
| | | :before-close="handleClose" |
| | | > |
| | | <el-form :model="insertform"> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.name')" |
| | | :label-width="formLabelWidth" |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form |
| | | :model="insertform" |
| | | label-position="top" |
| | | > |
| | | <el-input |
| | | v-model="insertform.name" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.type')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="insertform.type" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.dirid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | v-model="insertform.dirid" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.name')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-option |
| | | :value="insertform.dirid" |
| | | :label="insertform.dirName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }" |
| | | <el-input |
| | | v-model="insertform.name" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.type')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="insertform.type" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.dirid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | v-model="insertform.dirid" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | > |
| | | <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-input |
| | | v-model="insertform.dirValue" |
| | | disabled |
| | | autocomplete="off" |
| | | ></el-input |
| | | ><el-link |
| | | :underline="false" |
| | | @click="showDirTree(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i |
| | | ></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.depid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | v-model="insertform.depid" |
| | | 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-input |
| | | v-model="insertform.dirValue" |
| | | disabled |
| | | autocomplete="off" |
| | | ></el-input |
| | | ><el-link |
| | | :underline="false" |
| | | @click="showDirTree(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i |
| | | ></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.depid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-option |
| | | :value="insertform.depid" |
| | | :label="insertform.depName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }" |
| | | <el-select |
| | | v-model="insertform.depid" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | > |
| | | <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-input |
| | | v-model="insertform.depValue" |
| | | disabled |
| | | autocomplete="off" |
| | | ></el-input> |
| | | <el-link |
| | | :underline="false" |
| | | @click="showDepTree(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i |
| | | ></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.ver')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="insertform.ver" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.status')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | v-model="insertform.status" |
| | | style="width:85%" |
| | | :placeholder="$t('common.choose')" |
| | | <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-input |
| | | v-model="insertform.depValue" |
| | | disabled |
| | | autocomplete="off" |
| | | ></el-input> |
| | | <el-link |
| | | :underline="false" |
| | | @click="showDepTree(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i |
| | | ></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.ver')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-option |
| | | value="0" |
| | | :label="$t('dataManage.styleObj.deactivate')" |
| | | ></el-option> |
| | | <el-option |
| | | value="1" |
| | | :label="$t('dataManage.styleObj.enable')" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.precision')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="insertform.precision" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.descr')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="insertform.descr" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.fileguid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <div class="BoxFlex"> |
| | | <div class="BoxFlexinput"> |
| | | <el-input |
| | | v-model="insertFileGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:100%" |
| | | /> |
| | | <el-input |
| | | v-model="insertform.ver" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.status')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-select |
| | | v-model="insertform.status" |
| | | style="width:85%" |
| | | :placeholder="$t('common.choose')" |
| | | > |
| | | <el-option |
| | | value="0" |
| | | :label="$t('dataManage.styleObj.deactivate')" |
| | | ></el-option> |
| | | <el-option |
| | | value="1" |
| | | :label="$t('dataManage.styleObj.enable')" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.precision')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="insertform.precision" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.descr')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="insertform.descr" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.fileguid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <div class="BoxFlex"> |
| | | <div class="BoxFlexinput"> |
| | | <el-input |
| | | v-model="insertFileGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:100%" |
| | | /> |
| | | </div> |
| | | <div> |
| | | <input |
| | | name="file1" |
| | | type="file" |
| | | id="insertFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="insertFileData(0)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 6px;" |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="getInsertFile(0)" |
| | | >选择 |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="setinsertFile(0)" |
| | | >上传 |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <input |
| | | name="file1" |
| | | type="file" |
| | | id="insertFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="insertFileData(0)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 6px;" |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="getInsertFile(0)" |
| | | >选择</el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="setinsertFile(0)" |
| | | >上传</el-button> |
| | | <!-- |
| | | --> |
| | | <!-- <el-link |
| | | :underline="false" |
| | | @click="getInsertFile(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i></el-link> |
| | | <el-link |
| | | :title="$t('common.upload')" |
| | | :underline="false" |
| | | @click="setinsertFile(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.viewguid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <div class="BoxFlex"> |
| | | <div class="BoxFlexinput"> |
| | | <el-input |
| | | v-model="insertViewGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:100%" |
| | | /> |
| | | </div> |
| | | <div><input |
| | | name="file1" |
| | | :accept="'.jpg,.png'" |
| | | type="file" |
| | | id="insertimageFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="insertFileData(1)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 6px;" |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="getInsertFile(1)" |
| | | >选择 |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="setinsertFile(1)" |
| | | >上传 |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- |
| | | --> |
| | | <!-- <el-link |
| | | :underline="false" |
| | | @click="getInsertFile(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i></el-link> |
| | | <el-link |
| | | :title="$t('common.upload')" |
| | | :underline="false" |
| | | @click="setinsertFile(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.viewguid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <div class="BoxFlex"> |
| | | <div class="BoxFlexinput"> |
| | | <el-input |
| | | v-model="insertViewGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | style="width:100%" |
| | | /> |
| | | </div> |
| | | <div> <input |
| | | name="file1" |
| | | :accept="'.jpg,.png'" |
| | | type="file" |
| | | id="insertimageFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="insertFileData(1)" |
| | | /> |
| | | <el-button |
| | | style="margin-left: 6px;" |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="getInsertFile(1)" |
| | | >选择</el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | :underline="false" |
| | | @click="setinsertFile(1)" |
| | | >上传</el-button> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- <el-link |
| | | :underline="false" |
| | | @click="getInsertFile(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i></el-link> |
| | | <el-link |
| | | :title="$t('common.upload')" |
| | | :underline="false" |
| | | @click="setinsertFile(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.bak')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="insertform.bak" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <!-- <el-link |
| | | :underline="false" |
| | | @click="getInsertFile(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i></el-link> |
| | | <el-link |
| | | :title="$t('common.upload')" |
| | | :underline="false" |
| | | @click="setinsertFile(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.bak')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="insertform.bak" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div |
| | | slot="footer" |
| | | class="dialog-footer" |
| | |
| | | type="info" |
| | | size="small" |
| | | @click="insertFromDataClose" |
| | | >{{$t('common.close')}}</el-button> |
| | | >{{ $t('common.close') }} |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="small" |
| | | @click="insertFromData" |
| | | >{{$t('common.confirm')}}</el-button> |
| | | >{{ $t('common.confirm') }} |
| | | </el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <div |
| | |
| | | size="small" |
| | | @click="selectDirCataName" |
| | | >{{ |
| | | $t('common.confirm') |
| | | }}</el-button> |
| | | $t('common.confirm') |
| | | }} |
| | | </el-button> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="showDirCata = false" |
| | | >{{ |
| | | $t('common.close') |
| | | }}</el-button> |
| | | $t('common.close') |
| | | }} |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | <div |
| | |
| | | size="small" |
| | | @click="selectDepCataName" |
| | | >{{ |
| | | $t('common.confirm') |
| | | }}</el-button> |
| | | $t('common.confirm') |
| | | }} |
| | | </el-button> |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="showDepCata = false" |
| | | >{{ |
| | | $t('common.close') |
| | | }}</el-button> |
| | | $t('common.close') |
| | | }} |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | <iframe |
| | | id="downFrame" |
| | | src="" |
| | | style="display: none; border: 0; padding: 0; height: 0; width: 0" |
| | | ></iframe> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | updateStyle, |
| | | upload_style, |
| | | queryDepTree, |
| | | selectdirTab |
| | | selectdirTab, |
| | | } from "../../api/api"; |
| | | |
| | | export default { |
| | | name: "styleManage", |
| | | components: { MyBread, styleDirTree, styleDepTree }, |
| | |
| | | insertFileName: "", |
| | | insertViewName: "", |
| | | |
| | | insertform: { |
| | | |
| | | }, |
| | | insertform: {}, |
| | | dialogFormVisible: false, |
| | | InsertFormdialog: false, |
| | | showCata: false, |
| | | upform: {}, |
| | | upform: { status: '0' }, |
| | | formLabelWidth: "130px", |
| | | showinfoBox: false, |
| | | itemdetail: {}, |
| | |
| | | editCompanyOption: [], |
| | | editcatalogOption: [], |
| | | cascader: { |
| | | label: 'name', |
| | | value: 'id', |
| | | children: 'children', |
| | | label: "name", |
| | | value: "id", |
| | | children: "children", |
| | | checkStrictly: true, |
| | | emitPath: false, |
| | | }, |
| | |
| | | children: "children", |
| | | label: "name", |
| | | }, |
| | | selectOptionWidth: '', |
| | | selectheight: 'auto', |
| | | defaultexpand: false |
| | | selectOptionWidth: "", |
| | | selectheight: "auto", |
| | | defaultexpand: false, |
| | | tableHeight: 0, |
| | | timer: 0, |
| | | styleVar: { |
| | | height: "calc(100% - 109px)", |
| | | }, |
| | | status: 0, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getRoleTabelData(); |
| | | this.showPermsBtn(); |
| | | this.getQueryDepTree(); this.getSelectdirTab(); |
| | | this.getQueryDepTree(); |
| | | this.getSelectdirTab(); |
| | | }, |
| | | beforeDestroy() { |
| | | this.timer && clearTimeout(this.timer); |
| | | window.removeEventListener("resize", this.onResize); |
| | | }, |
| | | mounted() { |
| | | window.addEventListener("resize", this.onResize); |
| | | this.calHeight(); |
| | | }, |
| | | methods: { |
| | | onResize() { |
| | | this.timer && clearTimeout(this.timer); |
| | | this.timer = setTimeout(() => { |
| | | this.calHeight(); |
| | | }, 500); |
| | | }, |
| | | calHeight() { |
| | | this.$nextTick(() => { |
| | | const rect = this.$refs.container.getBoundingClientRect(); |
| | | this.tableHeight = `${rect.height + 97}px`; |
| | | this.styleVar["height"] = `calc(100% - ${rect.height + 28}px)`; |
| | | }); |
| | | }, |
| | | showPermsBtn() { |
| | | let currentPerms = this.$store.state.currentPerms; |
| | | let permsEntity = this.$store.state.permsEntity; |
| | |
| | | document.getElementById("insertFile").value = ""; |
| | | document.getElementById("insertimageFile").value = ""; |
| | | |
| | | this.guidFile = ''; |
| | | this.fileGuid = ''; |
| | | this.guidFile = ""; |
| | | this.fileGuid = ""; |
| | | }, |
| | | getInsertFile(res) { |
| | | if (res == 0) { |
| | |
| | | } |
| | | }, |
| | | insertFileData: function (res) { |
| | | |
| | | |
| | | if (res == 0) { |
| | | let val = document.getElementById("insertFile").files; |
| | | |
| | |
| | | for (var i in this.multipleSelection) { |
| | | std.push(this.multipleSelection[i].id); |
| | | } |
| | | this.$confirm('此操作将永久删除该样式, 是否继续?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(async () => { |
| | | const data = await deleteStyles({ ids: std.toString() }); |
| | | if (data.code == 200) { |
| | | this.$confirm("此操作将永久删除该样式, 是否继续?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(async () => { |
| | | const data = await deleteStyles({ ids: std.toString() }); |
| | | if (data.code == 200) { |
| | | this.$message({ |
| | | message: "删除成功!", |
| | | type: "success", |
| | | }); |
| | | this.listData.pageIndex = 1; |
| | | this.getRoleTabelData(); |
| | | } else { |
| | | this.$message({ |
| | | message: "删除失败!", |
| | | type: "warning", |
| | | }); |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | this.$message({ |
| | | message: "删除成功!", |
| | | type: "success", |
| | | type: "info", |
| | | message: "已取消删除", |
| | | }); |
| | | this.getRoleTabelData(); |
| | | } else { |
| | | this.$message({ |
| | | message: "删除失败!", |
| | | type: "warning", |
| | | }); |
| | | } |
| | | }).catch(() => { |
| | | this.$message({ |
| | | type: 'info', |
| | | message: '已取消删除' |
| | | }); |
| | | }); |
| | | }, |
| | | showDirTree(res) { |
| | | this.dirFlag = res; |
| | |
| | | } |
| | | }, |
| | | insertFromDataClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = { |
| | | |
| | | } |
| | | this.insertFileGuid = ""; |
| | | this.insertViewGuid = "" |
| | | this.filesReset(); |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | this.insertFileGuid = ""; |
| | | this.insertViewGuid = ""; |
| | | this.filesReset(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | handleClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | } |
| | | this.filesReset(); |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | }; |
| | | this.filesReset(); |
| | | }) |
| | | .catch((_) => { }); |
| | | }, |
| | | async insertFromData() { |
| | | if (this.insertform.dirid == null || this.insertform.depid == null) { |
| | |
| | | this.insertform = { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | } |
| | | }; |
| | | this.insertFileGuid = ""; |
| | | this.insertViewGuid = "" |
| | | this.insertViewGuid = ""; |
| | | this.filesReset(); |
| | | this.$message({ |
| | | message: "添加成功!", |
| | |
| | | } |
| | | this.listData.name = this.ruleForm.name; |
| | | const data = await select_Style_ByPageAndCount(this.listData); |
| | | |
| | | |
| | | if (data.code != 200) { |
| | | this.$message.error("列表调用失败"); |
| | | } |
| | |
| | | if (date === undefined || date === null) { |
| | | return; |
| | | } |
| | | |
| | | switch (date) { |
| | | case 1: |
| | | return "启用"; |
| | |
| | | if (!val || !val.length) return; |
| | | var formData = new FormData(); |
| | | formData.append("file0", val[0]); |
| | | var res = $.ajax(+ "/style/upload", { |
| | | var res = $.ajax(+"/style/upload", { |
| | | type: "post", |
| | | data: formData, |
| | | async: false, |
| | |
| | | this.upform.vname = this.upform.viewGuid; |
| | | this.upform.viewGuid = this.viewFile; |
| | | } |
| | | this.upform.status = this.status |
| | | |
| | | const data = await updateStyle(this.upform); |
| | | if (data.code == 200) { |
| | | this.dialogFormVisible = false; |
| | |
| | | }, |
| | | |
| | | removeUpdate() { |
| | | this.upflag = false; |
| | | this.dialogFormVisible = false; |
| | | this.upform = {}; |
| | | this.$confirm("关闭后无法保存,是否关闭?") |
| | | .then((_) => { |
| | | this.upflag = false; |
| | | this.dialogFormVisible = false; |
| | | this.upform = {}; |
| | | }) |
| | | .catch((_) => { }); |
| | | // this.filesReset(); |
| | | }, |
| | | submitForm(formName) { |
| | |
| | | this.showinfoBox = true; |
| | | |
| | | this.itemdetail = row; |
| | | |
| | | this.itemdetail.createTime = this.formomentTime( |
| | | this.itemdetail.createTime |
| | | ); |
| | | this.itemdetail.updateTime = this.formomentTime( |
| | | this.itemdetail.updateTime |
| | | ); |
| | | this.itemdetail.imageFile = |
| | | BASE_URL + "/res/download?guid=" + row.viewGuid + "&token=" + token; |
| | | this.itemdetail.imageFile = BASE_URL + "/comprehensive/downloadForView?guid=" + row.viewGuid + "&token=" + token; |
| | | }, |
| | | closeDetial() { |
| | | this.showinfoBox = false; |
| | | this.itemdetail = {}; |
| | | }, |
| | | handleDownload() { |
| | | if (this.multipleSelection.length == 0) { |
| | | return this.$message({ |
| | | message: '请选择需要下载的文件', |
| | | type: 'warning' |
| | | }); |
| | | } |
| | | |
| | | // var data = { |
| | | // guids: ["e5b6ae0889b88111f13a4b6e048348db", "fa4f299e901a0c46e634f8fcc8185c0c"] |
| | | // }; |
| | | // ajax(getUrl("/res/downloadReqForGuids"), "POST", JSON.stringify(data), null, null, function (rs) { |
| | | // console.log(rs); |
| | | // alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | // }); |
| | | var std = []; |
| | | for (var i in this.multipleSelection) { |
| | | std.push(this.multipleSelection[i].fileGuid) |
| | | } |
| | | var token = getToken() |
| | | $.ajax(BASE_URL + "/style/downloadReqForGuids?token=" + token, { |
| | | type: "post", |
| | | data: JSON.stringify({ |
| | | guids: std |
| | | }), |
| | | async: true, |
| | | cache: false, |
| | | processData: false, |
| | | contentType: false, |
| | | success: res => { |
| | | if (res.code != 200) { |
| | | return |
| | | } |
| | | |
| | | var token = getToken() |
| | | var url = BASE_URL + "/style/downloadFile?token=" + token + "&guid=" + res.result; |
| | | |
| | | $("#downFrame").attr("src", url).click(); |
| | | }, |
| | | }) |
| | | |
| | | |
| | | }, |
| | | // handleDownload(index, row) { |
| | | |
| | | // var token = getToken() |
| | | // var url = BASE_URL + "/res/download?token=" + token + "&guid=" + row.fileGuid; |
| | | |
| | | // $("#downFrame").attr("src", url).click(); |
| | | |
| | | // }, |
| | | handleEdit(index, row) { |
| | | |
| | | this.upflag = true; |
| | |
| | | this.upform.dirValue = row.dirName; |
| | | this.upform.fileGuid = row.fname; |
| | | this.upform.viewGuid = row.vname; |
| | | this.upform.status = this.forMontStatus(row.status); |
| | | // this.upform.status = this.forMontStatus(row.status); |
| | | |
| | | // this.upform.status = row.status; |
| | | this.status = this.forMontStatus(row.status); |
| | | }, |
| | | handleDelete(index, row) { |
| | | this.$confirm("确定是否删除?", "提示", { |
| | |
| | | }); |
| | | this.startFromData(); |
| | | }) |
| | | .catch(() => { }); |
| | | .catch(() => { |
| | | }); |
| | | }, |
| | | // 获取多选 |
| | | |
| | |
| | | catalogChange(res) { |
| | | this.insertform.dirid = res; |
| | | this.upform.dirid = res; |
| | | |
| | | }, |
| | | handcatalogChange(data, node, nodeData) { |
| | | this.$set(this.insertform, 'dirid', data.id) |
| | | this.$set(this.insertform, 'dirName', data.name) |
| | | 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.insertform.depid = data.id; |
| | | this.upform.dirid = data.id; |
| | | this.upform.dirName = data.name; |
| | | }, |
| | |
| | | }, |
| | | companyChange(res) { |
| | | this.insertform.depid = res; |
| | | |
| | | }, |
| | | handcompanyChange(data, node, nodeData) { |
| | | this.$set(this.insertform, 'depid', data.id) |
| | | this.$set(this.insertform, "depid", data.id); |
| | | // this.insertform.depid = data.id; |
| | | this.$set(this.insertform, 'depName', data.name) |
| | | this.$set(this.insertform, "depName", data.name); |
| | | // this.insertform.depName = data.name; |
| | | }, |
| | | //新增数据 |
| | | setInsertShow() { |
| | | this.InsertFormdialog = true; |
| | | this.$set(this, 'insertform', {}) |
| | | this.$set(this, "insertform", {}); |
| | | }, |
| | | //目录列表获取 |
| | | async getSelectdirTab() { |
| | | const res = await selectdirTab(); |
| | | if (res.code != 200) { |
| | | this.$message.error('目录列表获取失败'); |
| | | this.$message.error("目录列表获取失败"); |
| | | return; |
| | | } |
| | | this.insertform.dirid = 1; |
| | |
| | | async getQueryDepTree() { |
| | | const res = await queryDepTree(); |
| | | if (res.code != 200) { |
| | | this.$message.error('单位列表获取失败'); |
| | | this.$message.error("单位列表获取失败"); |
| | | return; |
| | | } |
| | | this.insertform.depid = 1; |
| | |
| | | this.editCompanyOption = this.treeData(res.result); |
| | | }, |
| | | handleNodeClick(data, node, nodeData) { |
| | | this.upform.depid = data.id |
| | | this.upform.depid = data.id; |
| | | this.upform.depName = data.name; |
| | | }, |
| | | //树列表生成 |
| | |
| | | return cloneData.filter((father) => { |
| | | // 循环所有项 |
| | | let branchArr = cloneData.filter((child) => father.id == child.pid); // 对比ID,分别上下级菜单,并返回数据 |
| | | branchArr.length > 0 ? (father.children = branchArr) : ''; // 给父级添加一个children属性,并赋值 |
| | | branchArr.length > 0 ? (father.children = branchArr) : ""; // 给父级添加一个children属性,并赋值 |
| | | return father.pid == 0; // 返回一级菜单 |
| | | }); |
| | | }, |
| | | setOptionWidth(event) { |
| | | // 下拉框聚焦,设置弹框的宽度 |
| | | this.$nextTick(() => { |
| | | this.selectOptionWidth = event.srcElement.offsetWidth + 'px'; |
| | | this.selectOptionWidth = event.srcElement.offsetWidth + "px"; |
| | | }); |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | .authorityManagement_box { |
| | | height: 98%; |
| | | width: 98%; |
| | | padding: 1%; |
| | | padding: 0.5%; |
| | | |
| | | .el-input { |
| | | width: 730px; |
| | | } |
| | | |
| | | .searchComp { |
| | | margin: 10px auto; |
| | | padding: 8px; |
| | | //margin-top: 20px; |
| | | |
| | | border-radius: 5px; |
| | | |
| | | //margin-bottom: 20px; |
| | | .el-form-item { |
| | | margin: 5px; |
| | | } |
| | | .el-input { |
| | | width: 467px; |
| | | } |
| | | |
| | | // .el-input { |
| | | // width: 467px; |
| | | // } |
| | | } |
| | | |
| | | .leftTree { |
| | | position: absolute; |
| | | z-index: 10; |
| | |
| | | height: 550px; |
| | | overflow: auto; |
| | | } |
| | | |
| | | .btnBox { |
| | | width: 160px; |
| | | margin: 10px auto 0; |
| | | } |
| | | } |
| | | .bottom { |
| | | width: 100%; |
| | | height: 85%; |
| | | .rightTable { |
| | | height: 100%; |
| | | width: 100%; |
| | | .table_box { |
| | | width: 100%; |
| | | height: 80%; |
| | | margin: 0 auto; |
| | | overflow: auto; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .BoxFlex { |
| | | display: flex; |
| | | justify-content: space-around; |
| | | width: 85%; |
| | | |
| | | .BoxFlexinput { |
| | | flex: 1; |
| | | } |