|
@@ -9,7 +9,8 @@
|
|
|
<cButton @toAdd="toAdd()"> </cButton>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="thr">
|
|
|
- <cTable :fields="fields" :opera="opera" :list="list" @query="search" :total="total" @edit="toEdit" @del="toDel"> </cTable>
|
|
|
+ <cTable :fields="fields" :opera="opera" :list="list" @query="search" :total="total" @edit="toEdit" @del="toDel">
|
|
|
+ </cTable>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -18,15 +19,8 @@
|
|
|
<el-col :span="24" class="dialog_one" v-if="dialog.type == '1'">
|
|
|
<cForm :span="24" :fields="formFields" :form="form" :rules="rules" @save="toSave">
|
|
|
<template #url>
|
|
|
- <cUpload
|
|
|
- :model="`${'url'}`"
|
|
|
- :limit="1"
|
|
|
- listType="picture"
|
|
|
- url="/files/material/module/upload"
|
|
|
- accept="*"
|
|
|
- :list="form.url"
|
|
|
- @change="onUpload"
|
|
|
- ></cUpload>
|
|
|
+ <cUpload :model="`${'url'}`" :limit="1" listType="picture" url="/files/material/module/upload" accept="*"
|
|
|
+ :list="form.url" @change="onUpload"></cUpload>
|
|
|
</template>
|
|
|
<template #type>
|
|
|
<el-option v-for="i in typeList" :key="i.value" :label="i.label" :value="i.value"></el-option>
|
|
@@ -175,10 +169,10 @@ const toClose = () => {
|
|
|
const searchOther = async () => {
|
|
|
let res: IQueryResult;
|
|
|
// 是否使用
|
|
|
- res = await dictData.query({ type: 'is_use' });
|
|
|
+ res = await dictData.query({ type: 'is_use', is_use: '0' });
|
|
|
if (res.errcode == '0') is_useList.value = res.data;
|
|
|
// 类型
|
|
|
- res = await dictData.query({ type: 'goods_type' });
|
|
|
+ res = await dictData.query({ type: 'goods_type', is_use: '0' });
|
|
|
if (res.errcode == '0') typeList.value = res.data;
|
|
|
};
|
|
|
</script>
|