Commit f9e8e943a871706ab88818f9175d53b0d3e69268

Authored by hh
1 parent 91c6c7bb

生产和项目看板修改

src/views/scheduler/progressRate.vue
1 1 <template>
2 2 <div>
3 3 <div class="table-page-search-wrapper">
4   - <a-form layout="inline">
  4 + <!-- <a-form layout="inline">
5 5 <a-row :gutter="10">
6 6 <a-col :md="6" :sm="24">
7 7 <a-form-item label="项目名称">
... ... @@ -16,9 +16,25 @@
16 16 </a-form-item>
17 17 </a-col>
18 18 </a-row>
19   - </a-form>
  19 + </a-form> -->
20 20 </div>
21 21  
  22 + <div class="table-page-search-wrapper">
  23 + <a-form layout="inline">
  24 + <a-row :gutter="10">
  25 + <a-col :md="6" :sm="8">
  26 + <a-form-item label="工作令号">
  27 + <!-- <a-input placeholder="请输入工作令号" v-model="queryParam.workNo"></a-input>-->
  28 + <j-popup v-model="queryParam" code="find_projectc" field="field0056" orgFields="field0056" destFields="field0056" :multi="false"/>
  29 + </a-form-item>
  30 + </a-col>
  31 + <a-col :md="6" :sm="24">
  32 + <a-button type="primary" @click="handleChange(queryParam)">查询</a-button>
  33 + <a-button style="margin-left: 8px" @click="() => (queryParam = {})">重置</a-button>
  34 + </a-col>
  35 + </a-row>
  36 + </a-form>
  37 + </div>
22 38 <gantt-elastic
23 39 :options="options"
24 40 :tasks="tasks"
... ... @@ -65,7 +81,7 @@ let options = {
65 81 maxRows: 100,
66 82 maxHeight: 500,
67 83 title: {
68   - label: "",
  84 + label: "生产进度看板",
69 85 html: false
70 86 },
71 87 row: {
... ... @@ -200,6 +216,7 @@ export default {
200 216 data() {
201 217 return {
202 218 tasks: [],
  219 + projectName:'',
203 220 options,
204 221 dynamicStyle: {
205 222 'task-list-header-label': {
... ... @@ -264,6 +281,7 @@ export default {
264 281 if (projectName == null || projectName === "") {
265 282 return;
266 283 }
  284 + this.tasks = []
267 285 let params = {
268 286 "projectName": projectName
269 287 };
... ... @@ -273,7 +291,7 @@ export default {
273 291 this.tasks = res.result
274 292 }
275 293 })
276   - }
  294 + },
277 295 }
278 296 }
279 297 </script>
... ...
src/views/scheduler/progressRateCopy.vue
... ... @@ -12,9 +12,9 @@
12 12 <a-col :md="6" :sm="8">
13 13 <a-form-item label="工作令号">
14 14 <!-- <a-input placeholder="请输入工作令号" v-model="queryParam.workNo"></a-input>-->
15   - <j-popup v-model="queryParam.workNo" code="find_projectc" field="field0056" orgFields="field0056" destFields="field0056" :multi="true"/>
  15 + <j-popup v-model="queryParam.workNo" code="find_projectc" field="field0056" orgFields="field0056" destFields="field0056" :multi="false"/>
16 16 </a-form-item>
17   - </a-col>
  17 + </a-col>
18 18 <a-col :md="6" :sm="24">
19 19 <a-button type="primary" @click="getTask(queryParam.workNo)">查询</a-button>
20 20 <a-button style="margin-left: 8px" @click="() => (queryParam = {})">重置</a-button>
... ... @@ -69,7 +69,7 @@ let tasks = [
69 69 "id": "1",
70 70 "isOnTime": "否",
71 71 "start": 1616575959000,
72   - "taskPoint": "测试项目1",
  72 + "taskPoint": "展示",
73 73 "type": "task",
74 74 "style": {
75 75 "base": {
... ... @@ -168,16 +168,17 @@ let options = {
168 168 width: 100,
169 169 },
170 170 {
171   - id: 9,
  171 + id: 5,
172 172 label: "意见",
173 173 value: "opinion",
174 174 width: 60
175 175 },
176 176 {
177   - id: 9,
  177 + id: 6,
178 178 label: "按时完成",
179 179 value: "isOnTime",
180   - width: 60
  180 + width: 60,
  181 + expander: true
181 182 }
182 183 ]
183 184 },
... ...