| | |
| | | <el-button |
| | | @click="submitForm('ruleForm')" |
| | | icon="el-icon-search" |
| | | type="primary" |
| | | class="primary" |
| | | size="small" |
| | | >{{ $t('common.iquery') }}</el-button |
| | | > |
| | |
| | | prop="descr" |
| | | :label="$t('dataManage.styleObj.descr')" |
| | | /> |
| | | <!-- <el-table-column |
| | | align="center" |
| | | prop="fileGuid" |
| | | :label="$t('dataManage.styleObj.fileguid')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="viewGuid" |
| | | :label="$t('dataManage.styleObj.viewguid')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="createUser" |
| | | :label="$t('dataManage.styleObj.createUser')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="createTime" |
| | | :label="$t('dataManage.styleObj.createTime')" |
| | | :formatter="formatTime" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="updateUser" |
| | | :label="$t('dataManage.styleObj.updateUser')" |
| | | /> |
| | | <el-table-column |
| | | align="center" |
| | | prop="updateTime" |
| | | :label="$t('dataManage.styleObj.updateTime')" |
| | | :formatter="formatTime" |
| | | /> --> |
| | | <el-table-column |
| | | align="center" |
| | | prop="bak" |
| | |
| | | </el-card> |
| | | </div> |
| | | <el-dialog |
| | | title="修改详情" |
| | | :title="$t('dataManage.styleObj.modifyStyleData')" |
| | | top="2vh" |
| | | style="overflow: hidden" |
| | | :before-close="removeUpdate" |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="removeUpdate">{{$t('common.close')}}</el-button> |
| | | <el-button type="primary" @click="updateForm">{{$t('common.confirm')}}</el-button> |
| | | <el-button type="info" @click="removeUpdate">{{$t('common.close')}}</el-button> |
| | | <el-button class="primary" @click="updateForm">{{$t('common.confirm')}}</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | |
| | | top="2vh" |
| | | style="overflow: hidden" |
| | | :visible.sync="InsertFormdialog" |
| | | :before-close="handleClose" |
| | | > |
| | | <el-form :model="insertform"> |
| | | <el-form-item |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="insertFromDataClose">{{$t('common.close')}}</el-button> |
| | | <el-button type="primary" @click="insertFromData">{{$t('common.confirm')}}</el-button> |
| | | <el-button type="info" @click="insertFromDataClose">{{$t('common.close')}}</el-button> |
| | | <el-button class="primary" @click="insertFromData">{{$t('common.confirm')}}</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | <div class="leftTree" v-if="showDirCata"> |
| | |
| | | <style-dir-tree></style-dir-tree> |
| | | </div> |
| | | <div class="btnBox"> |
| | | <el-button type="primary" size="small" @click="selectDirCataName">{{ |
| | | <el-button class="primary" size="small" @click="selectDirCataName">{{ |
| | | $t('common.confirm') |
| | | }}</el-button> |
| | | <el-button type="primary" size="small" @click="showDirCata = false">{{ |
| | | <el-button type="info" size="small" @click="showDirCata = false">{{ |
| | | $t('common.close') |
| | | }}</el-button> |
| | | </div> |
| | |
| | | <style-dep-tree></style-dep-tree> |
| | | </div> |
| | | <div class="btnBox"> |
| | | <el-button type="primary" size="small" @click="selectDepCataName">{{ |
| | | <el-button class="primary" size="small" @click="selectDepCataName">{{ |
| | | $t('common.confirm') |
| | | }}</el-button> |
| | | <el-button type="primary" size="small" @click="showDepCata = false">{{ |
| | | <el-button type="info" size="small" @click="showDepCata = false">{{ |
| | | $t('common.close') |
| | | }}</el-button> |
| | | </div> |
| | |
| | | .map((item) => (this.btnStatus[item.tag.substr(1)] = true)); |
| | | }, |
| | | filesReset() { |
| | | document.getElementById("insertFile").reset(); |
| | | document.getElementById("insertimageFile").reset(); |
| | | this.guidFile = null; |
| | | this.fileGuid = null; |
| | | // document.getElementById("insertFile").reset(); |
| | | // document.getElementById("insertimageFile").reset(); |
| | | document.getElementById("insertFile").value = ""; |
| | | document.getElementById("insertimageFile").value = ""; |
| | | |
| | | this.guidFile = ''; |
| | | this.fileGuid = ''; |
| | | }, |
| | | getInsertFile(res) { |
| | | if (res == 0) { |
| | |
| | | }, |
| | | insertFromDataClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | this.insertform= { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | } |
| | | this.filesReset(); |
| | | }, |
| | | handleClose(){ |
| | | this.InsertFormdialog = false; |
| | | this.insertform= { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | } |
| | | this.filesReset(); |
| | | }, |
| | | async insertFromData() { |
| | | if (this.insertform.dirid == null || this.insertform.depid == null) { |
| | |
| | | const data = await insertStyle(this.insertform); |
| | | if (data.code == 200) { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = {}; |
| | | |
| | | this.insertform= { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | } |
| | | this.filesReset(); |
| | | this.$message({ |
| | | message: "添加成功!", |
| | |
| | | left: 800px; |
| | | width: 400px; |
| | | height: 600px; |
| | | background: #f0f2f5; |
| | | background: #303030; |
| | | border: 1px solid #000; |
| | | .treeBox { |
| | | height: 550px; |
| | |
| | | } |
| | | .infoBox { |
| | | width: 500px; |
| | | border: 1px solid #eee; |
| | | |
| | | position: absolute; |
| | | z-index: 100; |
| | | top: 15%; |
| | | right: 25%; |
| | | background-color: #fff; |
| | | background-color: #303030; |
| | | .el-card { |
| | | color: white; |
| | | background-color: transparent; |
| | | span { |
| | | font-size: 16px; |
| | |
| | | } |
| | | .contentBox { |
| | | margin: 0 aotu 10px; |
| | | height: 600px; |
| | | height: 500px; |
| | | overflow: auto; |
| | | p { |
| | | // background-color: #bfa; |
| | |
| | | /deep/.el-cascader .el-input__inner { |
| | | border-color: #fff !important; |
| | | } |
| | | |
| | | .primary { |
| | | background: #409eff; |
| | | border: #409eff; |
| | | color: white; |
| | | } |
| | | } |
| | | </style> |
| | | |