修改集成日志请求地址

This commit is contained in:
lvleigang 2024-05-15 11:49:32 +08:00
parent 6eeb79261a
commit 6788fa3f4b
2 changed files with 687 additions and 687 deletions

View File

@ -1,235 +1,235 @@
<template> <template>
<div> <div>
<base-layout <base-layout
ref="baseLayout" ref="baseLayout"
:buttonList="buttonList" :buttonList="buttonList"
@onFuncBtn="onFuncBtn" @onFuncBtn="onFuncBtn"
:querySwitch="true" :querySwitch="true"
:searchList="requirementList" :searchList="requirementList"
@search="handleSearchEvent" @search="handleSearchEvent"
:isPage="true" :isPage="true"
@pageChange="handlePageChange" @pageChange="handlePageChange"
> >
<div slot="main" slot-scope="{ tableHeight }"> <div slot="main" slot-scope="{ tableHeight }">
<base-table <base-table
ref="baseTable" ref="baseTable"
:showIndex="true" :showIndex="true"
:funWidth="180" :funWidth="180"
:funData="funData" :funData="funData"
@onFunc="onFunc" @onFunc="onFunc"
:tabLoading.sync="tabLoading" :tabLoading.sync="tabLoading"
:tableHeight="tableHeight" :tableHeight="tableHeight"
:tableData="tableData" :tableData="tableData"
:tableColumn="tableColumnData" :tableColumn="tableColumnData"
> >
<template #taskStatus="{row}"> <template #taskStatus="{row}">
{{ taskStatusDist[row.taskStatus] }} {{ taskStatusDist[row.taskStatus] }}
</template> </template>
</base-table> </base-table>
</div> </div>
</base-layout> </base-layout>
<right-dialog ref="rightDialog" @resetTable="resetTable"></right-dialog> <right-dialog ref="rightDialog" @resetTable="resetTable"></right-dialog>
</div> </div>
</template> </template>
<script> <script>
import baseLayout from '@/components/base/baseLayout' import baseLayout from '@/components/base/baseLayout'
import baseTable from '@/components/base/baseTable' import baseTable from '@/components/base/baseTable'
import rightDialog from './rightDialog.vue' import rightDialog from './rightDialog.vue'
import { authApi } from '@/api/apis/auth' import { authApi } from '@/api/apis/auth'
export default { export default {
components: { components: {
baseLayout, baseLayout,
baseTable, baseTable,
rightDialog rightDialog
}, },
data() { data() {
return { return {
buttonList: [ buttonList: [
{ {
menuName: '刷新', menuName: '刷新',
icon: 'el-icon-refresh', icon: 'el-icon-refresh',
btnFunction: 'resetLoad' btnFunction: 'resetLoad'
} }
], // ], //
requirementList: [ requirementList: [
{ {
placeholder: '任务名称', placeholder: '任务名称',
prop: 'taskName', prop: 'taskName',
tag: 'elInput' tag: 'elInput'
} }
], //list ], //list
tabLoading: false, tabLoading: false,
tableColumnData: [ tableColumnData: [
{ {
prop: 'taskName', prop: 'taskName',
label: '任务名称' label: '任务名称'
}, },
{ {
prop: 'taskId', prop: 'taskId',
label: '任务编码' label: '任务编码'
}, },
{ {
prop: 'taskStatus', prop: 'taskStatus',
label: '任务状态' label: '任务状态'
}, },
{ {
prop: 'startTime', prop: 'startTime',
label: '当前任务开始时间' label: '当前任务开始时间'
}, },
{ {
prop: 'endTime', prop: 'endTime',
label: '结束时间' label: '结束时间'
}, },
{ {
prop: 'diffTime', prop: 'diffTime',
label: '耗时' label: '耗时'
} }
], // ], //
funData: [ funData: [
{ {
color: '#6a9af1', color: '#6a9af1',
text: '查看' text: '查看'
} }
], ],
tableData: [], // tableData: [], //
pageModel: { pageModel: {
pageNum: 1, pageNum: 1,
pageSize: 100 pageSize: 100
}, },
queryModel: { queryModel: {
code: '', code: '',
name: '', name: '',
classify: '', classify: '',
productionCompany: '' productionCompany: ''
}, },
taskStatusDist: { taskStatusDist: {
1: '执行中', 1: '执行中',
2: '执行成功', 2: '执行成功',
3: '执行失败' 3: '执行失败'
} }
} }
}, },
mounted() { mounted() {
// this.queryProductClassfy(); // this.queryProductClassfy();
this.GetProductionTableData() this.GetProductionTableData()
}, },
methods: { methods: {
onCellClick(row) { onCellClick(row) {
this.openLoading('detail') this.openLoading('detail')
this.$refs.rightDialog.openDialog('show', row) this.$refs.rightDialog.openDialog('show', row)
}, },
// //
async GetProductionTableData() { async GetProductionTableData() {
this.tabLoading = true this.tabLoading = true
let param = { let param = {
...this.pageModel, ...this.pageModel,
...this.queryModel ...this.queryModel
} }
let res = await authApi( let res = await authApi(
'integrationTaskLivingDetailsService', 'integrationTaskLogService',
'', '',
'queryEntityPage', 'queryEntityPage',
'', '',
param param
) )
this.tabLoading = false this.tabLoading = false
if (res.status == '200') { if (res.status == '200') {
this.tableData = res.attribute.list this.tableData = res.attribute.list
this.$refs.baseLayout.setPageTotal(res.attribute.total) this.$refs.baseLayout.setPageTotal(res.attribute.total)
} }
}, },
// //
handlePageChange(val) { handlePageChange(val) {
this.pageModel.pageNum = val.pageIndex this.pageModel.pageNum = val.pageIndex
this.pageModel.pageSize = val.pageSize this.pageModel.pageSize = val.pageSize
this.GetProductionTableData() this.GetProductionTableData()
}, },
// //
onFuncBtn(btn) { onFuncBtn(btn) {
this.onCellClick() this.onCellClick()
// this[btn.btnFunction]() // this[btn.btnFunction]()
}, },
// //
add() { add() {
this.$refs.rightDialog.openDialog('add') this.$refs.rightDialog.openDialog('add')
}, },
// //
onFunc(index, row, item) { onFunc(index, row, item) {
// //
if (item.text === '查看') { if (item.text === '查看') {
this.openLoading('detail') this.openLoading('detail')
this.$refs.rightDialog.openDialog('show', row) this.$refs.rightDialog.openDialog('show', row)
} }
// //
if (item.text === '编辑') { if (item.text === '编辑') {
this.openLoading('detail') this.openLoading('detail')
this.$refs.rightDialog.openDialog('edit', row) this.$refs.rightDialog.openDialog('edit', row)
} }
// //
if (item.text === '删除') { if (item.text === '删除') {
this.$delConfirm().then(() => { this.$delConfirm().then(() => {
this.openLoading('del') this.openLoading('del')
this.productionDeleteById(row.id) this.productionDeleteById(row.id)
}) })
} }
}, },
async productionDeleteById(id) { async productionDeleteById(id) {
let param = { let param = {
id: id id: id
} }
let res = await authApi( let res = await authApi(
'sysPlugArgService', 'sysPlugArgService',
'integrationTaskService', 'integrationTaskService',
'deletePlugArg', 'deletePlugArg',
'', '',
param param
) )
if (res.status == '200') { if (res.status == '200') {
this.$vmNews('删除成功', 'success') this.$vmNews('删除成功', 'success')
this.resetTable() this.resetTable()
} }
}, },
// //
resetTable() { resetTable() {
this.pageModel.pageNum = 1 this.pageModel.pageNum = 1
this.$refs.baseLayout.pageClear() this.$refs.baseLayout.pageClear()
this.GetProductionTableData() this.GetProductionTableData()
}, },
// //
handleSearchEvent() { handleSearchEvent() {
let data = this.$refs.baseLayout.ruleForm let data = this.$refs.baseLayout.ruleForm
this.queryModel = data this.queryModel = data
this.resetTable() this.resetTable()
}, },
// //
async queryProductClassfy() { async queryProductClassfy() {
let params = { let params = {
tab_name: 'sys_product', tab_name: 'sys_product',
column_name: 'classify' column_name: 'classify'
} }
let res = await authApi( let res = await authApi(
'generalServiceImpl', 'generalServiceImpl',
'dictionaryshop', 'dictionaryshop',
'selectDictionaryshop', 'selectDictionaryshop',
'', '',
params params
) )
if (res.status == '200') { if (res.status == '200') {
this.requirementList[2].options = res.attribute this.requirementList[2].options = res.attribute
} }
} }
} }
} }
</script> </script>
<style scoped> <style scoped>
.clickTitle { .clickTitle {
color: #409eff; color: #409eff;
cursor: pointer; cursor: pointer;
} }
</style> </style>

View File

@ -1,452 +1,452 @@
<template> <template>
<div> <div>
<base-right-dialog <base-right-dialog
ref="baseRightDialog" ref="baseRightDialog"
:footerShow="true" :footerShow="true"
:dialogVisible.sync="dialogVisible" :dialogVisible.sync="dialogVisible"
:title="dialogTitle + ' 集成任务日志'" :title="dialogTitle + ' 集成任务日志'"
@handleClose="handleDialogClose" @handleClose="handleDialogClose"
:type="dialogType" :type="dialogType"
:submitShow="submitShow" :submitShow="submitShow"
@handleConfirmClick="handleConfirmClick" @handleConfirmClick="handleConfirmClick"
> >
<base-form <base-form
ref="basicsForm" ref="basicsForm"
:formRow="formRow" :formRow="formRow"
:isFunBtn="false" :isFunBtn="false"
class="dialog_form" class="dialog_form"
:spanWidth="`120px`" :spanWidth="`120px`"
:loading="vLoading" :loading="vLoading"
@onSelect="onSelect" @onSelect="onSelect"
></base-form> ></base-form>
<!-- <el-button--> <!-- <el-button-->
<!-- style="width: 125px; margin: 20px 0"--> <!-- style="width: 125px; margin: 20px 0"-->
<!-- @click="addVersionDialog"--> <!-- @click="addVersionDialog"-->
<!-- icon="el-icon-plus"--> <!-- icon="el-icon-plus"-->
<!-- :disabled="submitShow ? false : true"--> <!-- :disabled="submitShow ? false : true"-->
<!-- v-if="submitShow"--> <!-- v-if="submitShow"-->
<!-- >添加</el-button--> <!-- >添加</el-button-->
<!-- >--> <!-- >-->
<!-- <base-table--> <!-- <base-table-->
<!-- :border="true"--> <!-- :border="true"-->
<!-- :showIndex="true"--> <!-- :showIndex="true"-->
<!-- :tableColumn="tableVersionColumn"--> <!-- :tableColumn="tableVersionColumn"-->
<!-- :tableData="tableVersionData"--> <!-- :tableData="tableVersionData"-->
<!-- :funWidth="80"--> <!-- :funWidth="80"-->
<!-- :funData="funData"--> <!-- :funData="funData"-->
<!-- @onFunc="onFunc"--> <!-- @onFunc="onFunc"-->
<!-- >--> <!-- >-->
<!-- <template v-slot:argName="{ row }" >--> <!-- <template v-slot:argName="{ row }" >-->
<!-- <div style="width: 100%">--> <!-- <div style="width: 100%">-->
<!-- <template v-if="!submitShow">{{row.argName}}</template>--> <!-- <template v-if="!submitShow">{{row.argName}}</template>-->
<!-- <el-input--> <!-- <el-input-->
<!-- v-else--> <!-- v-else-->
<!-- v-model="row.argName"--> <!-- v-model="row.argName"-->
<!-- clearable--> <!-- clearable-->
<!-- type="text"--> <!-- type="text"-->
<!-- :disabled="!submitShow || row.disabled"--> <!-- :disabled="!submitShow || row.disabled"-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </div>--> <!-- </div>-->
<!-- </template>--> <!-- </template>-->
<!-- <template v-slot:argCode="{ row }">--> <!-- <template v-slot:argCode="{ row }">-->
<!-- <div style="width: 100%">--> <!-- <div style="width: 100%">-->
<!-- <template v-if="!submitShow">--> <!-- <template v-if="!submitShow">-->
<!-- {{ row.argCode }}--> <!-- {{ row.argCode }}-->
<!-- </template>--> <!-- </template>-->
<!-- <el-input--> <!-- <el-input-->
<!-- v-else--> <!-- v-else-->
<!-- v-model="row.argCode"--> <!-- v-model="row.argCode"-->
<!-- clearable--> <!-- clearable-->
<!-- type="text"--> <!-- type="text"-->
<!-- :disabled="!submitShow"--> <!-- :disabled="!submitShow"-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </div>--> <!-- </div>-->
<!-- </template>--> <!-- </template>-->
<!-- <template v-slot:argType="{ row }">--> <!-- <template v-slot:argType="{ row }">-->
<!-- <div style="width: 100%">--> <!-- <div style="width: 100%">-->
<!--&lt;!&ndash; <el-radio-group v-model="row.argType" :disabled="!submitShow">&ndash;&gt;--> <!--&lt;!&ndash; <el-radio-group v-model="row.argType" :disabled="!submitShow">&ndash;&gt;-->
<!--&lt;!&ndash; <el-radio label="1">字符串</el-radio>&ndash;&gt;--> <!--&lt;!&ndash; <el-radio label="1">字符串</el-radio>&ndash;&gt;-->
<!--&lt;!&ndash; <el-radio label="2">日期</el-radio>&ndash;&gt;--> <!--&lt;!&ndash; <el-radio label="2">日期</el-radio>&ndash;&gt;-->
<!--&lt;!&ndash; </el-radio-group>&ndash;&gt;--> <!--&lt;!&ndash; </el-radio-group>&ndash;&gt;-->
<!-- <el-select v-model="row.argType" placeholder="请选择">--> <!-- <el-select v-model="row.argType" placeholder="请选择">-->
<!-- <el-option--> <!-- <el-option-->
<!-- v-for="item in options"--> <!-- v-for="item in options"-->
<!-- :key="item.value"--> <!-- :key="item.value"-->
<!-- :label="item.label"--> <!-- :label="item.label"-->
<!-- :value="item.value">--> <!-- :value="item.value">-->
<!-- </el-option>--> <!-- </el-option>-->
<!-- </el-select>--> <!-- </el-select>-->
<!-- </div>--> <!-- </div>-->
<!-- </template>--> <!-- </template>-->
<!-- <template v-slot:remark="{ row }">--> <!-- <template v-slot:remark="{ row }">-->
<!-- <div style="width: 100%">--> <!-- <div style="width: 100%">-->
<!-- <template v-if="!submitShow">{{row.remark}}</template>--> <!-- <template v-if="!submitShow">{{row.remark}}</template>-->
<!-- <el-input--> <!-- <el-input-->
<!-- v-model="row.remark"--> <!-- v-model="row.remark"-->
<!-- clearable--> <!-- clearable-->
<!-- type="text"--> <!-- type="text"-->
<!-- v-else--> <!-- v-else-->
<!-- :disabled="!submitShow"--> <!-- :disabled="!submitShow"-->
<!-- ></el-input>--> <!-- ></el-input>-->
<!-- </div>--> <!-- </div>-->
<!-- </template>--> <!-- </template>-->
<!-- </base-table>--> <!-- </base-table>-->
</base-right-dialog> </base-right-dialog>
</div> </div>
</template> </template>
<script> <script>
import baseRightDialog from '@/components/base/baseRightDialog' import baseRightDialog from '@/components/base/baseRightDialog'
import baseForm from '@/components/base/baseNewForm' import baseForm from '@/components/base/baseNewForm'
import baseTable from '@/components/base/baseTable' import baseTable from '@/components/base/baseTable'
import { authApi } from '@/api/apis/auth' import { authApi } from '@/api/apis/auth'
export default { export default {
components: { components: {
baseRightDialog, baseRightDialog,
baseForm, baseForm,
baseTable baseTable
}, },
data() { data() {
return { return {
dialogVisible: false, dialogVisible: false,
dialogTitle: '', dialogTitle: '',
dialogType: '', dialogType: '',
formRow: [], formRow: [],
basicsRules: [], basicsRules: [],
vLoading: false, vLoading: false,
newMarryOptions: [], newMarryOptions: [],
submitShow: true, submitShow: true,
loadingType: true, loadingType: true,
tableVersionData: [], tableVersionData: [],
tableVersionColumn: [], tableVersionColumn: [],
funData: [], funData: [],
isEdit: false, isEdit: false,
select_dist: {}, select_dist: {},
options: [ options: [
{ {
label: '字符串', label: '字符串',
value: '1' value: '1'
}, },
{ {
label: '日期范围选择', label: '日期范围选择',
value: '2' value: '2'
}, },
{ {
label: '年月', label: '年月',
value: '3' value: '3'
}, },
{ {
label: '年月日', label: '年月日',
value: '4' value: '4'
}, },
{ {
label: '年月日时间', label: '年月日时间',
value: '5' value: '5'
} }
] ]
} }
}, },
mounted() { mounted() {
this.initSelect() this.initSelect()
}, },
methods: { methods: {
// //
async initSelect() { async initSelect() {
let res = await authApi( let res = await authApi(
'pluginService', 'pluginService',
'plugins', 'plugins',
'queryPluginsByType', 'queryPluginsByType',
'', '',
{ {
'pluginType': '1' 'pluginType': '1'
} }
) )
if (res.status == 200) { if (res.status == 200) {
console.log(res.attribute) console.log(res.attribute)
res.attribute.forEach(item => { res.attribute.forEach(item => {
this.$set(this.select_dist, item.pluginId, item) this.$set(this.select_dist, item.pluginId, item)
}) })
this.formRow[0].elCol[0].options = res.attribute this.formRow[0].elCol[0].options = res.attribute
} }
}, },
// //
onSelect(val, index, indexRow, obj) { onSelect(val, index, indexRow, obj) {
this.$set(this.$refs.basicsForm.ruleForm, 'plugName', this.select_dist[val]['pluginName']) this.$set(this.$refs.basicsForm.ruleForm, 'plugName', this.select_dist[val]['pluginName'])
}, },
openDialog(type, row) { openDialog(type, row) {
// this.queryProductClassfy(); // this.queryProductClassfy();
this.formRow = [] this.formRow = []
this.submitShow = true this.submitShow = true
this.isEdit = false this.isEdit = false
this.funData = [ this.funData = [
{ {
color: '#ff0000', color: '#ff0000',
text: '删除' text: '删除'
} }
] ]
// //
if (type == 'add') { if (type == 'add') {
this.dialogTitle = '新增' this.dialogTitle = '新增'
this.dialogType = 'add' this.dialogType = 'add'
} }
// //
if (type == 'edit') { if (type == 'edit') {
this.isEdit = true this.isEdit = true
this.dialogTitle = '编辑' this.dialogTitle = '编辑'
this.dialogType = 'edit' this.dialogType = 'edit'
this.productGetById(row.id) this.productGetById(row.id)
} }
// //
if (type == 'show') { if (type == 'show') {
this.funData = Object.assign([], []) this.funData = Object.assign([], [])
this.submitShow = false this.submitShow = false
this.formRow = [ this.formRow = [
{ {
elCol: [ elCol: [
{ {
label: '任务编码', label: '任务编码',
prop: 'taskCode', prop: 'taskCode',
tag: 'elInput', tag: 'elInput',
disabled: true disabled: true
}, },
{ {
label: '任务名称', label: '任务名称',
prop: 'taskName', prop: 'taskName',
tag: 'elInput', tag: 'elInput',
disabled: true disabled: true
} }
] ]
}, },
{ {
elCol: [ elCol: [
{ {
label: '任务状态', label: '任务状态',
prop: 'taskStatus', prop: 'taskStatus',
tag: 'elRadio', tag: 'elRadio',
disabled: true, disabled: true,
options: [ options: [
{ {
label: '执行中', label: '执行中',
value: '1' value: '1'
}, },
{ {
label: '执行成功', label: '执行成功',
value: '2' value: '2'
}, },
{ {
label: '执行失败', label: '执行失败',
value: '3' value: '3'
} }
], ],
span: 24 span: 24
} }
] ]
}, },
{ {
elCol: [ elCol: [
{ {
label: '当前任务开始时间', label: '当前任务开始时间',
prop: 'startTime', prop: 'startTime',
tag: 'elInput', tag: 'elInput',
disabled: true disabled: true
}, },
{ {
label: '结束时间', label: '结束时间',
prop: 'endTime', prop: 'endTime',
tag: 'elInput', tag: 'elInput',
disabled: true disabled: true
} }
] ]
}, },
{ {
elCol: [ elCol: [
{ {
label: '耗时', label: '耗时',
prop: 'diffTime', prop: 'diffTime',
tag: 'elInput', tag: 'elInput',
disabled: true disabled: true
}, },
{ {
label: '备注', label: '备注',
prop: 'remark', prop: 'remark',
tag: 'elInput', tag: 'elInput',
disabled: true disabled: true
} }
] ]
} }
] ]
this.dialogTitle = '查看' this.dialogTitle = '查看'
this.dialogType = 'show' this.dialogType = 'show'
this.productGetById(row.id) this.productGetById(row.id)
} }
this.dialogVisible = true this.dialogVisible = true
}, },
// //
async productGetById(id) { async productGetById(id) {
let params = { let params = {
id: id id: id
} }
let res = await authApi( let res = await authApi(
'integrationTaskLivingDetailsService', 'integrationTaskLogService',
'', '',
'getEntity', 'getEntity',
'', '',
params params
) )
if (res.status == '200') { if (res.status == '200') {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.basicsForm.incomingParameters(res.attribute) this.$refs.basicsForm.incomingParameters(res.attribute)
// this.tableVersionData = res.attribute.sysPlugArgDetailEntityList // this.tableVersionData = res.attribute.sysPlugArgDetailEntityList
// let result = []; // let result = [];
// this.tableVersionData = Object.assign([], result); // this.tableVersionData = Object.assign([], result);
}) })
} }
}, },
addVersionDialog() { addVersionDialog() {
let obj = { let obj = {
argName: '', argName: '',
argCode: '', argCode: '',
argType: '1', argType: '1',
remark: '' remark: ''
} }
this.tableVersionData.push(obj) this.tableVersionData.push(obj)
}, },
// //
onFunc(index, row) { onFunc(index, row) {
if (index == 0) { if (index == 0) {
this.$delConfirm().then(() => { this.$delConfirm().then(() => {
this.tableVersionData.forEach((item, itemIndex) => { this.tableVersionData.forEach((item, itemIndex) => {
if (item.id === row.id) { if (item.id === row.id) {
this.tableVersionData.splice(itemIndex, 1) this.tableVersionData.splice(itemIndex, 1)
} }
}) })
}) })
} }
}, },
// //
handleDialogClose() { handleDialogClose() {
this.tableVersionData = Object.assign([], []) this.tableVersionData = Object.assign([], [])
this.$refs.basicsForm.resetFields() this.$refs.basicsForm.resetFields()
this.dialogVisible = false this.dialogVisible = false
}, },
// //
handleConfirmClick() { handleConfirmClick() {
this.$refs.basicsForm.$refs['ruleForm'].validate((valid) => { this.$refs.basicsForm.$refs['ruleForm'].validate((valid) => {
if (!valid) { if (!valid) {
return return
} else { } else {
if (!this.tableVersionData.length) { if (!this.tableVersionData.length) {
this.$vmNews('请添加列表') this.$vmNews('请添加列表')
return return
} }
let flag = this.tableVersionData.some(item => { let flag = this.tableVersionData.some(item => {
if (!item.argName) { if (!item.argName) {
this.$vmNews('请输入参数名称') this.$vmNews('请输入参数名称')
return true return true
} }
if (!item.argCode) { if (!item.argCode) {
this.$vmNews('参数编码') this.$vmNews('参数编码')
return true return true
} }
}) })
if (flag) return if (flag) return
let params = { let params = {
...this.$refs.basicsForm.ruleForm, ...this.$refs.basicsForm.ruleForm,
sysPlugArgDetailEntityList: this.tableVersionData sysPlugArgDetailEntityList: this.tableVersionData
} }
if (this.dialogType == 'add') { if (this.dialogType == 'add') {
this.openLoading('submit') this.openLoading('submit')
this.productSaveDto(params) this.productSaveDto(params)
} }
if (this.dialogType == 'edit') { if (this.dialogType == 'edit') {
this.openLoading('submit') this.openLoading('submit')
this.productUpdateDto(params) this.productUpdateDto(params)
} }
} }
}) })
}, },
// //
async productSaveDto(params) { async productSaveDto(params) {
let res = await authApi( let res = await authApi(
'sysPlugArgService', 'sysPlugArgService',
'integrationTaskService', 'integrationTaskService',
'savePlugArg', 'savePlugArg',
'', '',
params params
) )
if (res.status == '200') { if (res.status == '200') {
this.handleDialogClose() this.handleDialogClose()
this.$vmNews('新增成功', 'success') this.$vmNews('新增成功', 'success')
this.$emit('resetTable') this.$emit('resetTable')
} }
}, },
// //
async productUpdateDto(params) { async productUpdateDto(params) {
let res = await authApi( let res = await authApi(
'sysPlugArgService', 'sysPlugArgService',
'integrationTaskService', 'integrationTaskService',
'updatePlugArg', 'updatePlugArg',
'', '',
params params
) )
if (res.status == '200') { if (res.status == '200') {
this.handleDialogClose() this.handleDialogClose()
this.$vmNews('更新成功', 'success') this.$vmNews('更新成功', 'success')
this.$emit('resetTable') this.$emit('resetTable')
} }
}, },
// //
async queryProductClassfy() { async queryProductClassfy() {
let params = { let params = {
tab_name: 'sys_product', tab_name: 'sys_product',
column_name: 'classify' column_name: 'classify'
} }
let res = await authApi( let res = await authApi(
'generalServiceImpl', 'generalServiceImpl',
'dictionaryshop', 'dictionaryshop',
'selectDictionaryshop', 'selectDictionaryshop',
'', '',
params params
) )
if (res.status == '200') { if (res.status == '200') {
this.formRow[1].elCol[0].options = res.attribute this.formRow[1].elCol[0].options = res.attribute
} }
} }
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.dialogList { .dialogList {
padding: 16px 0; padding: 16px 0;
border-top: 1px solid #dcdfe6; border-top: 1px solid #dcdfe6;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.updateBtn { .updateBtn {
border: 1px solid #ebedf1; border: 1px solid #ebedf1;
padding: 5px 0; padding: 5px 0;
border-radius: 3px; border-radius: 3px;
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
cursor: pointer; cursor: pointer;
width: 100px; width: 100px;
} }
.updateBtn:hover { .updateBtn:hover {
color: #1890ff; color: #1890ff;
border-color: #badeff; border-color: #badeff;
background-color: #e8f4ff; background-color: #e8f4ff;
} }
::v-deep .el-table__body-wrapper.is-scrolling-none { ::v-deep .el-table__body-wrapper.is-scrolling-none {
height: auto !important; height: auto !important;
} }
::v-deep .app-container { ::v-deep .app-container {
height: auto !important; height: auto !important;
} }
</style> </style>