Commit 0b5eb58e by 匡雅琴

调整

1 parent 269f82f7
......@@ -96,7 +96,6 @@ export default {
this.$refs.materialGroupAddForm.validate(valid => {
if (valid) {
// 判断是创建还是编辑
// debugger
if (this.materialGroupAddForm.id) {
this.eventBus.$emit('editMaterialGroup', this.materialGroupAddForm)
this.dialogVisible = false
......
......@@ -15,7 +15,7 @@
<ul>
<li @click="handleStick(item)">{{ item.orderTime ? '取消置顶' : '置顶' }}</li>
<li @click="handleAddGroup(2,item)">修改</li>
<li @click="handleDeleteGroup(item.id)">删除</li>
<li @click="handleDeleteGroup(item.id)" v-if="item.isDefault == -1">删除</li>
</ul>
</div>
<i slot="reference" class="el-icon-more"></i>
......@@ -53,7 +53,7 @@ export default {
})
this.eventBus.$on('editMaterialGroup', data => {
data.businessType = data.businessType.toString()
this.$apis.material.addMaterialGroup(data).then(res => {
this.$apis.material.editMaterialGroup(data).then(res => {
if (res) {
this.getMaterialList()
}
......
......@@ -6,7 +6,7 @@
<el-button type="primary" :size="size" @click="handleSearch(scope)">查询</el-button>
</span>
</glsx-combi-form>
<GLTable ref="readPerDetailRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :tableData="readPerDetailTableData" :pageConf="pageConf" :tableTotal="tableTotal">
<GLTable ref="readPerDetailRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf">
</GLTable>
</div>
</template>
......@@ -26,6 +26,7 @@ export default {
materialId: this.materialId,
},
getListApi: this.$apis.material.readDetailPage,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
readPerDetailFormData: [
{
label: '名称:',
......@@ -69,7 +70,7 @@ export default {
},
{
label: '阅读次数',
prop: 'readTime'
prop: 'readNumber'
},
{
label: '首次阅读时间',
......
......@@ -5,7 +5,7 @@
<el-button type="primary" :size="size" @click="handleSearch(scope)">查询</el-button>
</span>
</glsx-combi-form>
<GLTable ref="staffSendDetailRef" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :tableData="staffSendTableData" :pageConf="pageConf" :tableTotal="tableTotal"></GLTable>
<GLTable ref="staffSendDetailRef" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams"></GLTable>
</div>
</template>
......@@ -31,6 +31,7 @@ export default {
}
],
getListApi: this.$apis.material.sendDetailPage,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: {
listName: 'data',
tableOption: false,
......
......@@ -29,13 +29,13 @@
</el-col>
<el-col :span="19">
<div class="right" :style="{ height: boxHeight }">
<div class="groupTitle">{{ materialGroupName ? materialGroupName : '默认素材分组' }}(共{{ materialTableData.length }}条数据)</div>
<GLTable ref="materialRef" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :tableData="materialTableData" :pageConf="pageConf" :tableTotal="tableTotal" @sortChange="sortChange" :isCustomHead="true" :customHeadShowList="customHeadShowList">
<div class="groupTitle">{{ materialGroupName ? materialGroupName : '默认素材分组' }}(共{{ tableTotal }}条数据)</div>
<GLTable ref="materialRef" :noDataImg="url" @refreshTable="getListApi" :layout="layout" :searchForm="searchForm" :tableParams="tableParams" :tableData="materialTableData" :pageConf="pageConf" :tableTotal="tableTotal" @sortChange="sortChange" :isCustomHead="true" :customHeadShowList="customHeadShowList">
<!-- 素材内容 -->
<div slot="materialContentRpcResponse" slot-scope="scope" style="text-align: center">
<!-- 素材为PDF -->
<span v-if="scope.scope.materialType == 1" class="material-content">
<el-tooltip effect="dark" placement="top" :content="scope.scope.materialContentRpcResponse.materialName" :disabled="scope.scope.materialContentRpcResponse.materialName < 16">
<el-tooltip effect="dark" placement="top" :content="scope.scope.materialContentRpcResponse.materialName" :disabled="scope.scope.materialContentRpcResponse.materialName.length < 16">
<span class="hide-content">{{ scope.scope.materialContentRpcResponse.materialName }}</span>
</el-tooltip>
<!-- <img src="@/assets/material/pdf.png" alt=""> -->
......@@ -45,7 +45,7 @@
<span v-if="scope.scope.materialType == 2"></span>
<!-- 图文 -->
<span v-if="scope.scope.materialType == 3" class="material-content">
<el-tooltip effect="dark" placement="top" :content="scope.scope.materialContentRpcResponse.materialName" :disabled="scope.scope.materialContentRpcResponse.materialName < 16">
<el-tooltip effect="dark" placement="top" :content="scope.scope.materialContentRpcResponse.materialName" :disabled="scope.scope.materialContentRpcResponse.materialName.length < 16">
<span>{{ scope.scope.materialContentRpcResponse.materialName }}</span>
</el-tooltip>
<el-popover
......@@ -118,6 +118,8 @@ export default {
status: '',
materialName: ''
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
layout: 'sizes, prev, pager, next, jumper, ->, total',
materialTableData: [],
materialGroupDialog: false,
introductionDialog: false,
......@@ -306,7 +308,6 @@ export default {
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableTotal: 4
}
},
......@@ -426,10 +427,11 @@ export default {
},
getListApi() {
var params = this.getParams()
params.pageSize = 10,
params.pageNum = 1
params.pageSize = this.$refs.materialRef.page.pageSize,
params.pageNum = this.$refs.materialRef.page.pageNum
this.$apis.material.materialList(params).then(res => {
this.materialTableData = res.data
this.tableTotal = res.count
})
},
// 点击素材组获取素材组素材
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!