Commit de25e559 authored by 罗超's avatar 罗超

客户操作

parent 8b4792ef
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<div class="flex-center"> <div class="flex-center">
<q-icon name="work" color="primary" v-if="item.Type == '1'" /> <q-icon name="work" color="primary" v-if="item.Type == '1'" />
<q-icon name="person" color="accent" v-if="item.Type == '2'" /> <q-icon name="person" color="accent" v-if="item.Type == '2'" />
<span class="q-ml-sm">{{ item.Name }}</span> <span class="q-ml-sm">{{ item.DeptName }}</span>
</div> </div>
<q-icon name="cancel" @click="delItem(item.Id, index)"></q-icon> <q-icon name="cancel" @click="delItem(item.Id, index)"></q-icon>
</div> </div>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<q-card-actions align="right" class="bg-white text-teal"> <q-card-actions align="right" class="bg-white text-teal">
<q-btn flat label="取消" v-close-popup /> <q-btn flat label="取消" v-close-popup />
<q-btn color="primary" @click="goback" flat label="确定" /> <q-btn color="primary" @click="goback" unelevated label="确定" />
</q-card-actions> </q-card-actions>
</q-card> </q-card>
</q-dialog> </q-dialog>
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
} }
interface SelectParams { interface SelectParams {
Id: string Id: string
Name: string DeptName: string
Type: number Type: number
} }
export default { export default {
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
flag = false flag = false
} else { } else {
ticketArr.value = JSON.parse(JSON.stringify(props.defaultArray)) ticketArr.value = JSON.parse(JSON.stringify(props.defaultArray))
console.log('默认值',ticketArr.value) console.log('默认值',ticketArr.value)
} }
} }
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
if (flag == true) { if (flag == true) {
selectArray.value.push({ selectArray.value.push({
Id: j[props.nodeKey], Id: j[props.nodeKey],
Name: j.DeptName, DeptName: j.DeptName,
Type: j.DataType Type: j.DataType
}) })
} else { } else {
......
...@@ -283,7 +283,6 @@ ...@@ -283,7 +283,6 @@
} }
] ]
const init = () => { const init = () => {
console.log('init', props.defaultData)
if (props.defaultData && props.defaultData.length > 0) { if (props.defaultData && props.defaultData.length > 0) {
addMsg.value = [] addMsg.value = []
props.defaultData.map((e: any) => { props.defaultData.map((e: any) => {
...@@ -410,7 +409,6 @@ ...@@ -410,7 +409,6 @@
IsCustom: 2 IsCustom: 2
} }
filedList.value.unshift(obj2) filedList.value.unshift(obj2)
console.log('标签', filedList.value)
}) })
} }
const deleteadd = index => { const deleteadd = index => {
...@@ -463,7 +461,6 @@ ...@@ -463,7 +461,6 @@
let find2: any = addMsg.value.find(e => { let find2: any = addMsg.value.find(e => {
return e.Id == 17 return e.Id == 17
}) })
console.log('生日2', find2)
if (find2) { if (find2) {
filedList.value.map(_e => { filedList.value.map(_e => {
if (_e.Id == 17) { if (_e.Id == 17) {
...@@ -568,7 +565,6 @@ ...@@ -568,7 +565,6 @@
const newVal=JSON.parse(JSON.stringify(val)) const newVal=JSON.parse(JSON.stringify(val))
const s= dayjs(newVal[0]).format(format) const s= dayjs(newVal[0]).format(format)
const e= dayjs(newVal[1]).format(format) const e= dayjs(newVal[1]).format(format)
console.log(570,val,s,e)
addMsg.value[y].StartValue = s addMsg.value[y].StartValue = s
addMsg.value[y].EndValue = e addMsg.value[y].EndValue = e
} }
......
...@@ -36,14 +36,14 @@ ...@@ -36,14 +36,14 @@
v-if="x.Id.slice(0, 1) == '1'" v-if="x.Id.slice(0, 1) == '1'"
text-color="white" text-color="white"
icon="work" icon="work"
:label="x.Name" :label="x.DeptName"
></q-chip> ></q-chip>
<q-chip <q-chip
color="primary" color="primary"
v-if="x.Id.slice(0, 1) == '2'" v-if="x.Id.slice(0, 1) == '2'"
text-color="white" text-color="white"
icon="person" icon="person"
:label="x.Name" :label="x.DeptName"
></q-chip> ></q-chip>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment