123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600 |
- <template>
- <div class="app-history" style="height: 550px;overflow-y: auto;overflow-x: hidden;">
- <div ref="template" class="template">
- <div class="recipeTemplate">
- <p>配方模板表</p>
- </div>
- <div class="search">
- <el-select v-model="table.getdataListParm.parammaps.ccname" filterable placeholder="牲畜类别" class="filter-item" clearable>
- <el-option v-for="item in livestockTypeList" :key="item.value" :label="item.label" :value="item.label" />
- </el-select>
- <el-select v-model="table.getdataListParm.parammaps.fttype" filterable placeholder="配方类型" class="filter-item" style="width: 120px;" clearable>
- <el-option v-for="item in formulaTypeList" :key="item.value" :label="item.label" :value="item.label" />
- </el-select>
- <el-select v-model="table.getdataListParm.parammaps.enable" filterable placeholder="是否启用" class="filter-item" style="width: 120px;" clearable>
- <el-option v-for="item in enableList" :key="item.id" :label="item.name" :value="item.id" />
- </el-select>
- <div ref="selectInput" class="filter-item selectInput">
- <el-input type="text" placeholder="请点击选择搜索条件" class="Input" />
- <i v-if="arrowDown" icon="el-icon-arrow-down" class="el-icon-arrow-down" />
- <i v-if="arrowUp" icon="el-icon-arrow-up" class="el-icon-arrow-up" />
- <ul v-if="arrowUp" class="selectUl">
- <li><a>配方名称</a><el-input v-model="table.getdataListParm.parammaps.tname" style="width: 245px;" /></li>
- <li><a>备注</a><el-input v-model="table.getdataListParm.parammaps.remark" style="width: 245px;" /></li>
- <li><a>来源</a><el-input v-model="table.getdataListParm.parammaps.source" style="width: 245px;" /></li>
- <li>
- <div style="float: right;">
- <el-button class="minCancel" @click="arrowUp=false;arrowDown=true;">取消</el-button>
- <el-button class="miniPrimary" @click="handleSearch">搜索</el-button>
- </div>
- </li>
- </ul>
- </div>
- <el-button class="successBorder" @click="handleSearch">查询</el-button>
- <el-button class="successBorder" @click="handleRefresh">重置</el-button>
- </div>
- <div class="table">
- <el-table
- :key="table.tableKey"
- v-loading="table.listLoading"
- element-loading-text="给我一点时间"
- :data="table.list"
- border
- fit
- highlight-current-row
- style="width: 98%;"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- @row-click="tableRowClick"
- @selection-change="handleSelectionChange"
- >
- <el-table-column type="selection" align="center" width="50" />
- <el-table-column label="序号" align="center" type="index" width="50px">
- <template slot-scope="scope">
- <span>{{ scope.$index + (table.pageNum-1) * table.pageSize + 1 }}</span>
- </template>
- </el-table-column>
- <el-table-column label="配方名称" min-width="110px" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.NoEdit">{{ scope.row.tname }}</span>
- <el-input v-if="scope.row.Edit" v-model.trim="scope.row.tname" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="32" style="width:95%;padding:10px 0;" />
- </template>
- </el-table-column>
- <el-table-column label="配方颜色" min-width="85px" align="center">
- <template slot-scope="scope">
- <el-color-picker v-model="scope.row.tcolor" size="mini" :disabled="scope.row.NoEdit" style="margin:10px 0;" />
- </template>
- </el-table-column>
- <el-table-column label="牲畜类别" min-width="130px" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.NoEdit">{{ scope.row.ccname }}</span>
- <el-select v-if="scope.row.Edit" v-model="scope.row.ccid" filterable placeholder="牲畜类别" class="filter-item" style="width:95%;padding:10px 0;" @change="changeLivestockType">
- <el-option v-for="item in livestockTypeList" :key="item.value" :label="item.label" :value="item.value" />
- </el-select>
- </template>
- </el-table-column>
- <el-table-column label="配方类型" min-width="130px" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.NoEdit">{{ scope.row.fttype }}</span>
- <el-select v-if="scope.row.Edit && scope.row.isCreate == true" v-model="scope.row.fttypeid" filterable placeholder="配方类型" class="filter-item" style="width:95%;padding:10px 0;" @change="changeFormulaType">
- <el-option v-for="item in formulaTypeList" :key="item.value" :label="item.label" :value="item.value" />
- </el-select>
- <el-select v-if="scope.row.Edit && scope.row.isUpdateSave == true" v-model="scope.row.fttypeid" disabled filterable placeholder="配方类型" class="filter-item" style="width:95%;padding:10px 0;" @change="changeFormulaType">
- <el-option v-for="item in formulaTypeList" :key="item.value" :label="item.label" :value="item.value" />
- </el-select>
- </template>
- </el-table-column>
- <el-table-column label="来源" min-width="90px" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.source }}</span>
- </template>
- </el-table-column>
- <el-table-column label="备注" min-width="90px" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.NoEdit">{{ scope.row.remark }}</span>
- <el-input v-if="scope.row.Edit" v-model="scope.row.remark" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="255" style="width:95%;padding:10px 0;" />
- </template>
- </el-table-column>
- <el-table-column label="版本号" min-width="90px" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.source }}</span>
- </template>
- </el-table-column>
- <el-table-column label="版本时间" min-width="90px" align="center">
- <template slot-scope="scope">
- <span>{{ scope.row.source }}</span>
- </template>
- </el-table-column>
- <el-table-column label="是否启用" min-width="90px" align="center">
- <template slot-scope="scope">
- <el-switch v-model="scope.row.enable" :disabled="scope.row.NoEdit==true" active-color="#13ce66" inactive-color="#ff4949" :active-value="1" :inactive-value="0" @change="handleEnableChange(scope.$index, scope.row)" />
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <!-- 配方详情表 -->
- <div v-if="isDetail" id="detail" ref="detail" class="detail" style="margin-top: 30px;">
- <div class="recipeTemplate">
- <p>配方详情表</p>
- </div>
- <div class="operation">
- <div ref="selectInput2" class="filter-item selectInput" style="margin: 0 10px;">
- <el-input type="text" name="" value="" placeholder="请点击选择搜索条件" class="Input" />
- <i v-if="arrowDown2" icon="el-icon-arrow-down" class="el-icon-arrow-down" />
- <i v-if="arrowUp2" icon="el-icon-arrow-up" class="el-icon-arrow-up" />
- <ul v-if="arrowUp2" class="selectUl" style="width: 400px;">
- <li>
- <a style="width: 130px;">饲料名称</a>
- <el-select v-model="table2.getdataListParm.parammaps.fname" filterable placeholder="" style="width:245px;">
- <el-option v-for="item in feedNameList" :key="item.id" :label="item.fname" :value="item.fname" />
- </el-select>
- </li>
- <li><a style="width: 130px;">饲料组名称</a><el-input v-model="table2.getdataListParm.parammaps.feedgroup" style="width: 245px;" /></li>
- <li><a style="width: 130px;">重量</a><el-input v-model="table2.getdataListParm.parammaps.fweight" style="width: 245px;" /></li>
- <li>
- <a style="width: 130px;">搅拌延时</a>
- <el-select v-model="table2.getdataListParm.parammaps.autosecondname" filterable placeholder="" style="width:245px;" clearable>
- <el-option v-for="item in mixingDelayList" :key="item.id" :label="item.name" :value="item.name" />
- </el-select>
- </li>
- <li>
- <a style="width: 130px;">是否锁定牛头数比例</a>
- <el-select v-model="table2.getdataListParm.parammaps.islockcount" placeholder="" style="width:245px;" clearable>
- <el-option v-for="item in lockBullsList" :key="item.id" :label="item.name" :value="item.id" />
- </el-select>
- </li>
- <li><a style="width: 130px;">顺序</a><el-input v-model="table2.getdataListParm.parammaps.sort" style="width: 245px;" /></li>
- <li>
- <div style="float: right;">
- <el-button class="minCancel" @click="arrowUp2=false;arrowDown2=true;">取消</el-button>
- <el-button class="miniSuccess" @click="handleSearch2">搜索</el-button>
- </div>
- </li>
- </ul>
- </div>
- <el-button class="successBorder" @click="handleSearch2">查询</el-button>
- <el-button class="successBorder" @click="handleRefresh2">重置</el-button>
- </div>
- <div class="table2" style="min-height: 400px;">
- <el-table
- id="table2"
- ref="table2"
- :key="table2.tableKey"
- v-loading="table2.listLoading"
- element-loading-text="给我一点时间"
- :data="table2.list"
- border
- fit
- highlight-current-row
- style="width: 98%;"
- :row-style="rowStyle"
- :cell-style="cellStyle"
- class="elTable table-fixed"
- row-key="id"
- :summary-method="getSummaries"
- show-summary
- @selection-change="handleSelectionChange2"
- >
- <el-table-column type="selection" width="60" />
- <el-table-column label="序号" align="center" type="index" width="50px" />
- <el-table-column label="饲料组" min-width="110px" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.groupNoEdit">{{ scope.row.feedgroup }}</span>
- <el-input v-if="scope.row.groupEdit" v-model="scope.row.feedgroup" :disabled="scope.row.isGroupDisabled" type="textarea" :autosize="{ minRows: 1.3, maxRows: 4}" maxlength="32" style="width:95%;padding:10px 0;" />
- </template>
- </el-table-column>
- <el-table-column label="饲料名称" min-width="130px" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.NoEdit">{{ scope.row.fname }}</span>
- <el-select v-if="scope.row.Edit" v-model="scope.row.fid" filterable placeholder="" class="filter-item" style="width:95%;padding:10px 0;" @change="(value)=> {changeFname(value, scope.row)}">
- <el-option v-for="item in feedNameList" :key="item.id" :label="item.fname" :value="item.id" />
- </el-select>
- </template>
- </el-table-column>
- <el-table-column label="重量(KG)" prop="fweight" min-width="100px" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.NoEdit">{{ scope.row.fweight }}</span>
- <el-input v-if="scope.row.Edit" v-model="scope.row.fweight" placeholder="重量" step="0.01" type="number" style="width:95%;padding:10px 0;" />
- </template>
- </el-table-column>
- <el-table-column label="搅拌延时(min)" min-width="110px" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.NoEdit">{{ scope.row.autosecond }}</span>
- <el-select v-if="scope.row.Edit" v-model="scope.row.autosecond" filterable placeholder="搅拌延时" class="filter-item" style="width:95%;padding:10px 0;">
- <el-option v-for="item in mixingDelayList" :key="item.id" :label="item.name" :value="item.id" />
- </el-select>
- </template>
- </el-table-column>
- <el-table-column v-if="lockCount.isLockCount" label="是否锁定牛头数比例" min-width="110px" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.NoEdit && scope.row.islockcount == '0'">否</span>
- <span v-if="scope.row.NoEdit && scope.row.islockcount == '1'">是</span>
- <el-select v-if="scope.row.Edit" v-model="scope.row.islockcount" placeholder="" class="filter-item" style="width:95%;padding:10px 0;">
- <el-option v-for="item in lockBullsList" :key="item.id" :label="item.name" :value="item.id" />
- </el-select>
- </template>
- </el-table-column>
- <el-table-column label="顺序" min-width="100px" align="center">
- <template slot-scope="scope">
- <span v-if="scope.row.NoEdit">{{ scope.row.sort }}</span>
- <el-input v-if="scope.row.Edit" v-model="scope.row.sort" step="0.01" type="number" style="width:95%;padding:10px 0;" min-number="0" @blur="blurSort(scope.row)" />
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- </div>
- </template>
- <script>
- import { GetDataByName, GetDataByNames, PostDataByName, failproccess, ExecDataByConfig, formatNum } from '@/api/common'
- import Sortable from 'sortablejs'
- import { MessageBox } from 'element-ui'
- import Cookies from 'js-cookie'
- import { json2excel } from '@/utils/index.js'
- import { getToken } from '@/utils/auth'
- export default {
- name: 'HistoryRecord',
- data() {
- return {
- requestParams: [
- { name: 'getDictByName', offset: 0, pagecount: 0, params: ['牲畜父类'] },
- { name: 'getDictByName2', offset: 0, pagecount: 0, params: ['配方类型'] },
- { name: 'getFeedAndPre', offset: 0, pagecount: 0, parammaps: { pastureid: Cookies.get('pastureid') }}
- ],
- enableList: [{ id: '0', name: '否' }, { id: '1', name: '是' }], // 是否启用
- lockBullsList: [{ id: '0', name: '否' }, { id: '1', name: '是' }], // 是否锁定牛头数比例
- livestockTypeList: [], // 牲畜类别
- formulaTypeList: [], // 配方类型
- feedNameList: [], // 饲料名称
- mixingDelayList: [{ id: '0', name: '0' }, { id: '1', name: '1' }, { id: '2', name: '2' }, { id: '3', name: '3' }, { id: '4', name: '4' }, { id: '5', name: '5' }, { id: '6', name: '6' }, { id: '7', name: '7' }, { id: '8', name: '8' }, { id: '9', name: '9' }, { id: '10', name: '10' }, { id: '11', name: '11' }, { id: '12', name: '12' }, { id: '13', name: '13' }, { id: '14', name: '14' }, { id: '15', name: '15' }], // 搅拌延时
- selectHistoryTimeList: [{ id: 0, name: '2020-06-10' }, { id: 1, name: '2020-06-11' }, { id: 2, name: '2020-06-12' }, { id: 3, name: '2020-06-13' }], // 请选择历史记录时间
- sourceList: [{ id: 0, name: '自定义' }, { id: 1, name: '集团下发' }, { id: 2, name: '导入' }], // 导入
- arrowDown: true,
- arrowUp: false,
- table: {
- getdataListParm: {
- name: 'getFTList',
- page: 1,
- offset: 1,
- pagecount: 30,
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- tname: '',
- ccid: '',
- ccname: '',
- fttypeid: '',
- fttype: '',
- remark: '',
- enable: ''
- }
- },
- tableKey: 0,
- list: [],
- total: 0,
- listLoading: true,
- temp: {}
- },
- lockCount: {
- getdataListParm: {
- name: 'getSysoptEnable',
- page: 1,
- offset: 1,
- pagecount: 30,
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- inforname: 'isLockCount'
- }
- },
- isLockCount: false // 是否显示是否锁定牛头数比例
- },
- isDetail: false,
- arrowDown2: true,
- arrowUp2: false,
- table2: {
- getdataListParm: {
- name: 'getFTdetailList',
- page: 1,
- offset: 1,
- pagecount: 10,
- returntype: 'Map',
- parammaps: {
- pastureid: Cookies.get('pastureid'),
- fname: '',
- feedgroup: '',
- fweight: '',
- autosecondname: '',
- islockcount: '',
- sort: ''
- }
- },
- tableKey: 0,
- list: [],
- total: 0,
- listLoading: true,
- temp: {}
- },
- isDetailDialog: false,
- detail: {
- dialogFormVisible: false,
- dialogStatus: '',
- tableKey: 0,
- total: 0,
- listLoading: true,
- list: [],
- tableKey2: 0,
- total2: 0,
- listLoading2: false,
- list2: [{ tname: '', tcolor: '#ccc', ccid: '', fttype: '预混配方', fttypeid: '2', source: '自定义', remark: '', 'enable': 1 }],
- getdataListParm: {
- name: 'getFTDetailCompare',
- page: 1,
- offset: 1,
- pagecount: 10,
- returntype: 'Map',
- parammaps: {}
- },
- list3: [],
- disabled: false,
- getdataListParm2: {
- name: 'getFTCompare',
- page: 1,
- offset: 1,
- pagecount: 10,
- returntype: 'Map',
- parammaps: {}
- }
- },
- selectList: [],
- selectList2: [],
- rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
- cellStyle: { padding: 0 + 'px' }
- }
- },
- mounted() {
- document.addEventListener('click', (e) => {
- if (this.$refs.selectInput !== undefined) {
- if (!this.$refs.selectInput.contains(e.target)) {
- this.arrowDown = true
- this.arrowUp = false
- } else {
- this.arrowDown = false
- this.arrowUp = true
- }
- }
- if (this.$refs.selectInput2 !== undefined) {
- if (!this.$refs.selectInput2.contains(e.target)) {
- this.arrowDown2 = true
- this.arrowUp2 = false
- } else {
- this.arrowDown2 = false
- this.arrowUp2 = true
- }
- }
- })
- },
- created() {
- this.getList()
- this.getDownList()
- this.getIsLockCount()
- },
- methods: {
- getSummaries(param) {
- console.log(param, '====')
- const { columns, data } = param
- const sums = []
- columns.forEach((column, index) => {
- if (index === 0) {
- sums[index] = '总价'
- return
- }
- const values = data.map(item => Number(item[column.property]))
- if (!values.every(value => isNaN(value))) {
- sums[index] = values.reduce((prev, curr) => {
- const value = Number(curr)
- if (!isNaN(value)) {
- return prev + curr
- } else {
- return prev
- }
- }, 0)
- sums[index] += '(干物质量:是待发值)'
- // 后台待发
- // sums[index] += '(干物质量:' + param.data[0].feedgroup + ')'
- } else {
- sums[index] = ''
- }
- })
- return sums
- },
- getDownList() {
- GetDataByNames(this.requestParams).then(response => {
- this.livestockTypeList = response.data.getDictByName.list
- this.formulaTypeList = response.data.getDictByName2.list
- this.feedNameList = response.data.getFeedAndPre.list
- })
- },
- // -------------------模板-----------------------------
- getList() {
- this.table.listLoading = true
- GetDataByName(this.table.getdataListParm).then(response => {
- console.log('table数据', response.data.list)
- if (response.data.list !== null) {
- for (let i = 0; i < response.data.list.length; i++) {
- this.$set(response.data.list[i], 'Edit', false) // 编辑
- this.$set(response.data.list[i], 'NoEdit', true) // 不可编辑/输入
- this.$set(response.data.list[i], 'isCreate', false) // 新增操作
- this.$set(response.data.list[i], 'isUpdate', true) // 编辑操作
- this.$set(response.data.list[i], 'isUpdateSave', false) // 编辑保存
- }
- this.table.list = response.data.list
- this.table.pageNum = response.data.pageNum
- this.table.pageSize = response.data.pageSize
- this.table.total = response.data.total
- } else {
- this.table.list = []
- }
- setTimeout(() => {
- this.table.listLoading = false
- }, 100)
- })
- },
- handleSearch() {
- console.log('点击了查询')
- this.table.getdataListParm.offset = 1
- this.getList()
- this.arrowDown = true
- this.arrowUp = false
- },
- handleRefresh() {
- console.log('点击了重置')
- this.table.getdataListParm.offset = 1
- this.table.getdataListParm.parammaps.ccid = ''
- this.table.getdataListParm.parammaps.ccname = ''
- this.table.getdataListParm.parammaps.fttype = ''
- this.table.getdataListParm.parammaps.tname = ''
- this.table.getdataListParm.parammaps.remark = ''
- this.table.getdataListParm.parammaps.enable = ''
- this.table.getdataListParm.parammaps.source = ''
- this.getList()
- },
- handleSelectionChange(val) {
- console.log('勾选数据', val)
- this.selectList = val
- },
- // 模板行点击
- tableRowClick(row, column, event) {
- console.log(row, column, event)
- for (let i = 0; i < this.table.list.length; i++) {
- if (this.table.list[i].Edit == true) {
- return false
- }
- }
- if (column.label !== '操作') {
- this.isDetail = true // 点击行显示详情
- this.table2.getdataListParm.parammaps.ftid = row.id
- this.table2.getdataListParm.parammaps.fttypeid = row.fttypeid
- this.getList2()
- this.getDownList()
- }
- },
- // -------------------详情-----------------------------
- // 获取是否显示是否锁定牛头数
- getIsLockCount() {
- GetDataByName(this.lockCount.getdataListParm).then(response => {
- console.log(response.data.list)
- if (response.data.list[0].inforvalue == 0) {
- this.lockCount.isLockCount = false
- } else {
- this.lockCount.isLockCount = true
- }
- })
- },
- // 详情
- getList2() {
- this.table2.listLoading = true
- GetDataByName(this.table2.getdataListParm).then(response => {
- console.log('table数据', response.data.list)
- if (response.data.list !== null) {
- for (let i = 0; i < response.data.list.length; i++) {
- this.$set(response.data.list[i], 'Edit', false) // 编辑
- this.$set(response.data.list[i], 'NoEdit', true) // 不可编辑/输入
- this.$set(response.data.list[i], 'groupEdit', false) // 饲料组编辑
- this.$set(response.data.list[i], 'isGroupDisabled', false) // 饲料组编辑禁止编辑
- this.$set(response.data.list[i], 'groupNoEdit', true) // 饲料组不可编辑
- this.$set(response.data.list[i], 'isCreate', false) // 新增操作
- this.$set(response.data.list[i], 'isUpdate', true) // 编辑操作
- this.$set(response.data.list[i], 'isUpdateSave', false) // 编辑保存
- }
- this.table2.list = response.data.list
- this.table2.pageNum = response.data.pageNum
- this.table2.pageSize = response.data.pageSize
- this.table2.total = response.data.total
- } else {
- this.table2.list = []
- }
- this.$nextTick(function() {
- document.querySelector('#detail').scrollIntoView()
- })
- setTimeout(() => {
- this.table2.listLoading = false
- }, 100)
- })
- },
- handleSearch2() {
- console.log('点击了查询')
- this.arrowDown2 = true
- this.arrowUp2 = false
- this.table2.getdataListParm.offset = 1
- this.getList2()
- },
- handleRefresh2() {
- console.log('点击了重置')
- this.table2.getdataListParm.parammaps.fname = ''
- this.table2.getdataListParm.parammaps.feedgroup = ''
- this.table2.getdataListParm.parammaps.fweight = ''
- this.table2.getdataListParm.parammaps.autosecondname = ''
- this.table2.getdataListParm.parammaps.islockcount = '0'
- this.table2.getdataListParm.parammaps.sort = ''
- this.table2.getdataListParm.offset = 1
- this.getList2()
- },
- handleSelectionChange2(val) {
- console.log('勾选数据', val)
- this.selectList2 = val
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .search{margin-top:10px;}
- .table{margin-top:10px;}
- .table2{margin-top:10px;}
- $width:350px;
- $left:325px;
- .selectInput{
- position: relative;
- display: inline-block;
- .Input{width: $width;position: relative;}
- .el-icon-arrow-down{width: 30px;height: 30px;position: absolute;left: $left;top:10px;color:#C0C4CC;}
- .el-icon-arrow-up{width: 30px;height: 30px;position: absolute;left: $left;top:10px;color:#C0C4CC;}
- .selectUl{
- z-index: 111;width: $width;background: #fff;border: 1px solid #E4E7ED;box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);margin: -1px 0 0 0;padding: 6px 0; margin: 0;box-sizing: border-box;position: absolute;
- li{
- list-style: none;font-size: 14px; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #606266; height: 50px; line-height: 50px; box-sizing: border-box; cursor: pointer;
- a{float:left;width: 80px;}
- a:hover{color: rgba(0, 204, 102, 0.71); font-weight: 700;}
- }
- }
- }
- .template{
- background: #fff;
- position: relative;
- }
- .detail{
- background: #fff;
- position: relative;
- }
- .templateDialog{
- background: #fff;
- position: relative;
- }
- .detailDialog{
- background: #fff;
- position: relative;
- }
- </style>
|