| | |
| | | ]" |
| | | ></My-bread> |
| | | <el-divider /> |
| | | <div> |
| | | <el-form :inline="true" :model="formInline" class="demo-form-inline"> |
| | | <el-form-item :label="$t('dataManage.dictionaryManageObj.tableName')"> |
| | | <el-input |
| | | v-model="formInline.tab" |
| | | :placeholder="$t('common.pleaseInput')" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | icon="el-icon-search" |
| | | @click="getSelectDictTab" |
| | | class="primary" |
| | | >{{ $t('common.iquery') }}</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-refresh" |
| | | @click="getRemoveForm" |
| | | type="info" |
| | | >{{ $t('common.reset') }}</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-edit" |
| | | @click="InsertFormdialog = true" |
| | | type="success" |
| | | >{{ $t('common.append') }}</el-button |
| | | > |
| | | <el-button icon="el-icon-delete" @click="DelFormData" type="danger">{{ |
| | | $t('common.delete') |
| | | }}</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div class="dictionaryContent"> |
| | | <div class="dictionary_leftTree"> |
| | | <ul> |
| | | <li |
| | | @click="getTableDesc(item)" |
| | | v-for="item in optionCount" |
| | | :class="{ active: activeName == item.tab }" |
| | | > |
| | | {{ item.tabDesc }}({{ item.tab }}) |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <div class="dictionary_rightContent"> |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | @selection-change="handleSelectionChange" |
| | | height="93%" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column |
| | | prop="orderNum" |
| | | :label="$t('dataManage.dictionaryManageObj.number')" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="field" |
| | | :label="$t('dataManage.dictionaryManageObj.fieldName')" |
| | | /> |
| | | <el-table-column |
| | | min-width="90" |
| | | prop="alias" |
| | | :label="$t('dataManage.dictionaryManageObj.fieldAliasName')" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="type" |
| | | :label="$t('dataManage.dictionaryManageObj.fieldType')" |
| | | /> |
| | | <el-table-column |
| | | min-width="60" |
| | | prop="len" |
| | | :label="$t('dataManage.dictionaryManageObj.fieldLength')" |
| | | /> |
| | | <el-table-column |
| | | min-width="60" |
| | | prop="precision" |
| | | :label="$t('dataManage.dictionaryManageObj.FieldPrecision')" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="tab" |
| | | :label="$t('dataManage.dictionaryManageObj.rangeAssociationTable')" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="bak" |
| | | :label="$t('dataManage.dictionaryManageObj.remark')" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="createTime" |
| | | :label="$t('dataManage.dictionaryManageObj.creationTime')" |
| | | :formatter="formatData" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="createUser" |
| | | :label="$t('dataManage.dictionaryManageObj.createPersonnel')" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="updateTime" |
| | | :label="$t('dataManage.dictionaryManageObj.updateTime')" |
| | | :formatter="formatData" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="updateUser" |
| | | :label="$t('dataManage.dictionaryManageObj.updatePersonnel')" |
| | | /> |
| | | |
| | | <el-table-column |
| | | min-width="100" |
| | | :label="$t('dataManage.dictionaryManageObj.operation')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-link |
| | | v-if="btnStatus.select" |
| | | style="color: white" |
| | | @click="showDetail(scope.$index, scope.row)" |
| | | >{{ $t('dataManage.dictionaryManageObj.lookOver') }}</el-link |
| | | > |
| | | <el-link |
| | | v-if="btnStatus.update" |
| | | @click="handleEdit(scope.$index, scope.row)" |
| | | style="margin-left: 10px; color: white" |
| | | >{{ $t('dataManage.dictionaryManageObj.revamp') }}</el-link |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div class="pagination_box" style="margin-top: 10px"> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="listData.pageIndex" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | :page-size="listData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count" |
| | | > |
| | | </el-pagination> |
| | | <div class="mainBox"> |
| | | |
| | | <div class="dictionary_leftTree subpage_Div" style="border: 1px solid #dcdfe6;"> |
| | | <ul> |
| | | <li |
| | | @click="getTableDesc(item)" |
| | | v-for="(item, i) in optionCount" |
| | | :class="{ active: activeName == item.tab }" |
| | | :key="i" |
| | | > |
| | | {{ item.tabDesc }} |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="infoBox" v-show="showinfoBox"> |
| | | <el-card class="box-card"> |
| | | <div slot="header" class="clearfix"> |
| | | <span>{{ $t('dataManage.dictionaryManageObj.particulars') }}</span> |
| | | <div style="float: right; cursor: pointer" @click="closeDetial"> |
| | | <i class="el-icon-close"></i> |
| | | |
| | | <div class="right subpage_Div"> |
| | | <div class="inquire"> |
| | | <el-form :inline="true" :model="formInline" class="demo-form-inline"> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.tableName')" |
| | | > |
| | | <el-input |
| | | v-model="formInline.tab" |
| | | :placeholder="$t('common.pleaseInput')" |
| | | style="width: 200px" |
| | | suffix-icon="el-icon-edit" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item style="float: right"> |
| | | <el-button |
| | | v-if="btnStatus.insert" |
| | | icon="el-icon-edit" |
| | | size="small" |
| | | @click="InsertFormdialog = true" |
| | | type="success" |
| | | >{{ $t("common.append") }}</el-button |
| | | > |
| | | <el-button |
| | | v-if="btnStatus.delete" |
| | | icon="el-icon-delete" |
| | | size="small" |
| | | @click="DelFormData" |
| | | type="danger" |
| | | >{{ $t("common.delete") }}</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-search" |
| | | size="small" |
| | | @click="getSelectDictTab" |
| | | class="primary" |
| | | >{{ $t("common.iquery") }}</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-refresh" |
| | | size="small" |
| | | @click="getRemoveForm" |
| | | type="info" |
| | | >{{ $t("common.reset") }}</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div class="dividing-line"></div> |
| | | <div class="table_box" style="height:calc(100% - 60px)"> |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%" |
| | | @selection-change="handleSelectionChange" |
| | | height="calc(100% - 57px)" |
| | | > |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column |
| | | prop="orderNum" |
| | | :label="$t('dataManage.dictionaryManageObj.number')" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="field" |
| | | :label="$t('dataManage.dictionaryManageObj.fieldName')" |
| | | /> |
| | | <el-table-column |
| | | min-width="120" |
| | | prop="alias" |
| | | :label="$t('dataManage.dictionaryManageObj.fieldAliasName')" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="type" |
| | | :label="$t('dataManage.dictionaryManageObj.fieldType')" |
| | | /> |
| | | <el-table-column |
| | | min-width="80" |
| | | prop="len" |
| | | :label="$t('dataManage.dictionaryManageObj.fieldLength')" |
| | | /> |
| | | <el-table-column |
| | | min-width="80" |
| | | prop="precision" |
| | | :label="$t('dataManage.dictionaryManageObj.FieldPrecision')" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="tab" |
| | | :label=" |
| | | $t('dataManage.dictionaryManageObj.rangeAssociationTable') |
| | | " |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="bak" |
| | | :label="$t('dataManage.dictionaryManageObj.remark')" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="createTime" |
| | | :label="$t('dataManage.dictionaryManageObj.creationTime')" |
| | | :formatter="formatData" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="createUser" |
| | | :label="$t('dataManage.dictionaryManageObj.createPersonnel')" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="updateTime" |
| | | :label="$t('dataManage.dictionaryManageObj.updateTime')" |
| | | :formatter="formatData" |
| | | /> |
| | | <el-table-column |
| | | min-width="100" |
| | | prop="updateUser" |
| | | :label="$t('dataManage.dictionaryManageObj.updatePersonnel')" |
| | | /> |
| | | |
| | | <el-table-column |
| | | min-width="180" |
| | | :label="$t('dataManage.dictionaryManageObj.operation')" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | size="small" |
| | | v-if="btnStatus.select" |
| | | @click="showDetail(scope.$index, scope.row)" |
| | | >{{ $t("dataManage.dictionaryManageObj.lookOver") }}</el-button |
| | | > |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | size="small" |
| | | v-if="btnStatus.update" |
| | | @click="handleEdit(scope.$index, scope.row)" |
| | | style="margin-left: 10px" |
| | | >{{ $t("dataManage.dictionaryManageObj.revamp") }}</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, 20, 50, 100]" |
| | | :page-size="listData.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="count" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | <div class="contentBox"> |
| | | <p> |
| | | {{ $t('dataManage.dictionaryManageObj.tableName') }}:{{ |
| | | itemdetail.tab |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t('dataManage.dictionaryManageObj.tableAliasName') }}:{{ |
| | | itemdetail.tabDesc |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | |
| | | <p> |
| | | {{ $t('dataManage.dictionaryManageObj.fieldName') }}:{{ |
| | | itemdetail.field |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t('dataManage.dictionaryManageObj.fieldAliasName') }}:{{ |
| | | itemdetail.alias |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t('dataManage.dictionaryManageObj.fieldType') }}:{{ |
| | | itemdetail.type |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t('dataManage.dictionaryManageObj.fieldLength') }}:{{ |
| | | itemdetail.len |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t('dataManage.dictionaryManageObj.FieldPrecision') }}:{{ |
| | | itemdetail.precision |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | |
| | | <p> |
| | | {{ $t('dataManage.dictionaryManageObj.remark') }}:{{ |
| | | itemdetail.bak |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t('dataManage.dictionaryManageObj.creationTime') }}:{{ |
| | | itemdetail.createTime |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t('dataManage.dictionaryManageObj.createPersonnel') }}:{{ |
| | | itemdetail.createUser |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t('dataManage.dictionaryManageObj.updateTime') }}:{{ |
| | | itemdetail.updateTime |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t('dataManage.dictionaryManageObj.updatePersonnel') }}:{{ |
| | | itemdetail.updateUser |
| | | }} |
| | | </p> |
| | | </div> |
| | | </div> |
| | | <div class="infoBox_box" v-show="showinfoBox"> |
| | | <div class="infoBox box_div"> |
| | | <div slot="header" class="clearfix"> |
| | | <span>{{ $t("dataManage.dictionaryManageObj.particulars") }}</span> |
| | | <div style="float: right; cursor: pointer" @click="closeDetial"> |
| | | <i class="el-icon-close"></i> |
| | | </div> |
| | | </el-card> |
| | | </div> |
| | | <el-divider></el-divider> |
| | | <div class="contentBox"> |
| | | <p> |
| | | {{ $t("dataManage.dictionaryManageObj.tableName") }}:{{ |
| | | itemdetail.tab |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t("dataManage.dictionaryManageObj.tableAliasName") }}:{{ |
| | | itemdetail.tabDesc |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | |
| | | <p> |
| | | {{ $t("dataManage.dictionaryManageObj.fieldName") }}:{{ |
| | | itemdetail.field |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t("dataManage.dictionaryManageObj.fieldAliasName") }}:{{ |
| | | itemdetail.alias |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t("dataManage.dictionaryManageObj.fieldType") }}:{{ |
| | | itemdetail.type |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t("dataManage.dictionaryManageObj.fieldLength") }}:{{ |
| | | itemdetail.len |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t("dataManage.dictionaryManageObj.FieldPrecision") }}:{{ |
| | | itemdetail.precision |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | |
| | | <p> |
| | | {{ $t("dataManage.dictionaryManageObj.remark") }}:{{ |
| | | itemdetail.bak |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t("dataManage.dictionaryManageObj.creationTime") }}:{{ |
| | | itemdetail.createTime |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t("dataManage.dictionaryManageObj.createPersonnel") }}:{{ |
| | | itemdetail.createUser |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t("dataManage.dictionaryManageObj.updateTime") }}:{{ |
| | | itemdetail.updateTime |
| | | }} |
| | | </p> |
| | | <el-divider></el-divider> |
| | | <p> |
| | | {{ $t("dataManage.dictionaryManageObj.updatePersonnel") }}:{{ |
| | | itemdetail.updateUser |
| | | }} |
| | | </p> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <el-dialog |
| | | top="3vh" |
| | | style="overflow: hidden" |
| | | top="2vh" |
| | | :title="$t('dataManage.dictionaryManageObj.revamp')" |
| | | :visible.sync="dialogFormVisible" |
| | | > |
| | | <el-form :model="upform"> |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form :model="upform" label-position="top"> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.number')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="upform.orderNum" autocomplete="off"></el-input> |
| | | <el-input v-model="upform.orderNum" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.tableName')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="upform.tab" autocomplete="off"></el-input> |
| | | <el-input v-model="upform.tab" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.tableAliasName')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="upform.tabDesc" autocomplete="off"></el-input> |
| | | <el-input v-model="upform.tabDesc" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.fieldName')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="upform.field" autocomplete="off"></el-input> |
| | | <el-input v-model="upform.field" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.fieldAliasName')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="upform.alias" autocomplete="off"></el-input> |
| | | <el-input v-model="upform.alias" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.fieldType')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="upform.type" autocomplete="off"></el-input> |
| | | <el-input v-model="upform.type" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.fieldLength')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="upform.len" autocomplete="off"></el-input> |
| | | <el-input v-model="upform.len" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.FieldPrecision')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="upform.precision" autocomplete="off"></el-input> |
| | | <el-input v-model="upform.precision" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.remark')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="upform.bak" autocomplete="off"></el-input> |
| | | <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"> |
| | | <el-button type="info" @click="dialogFormVisible = false">{{ |
| | | $t('dataManage.dictionaryManageObj.cancel') |
| | | }}</el-button> |
| | | <el-button class="primary" @click="updateForm">{{ |
| | | $t('dataManage.dictionaryManageObj.confirm') |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="dialogFormVisible = false" |
| | | >{{ $t("dataManage.dictionaryManageObj.cancel") }}</el-button |
| | | > |
| | | <el-button class="primary" size="small" @click="updateForm">{{ |
| | | $t("dataManage.dictionaryManageObj.confirm") |
| | | }}</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="$t('dataManage.dictionaryManageObj.add')" |
| | | top="3vh" |
| | | style="overflow: hidden" |
| | | top="2vh" |
| | | :visible.sync="InsertFormdialog" |
| | | > |
| | | <el-form :model="insertform"> |
| | | <div style="height: 500px; overflow: auto"> |
| | | <el-form :model="insertform" label-position="top"> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.number')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="insertform.orderNum" autocomplete="off"></el-input> |
| | | <el-input v-model="insertform.orderNum" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.tableName')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="insertform.tab" autocomplete="off"></el-input> |
| | | <el-input v-model="insertform.tab" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.tableAliasName')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="insertform.tabDesc" autocomplete="off"></el-input> |
| | | <el-input v-model="insertform.tabDesc" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.fieldName')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="insertform.field" autocomplete="off"></el-input> |
| | | <el-input v-model="insertform.field" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.fieldAliasName')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="insertform.alias" autocomplete="off"></el-input> |
| | | <el-input v-model="insertform.alias" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.fieldType')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="insertform.type" autocomplete="off"></el-input> |
| | | <el-input v-model="insertform.type" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.fieldLength')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="insertform.len" autocomplete="off"></el-input> |
| | | <el-input v-model="insertform.len" autocomplete="off" style="width:85%"></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.dictionaryManageObj.FieldPrecision')" |
| | |
| | | <el-input |
| | | v-model="insertform.precision" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | |
| | |
| | | :label="$t('dataManage.dictionaryManageObj.remark')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input v-model="insertform.bak" autocomplete="off"></el-input> |
| | | <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"> |
| | | <el-button type="info" @click="InsertFormdialog = false">{{ |
| | | $t('dataManage.dictionaryManageObj.cancel') |
| | | <el-button type="info" size="small" @click="InsertFormdialog = false">{{ |
| | | $t("dataManage.dictionaryManageObj.cancel") |
| | | }}</el-button> |
| | | <el-button class="primary" @click="insertFromData">{{ |
| | | $t('dataManage.dictionaryManageObj.confirm') |
| | | <el-button type="primary" size="small" @click="insertFromData">{{ |
| | | $t("dataManage.dictionaryManageObj.confirm") |
| | | }}</el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | deleteDicts, |
| | | updateDict, |
| | | insertDict, |
| | | } from '../../api/api'; |
| | | import MyBread from '../../components/MyBread.vue'; |
| | | } from "../../api/api"; |
| | | import MyBread from "../../components/MyBread.vue"; |
| | | export default { |
| | | name: 'dictionaryManage', |
| | | name: "dictionaryManage", |
| | | components: { MyBread }, |
| | | data() { |
| | | return { |
| | | activeName: '', |
| | | activeName: "", |
| | | formInline: [], |
| | | listData: { |
| | | ns: '', |
| | | tab: '', |
| | | ns: "", |
| | | tab: "", |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | }, |
| | |
| | | insertform: {}, |
| | | |
| | | multipleSelection: [], |
| | | formLabelWidth: '130px', |
| | | formLabelWidth: "130px", |
| | | btnStatus: { |
| | | select: false, |
| | | delete: false, |
| | |
| | | this.startQueryNameData(); |
| | | }, |
| | | async startQueryNameData() { |
| | | if (this.listData.tab == '') { |
| | | if (this.listData.tab == "") { |
| | | delete this.listData.tab; |
| | | } |
| | | const data = await selectByPageAndCount(this.listData); |
| | | |
| | | if (data.code != 200) { |
| | | this.$message.error('列表调用失败'); |
| | | this.$message.error("列表调用失败"); |
| | | } |
| | | |
| | | this.tableData = data.result; |
| | |
| | | async updateForm() { |
| | | const data = await updateDict(this.upform); |
| | | if (data.code != 200) { |
| | | this.$message.error('修改失败'); |
| | | this.$message.error("修改失败"); |
| | | return; |
| | | } |
| | | this.dialogFormVisible = false; |
| | |
| | | this.upform = row; |
| | | }, |
| | | //删除列表 |
| | | async DelFormData() { |
| | | DelFormData() { |
| | | var std = []; |
| | | |
| | | for (var i in this.multipleSelection) { |
| | | std.push(this.multipleSelection[i].id); |
| | | } |
| | | |
| | | const data = await deleteDicts({ ids: std.toString() }); |
| | | if (data.code != 200) { |
| | | this.$message.error('删除失败'); |
| | | } |
| | | this.listData.pageIndex = 1; |
| | | this.listData.pageSize = 10; |
| | | this.startQueryNameData(); |
| | | this.$confirm("此操作将永久删除该字段, 是否继续?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(async () => { |
| | | const data = await deleteDicts({ ids: std.toString() }); |
| | | if (data.code != 200) { |
| | | this.$message.error("删除失败"); |
| | | } |
| | | this.listData.pageIndex = 1; |
| | | this.listData.pageSize = 10; |
| | | this.startQueryNameData(); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "删除成功!", |
| | | }); |
| | | }) |
| | | .catch(() => { |
| | | this.$message({ |
| | | type: "info", |
| | | message: "已取消删除", |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | showPermsBtn() { |
| | |
| | | var h = time.getHours(); |
| | | var mm = time.getMinutes(); |
| | | var s = time.getSeconds(); |
| | | return y + '-' + this.add0(m) + '-' + this.add0(d); |
| | | return y + "-" + this.add0(m) + "-" + this.add0(d); |
| | | }, |
| | | //格式化时间 |
| | | add0(m) { |
| | | return m < 10 ? '0' + m : m; |
| | | return m < 10 ? "0" + m : m; |
| | | }, |
| | | getRemoveForm() { |
| | | this.formInline.tab = null; |
| | |
| | | async getSelectDictTab() { |
| | | const data = await selectDictTab({ name: this.formInline.tab }); |
| | | if (data.code != 200) { |
| | | this.$message.error('下拉调用失败'); |
| | | this.$message.error("下拉调用失败"); |
| | | } |
| | | |
| | | this.optionCount = data.result; |
| | |
| | | <style lang="less" scoped> |
| | | //@import url(); 引入公共css类 |
| | | .dictionaryBox { |
| | | height: 81%; |
| | | width: 97%; |
| | | position: absolute; |
| | | box-sizing: border-box; |
| | | .dictionaryContent { |
| | | width: 100%; |
| | | height: 92%; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | height: 98%; |
| | | width: 98%; |
| | | padding: 0.5%; |
| | | .dictionary_leftTree { |
| | | width: 15%; |
| | | height: 85%; |
| | | border: 1px solid white; |
| | | width: calc(23% - 0px); |
| | | height: 100%; |
| | | padding: 10px; |
| | | border-radius: 5px; |
| | | padding: 1%; |
| | | max-height: 670px; |
| | | box-sizing: border-box; |
| | | overflow-y: auto; |
| | | li { |
| | | color: white; |
| | | border-bottom: 1px solid white; |
| | | border-bottom: 1px solid #dcdfe6; |
| | | line-height: 30px; |
| | | text-align: center; |
| | | } |
| | |
| | | } |
| | | .dictionary_rightContent { |
| | | width: 80%; |
| | | height: 85%; |
| | | border: 1px solid white; |
| | | height: 80%; |
| | | |
| | | border-radius: 5px; |
| | | padding: 1%; |
| | | overflow-y: auto; |
| | | } |
| | | } |
| | | |
| | | .infinite-list-item { |
| | | background: rgba(255, 255, 255, 0.3); |
| | | color: white; |
| | | |
| | | margin-top: 5%; |
| | | padding: 1%; |
| | | text-align: center; |
| | |
| | | margin-top: 0px; |
| | | margin-bottom: 10px; |
| | | } |
| | | .primary { |
| | | background: #409eff; |
| | | border: #409eff; |
| | | color: white; |
| | | } |
| | | .mainBox { |
| | | padding-top: 10px; |
| | | width: 100%; |
| | | height: calc(100% - 75px); |
| | | display: flex; |
| | | justify-content: space-around; |
| | | .leftTree { |
| | | width: calc(23% - 0px); |
| | | height: 100%; |
| | | padding: 10px; |
| | | border-radius: 5px; |
| | | box-sizing: border-box; |
| | | overflow-y: auto; |
| | | } |
| | | /deep/.el-form-item__label { |
| | | color: white; |
| | | } |
| | | // 设置输入框的背景色、字体颜色、边框属性设置; |
| | | /deep/.el-input__inner { |
| | | background-color: transparent !important ; |
| | | color: #fff; |
| | | border: 1px solid; |
| | | } |
| | | /*修改table 表体的背景颜色和文字颜色*/ |
| | | /deep/ .el-table { |
| | | background-color: transparent; |
| | | |
| | | th, |
| | | td { |
| | | background-color: transparent; |
| | | } |
| | | .el-table__expanded-cell { |
| | | background-color: transparent !important; |
| | | } |
| | | |
| | | // 表头背景色 |
| | | th.el-table__cell { |
| | | background-color: #303030; |
| | | color: #fff; |
| | | } |
| | | tr > td { |
| | | background-color: #303030; |
| | | color: #fff; |
| | | } |
| | | |
| | | // hover效果 |
| | | tr:hover > td { |
| | | background-color: rgba(255, 255, 255, 0.3) !important; |
| | | } |
| | | |
| | | tbody tr:hover { |
| | | background-color: rgba(255, 255, 255, 0.3) !important; |
| | | // text-align: center; |
| | | } |
| | | |
| | | // 滚动条宽高 |
| | | .el-table__body-wrapper::-webkit-scrollbar { |
| | | width: 5px; |
| | | height: 5px; |
| | | } |
| | | |
| | | .el-table__body-wrapper::-webkit-scrollbar { |
| | | width: 5px; |
| | | /*滚动条宽度*/ |
| | | height: 5px; |
| | | /*滚动条高度*/ |
| | | } |
| | | /*定义滚动条轨道 内阴影+圆角*/ |
| | | .el-table__body-wrapper::-webkit-scrollbar-track { |
| | | box-shadow: 0px 1px 3px #216fe6 inset; |
| | | /*滚动条的背景区域的内阴影*/ |
| | | border-radius: 10px; |
| | | } |
| | | |
| | | /*定义滑块 内阴影+圆角*/ |
| | | .el-table__body-wrapper::-webkit-scrollbar-thumb { |
| | | box-shadow: 0px 1px 3px #216fe6 inset; |
| | | border-radius: 6px; |
| | | background-color: #216fe6; |
| | | } |
| | | } |
| | | .pagination_box { |
| | | margin-top: 20px; |
| | | /deep/.el-input__inner { |
| | | background-color: transparent !important; |
| | | border: 1px solid; |
| | | color: white; |
| | | } |
| | | /deep/.el-pagination__total { |
| | | color: white; |
| | | } |
| | | /deep/.el-pagination__jump { |
| | | color: white; |
| | | } |
| | | /deep/.el-pager li.active { |
| | | color: #409eff; |
| | | } |
| | | /deep/.el-pager li { |
| | | color: white; |
| | | background: transparent; |
| | | } |
| | | /deep/.el-pager li { |
| | | color: white; |
| | | } |
| | | /deep/.btn-prev { |
| | | background: transparent; |
| | | } |
| | | /deep/.btn-next { |
| | | background: transparent; |
| | | } |
| | | /deep/.btn-next i { |
| | | color: white; |
| | | } |
| | | /deep/.btn-prev i { |
| | | color: white; |
| | | } |
| | | } |
| | | .infoBox { |
| | | width: 500px; |
| | | |
| | | position: absolute; |
| | | z-index: 100; |
| | | background: #303030; |
| | | top: 15%; |
| | | right: 25%; |
| | | |
| | | .el-card { |
| | | color: white; |
| | | background-color: transparent; |
| | | span { |
| | | font-size: 16px; |
| | | font-weight: 600; |
| | | .right { |
| | | width: 75%; |
| | | height: 100%; |
| | | border-radius: 5px; |
| | | padding: 10px; |
| | | box-sizing: border-box; |
| | | border: 1px solid #dcdfe6; |
| | | .inquire { |
| | | // margin-bottom: 10px; |
| | | padding: 8px; |
| | | // margin-top: 10px; |
| | | border-radius: 5px; |
| | | //border: 1px solid #dcdfe6; |
| | | //margin-bottom: 20px; |
| | | .el-form-item { |
| | | margin: 5px; |
| | | } |
| | | } |
| | | .contentBox { |
| | | margin: 0 aotu 10px; |
| | | height: 500px; |
| | | overflow: auto; |
| | | p { |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | } |
| | | /deep/ .el-dialog { |
| | | background: #303030; |
| | | } |
| | | /deep/.el-range-editor.is-active, |
| | | .el-range-editor.is-active:hover, |
| | | .el-select .el-input.is-focus .el-input__inner { |
| | | border: 1px solid; |
| | | } |
| | | /deep/.el-dialog__title { |
| | | color: white; |
| | | } |
| | | |
| | | /deep/ .el-select .el-input__inner { |
| | | border-color: #fff !important; |
| | | } |
| | | /deep/.el-cascader .el-input__inner { |
| | | border-color: #fff !important; |
| | | } |
| | | } |
| | | </style> |