| | |
| | | `${$t('dataManage.styleManage')}`, |
| | | ]"></My-bread> |
| | | <el-divider /> |
| | | <div class="searchComp"> |
| | | <div class="searchComp subpage_Div"> |
| | | <el-form |
| | | ref="ruleForm" |
| | | :model="ruleForm" |
| | |
| | | :placeholder="$t('common.pleaseInput')" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | @click="submitForm('ruleForm')" |
| | | icon="el-icon-search" |
| | | class="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 style="float: right;"> |
| | | <el-button |
| | | v-if="btnStatus.insert" |
| | | @click="setInsertShow()" |
| | |
| | | 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> |
| | | </el-form> |
| | | </div> |
| | |
| | | prop="descr" |
| | | :label="$t('dataManage.styleObj.descr')" |
| | | /> |
| | | <el-table-column |
| | | <!-- <el-table-column |
| | | align="center" |
| | | prop="bak" |
| | | :label="$t('dataManage.styleObj.bak')" |
| | | /> |
| | | /> --> |
| | | <el-table-column |
| | | min-width="120" |
| | | :label="$t('common.operate')" |
| | |
| | | </div> |
| | | </div> |
| | | <div |
| | | class="infoBox" |
| | | class="infoBox subpage_Div box_div" |
| | | v-show="showinfoBox" |
| | | > |
| | | <el-card class="box-card"> |
| | | |
| | | <div |
| | | slot="header" |
| | | class="clearfix" |
| | | > |
| | | <span>{{ $t('dataManage.styleObj.deInformation') }}</span> |
| | | <div |
| | | slot="header" |
| | | class="clearfix" |
| | | style="float: right; cursor: pointer" |
| | | @click="closeDetial" |
| | | > |
| | | <span>{{ $t('dataManage.styleObj.deInformation') }}</span> |
| | | <div |
| | | style="float: right; cursor: pointer" |
| | | @click="closeDetial" |
| | | > |
| | | <i class="el-icon-close"></i> |
| | | </div> |
| | | <i class="el-icon-close"></i> |
| | | </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.fileGuid }}</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> |
| | | </el-card> |
| | | </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> |
| | | <el-dialog |
| | | :title="$t('dataManage.styleObj.modifyStyleData')" |
| | |
| | | <el-input |
| | | v-model="upform.name" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <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-cascader |
| | | <el-select |
| | | v-model="upform.dirid" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | > |
| | | <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:730px" |
| | | ></el-cascader> |
| | | style="width:75%" |
| | | ></el-cascader> --> |
| | | <!-- <el-input |
| | | v-model="upform.dirValue" |
| | | disabled |
| | |
| | | :label="$t('dataManage.styleObj.depid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-cascader |
| | | <el-select |
| | | v-model="upform.depid" |
| | | placeholder="请选择" |
| | | style="width: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:730px" |
| | | ></el-cascader> |
| | | style="width:75%" |
| | | ></el-cascader> --> |
| | | |
| | | <!-- <el-input |
| | | v-model="upform.depValue" |
| | | disabled |
| | |
| | | <el-input |
| | | v-model="upform.ver" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | > |
| | | <el-select |
| | | v-model="upform.status" |
| | | style="width: 745px" |
| | | style="width:85%" |
| | | :placeholder="$t('common.choose')" |
| | | > |
| | | <el-option |
| | |
| | | <el-input |
| | | v-model="upform.precision" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <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" |
| | | > |
| | | <el-input |
| | | v-model="upform.fileGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | ></el-input> |
| | | <input |
| | | name="file1" |
| | | type="file" |
| | | id="editFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="editFile(0)" |
| | | /> |
| | | <el-link |
| | | <!-- --> |
| | | <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> |
| | | <!-- --> |
| | | <!-- <el-link |
| | | :underline="false" |
| | | @click="geteditFile(0)" |
| | | style="margin-left: 10px" |
| | |
| | | :underline="false" |
| | | @click="seteditFile(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.viewguid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="upform.viewGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | ></el-input> |
| | | <input |
| | | name="file1" |
| | | :accept="'.jpg,.png'" |
| | | type="file" |
| | | id="editimageFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="editFile(1)" |
| | | /> |
| | | <el-link |
| | | <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" |
| | |
| | | :underline="false" |
| | | @click="seteditFile(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.bak')" |
| | |
| | | <el-input |
| | | v-model="upform.bak" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | > |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="removeUpdate" |
| | | >{{$t('common.close')}}</el-button> |
| | | <el-button |
| | | class="primary" |
| | | type="primary" |
| | | @click="updateForm" |
| | | size="small" |
| | | >{{$t('common.confirm')}}</el-button> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | <el-input |
| | | v-model="insertform.name" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <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-cascader |
| | | <el-select |
| | | v-model="insertform.dirid" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | > |
| | | <el-option |
| | | :value="insertform.dirid" |
| | | :label="insertform.dirName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }" |
| | | > |
| | | <el-tree |
| | | ref="tree" |
| | | :data="catalogOption" |
| | | :default-expand-all="defaultexpand" |
| | | node-key="id" |
| | | :props="defaultProps" |
| | | @node-click="handcatalogChange" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-cascader |
| | | v-model="insertform.dirid" |
| | | :options="catalogOption" |
| | | @change="catalogChange" |
| | | :props="cascader" |
| | | style="width:730px" |
| | | ></el-cascader> |
| | | ></el-cascader> --> |
| | | <!-- <el-input |
| | | v-model="insertform.dirValue" |
| | | disabled |
| | |
| | | :label="$t('dataManage.styleObj.depid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-cascader |
| | | <el-select |
| | | v-model="insertform.depid" |
| | | placeholder="请选择" |
| | | style="width:85%" |
| | | @focus="setOptionWidth" |
| | | > |
| | | <el-option |
| | | :value="insertform.depid" |
| | | :label="insertform.depName" |
| | | :style="{ width: selectOptionWidth, height: selectheight }" |
| | | > |
| | | <el-tree |
| | | ref="tree" |
| | | :data="companyOption" |
| | | :default-expand-all="defaultexpand" |
| | | node-key="id" |
| | | :props="cascader" |
| | | @node-click="handcompanyChange" |
| | | /> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-cascader |
| | | v-model="insertform.depid" |
| | | :options="companyOption" |
| | | @change="companyChange" |
| | | :props="cascader" |
| | | style="width:730px" |
| | | ></el-cascader> |
| | | ></el-cascader> --> |
| | | <!-- <el-input |
| | | v-model="insertform.depValue" |
| | | disabled |
| | |
| | | <el-input |
| | | v-model="insertform.ver" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | > |
| | | <el-select |
| | | v-model="insertform.status" |
| | | style="width: 730px" |
| | | style="width:85%" |
| | | :placeholder="$t('common.choose')" |
| | | > |
| | | <el-option |
| | |
| | | <el-input |
| | | v-model="insertform.precision" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item |
| | |
| | | <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" |
| | | > |
| | | <el-input |
| | | v-model="insertform.fileGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | /> |
| | | <input |
| | | name="file1" |
| | | type="file" |
| | | id="insertFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="insertFile(0)" |
| | | /> |
| | | <el-link |
| | | <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> |
| | | <!-- |
| | | --> |
| | | <!-- <el-link |
| | | :underline="false" |
| | | @click="getInsertFile(0)" |
| | | style="margin-left: 10px" |
| | |
| | | :underline="false" |
| | | @click="setinsertFile(0)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.viewguid')" |
| | | :label-width="formLabelWidth" |
| | | > |
| | | <el-input |
| | | v-model="insertform.viewGuid" |
| | | disabled |
| | | autocomplete="off" |
| | | /> |
| | | <input |
| | | name="file1" |
| | | :accept="'.jpg,.png'" |
| | | type="file" |
| | | id="insertimageFile" |
| | | multiple="multiple" |
| | | style="display: none" |
| | | @change="insertFile(1)" |
| | | /> |
| | | <el-link |
| | | <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" |
| | |
| | | :underline="false" |
| | | @click="setinsertFile(1)" |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-upload2"></i></el-link> |
| | | ><i class="el-icon-upload2"></i></el-link> --> |
| | | </el-form-item> |
| | | <el-form-item |
| | | :label="$t('dataManage.styleObj.bak')" |
| | |
| | | <el-input |
| | | v-model="insertform.bak" |
| | | autocomplete="off" |
| | | style="width:85%" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | > |
| | | <el-button |
| | | type="info" |
| | | size="small" |
| | | @click="insertFromDataClose" |
| | | >{{$t('common.close')}}</el-button> |
| | | <el-button |
| | | class="primary" |
| | | type="primary" |
| | | size="small" |
| | | @click="insertFromData" |
| | | >{{$t('common.confirm')}}</el-button> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="btnBox"> |
| | | <el-button |
| | | class="primary" |
| | | type="primary" |
| | | size="small" |
| | | @click="selectDirCataName" |
| | | >{{ |
| | |
| | | </div> |
| | | </div> |
| | | <div |
| | | class="leftTree" |
| | | class="leftTree subpage_Div" |
| | | v-if="showDepCata" |
| | | > |
| | | <div class="treeBox"> |
| | |
| | | </div> |
| | | <div class="btnBox"> |
| | | <el-button |
| | | class="primary" |
| | | type="primary" |
| | | size="small" |
| | | @click="selectDepCataName" |
| | | >{{ |
| | |
| | | components: { MyBread, styleDirTree, styleDepTree }, |
| | | data() { |
| | | return { |
| | | insertFileGuid: "", |
| | | insertViewGuid: "", |
| | | insertFileName: "", |
| | | insertViewName: "", |
| | | |
| | | insertform: { |
| | | |
| | | }, |
| | | dialogFormVisible: false, |
| | | InsertFormdialog: false, |
| | | showCata: false, |
| | |
| | | showDirCata: false, |
| | | showDepCata: false, |
| | | tableData: [], |
| | | insertform: { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | }, |
| | | |
| | | dirFlag: null, |
| | | depFlag: null, |
| | | guidFile: null, |
| | |
| | | checkStrictly: true, |
| | | emitPath: false, |
| | | }, |
| | | defaultProps: { |
| | | children: "children", |
| | | label: "name", |
| | | }, |
| | | selectOptionWidth: '', |
| | | selectheight: 'auto', |
| | | defaultexpand: false |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | $("#insertimageFile").click(); |
| | | } |
| | | }, |
| | | insertFile(res) { |
| | | insertFileData: function (res) { |
| | | |
| | | |
| | | if (res == 0) { |
| | | var val = document.getElementById("insertFile").files; |
| | | if (!val || !val.length) return; |
| | | this.insertform.fileGuid = val[0].name; |
| | | let val = document.getElementById("insertFile").files; |
| | | |
| | | this.insertFileGuid = val[0].name; |
| | | this.insertFileName = val[0].name; |
| | | } else if (res == 1) { |
| | | var val = document.getElementById("insertimageFile").files; |
| | | if (!val || !val.length) return; |
| | | this.insertform.viewGuid = val[0].name; |
| | | let val = document.getElementById("insertimageFile").files; |
| | | |
| | | this.insertViewGuid = val[0].name; |
| | | this.insertViewName = val[0].name; |
| | | } |
| | | }, |
| | | async setinsertFile(res) { |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | handleSelectionChange(val) { |
| | | this.multipleSelection = val; |
| | | }, |
| | |
| | | for (var i in this.multipleSelection) { |
| | | std.push(this.multipleSelection[i].id); |
| | | } |
| | | 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.getRoleTabelData(); |
| | | } else { |
| | | this.$message({ |
| | | message: "删除失败!", |
| | | type: "warning", |
| | | }); |
| | | } |
| | | }).catch(() => { |
| | | this.$message({ |
| | | message: "删除成功!", |
| | | type: "success", |
| | | type: 'info', |
| | | message: '已取消删除' |
| | | }); |
| | | this.getRoleTabelData(); |
| | | } else { |
| | | this.$message({ |
| | | message: "删除失败!", |
| | | type: "warning", |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | showDirTree(res) { |
| | | this.dirFlag = res; |
| | |
| | | insertFromDataClose() { |
| | | this.InsertFormdialog = false; |
| | | this.insertform = { |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | |
| | | } |
| | | this.insertFileGuid = ""; |
| | | this.insertViewGuid = "" |
| | | this.filesReset(); |
| | | }, |
| | | handleClose() { |
| | |
| | | } |
| | | if (this.guidFile != null) { |
| | | this.insertform.fileGuid = this.guidFile; |
| | | this.insertform.fname = this.insertFileName; |
| | | } |
| | | if (this.viewFile != null) { |
| | | this.insertform.viewGuid = this.viewFile; |
| | | this.insertform.vname = this.insertViewName; |
| | | } |
| | | |
| | | const data = await insertStyle(this.insertform); |
| | | if (data.code == 200) { |
| | | this.InsertFormdialog = false; |
| | |
| | | fileGuid: null, |
| | | viewGuid: null, |
| | | } |
| | | this.insertFileGuid = ""; |
| | | 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("列表调用失败"); |
| | | } |
| | |
| | | this.upform.status = this.statusFormat(this.upform.status); |
| | | } |
| | | if (this.guidFile != null) { |
| | | this.upform.fname = this.upform.fileGuid; |
| | | this.upform.fileGuid = this.guidFile; |
| | | } |
| | | if (this.viewFile != null) { |
| | | this.upform.vname = this.upform.viewGuid; |
| | | this.upform.viewGuid = this.viewFile; |
| | | } |
| | | const data = await updateStyle(this.upform); |
| | |
| | | showDetail(index, row) { |
| | | var token = getToken(); |
| | | this.showinfoBox = true; |
| | | |
| | | this.itemdetail = row; |
| | | this.itemdetail.createTime = this.formomentTime( |
| | | this.itemdetail.createTime |
| | |
| | | this.upform = row; |
| | | this.upform.depValue = row.depName; |
| | | this.upform.dirValue = row.dirName; |
| | | this.upform.fileGuid = row.fname; |
| | | this.upform.viewGuid = row.vname; |
| | | this.upform.status = this.forMontStatus(row.status); |
| | | }, |
| | | handleDelete(index, row) { |
| | |
| | | this.upform.dirid = res; |
| | | |
| | | }, |
| | | handcatalogChange(data, node, nodeData) { |
| | | this.$set(this.insertform, 'dirid', data.id) |
| | | this.$set(this.insertform, 'dirName', data.name) |
| | | // this.insertform.dirid = data.id; |
| | | // this.insertform.dirName = data.name |
| | | }, |
| | | handleNodeClickto(data, node, nodeData) { |
| | | this.insertform.depid = data.id |
| | | this.upform.dirid = data.id; |
| | | this.upform.dirName = data.name; |
| | | }, |
| | | |
| | | editcompanyChange(res) { |
| | | this.upform.depid = res; |
| | | }, |
| | |
| | | this.insertform.depid = res; |
| | | |
| | | }, |
| | | handcompanyChange(data, node, nodeData) { |
| | | this.$set(this.insertform, 'depid', data.id) |
| | | // this.insertform.depid = data.id; |
| | | this.$set(this.insertform, 'depName', data.name) |
| | | // this.insertform.depName = data.name; |
| | | }, |
| | | //新增数据 |
| | | setInsertShow() { |
| | | this.InsertFormdialog = true; |
| | | this.$set(this, 'insertform', {}) |
| | | }, |
| | | //目录列表获取 |
| | | async getSelectdirTab() { |
| | |
| | | this.companyOption = this.treeData(res.result); |
| | | this.editCompanyOption = this.treeData(res.result); |
| | | }, |
| | | handleNodeClick(data, node, nodeData) { |
| | | this.upform.depid = data.id |
| | | this.upform.depName = data.name; |
| | | }, |
| | | //树列表生成 |
| | | treeData(source) { |
| | | let cloneData = JSON.parse(JSON.stringify(source)); // 对源数据深度克隆 |
| | |
| | | return father.pid == 0; // 返回一级菜单 |
| | | }); |
| | | }, |
| | | setOptionWidth(event) { |
| | | // 下拉框聚焦,设置弹框的宽度 |
| | | this.$nextTick(() => { |
| | | this.selectOptionWidth = event.srcElement.offsetWidth + 'px'; |
| | | }); |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | margin: 10px auto; |
| | | |
| | | border-radius: 5px; |
| | | border: 1px solid rgb(202, 201, 204); |
| | | |
| | | .el-form-item { |
| | | margin: 5px; |
| | | } |
| | |
| | | left: 800px; |
| | | width: 400px; |
| | | height: 600px; |
| | | background: #303030; |
| | | border: 1px solid #000; |
| | | |
| | | .treeBox { |
| | | height: 550px; |
| | | overflow: auto; |
| | | /deep/ .el-tree-node__content:hover { |
| | | background-color: rgb(153, 153, 153); |
| | | } |
| | | } |
| | | .btnBox { |
| | | width: 160px; |
| | | margin: 10px auto 0; |
| | | // background-color: red; |
| | | } |
| | | } |
| | | .bottom { |
| | |
| | | height: 80%; |
| | | margin: 0 auto; |
| | | overflow: auto; |
| | | /*修改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; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .infoBox { |
| | | width: 500px; |
| | | |
| | | position: absolute; |
| | | z-index: 100; |
| | | top: 15%; |
| | | right: 25%; |
| | | background-color: #303030; |
| | | .el-card { |
| | | color: white; |
| | | background-color: transparent; |
| | | span { |
| | | font-size: 16px; |
| | | font-weight: 600; |
| | | } |
| | | .BoxFlex { |
| | | display: flex; |
| | | justify-content: space-around; |
| | | width: 85%; |
| | | .BoxFlexinput { |
| | | flex: 1; |
| | | } |
| | | .contentBox { |
| | | margin: 0 aotu 10px; |
| | | height: 500px; |
| | | overflow: auto; |
| | | p { |
| | | // background-color: #bfa; |
| | | // margin-bottom: 10px; |
| | | font-size: 14px; |
| | | } |
| | | .boxlabel { |
| | | margin-left: 10px; |
| | | } |
| | | } |
| | | /* 整体样式 */ |
| | | .contentBox::-webkit-scrollbar { |
| | | width: 6px; |
| | | height: 6px; |
| | | } |
| | | |
| | | /* 滚动条 */ |
| | | .contentBox::-webkit-scrollbar-thumb { |
| | | background-color: #b3d8ff; |
| | | border-radius: 6px; |
| | | } |
| | | |
| | | /* 滚动条鼠标经过样式 */ |
| | | .contentBox::-webkit-scrollbar-thumb:hover { |
| | | background-color: #b3d8ff; |
| | | border-radius: 6px; |
| | | } |
| | | |
| | | /* 滚动条轨道 */ |
| | | .contentBox::-webkit-scrollbar-track-piece { |
| | | -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); |
| | | border-radius: 10px; |
| | | background: #ededed; |
| | | } |
| | | } |
| | | .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; |
| | | } |
| | | } |
| | | /deep/.el-form-item__label { |
| | | color: white; |
| | | } |
| | | // 设置输入框的背景色、字体颜色、边框属性设置; |
| | | /deep/.el-input__inner { |
| | | background-color: transparent !important ; |
| | | color: #fff; |
| | | border: 1px solid; |
| | | } |
| | | |
| | | /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; |
| | | } |
| | | .primary { |
| | | background: #409eff; |
| | | border: #409eff; |
| | | color: white; |
| | | } |
| | | .el-icon-plus { |
| | | color: white; |
| | | } |
| | | .el-icon-upload2 { |
| | | color: white; |
| | | } |
| | | } |
| | | </style> |