代码优化
This commit is contained in:
@@ -66,7 +66,6 @@
|
||||
<script setup>
|
||||
import { reactive, ref, watch } from 'vue';
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { $status } from '@/commons/table-status.js'
|
||||
|
||||
import { getShopTable } from '@/http/api/table.js'
|
||||
import { getShopArea} from '@/http/api/area.js'
|
||||
@@ -149,7 +148,7 @@
|
||||
* @param {Object} key
|
||||
*/
|
||||
function returnStutasText(key) {
|
||||
const item = $status[key]
|
||||
const item = uni.$dict.tableStatus[key]
|
||||
return item ? item.label : ''
|
||||
}
|
||||
|
||||
@@ -158,7 +157,7 @@
|
||||
* @param {Object} key
|
||||
*/
|
||||
function returnStutasColor(key) {
|
||||
const item = $status[key]
|
||||
const item = uni.$dict.tableStatus[key]
|
||||
return item ? item.type : ''
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user