|
@@ -36,12 +36,12 @@
|
|
|
<el-button ref="btn2" size="mini" @click="getQueryData(2)">任务</el-button>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <el-select v-model="queryDataState" filterable placeholder="请选择项目还是任务" style="width:100%;">
|
|
|
- <el-option v-for="item in restaurants" :key="item.id" :label="item.value" :value="item.id" />
|
|
|
+ <el-select v-model="queryDataState.code" filterable placeholder="请选择项目还是任务" style="width:100%;">
|
|
|
+ <el-option v-for="item in restaurants" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
</el-select>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="createPresentation(queryDataState)">创建</el-button>
|
|
|
+ <el-button type="primary" @click="createPresentation(queryDataState.code)">创建</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -61,7 +61,7 @@ export default {
|
|
|
centerDialogVisible: false,
|
|
|
centerDialogVisible1: false,
|
|
|
getListAllData: [],
|
|
|
- queryDataState: '',
|
|
|
+ queryDataState: {},
|
|
|
pageSize: 20,
|
|
|
curIndex: 1,
|
|
|
total: 0,
|
|
@@ -124,7 +124,6 @@ export default {
|
|
|
var type = ele
|
|
|
}
|
|
|
}
|
|
|
- console.log(type)
|
|
|
this.queryData.state = ''
|
|
|
this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { state1: type }})
|
|
|
} else {
|
|
@@ -148,12 +147,13 @@ export default {
|
|
|
getQueryData(e) {
|
|
|
this.restaurants = []
|
|
|
this.states = ''
|
|
|
+ this.$set(this.queryDataState, 'code', '')
|
|
|
taskListCreate({ status: 7 }).then(res => {
|
|
|
const arr = []
|
|
|
switch (e) {
|
|
|
case 1:
|
|
|
for (var ele of res.data.projectInfoList) {
|
|
|
- arr.push({ value: ele.name, projectId: ele.id, type: ele.platForm, bizId: ele.bizId })
|
|
|
+ arr.push({ name: ele.name, id: ele.id, type: ele.platForm, bizId: ele.bizId })
|
|
|
}
|
|
|
this.restaurants = arr
|
|
|
this.$refs['btn1'].$el.style.background = '#409EFF'
|
|
@@ -163,7 +163,7 @@ export default {
|
|
|
break
|
|
|
case 2:
|
|
|
for (var vel of res.data.taskInfoList) {
|
|
|
- arr.push({ value: vel.name, taskId: vel.id, type: vel.type, bizId: vel.bizId })
|
|
|
+ arr.push({ name: vel.name, id: vel.id, type: vel.type, bizId: vel.bizId })
|
|
|
}
|
|
|
this.restaurants = arr
|
|
|
this.$refs['btn1'].$el.style.background = '#FFFFFF'
|