This commit is contained in:
shijingjing
2022-10-14 15:27:43 +08:00
parent 046715d4b6
commit f753f534a4
3 changed files with 38 additions and 11 deletions

View File

@@ -37,8 +37,6 @@
import {mapState} from 'vuex' import {mapState} from 'vuex'
import moment from './moment.vue' import moment from './moment.vue'
import history from './history.vue' import history from './history.vue'
import Template from '../../../../../packages/work/AppAskForm/components/Template.vue'
export default { export default {
name: 'List', name: 'List',
@@ -83,7 +81,6 @@ export default {
components: { components: {
moment, moment,
history, history,
Template
}, },
computed: { computed: {
...mapState(['user']), ...mapState(['user']),
@@ -164,7 +161,12 @@ export default {
this.$router.push({query: {id}}) this.$router.push({query: {id}})
}, },
toAdd(id) { toAdd(id) {
this.$router.push({query: {id}, hash: "#add"}) this.$emit('change', {
type: 'addChange',
params: {
id: id || ''
}
})
} }
} }
} }

View File

@@ -15,7 +15,7 @@
class="detail-table__table" class="detail-table__table"
:tableData="tableData" :tableData="tableData"
:col-configs="colConfigs" :col-configs="colConfigs"
:total="totalJob" :total="page.total"
:current.sync="current" :current.sync="current"
:size.sync="size" :size.sync="size"
@getList="getJobList"> @getList="getJobList">
@@ -74,6 +74,7 @@ export default {
<style lang="scss" scope> <style lang="scss" scope>
.history { .history {
padding-top: 0 !important;
background-color: #FFF !important;
} }
</style> </style>

View File

@@ -53,6 +53,31 @@
</el-table-column> </el-table-column>
</ai-table> </ai-table>
</template> </template>
<ai-dialog :visible.sync="dialogJob" title="定制大屏" @closed="custom={}" @onConfirm="handleCustomizedDV">
<el-form ref="jobForm" size="small" :model="jobForm" :rules="rules" label-width="80px">
<el-form-item label="职位" prop="title">
<el-input v-model="jobForm.title" clearable placeholder="请输入"/>
</el-form-item>
<el-form-item label="姓名" prop="dv">
<el-input v-model="jobForm.title" clearable placeholder="请输入"/>
</el-form-item>
</el-form>
</ai-dialog>
<ai-dialog :visible.sync="dialogCandidate" title="定制大屏" @closed="custom={}" @onConfirm="handleCustomizedDV">
<el-form ref="CandFrom" size="small" :model="CandFrom" :rules="rules" label-width="80px">
<el-form-item label="大屏标题" prop="title">
<el-input v-model="custom.title" clearable placeholder="请填写"/>
</el-form-item>
<el-form-item label="选择大屏" prop="dv">
<ai-select v-model="custom.dv" :selectList="dict.getDict('customizedDVs')"/>
</el-form-item>
<el-form-item label="静态数据">
<el-input type="textarea" rows="5" v-model="custom.meta"/>
</el-form-item>
</el-form>
</ai-dialog>
</ai-list> </ai-list>
</template> </template>
@@ -72,6 +97,8 @@ export default {
totalJob: 0, totalJob: 0,
current: 1, current: 1,
size: 10, size: 10,
dialogJob: false,
dialogCandidate: false,
} }
}, },
computed: { computed: {
@@ -94,6 +121,7 @@ export default {
id: id || '' id: id || ''
} }
}) })
// this.$route.push('#addChange')
}, },
} }
} }
@@ -102,10 +130,6 @@ export default {
<style lang="scss" scope> <style lang="scss" scope>
.moment { .moment {
padding-top: 0 !important; padding-top: 0 !important;
.btn {} background-color: #FFF !important;
::v-deep .ai-list .ai-list__single .ai-list__content {
padding: 0;
}
} }
</style> </style>