|
@@ -397,9 +397,27 @@
|
|
<ModifyListDetail v-else :detail="detail" />
|
|
<ModifyListDetail v-else :detail="detail" />
|
|
<ExamineDialog :isShow.sync="isShowExamineDialog" :examineForm.sync="examineForm" />
|
|
<ExamineDialog :isShow.sync="isShowExamineDialog" :examineForm.sync="examineForm" />
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <!-- <template-page
|
|
|
|
+ ref="pageRef"
|
|
|
|
+ :getList="getList"
|
|
|
|
+ :operation="operation()"
|
|
|
|
+ :optionsEvensGroup="optionsEvensGroup"
|
|
|
|
+ :exportList="exportList"
|
|
|
|
+ :columnParsing="columnParsing"
|
|
|
|
+ :tableAttributes="tableAttributes"
|
|
|
|
+ :tableEvents="tableEvents"
|
|
|
|
+ >
|
|
|
|
+
|
|
|
|
+ </template-page> -->
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import TemplatePage from '@/components/template/template-page-1.vue'
|
|
|
|
+import Popu from '@/components/template/popu.vue'
|
|
|
|
+import import_mixin from '@/components/template/import_mixin.js'
|
|
|
|
+import add_callback_mixin from '@/components/template/add_callback_mixin.js'
|
|
|
|
+
|
|
import ModifyListApply from './components/modify_list-apply.vue'
|
|
import ModifyListApply from './components/modify_list-apply.vue'
|
|
import ModifyListApproval from './components/modify_list-approval.vue'
|
|
import ModifyListApproval from './components/modify_list-approval.vue'
|
|
import ModifyListDetail from './components/modify_list-detail.vue'
|
|
import ModifyListDetail from './components/modify_list-detail.vue'
|
|
@@ -417,9 +435,87 @@ import { downloadFiles, handleImport } from '@/utils/util'
|
|
import { getCategoryList } from '@/api/common'
|
|
import { getCategoryList } from '@/api/common'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
- mixins: [Mixin],
|
|
|
|
|
|
+ mixins: [Mixin, import_mixin, add_callback_mixin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ // 事件组合
|
|
|
|
+ optionsEvensGroup: [
|
|
|
|
+ [
|
|
|
|
+ [
|
|
|
|
+ {
|
|
|
|
+ name: '新增',
|
|
|
|
+ click: this.addOn(() => {})
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ ],
|
|
|
|
+ [
|
|
|
|
+ [
|
|
|
|
+ {
|
|
|
|
+ name: '批量删除',
|
|
|
|
+ click: async () => {
|
|
|
|
+ if (this.recordSelected.length === 0) {
|
|
|
|
+ this.$message.error('请选择需要删除的数据')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ let messengerLevelId = this.recordSelected.map(v => {
|
|
|
|
+ return v.messengerLevelId
|
|
|
|
+ })
|
|
|
|
+ let params = messengerLevelId
|
|
|
|
+ await levelDel(params)
|
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
|
+ this.$message.success('批量删除成功')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ ],
|
|
|
|
+ [
|
|
|
|
+ [
|
|
|
|
+ {
|
|
|
|
+ name: '批量审批',
|
|
|
|
+ click: async () => {}
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ ]
|
|
|
|
+ // [
|
|
|
|
+ // [
|
|
|
|
+ // {
|
|
|
|
+ // name: '',
|
|
|
|
+ // render: this.importButton(lbsAmapImport)
|
|
|
|
+ // }
|
|
|
|
+ // ]
|
|
|
|
+ // ],
|
|
|
|
+ // [
|
|
|
|
+ // [
|
|
|
|
+ // {
|
|
|
|
+ // name: '导入模版',
|
|
|
|
+ // click: () => {
|
|
|
|
+ // // lbsAmapTemplateExcel({}, `${this.$route.meta.title}`)
|
|
|
|
+ // // .then(res => {
|
|
|
|
+ // // this.$message({
|
|
|
|
+ // // message: '下载成功',
|
|
|
|
+ // // type: 'success'
|
|
|
|
+ // // })
|
|
|
|
+ // // })
|
|
|
|
+ // // .catch(err => {
|
|
|
|
+ // // this.$message.error('下载失败')
|
|
|
|
+ // // })
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // ]
|
|
|
|
+ // ]
|
|
|
|
+ ],
|
|
|
|
+ // 表格属性
|
|
|
|
+ tableAttributes: {
|
|
|
|
+ // 启用勾选列
|
|
|
|
+ selectColumn: true
|
|
|
|
+ },
|
|
|
|
+ // 表格事件
|
|
|
|
+ tableEvents: {
|
|
|
|
+ 'selection-change': this.selectionChange
|
|
|
|
+ },
|
|
|
|
+ recordSelected: [],
|
|
|
|
+
|
|
|
|
+ //
|
|
baseURL: '',
|
|
baseURL: '',
|
|
importFileList: [],
|
|
importFileList: [],
|
|
importLoading: false,
|
|
importLoading: false,
|
|
@@ -495,7 +591,9 @@ export default {
|
|
ExamineDialog,
|
|
ExamineDialog,
|
|
ModifyListApply,
|
|
ModifyListApply,
|
|
ModifyListApproval,
|
|
ModifyListApproval,
|
|
- ModifyListDetail
|
|
|
|
|
|
+ ModifyListDetail,
|
|
|
|
+ TemplatePage,
|
|
|
|
+ Popu
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
exParams() {
|
|
exParams() {
|
|
@@ -533,6 +631,30 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 列表请求函数
|
|
|
|
+ // getList: levelList,
|
|
|
|
+ // 列表导出函数
|
|
|
|
+ // exportList: exportLevelList,
|
|
|
|
+ // 表格列解析渲染数据更改
|
|
|
|
+ columnParsing(item, defaultData) {
|
|
|
|
+ return defaultData
|
|
|
|
+ },
|
|
|
|
+ // 监听勾选变化
|
|
|
|
+ selectionChange(data) {
|
|
|
|
+ this.recordSelected = data
|
|
|
|
+ },
|
|
|
|
+ operation() {
|
|
|
|
+ return (h, { row, index, column }) => {
|
|
|
|
+ return (
|
|
|
|
+ <div class="operation-btns">
|
|
|
|
+ <el-button size="mini" type="text" onClick={async () => {}}>
|
|
|
|
+ 详情
|
|
|
|
+ </el-button>
|
|
|
|
+ </div>
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
formatterType(row) {
|
|
formatterType(row) {
|
|
for (let i = 0; i < this.typeList.length; i++) {
|
|
for (let i = 0; i < this.typeList.length; i++) {
|
|
if (this.typeList[i].id == row.saleTypeId) {
|
|
if (this.typeList[i].id == row.saleTypeId) {
|