|
@@ -136,7 +136,7 @@
|
|
|
<my-icon type="icon-zichanguanli-zichantiaobo" style="font-size:58px;"/>
|
|
|
<span>调拨</span>
|
|
|
</div>
|
|
|
- <div class="btn" style="background:linear-gradient(to right,#941FFF,#BC72FB);">
|
|
|
+ <div class="btn" style="background:linear-gradient(to right,#941FFF,#BC72FB);" @click="$refs.addStore.base()">
|
|
|
<my-icon type="icon-xinzengyugengxinhuopindangan-copy" style="font-size:58px;"/>
|
|
|
<span>新增</span>
|
|
|
</div>
|
|
@@ -201,11 +201,12 @@
|
|
|
</div>
|
|
|
<InBaseFrom ref="inBaseModal" @ok="handleOk"></InBaseFrom>
|
|
|
<OutBaseFrom ref="outBaseModal" @ok="handleOk"></OutBaseFrom>
|
|
|
-
|
|
|
+ <AddStore ref="addStore"></AddStore>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import AddStore from '@/views/store/store/modules/BaseForm.vue'
|
|
|
import InBaseFrom from '@/views/store/instoreform/modules/BaseForm.vue'
|
|
|
import OutBaseFrom from '@/views/store/outstoreform/modules/BaseForm.vue'
|
|
|
|
|
@@ -216,6 +217,7 @@ export default {
|
|
|
name: 'NewWorkplaceBacklog',
|
|
|
components: {
|
|
|
STable,
|
|
|
+ AddStore,
|
|
|
InBaseFrom,
|
|
|
OutBaseFrom,
|
|
|
Chart
|
|
@@ -224,10 +226,8 @@ export default {
|
|
|
return {
|
|
|
visible: true,
|
|
|
equipmentData: [
|
|
|
- { item: '事例一', count: 40, percent: 0.4 }
|
|
|
],
|
|
|
lineData: [
|
|
|
- { week: '周一', value: 3 }
|
|
|
],
|
|
|
storeNums: 0,
|
|
|
allCount: 100,
|
|
@@ -351,13 +351,19 @@ export default {
|
|
|
},
|
|
|
created () {
|
|
|
this.getDict()
|
|
|
- console.log(this.role)
|
|
|
- // this.getInfo()
|
|
|
+ this.getInfo()
|
|
|
},
|
|
|
mounted () {
|
|
|
- this.$nextTick(function () {
|
|
|
- this.getInfo()
|
|
|
- })
|
|
|
+ },
|
|
|
+ updated () {
|
|
|
+ if (this.lineData.length > 0 && this.equipmentData.length > 0) {
|
|
|
+ this.$nextTick(function () {
|
|
|
+ console.log(1111)
|
|
|
+ this.getPieCharts('container-pie', this.equipmentData)
|
|
|
+ this.getLineCharts('container-line', this.lineData)
|
|
|
+ console.log(1111)
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
getDict () {
|
|
@@ -388,7 +394,7 @@ export default {
|
|
|
return pre
|
|
|
}, [])
|
|
|
)
|
|
|
- this.getLineCharts('container-line', data)
|
|
|
+ this.lineData = data
|
|
|
})
|
|
|
getWorkplaceBacklogPie(this.role).then(res => {
|
|
|
const data = res.data.reduce((pre, item) => {
|
|
@@ -399,7 +405,7 @@ export default {
|
|
|
})
|
|
|
return pre
|
|
|
}, [])
|
|
|
- this.getPieCharts('container-pie', data)
|
|
|
+ this.equipmentData = data
|
|
|
})
|
|
|
},
|
|
|
getPieCharts (id, data) {
|